A Galois connection is a pair of maps F, G between two ordered worlds with one law: F(a) ≤ b ⇔ a ≤ G(b). It is the most general shape of duality — the order-theory shadow of an adjunction. Galois's own field/group correspondence is the archetype; so is n² ≤ m ⇔ n ≤ ⌊√m⌋, where squaring and integer-square-root are the two adjoined maps. Each side determines the other; a fact in one world is a fact in the other.
Take squaring on one side and integer square root on the other; for any n, m the two inequalities n²≤m and n≤⌊√m⌋ always agree — the connection law, verified across a range: live demo
“Squaring and square-root are just inverse functions.” — over the integers they are not inverse (roots aren't integers), yet they stay locked by an order duality: n≤⌊√m⌋ exactly when n²≤m. That adjoint bond — not invertibility — is what a Galois connection captures, and it is everywhere. cited
A Galois connection is duality stripped to its essence: two ordered worlds and one bar that translates ≤ back and forth. Closure operators, syntax/semantics, abstract interpretation — all are this one bond. Ore 1944
On the canonical compiler, integer square root is computed by recursion, and for m=50 (⌊√50⌋=7) the two inequalities agree at the boundary — n=7 satisfies both, n=8 fails both: