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.Construction.ExponentialSlices |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.InitialValue.InitialJacobiData |
| 3 | |
| 4 | /-! |
| 5 | # The actual Jacobi field along every supplied exponential family |
| 6 | |
| 7 | Morgan-Tian Lemma 6.19, p. 114, and Proposition 6.30, pp. 118-119. |
| 8 | The supplied and canonical families agree on each open survival slice. |
| 9 | Their actual differentials agree, so the canonical Jacobi field on the |
| 10 | supplied path is its genuine exponential differential at every time. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | -- The actual horizontal fibers and manifold tangents retain their fixed model values. |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M14 |
| 23 | |
| 24 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 25 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 26 | {T : ℝ} {x : G.Point} |
| 27 | |
| 28 | private theorem horizontal_t2Space : T2Space (G.Horizontal x) := |
| 29 | FiberBundle.t2Space (EuclideanSpace ℝ (Fin n)) G.Horizontal x |
| 30 | |
| 31 | attribute [local instance] horizontal_t2Space |
| 32 | |
| 33 | private theorem horizontal_heq_of_val_eq {q r : G.Point} (h : q = r) |
| 34 | {v : G.Horizontal q} {w : G.Horizontal r} (hv : v.val = w.val) : HEq v w := by |
| 35 | cases h |
| 36 | exact heq_of_eq (Subtype.ext hv) |
| 37 | |
| 38 | /-- The supplied exponential differential equals the canonical actual |
| 39 | initial-value differential in the same horizontal fiber, including |
| 40 | physical endpoints, Lemma 6.19, p. 114. -/ |
| 41 | theorem exponential_differential_heq_initialValue |
| 42 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 43 | (E : M14ExponentialFamily G T x) {Z : G.Horizontal x} {s : ℝ} |
| 44 | (hs : (Z, s) ∈ E.domain) (W : G.Horizontal x) : |
| 45 | HEq (E.differential Z s hs W) (initialValueDifferential G T x Z s W) := by |
| 46 | let metric := G.spacetime.horizontalMetric.toRiemannianMetric |
| 47 | let : NormedAddCommGroup (G.Horizontal x) := |
| 48 | (metric.toCore x).toNormedAddCommGroupOfTopology |
| 49 | (metric.continuousAt x) (metric.isVonNBounded x) |
| 50 | let : InnerProductSpace ℝ (G.Horizontal x) := |
| 51 | .ofCoreOfTopology (metric.toCore x) (metric.continuousAt x) (metric.isVonNBounded x) |
| 52 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := ⟨metric⟩ |
| 53 | have heq : (fun A => E.gamma A s) =ᶠ[𝓝 Z] (fun A => initialValueCurve G T x A s) := by |
| 54 | filter_upwards [(exponentialFamily_domain_slice_isOpen E s).mem_nhds hs] with A hA |
| 55 | exact exponentialFamily_gamma_eq hM04 hM12 E hA |
| 56 | have hd := congrArg (fun L : G.Horizontal x →L[ℝ] SpacetimeModelVector n => L W) |
| 57 | (heq.mfderiv_eq (I := 𝓘(ℝ, G.Horizontal x)) (I' := spacetimeModel n)) |
| 58 | apply horizontal_heq_of_val_eq (exponentialFamily_gamma_eq hM04 hM12 E hs) |
| 59 | exact (E.differential_pointwise_mfderiv Z s hs W).trans (hd.trans |
| 60 | (initialValueDifferential_val hM04 hM12 E.base_time |
| 61 | (exponentialFamily_domain_eq E ▸ hs) W).symm) |
| 62 | |
| 63 | /-- The actual normalized Jacobi field on a supplied full path |
| 64 | equals its actual exponential differential at every prefix time, |
| 65 | Lemma 6.19, p. 114, and Proposition 6.30, pp. 118-119. -/ |
| 66 | theorem exponentialJacobiField_heq_differential |
| 67 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 68 | (E : M14ExponentialFamily G T x) (Z W : G.Horizontal x) {b s : ℝ} |
| 69 | (hb : (Z, b) ∈ E.domain) (hpos : 0 < b) |
| 70 | (hs : s ∈ M14SqrtParameterInterval 0 (b ^ 2)) (hsurv : (Z, s) ∈ E.domain) : |
| 71 | HEq ((initialValuePath_differentialData hM04 hM12 |
| 72 | (exponentialInitialValuePath E Z b hb hpos) W).field s) (E.differential Z s hsurv W) := |
| 73 | (initialValuePath_differentialField_heq hM04 hM12 |
| 74 | (exponentialInitialValuePath E Z b hb hpos) W hs).trans |
| 75 | (exponential_differential_heq_initialValue hM04 hM12 E hsurv W).symm |
| 76 | |
| 77 | end PoincareMT.M14 |