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.Differential.ExponentialLineKernel |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Coordinates.GaugeParameterDifferential |
| 3 | |
| 4 | /-! |
| 5 | # The actual exponential differential in affine gauge coordinates |
| 6 | |
| 7 | Morgan-Tian Lemma 6.19, p. 114, and Proposition 6.30, pp. 118-119. |
| 8 | Any smooth local gauge reconstruction of an affine exponential line |
| 9 | identifies the frozen differential with its actual spatial derivative. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | -- Actual tangent values share the fixed spacetime model across equal basepoints. |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Filter |
| 17 | open scoped Manifold Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M14 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T : ℝ} {x : G.Point} |
| 26 | |
| 27 | private theorem projected_horizontal_heq {q r : G.Point} (h : q = r) |
| 28 | {v : TangentSpace (spacetimeModel n) q} {w : G.Horizontal r} (hv : HEq v w.val) : |
| 29 | HEq (G.spacetime.horizontalProjection q v) w := by |
| 30 | cases h |
| 31 | rw [eq_of_heq hv, G.spacetime.horizontalProjection_identity] |
| 32 | |
| 33 | /-- The actual exponential differential is the spatial differential |
| 34 | of any actual smooth affine-line gauge reconstruction, |
| 35 | Lemma 6.19, p. 114, and Proposition 6.30, pp. 118-119. -/ |
| 36 | theorem exponentialLine_differential_gauge (E : M14ExponentialFamily G T x) |
| 37 | (Z W : G.Horizontal x) {s : ℝ} (hs : (Z, s) ∈ E.domain) (j : G.gaugeCover.index) |
| 38 | (β : ℝ → (G.timeIntervals.interval (G.gaugeCover.interval j)).Point × G.gaugeCover.spatial j) |
| 39 | (hβ : MDifferentiableAt (𝓘(ℝ, ℝ)) (spacetimeModel n) β 0) |
| 40 | (hrec : (fun r : ℝ => E.gamma (Z + r • W) s) =ᶠ[𝓝 0] |
| 41 | (fun r => (G.gaugeCover.cylinder j).toSpacetime (β r))) : |
| 42 | HEq (E.differential Z s hs W) ((G.gaugeCover.metric j).spatialTangentEquiv |
| 43 | (β 0).1 (β 0).2 (fderiv ℝ (fun r => (β r).2.val) 0 (1 : ℝ))) := by |
| 44 | have hgauge := gaugeMap_projectedDifferential_congr j hβ hrec (1 : ℝ) |
| 45 | have hpoint : E.gamma (Z + (0 : ℝ) • W) s = E.gamma Z s := by simp only [zero_smul, add_zero] |
| 46 | have hproject := projected_horizontal_heq hpoint (heq_of_eq (exponentialLine_mfderiv E Z W hs)) |
| 47 | exact hproject.symm.trans hgauge |
| 48 | |
| 49 | end PoincareMT.M14 |