Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import PoincareLib.Geometry.CurveShortening.Comparison.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.Riemannian.LoopSpace.Area.Annular.Angles |
| 3 | import Mathlib.Analysis.SpecialFunctions.Complex.Circle |
| 4 | |
| 5 | /-! |
| 6 | # Uniqueness of the real phase on a connected set |
| 7 | |
| 8 | Covering-map uniqueness shows that continuous lifts of the same circle |
| 9 | observation differ by one real constant. Normalizing at a prescribed |
| 10 | point preserves the observation, including away from the original arc. |
| 11 | Source: M64 phase-cone normalization derivation; covering uniqueness. |
| 12 | |
| 13 | Morgan--Tian context: Lemma 19.15, printed pp. 447-449. This project analytic helper |
| 14 | supports the actual annular minimizer and boundary regularity construction. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Topology |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | open Proofs.M58 |
| 26 | |
| 27 | private theorem angularPoint_eq_iff_exp_eq {s t : ℝ} : |
| 28 | angularPoint s = angularPoint t ↔ Circle.exp s = Circle.exp t := by |
| 29 | rw [← m60LoopCircleHomeomorphCircle_angular s, |
| 30 | ← m60LoopCircleHomeomorphCircle_angular t, |
| 31 | m60LoopCircleHomeomorphCircle.injective.eq_iff] |
| 32 | exact ⟨fun h => Subtype.ext h, fun h => congrArg Subtype.val h⟩ |
| 33 | |
| 34 | /-- Two continuous real lifts of one circle observation differ by their value difference at |
| 35 | any specified point of the connected set. Source: |
| 36 | derivations/2026-09-26-phase-cone-normalization.md, connected phase uniqueness. -/ |
| 37 | theorem m64ContinuousPhase_difference {X : Type*} [TopologicalSpace X] |
| 38 | {S : Set X} (hS : IsPreconnected S) {u v : X → ℝ} {k : ℝ} (hk : k ≠ 0) |
| 39 | (hu : ContinuousOn u S) (hv : ContinuousOn v S) |
| 40 | (hobs : ∀ x ∈ S, angularPoint (k * u x) = angularPoint (k * v x)) |
| 41 | {a : X} (ha : a ∈ S) : |
| 42 | ∀ x ∈ S, u x = v x + (u a - v a) := by |
| 43 | have hzero (x : X) (hx : x ∈ S) : Circle.exp (k * (u x - v x)) = 1 := by |
| 44 | rw [mul_sub, Circle.exp_sub, (angularPoint_eq_iff_exp_eq.mp (hobs x hx)), div_self'] |
| 45 | have heq := Circle.isCoveringMap_exp.eqOn_of_comp_eqOn hS |
| 46 | (continuousOn_const.mul (hu.sub hv)) continuousOn_const |
| 47 | (show EqOn (Circle.exp ∘ fun x => k * (u x - v x)) |
| 48 | (Circle.exp ∘ fun _ => k * (u a - v a)) S from |
| 49 | fun x hx => (hzero x hx).trans (hzero a ha).symm) ha rfl |
| 50 | intro x hx |
| 51 | have h := mul_left_cancel₀ hk (heq hx) |
| 52 | change u x - v x = u a - v a at h |
| 53 | linarith |
| 54 | |
| 55 | /-- Adding the difference of two equal observed phases preserves the circle observation of |
| 56 | every real argument. Source: derivations/2026-09-26-phase-cone-normalization.md, connected |
| 57 | phase uniqueness. -/ |
| 58 | theorem m64AngularPoint_phase_shift {k u v : ℝ} |
| 59 | (hobs : angularPoint (k * u) = angularPoint (k * v)) (t : ℝ) : |
| 60 | angularPoint (k * (t + (u - v))) = angularPoint (k * t) := by |
| 61 | apply angularPoint_eq_iff_exp_eq.mpr |
| 62 | rw [mul_add, mul_sub, Circle.exp_add, Circle.exp_sub, |
| 63 | angularPoint_eq_iff_exp_eq.mp hobs, div_self', mul_one] |
| 64 | |
| 65 | end PoincareMT |