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.RicciFlow.Generalized.ReducedGeometry.Exponential.InitialValue.InitialAction |
| 2 | |
| 3 | /-! |
| 4 | # Every supplied exponential family agrees with the actual IVP |
| 5 | |
| 6 | Morgan-Tian Definition 6.17 and Lemma 6.18, pp. 113-114. |
| 7 | The frozen family's path and square Euler data are an actual normalized |
| 8 | IVP. Its survival characterization and the proved actual uniqueness |
| 9 | identify its domain, curve, and positive-time action with the canonical |
| 10 | family. No off-domain or zero-time action is prescribed. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | {T : ℝ} {x : G.Point} |
| 24 | |
| 25 | /-- The supplied family's path is itself the normalized actual IVP, |
| 26 | Definition 6.17 and Lemma 6.18, pp. 113-114. -/ |
| 27 | def exponentialInitialValuePath (E : M14ExponentialFamily G T x) |
| 28 | (Z : G.Horizontal x) (s : ℝ) (hs : (Z, s) ∈ E.domain) (hpos : 0 < s) : |
| 29 | M14SquareRootInitialValuePath G T (s ^ 2) x (E.gamma Z s) Z where |
| 30 | path := E.path Z s hs hpos |
| 31 | square_path := E.square_path Z s hs hpos |
| 32 | extension := E.square_extension Z s hs hpos |
| 33 | euler := E.square_euler Z s hs hpos |
| 34 | initial_velocity := E.square_initial_velocity Z s hs hpos |
| 35 | |
| 36 | /-- Every supplied exponential family has precisely the actual IVP |
| 37 | survival domain, including all initial vectors at time zero, |
| 38 | Definition 6.17 and Lemma 6.18, pp. 113-114. -/ |
| 39 | theorem exponentialFamily_domain_eq (E : M14ExponentialFamily G T x) : |
| 40 | E.domain = initialValueDomain G T x := by |
| 41 | ext ⟨Z, s⟩ |
| 42 | constructor |
| 43 | · intro hs |
| 44 | rcases eq_or_lt_of_le (E.domain_admissible hs).1 with hzero | hpos |
| 45 | · change 0 = s at hzero |
| 46 | subst s |
| 47 | exact initialValueDomain_zero Z |
| 48 | · exact (initialValueDomain_positive_iff hpos).mpr |
| 49 | ((E.positive_survival_iff Z s hpos).mp hs) |
| 50 | · intro hs |
| 51 | rcases eq_or_lt_of_le (initialValueDomain_nonneg hs) with hzero | hpos |
| 52 | · subst s |
| 53 | exact E.domain_zero Z |
| 54 | · exact (E.positive_survival_iff Z s hpos).mpr |
| 55 | ((initialValueDomain_positive_iff hpos).mp hs) |
| 56 | |
| 57 | /-- The supplied and canonical exponential curves agree everywhere |
| 58 | on their common actual survival domain, Lemma 6.18, pp. 113-114. -/ |
| 59 | theorem exponentialFamily_gamma_eq |
| 60 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 61 | (E : M14ExponentialFamily G T x) {Z : G.Horizontal x} {s : ℝ} |
| 62 | (hs : (Z, s) ∈ E.domain) : E.gamma Z s = initialValueCurve G T x Z s := by |
| 63 | rcases eq_or_lt_of_le (E.domain_admissible hs).1 with hzero | hpos |
| 64 | · change 0 = s at hzero |
| 65 | subst s |
| 66 | exact (E.gamma_at_zero Z).trans (initialValueCurve_zero Z).symm |
| 67 | · exact (initialValueCurve_eq_endpoint hM04 hM12 hpos |
| 68 | (exponentialInitialValuePath E Z s hs hpos)).symm |
| 69 | |
| 70 | /-- Positive-time supplied action is exactly the canonical actual |
| 71 | IVP action; the arbitrary zero-time convention is not used, |
| 72 | equation (6.2) and Lemma 6.18, pp. 106, 113-114. -/ |
| 73 | theorem exponentialFamily_action_eq |
| 74 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 75 | (E : M14ExponentialFamily G T x) {Z : G.Horizontal x} {s : ℝ} |
| 76 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s) : |
| 77 | E.action Z s = initialValueAction G T x Z s := |
| 78 | (E.action_eq Z s hs hpos).trans |
| 79 | (initialValueAction_eq_of_path hM04 hM12 hpos |
| 80 | (exponentialInitialValuePath E Z s hs hpos)).symm |
| 81 | |
| 82 | end PoincareMT.M14 |