Min shifted gap equals TG minus max pair gap (private)
Provedhlawka_gap.min_shifted_eqThe minimum of the three shifted gaps equals the triple gap minus the maximum pair gap. Follows from telescoping. — RETIRED: created by accident as public (the private flag sits at the submission top level, not per-problem); superseded by a corrected private version.
Preamble
import Mathlib.Data.Real.Basic import Mathlib.Tactic
Formal statement
theorem hlawka_gap.min_shifted_eq {N1 N2 N3 M12 M23 M31 Mt : ℝ} :
min (min (M12 + N3 - Mt) (M23 + N1 - Mt)) (M31 + N2 - Mt)
= (N1 + N2 + N3 - Mt)
- max (N1 + N2 - M12) (max (N2 + N3 - M23) (N3 + N1 - M31)) := by sorry