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 |
| 2 | |
| 3 | /-! |
| 4 | # The full initial tangent of an actual normalized square path |
| 5 | |
| 6 | Morgan-Tian Lemma 6.8 and Definition 6.17, pp. 108-109, 113. |
| 7 | The normalized square clock has zero initial tangent. Thus the |
| 8 | prescribed horizontal initial velocity is already the whole actual |
| 9 | within tangent, transported to the basepoint. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.M14 |
| 19 | |
| 20 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 21 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 22 | |
| 23 | private theorem transport_horizontal_tangent {x y : G.Point} (h : x = y) |
| 24 | (v : G.Horizontal x) : |
| 25 | (h ▸ v.val : TangentSpace (spacetimeModel n) y) = (h ▸ v : G.Horizontal y).val := by |
| 26 | cases h |
| 27 | rfl |
| 28 | |
| 29 | /-- A normalized square-root IVP has full initial within tangent |
| 30 | 2Z, with no residual time component, Lemma 6.8 and Definition 6.17, |
| 31 | pp. 108-109, 113. -/ |
| 32 | theorem initialValuePath_initial_derivative {T τ : ℝ} {x y : G.Point} {Z : G.Horizontal x} |
| 33 | (P : M14SquareRootInitialValuePath G T τ x y Z) : |
| 34 | ∃ h : P.square_path.curve 0 = x, |
| 35 | h ▸ mfderivWithin (𝓘(ℝ, ℝ)) (spacetimeModel n) P.square_path.curve |
| 36 | (M14SqrtParameterInterval 0 τ) 0 (1 : ℝ) = |
| 37 | (2 : ℝ) • (Z : TangentSpace (spacetimeModel n) x) := by |
| 38 | obtain ⟨h, hv⟩ := P.initial_velocity |
| 39 | refine ⟨h, ?_⟩ |
| 40 | have hzero : (0 : ℝ) ∈ M14SqrtParameterInterval 0 τ := |
| 41 | ⟨by rw [Real.sqrt_zero], Real.sqrt_nonneg τ⟩ |
| 42 | have hd := P.square_path.derivative_eq 0 hzero |
| 43 | simp only [mul_zero, neg_zero, zero_smul, zero_add] at hd |
| 44 | rw [hd, transport_horizontal_tangent h, hv] |
| 45 | rfl |
| 46 | |
| 47 | end PoincareMT.M14 |