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.ReducedGeometry.ReducedVolume.Rigidity.Equality.RayTensorEquality |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.Jacobian.GramDiagonal |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.InitialTime.InitialPairing |
| 4 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Rigidity.Equality.HomogeneousRay |
| 5 | |
| 6 | /-! |
| 7 | # The exact Euclidean pullback metric in the equality case |
| 8 | |
| 9 | Morgan-Tian Proposition 7.27. Tensor equality gives the homogeneous |
| 10 | diagonal evolution. Its actual initial limit fixes the coefficient, and |
| 11 | polarization gives the full bilinear identity in the fixed source space. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.ReducedVolume |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | [ConnectedSpace M] [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 26 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 27 | |
| 28 | set_option backward.isDefEq.respectTransparency false in |
| 29 | /-- Maximal reduced volume determines every diagonal pullback pairing at earlier times. -/ |
| 30 | theorem exponential_diagonal_eq_of_volume_eq |
| 31 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 32 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 33 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 34 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 35 | {b : ℝ} (hb : 0 < b) (hbmax : b < τmax) |
| 36 | (heq : reducedVolume F T p b = euclideanReducedVolume n) |
| 37 | (x v : EuclideanSpace ℝ (Fin n)) {τ : ℝ} (hτ : 0 < τ) (hτb : τ < b) : |
| 38 | pullbackMetricForm (F.metric (T - τ)) (exponentialSliceChart G τ) x v v = |
| 39 | 4 * τ * inner ℝ v v := by |
| 40 | let f := fun s ↦ pullbackMetricForm (F.metric (T - s)) (exponentialSliceChart G s) x v v |
| 41 | have hd (s : ℝ) (hs : s ∈ Ioo 0 b) : HasDerivAt f (f s / s) s := by |
| 42 | have heqs := reducedVolume_eq_euclidean_of_le hL hDifferential G hmax hT hwindow |
| 43 | hcurvature hb hbmax hs.1 hs.2.le heq |
| 44 | have hsource := (exponentialSliceChart_global_of_volume_eq hL hDifferential G hmax hT |
| 45 | hwindow hcurvature hs.1 (hs.2.trans hbmax) heqs).1 |
| 46 | have hreg : (metricCoordinates (F.metric T) p x, s) ∈ |
| 47 | G.toLExponentialFamily.regularDomain := by |
| 48 | have hx : x ∈ (exponentialSliceChart G s).source := hsource.symm ▸ mem_univ x |
| 49 | simpa only [exponentialSliceChart_source, mem_ofPred_eq] using hx |
| 50 | let V := G.toLExponentialFamily.sliceDifferential (metricCoordinates (F.metric T) p x) s |
| 51 | (metricCoordinates (F.metric T) p v) |
| 52 | have hmetric : (F.metric (T - s)).inner |
| 53 | (G.gamma (metricCoordinates (F.metric T) p x) s) V V = f s := by |
| 54 | change (F.metric (T - s)).inner (G.gamma (metricCoordinates (F.metric T) p x) s) V V = |
| 55 | (F.metric (T - s)).inner (exponentialSliceChart G s x) |
| 56 | (mfderiv (𝓡 n) (𝓡 n) (exponentialSliceChart G s) x v) |
| 57 | (mfderiv (𝓡 n) (𝓡 n) (exponentialSliceChart G s) x v) |
| 58 | rw [exponentialSliceChart_differential G hs.1 (hs.2.trans hbmax), |
| 59 | exponentialSliceChart_apply] |
| 60 | have htensor := reducedLength_tensor_eq_of_volume_eq hL hDifferential G hmax hT |
| 61 | hwindow hcurvature hb hbmax heq x hs.1 hs.2 V V |
| 62 | rw [hmetric] at htensor |
| 63 | apply (exponential_diagonal_hasDerivAt hwindow hL G x v hreg).congr_deriv |
| 64 | calc |
| 65 | _ = 2 * (f s / (2 * s)) := by linarith only [htensor] |
| 66 | _ = f s / s := by ring |
| 67 | have h := homogeneous_ray_eq hb hd |
| 68 | (exponential_scaled_pairing_tendsto G hmax hT hwindow x v v) ⟨hτ, hτb⟩ |
| 69 | dsimp only [f] at h |
| 70 | calc |
| 71 | _ = (4 * inner ℝ v v) * τ := h |
| 72 | _ = _ := by ring |
| 73 | |
| 74 | set_option backward.isDefEq.respectTransparency false in |
| 75 | /-- Maximal reduced volume gives the exact full source Gram form at every earlier time. -/ |
| 76 | theorem exponential_pairing_eq_of_volume_eq |
| 77 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 78 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 79 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 80 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 81 | {b : ℝ} (hb : 0 < b) (hbmax : b < τmax) |
| 82 | (heq : reducedVolume F T p b = euclideanReducedVolume n) |
| 83 | (x u v : EuclideanSpace ℝ (Fin n)) {τ : ℝ} (hτ : 0 < τ) (hτb : τ < b) : |
| 84 | pullbackMetricForm (F.metric (T - τ)) (exponentialSliceChart G τ) x u v = |
| 85 | 4 * τ * inner ℝ u v := by |
| 86 | let B := pullbackMetricForm (F.metric (T - τ)) (exponentialSliceChart G τ) x |
| 87 | have hdiag := fun v ↦ exponential_diagonal_eq_of_volume_eq hL hDifferential G hmax hT hwindow |
| 88 | hcurvature hb hbmax heq x v hτ hτb |
| 89 | have hu : B u u = 4 * τ * inner ℝ u u := hdiag u |
| 90 | have hv : B v v = 4 * τ * inner ℝ v v := hdiag v |
| 91 | have huv : B (u + v) (u + v) = 4 * τ * inner ℝ (u + v) (u + v) := hdiag (u + v) |
| 92 | have hsymm : B v u = B u v := (F.metric (T - τ)).symm _ _ _ |
| 93 | simp only [map_add, _root_.add_apply, inner_add_left, inner_add_right, hsymm] at huv |
| 94 | rw [real_inner_comm u v] at huv |
| 95 | change B u v = _ |
| 96 | nlinarith only [hu, hv, huv] |
| 97 | |
| 98 | end PoincareMT.ReducedVolume |