Lefebvre's variations, No. 29 — on a theme by Gale: the zero set of a function changing sign across a rectangle contains a continuum crossing it
ProvedLefebvreVariations.zero_set_crossing_continuumLefebvre's variations — posed by Erwan Lefebvre.
Let and be real numbers, let , and let be continuous with
that is, is nonnegative on the left side of the rectangle and nonpositive on its right side. Then the zero set contains a connected set that meets both the bottom side and the top side .
This is the classical crossing (or "zero-set continuum") lemma of planar topology. It is the continuous form of the Hex / Steinhaus chessboard theorem: for a closed set , either contains a connected set joining the bottom and top sides, or contains a connected set joining the left and right sides. Applied to , the second alternative is impossible by the intermediate value theorem, which gives the statement. It implies the two-dimensional Poincaré–Miranda theorem (if moreover on the bottom side and on the top side, then vanishes on ), hence the two-dimensional Brouwer fixed point theorem.
Formalization Note The rectangle is Set.Icc a b ×ˢ Set.Icc c d in ℝ × ℝ with its product topology. F is a function ℝ × ℝ → ℝ, required to be continuous only on the rectangle (ContinuousOn); its values outside the rectangle play no role. The connected set is a W : Set (ℝ × ℝ) with IsPreconnected W (it is nonempty, since it meets the bottom side), contained in the rectangle, on which F vanishes; meeting the bottom (top) side is written ∃ s, (s, c) ∈ W (∃ s, (s, d) ∈ W), and s ∈ [a,b] follows from W lying in the rectangle. The hypotheses a ≤ b and c ≤ d only exclude an empty rectangle; the degenerate cases a = b or c = d are included and true.
Why this is a Lefebvre variation. It is the missing step of a Lean-verified reduction of the open statement SquarePeg.nielsen_wright_symmetric_curve (a Jordan curve symmetric about a line or a point inscribes a square). Both symmetry cases of the base statement are proved from this lemma, by applying it to the difference of distances to the axis or to the centre and using the intermediate value theorem on the connected zero set. It is not a special case of the base statement: it is a classical planar-topology lemma (the continuous Hex theorem, as strong as the two-dimensional Brouwer theorem) that is the one missing ingredient of the verified reduction.
Attribution. Series Lefebvre's variations, posed by Erwan Lefebvre.
import Mathlib set_option autoImplicit false
namespace LefebvreVariations
theorem zero_set_crossing_continuum (a b c d : ℝ) (hab : a ≤ b) (hcd : c ≤ d)
(F : ℝ × ℝ → ℝ) (hF : ContinuousOn F (Set.Icc a b ×ˢ Set.Icc c d))
(hleft : ∀ t ∈ Set.Icc c d, 0 ≤ F (a, t))
(hright : ∀ t ∈ Set.Icc c d, F (b, t) ≤ 0) :
∃ W : Set (ℝ × ℝ), W ⊆ Set.Icc a b ×ˢ Set.Icc c d ∧ (∀ p ∈ W, F p = 0) ∧
IsPreconnected W ∧ (∃ s : ℝ, (s, c) ∈ W) ∧ (∃ s : ℝ, (s, d) ∈ W) := by sorry
end LefebvreVariations