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.Measure.Jacobian.InitialJacobianPair |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.ExponentialGram |
| 3 | |
| 4 | /-! |
| 5 | # The actual initial Gram matrix tends to four times the identity |
| 6 | |
| 7 | The normalized exponential Jacobi fields start at zero with first |
| 8 | covariant derivative twice the source direction. The scaled metric |
| 9 | pairing limit consequently gives 4I in any source orthonormal basis. |
| 10 | Morgan-Tian Lemma 6.19 and Claim 6.20, p. 114, and Proposition 6.78, |
| 11 | pp. 142-144. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | -- The normalized initial-value path retains the supplied square path. |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M14 |
| 24 | |
| 25 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 26 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 27 | {T : ℝ} {x : G.Point} |
| 28 | |
| 29 | private theorem metric_pair_transport {q r : G.Point} (h : q = r) |
| 30 | (v w : G.Horizontal q) : |
| 31 | G.spacetime.horizontalMetric.inner q v w = |
| 32 | G.spacetime.horizontalMetric.inner r (h ▸ v) (h ▸ w) := by |
| 33 | cases h |
| 34 | rfl |
| 35 | |
| 36 | /-- Along any positive surviving prefix, the actual scaled Gram |
| 37 | matrix tends to 4I in an orthonormal source basis, Proposition 6.78, |
| 38 | pp. 142-144. The supplied off-domain data play no role. -/ |
| 39 | theorem tendsto_exponentialGram_scaled_zero |
| 40 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 41 | (E : M14ExponentialFamily G T x) (b₀ : Module.Basis (Fin n) ℝ (G.Horizontal x)) |
| 42 | (horth : ∀ i j, G.spacetime.horizontalMetric.inner x (b₀ i) (b₀ j) = |
| 43 | if i = j then 1 else 0) |
| 44 | {Z : G.Horizontal x} {b : ℝ} (hb : (Z, b) ∈ E.domain) (hpos : 0 < b) : |
| 45 | Tendsto (fun s : ℝ => (s⁻¹) ^ 2 • exponentialGram E b₀ Z s) (𝓝[>] (0 : ℝ)) |
| 46 | (𝓝 ((4 : ℝ) • (1 : Matrix (Fin n) (Fin n) ℝ))) := by |
| 47 | let P := exponentialInitialValuePath E Z b hb hpos |
| 48 | let Q := fun i => initialValuePath_differentialData hM04 hM12 P (b₀ i) |
| 49 | apply tendsto_pi_nhds.mpr |
| 50 | intro i |
| 51 | apply tendsto_pi_nhds.mpr |
| 52 | intro j |
| 53 | change Tendsto (fun s => (s⁻¹) ^ 2 * exponentialGram E b₀ Z s i j) _ |
| 54 | (𝓝 (4 * (if i = j then (1 : ℝ) else 0))) |
| 55 | have hlim := tendsto_initialJacobi_scaled_pair hM12 P.square_path (Q i) (Q j) |
| 56 | (initialValuePath_differentialField_zero hM04 hM12 P (b₀ i)) |
| 57 | (initialValuePath_differentialField_zero hM04 hM12 P (b₀ j)) |
| 58 | obtain ⟨hi, hdi⟩ := initialValuePath_differential_initialDerivative hM04 hM12 P (b₀ i) |
| 59 | obtain ⟨hj, hdj⟩ := initialValuePath_differential_initialDerivative hM04 hM12 P (b₀ j) |
| 60 | have hvalue : G.spacetime.horizontalMetric.inner (P.square_path.curve 0) |
| 61 | (M14JacobiFirstDerivative (Q i) 0) (M14JacobiFirstDerivative (Q j) 0) = |
| 62 | 4 * G.spacetime.horizontalMetric.inner x (b₀ i) (b₀ j) := by |
| 63 | have h := metric_pair_transport hi |
| 64 | (M14JacobiFirstDerivative (Q i) 0) (M14JacobiFirstDerivative (Q j) 0) |
| 65 | rw [hdi, show hi ▸ M14JacobiFirstDerivative (Q j) 0 = (2 : ℝ) • b₀ j from hdj] at h |
| 66 | simp only [map_smul, smul_apply, smul_eq_mul] at h |
| 67 | nlinarith only [h] |
| 68 | rw [hvalue, horth] at hlim |
| 69 | apply hlim.congr' |
| 70 | filter_upwards [Ioc_mem_nhdsGT hpos] with s hs |
| 71 | have hsC : s ∈ M14SqrtParameterInterval 0 (b ^ 2) := by |
| 72 | simpa only [M14SqrtParameterInterval, Real.sqrt_zero, Real.sqrt_sq hpos.le] using |
| 73 | (Ioc_subset_Icc_self hs) |
| 74 | rw [exponentialGram_eq_jacobi_pair hM04 hM12 E b₀ hb hpos hsC i j] |
| 75 | rfl |
| 76 | |
| 77 | end PoincareMT.M14 |