Lefebvre's variations, No. 240 — on a theme by Toeplitz: every triangle has an inscribed square on its boundary
ProvedLefebvreVariations.square_peg_triangleLet be three non-collinear points and let be the boundary of the triangle they span. Then contains the four vertices of a (non-degenerate) square:
The boundary of a triangle is a Jordan curve, so this is the first non-smooth special case of Toeplitz's square peg conjecture (every Jordan curve in the plane contains the vertices of a square). It is classical: for each side one can inscribe a square with two vertices on that side, of side length where is the side and the corresponding height.
Formalization Note Points are in Schoenflies.Plane = EuclideanSpace ℝ (Fin 2); the triangle's boundary is frontier (convexHull ℝ {a, b, c}) and the non-degeneracy hypothesis is ¬ Collinear ℝ {a, b, c}. SquarePeg.IsSquare p1 p2 p3 p4 (from the platform's Def_SquarePeg_shapes) says that p1, p2, p3, p4 in cyclic order form a non-degenerate rectangle with equal adjacent sides: p1 + p3 = p2 + p4, dist p1 p3 = dist p2 p4, p1 ≠ p2, p2 ≠ p3, dist p1 p2 = dist p2 p3.
Why this is a variation. Special case of the open platform problem SquarePeg.square_peg_conjecture (every Jordan curve in the plane has an inscribed square), where the Jordan curve is the boundary of a non-degenerate triangle. It also falls under SquarePeg.convex_curve_inscribed_square, and the proof is the classical inscribed square on a side of length ah/(a+h).
Attribution. This statement belongs to Lefebvre's variations, a series proposed by Erwan Lefebvre: each variation plays an open problem of the platform at its first non-trivial size, so that it can be settled and then reused to attack the open problem itself.
import Mathlib import Definitions.Def_SchoenfliesCurveCore import Definitions.Def_SquarePeg_shapes set_option autoImplicit false open Schoenflies
namespace LefebvreVariations
/-- Every triangle has an inscribed square: the boundary of a non-degenerate triangle, a Jordan
curve, carries the four vertices of a square. A special case of the square peg conjecture
`SquarePeg.square_peg_conjecture`. -/
theorem square_peg_triangle (a b c : Plane) (h : ¬ Collinear ℝ ({a, b, c} : Set Plane)) :
∃ p1 p2 p3 p4 : Plane,
p1 ∈ frontier (convexHull ℝ ({a, b, c} : Set Plane)) ∧
p2 ∈ frontier (convexHull ℝ ({a, b, c} : Set Plane)) ∧
p3 ∈ frontier (convexHull ℝ ({a, b, c} : Set Plane)) ∧
p4 ∈ frontier (convexHull ℝ ({a, b, c} : Set Plane)) ∧
SquarePeg.IsSquare p1 p2 p3 p4 := by
sorry
end LefebvreVariations