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.SourceNames.ReducedVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.ExponentialGramDerivative |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.ExponentialJacobianNormalization |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.ExponentialJacobianTrace |
| 5 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.Jacobian.JacobianEvolution |
| 6 | import PoincareLib.Geometry.RicciFlow.Curvature.Construction |
| 7 | |
| 8 | /-! |
| 9 | # Evolution of the actual fixed-source exponential Jacobian |
| 10 | |
| 11 | Freeze source directions whose endpoint images are orthonormal. |
| 12 | The exact Gram derivative has trace 4s(R + Delta l). The constant |
| 13 | source determinant factor cancels, giving the actual Jacobian |
| 14 | evolution on an interior surviving prefix. Morgan-Tian |
| 15 | Proposition 6.81, equations (6.19)-(6.21), pp. 145-146. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle Topology BigOperators Matrix.Norms.Elementwise |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M14 |
| 26 | |
| 27 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 28 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 29 | {T : ℝ} {x : G.Point} |
| 30 | |
| 31 | /-- The actual fixed-source metric Jacobian evolves by scalar curvature |
| 32 | plus the raw reduced-length Laplacian in square time. Only a longer |
| 33 | surviving prefix is used, Proposition 6.81, equation (6.19), p. 145. -/ |
| 34 | theorem exponentialJacobian_hasDerivAt |
| 35 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 36 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 37 | (E : M14ExponentialFamily G T x) (b₀ : Module.Basis (Fin n) ℝ (G.Horizontal x)) |
| 38 | {Z : G.Horizontal x} {s b : ℝ} (hb : (Z, b) ∈ E.domain) |
| 39 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s) (hlt : s < b) |
| 40 | (hz : (Z, s) ∈ M14JointDomain G E) : |
| 41 | HasDerivAt (exponentialJacobian E b₀ Z) |
| 42 | (2 * s * exponentialJacobian E b₀ Z s * |
| 43 | (horizontalScalarCurvature G.leafwise (E.gamma Z s) + |
| 44 | M14ReducedLengthLaplacian (τ₁ := 0) G x ⟨E.gamma Z s, E.clock Z s hs⟩)) s := by |
| 45 | obtain ⟨C, e, he, hC⟩ := exists_exponentialJacobian_source_normalization E b₀ hs hpos hz |
| 46 | let v : Fin n → G.Horizontal x := fun i => C (b₀ i) |
| 47 | let A := exponentialGram E v Z |
| 48 | let J := exponentialJacobian E b₀ Z |
| 49 | obtain ⟨B, hA, hdiag⟩ := exponentialGram_hasDerivAt hCoordinates hM04 hM12 E v hb hs hpos hlt hz |
| 50 | have hAt : A s = 1 := by |
| 51 | ext i j |
| 52 | change G.spacetime.horizontalMetric.inner (E.gamma Z s) |
| 53 | (exponentialDifferential E Z s (C (b₀ i))) |
| 54 | (exponentialDifferential E Z s (C (b₀ j))) = (1 : Matrix (Fin n) (Fin n) ℝ) i j |
| 55 | rw [exponentialDifferential_eq E hs, hC, hC, he, Matrix.one_apply] |
| 56 | have hscale : (fun r => |LinearMap.det C.toLinearMap| * J r) =ᶠ[𝓝 s] |
| 57 | (fun r => Real.sqrt (A r).det) := by |
| 58 | apply Eventually.of_forall |
| 59 | intro r |
| 60 | exact (exponentialJacobian_source_equiv E b₀ C Z r).symm.trans |
| 61 | (exponentialJacobian_eq_sqrt_det E v Z r) |
| 62 | let q : (G.slices (T - s ^ 2)).Point := ⟨E.gamma Z s, E.clock Z s hs⟩ |
| 63 | have hqimage : q.val ∈ range (fun z : M14JointDomain G E => E.gamma z.1.1 z.1.2) := |
| 64 | ⟨⟨(Z, s), hz⟩, rfl⟩ |
| 65 | have hRic := horizontalRicci_orthonormal_trace ricciFlowCurvatureTheory (E.gamma Z s) e he |
| 66 | have hHess := reducedLengthLaplacian_eq_horizontal_hessian_trace x q |
| 67 | (reducedLengthAt_slice_contMDiffAt hM04 hM12 E q hqimage) e he |
| 68 | have hdiag' (i : Fin n) : B i i = |
| 69 | 4 * s * (horizontalRicci G.leafwise (E.gamma Z s) (e i) (e i) + |
| 70 | M14ReducedLengthHessianPairing G q (M14ReducedLengthAt G T 0 x) (e i) (e i)) := by |
| 71 | simpa only [v, hC] using hdiag i |
| 72 | have htrace : B.trace / 2 = 2 * s * |
| 73 | (horizontalScalarCurvature G.leafwise (E.gamma Z s) + |
| 74 | M14ReducedLengthLaplacian (τ₁ := 0) G x q) := by |
| 75 | change (∑ i, B i i) / 2 = _ |
| 76 | simp_rw [hdiag'] |
| 77 | rw [← Finset.mul_sum, Finset.sum_add_distrib, hRic, ← hHess] |
| 78 | ring |
| 79 | have hd := M10.hasDerivAt_jacobian_of_scaled_normalized_gram |
| 80 | (exponentialJacobian_source_factor_ne_zero C) hscale hA hAt |
| 81 | rw [htrace] at hd |
| 82 | convert hd using 1 |
| 83 | ring |
| 84 | |
| 85 | end PoincareMT.M14 |