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.InitialJacobiDerivative |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Jacobi.JacobiAnyTime |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Jacobi.JacobiPackaging |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Pullback.PullbackZeroField |
| 5 | |
| 6 | /-! |
| 7 | # A zero actual Jacobi phase detects the initial direction |
| 8 | |
| 9 | Morgan-Tian Lemma 6.19, p. 114, and Proposition 6.30, pp. 118-119. |
| 10 | The zero-direction differential is identically zero. Jacobi uniqueness |
| 11 | from any meeting point propagates zero phase back to square time zero, |
| 12 | where the actual covariant derivative is twice the initial direction. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold |
| 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 y : G.Point} {Z : G.Horizontal x} |
| 27 | |
| 28 | private theorem horizontal_transport_zero {q r : G.Point} (h : q = r) : |
| 29 | (h ▸ (0 : G.Horizontal q) : G.Horizontal r) = 0 := by |
| 30 | cases h |
| 31 | rfl |
| 32 | |
| 33 | /-- The actual zero-direction differential field vanishes everywhere, |
| 34 | including its prescribed off-interval values, Lemma 6.19, p. 114. -/ |
| 35 | theorem initialValuePath_differential_zero_direction |
| 36 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 37 | (P : M14SquareRootInitialValuePath G T τ x y Z) (s : ℝ) : |
| 38 | (initialValuePath_differentialData hM04 hM12 P 0).field s = 0 := by |
| 39 | change initialValuePath_differentialField hM04 hM12 P 0 s = 0 |
| 40 | unfold initialValuePath_differentialField |
| 41 | split_ifs with hs |
| 42 | · rw [map_zero] |
| 43 | exact horizontal_transport_zero _ |
| 44 | · rfl |
| 45 | |
| 46 | /-- The zero-direction Jacobi field has zero actual covariant |
| 47 | derivative on the closed interval, Lemma 6.19, p. 114. -/ |
| 48 | theorem initialValuePath_differential_zero_direction_derivative |
| 49 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 50 | (P : M14SquareRootInitialValuePath G T τ x y Z) {s : ℝ} |
| 51 | (hs : s ∈ M14SqrtParameterInterval 0 τ) : |
| 52 | M14JacobiFirstDerivative (initialValuePath_differentialData hM04 hM12 P 0) s = 0 := |
| 53 | horizontalCovariantDerivative_zero_field |
| 54 | (initialValuePath_differentialData hM04 hM12 P 0).extension |
| 55 | (fun r _ => initialValuePath_differential_zero_direction hM04 hM12 P r) hs |
| 56 | (uniqueDiffOn_Icc (Real.sqrt_lt_sqrt P.path.tau_nonneg P.path.tau_lt) s hs) |
| 57 | (((P.square_path.smooth.mono P.square_path.interval_subset) s hs).mdifferentiableWithinAt |
| 58 | (by simp)) |
| 59 | |
| 60 | /-- Vanishing of both actual Jacobi phase values at any closed |
| 61 | interval point forces the normalized initial direction to vanish, |
| 62 | Proposition 6.30, pp. 118-119. -/ |
| 63 | theorem initialValuePath_direction_eq_zero_of_phase |
| 64 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 65 | (P : M14SquareRootInitialValuePath G T τ x y Z) (W : G.Horizontal x) {c : ℝ} |
| 66 | (hc : c ∈ M14SqrtParameterInterval 0 τ) |
| 67 | (hfield : (initialValuePath_differentialData hM04 hM12 P W).field c = 0) |
| 68 | (hderiv : M14JacobiFirstDerivative (initialValuePath_differentialData hM04 hM12 P W) c = 0) : |
| 69 | W = 0 := by |
| 70 | let Q := initialValuePath_differentialData hM04 hM12 P W |
| 71 | let Q₀ := initialValuePath_differentialData hM04 hM12 P 0 |
| 72 | have hQ := jacobiField_isHorizontalJacobiPair Q |
| 73 | (fun _ hs => initialValuePath_differential_jacobi hM04 hM12 P W hs) |
| 74 | have hQ₀ := jacobiField_isHorizontalJacobiPair Q₀ |
| 75 | (fun _ hs => initialValuePath_differential_jacobi hM04 hM12 P 0 hs) |
| 76 | have hzero : (0 : ℝ) ∈ M14SqrtParameterInterval 0 τ := |
| 77 | ⟨by simp, Real.sqrt_nonneg _⟩ |
| 78 | have hphase := horizontalJacobiPair_unique_at P.square_path hM04 hM12 hQ hQ₀ hc |
| 79 | (Prod.ext (hfield.trans (initialValuePath_differential_zero_direction hM04 hM12 P c).symm) |
| 80 | (hderiv.trans (initialValuePath_differential_zero_direction_derivative hM04 hM12 P hc).symm)) |
| 81 | 0 hzero |
| 82 | have hD : M14JacobiFirstDerivative Q 0 = 0 := |
| 83 | (congrArg Prod.snd hphase).trans |
| 84 | (initialValuePath_differential_zero_direction_derivative hM04 hM12 P hzero) |
| 85 | obtain ⟨hbase, hW⟩ := initialValuePath_differential_initialDerivative hM04 hM12 P W |
| 86 | change hbase ▸ M14JacobiFirstDerivative Q 0 = (2 : ℝ) • W at hW |
| 87 | rw [hD, horizontal_transport_zero] at hW |
| 88 | exact (smul_eq_zero.mp hW.symm).resolve_left (by norm_num) |
| 89 | |
| 90 | end PoincareMT.M14 |