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.ActionEquality |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.Coordinates.ExponentialActionDerivative |
| 3 | |
| 4 | /-! |
| 5 | # The actual radial velocity in the equality case |
| 6 | |
| 7 | Quadratic action determines every velocity pairing. The exact pullback |
| 8 | metric gives the same pairings for the radial source derivative; the |
| 9 | surjective slice differential and positive metric identify the vectors. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.ReducedVolume |
| 20 | |
| 21 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 23 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 24 | |
| 25 | set_option backward.isDefEq.respectTransparency false in |
| 26 | /-- The actual quadratic action and exact Gram form determine the radial ray velocity. -/ |
| 27 | theorem exponential_velocity_eq_radial |
| 28 | (G : LExponentialGeometry F T τmax p) {τ : ℝ} (hτ : 0 < τ) (hmax : τ < τmax) |
| 29 | (ha : ∀ y : EuclideanSpace ℝ (Fin n), |
| 30 | G.toLExponentialFamily.action (metricCoordinates (F.metric T) p y) τ / |
| 31 | (2 * Real.sqrt τ) = ‖y‖ ^ 2) |
| 32 | (x : EuclideanSpace ℝ (Fin n)) |
| 33 | (hgram : ∀ u v : EuclideanSpace ℝ (Fin n), |
| 34 | pullbackMetricForm (F.metric (T - τ)) (exponentialSliceChart G τ) x u v = |
| 35 | 4 * τ * inner ℝ u v) |
| 36 | (hcrit : Function.Surjective |
| 37 | (G.toLExponentialFamily.sliceDifferential (metricCoordinates (F.metric T) p x) τ)) : |
| 38 | curveVelocity (G.gamma (metricCoordinates (F.metric T) p x)) τ = |
| 39 | G.toLExponentialFamily.sliceDifferential (metricCoordinates (F.metric T) p x) τ |
| 40 | ((2 * τ)⁻¹ • metricCoordinates (F.metric T) p x) := by |
| 41 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 42 | ⟨(F.metric T).toRiemannianMetric⟩ |
| 43 | let β := metricCoordinates (F.metric T) p |
| 44 | let q := G.gamma (β x) τ |
| 45 | let D := G.toLExponentialFamily.sliceDifferential (β x) τ |
| 46 | let U := curveVelocity (n := n) (G.gamma (β x)) τ |
| 47 | let V := D ((2 * τ)⁻¹ • β x) |
| 48 | have hpair (v : EuclideanSpace ℝ (Fin n)) : |
| 49 | (F.metric (T - τ)).inner q U (D (β v)) = 2 * inner ℝ x v := |
| 50 | exponential_velocity_pairing_of_quadratic_action G hτ hmax ha x v |
| 51 | have hradial (v : EuclideanSpace ℝ (Fin n)) : |
| 52 | (F.metric (T - τ)).inner q V (D (β v)) = 2 * inner ℝ x v := by |
| 53 | have h := hgram ((2 * τ)⁻¹ • x) v |
| 54 | change (F.metric (T - τ)).inner (exponentialSliceChart G τ x) |
| 55 | (mfderiv (𝓡 n) (𝓡 n) (exponentialSliceChart G τ) x ((2 * τ)⁻¹ • x)) |
| 56 | (mfderiv (𝓡 n) (𝓡 n) (exponentialSliceChart G τ) x v) = _ at h |
| 57 | rw [exponentialSliceChart_differential G hτ hmax, |
| 58 | exponentialSliceChart_differential G hτ hmax, exponentialSliceChart_apply, |
| 59 | map_smul, inner_smul_left] at h |
| 60 | change (F.metric (T - τ)).inner q V (D (β v)) = _ at h |
| 61 | rw [h] |
| 62 | simp only [conj_trivial] |
| 63 | field_simp |
| 64 | ring |
| 65 | have hpairing (w : TangentSpace (𝓡 n) q) : |
| 66 | (F.metric (T - τ)).inner q U w = (F.metric (T - τ)).inner q V w := by |
| 67 | obtain ⟨W, hW⟩ := hcrit w |
| 68 | obtain ⟨v, hv⟩ := β.surjective W |
| 69 | rw [← hW, ← hv] |
| 70 | exact (hpair v).trans (hradial v).symm |
| 71 | change U = V |
| 72 | by_contra hne |
| 73 | have hpos := (F.metric (T - τ)).pos q (U - V) (sub_ne_zero.mpr hne) |
| 74 | have hzero : (F.metric (T - τ)).inner q (U - V) (U - V) = 0 := by |
| 75 | rw [map_sub] |
| 76 | rw [(F.metric (T - τ)).symm q (U - V) U, |
| 77 | (F.metric (T - τ)).symm q (U - V) V] |
| 78 | exact sub_eq_zero.mpr (hpairing (U - V)) |
| 79 | linarith only [hpos, hzero] |
| 80 | |
| 81 | variable [ConnectedSpace M] [T3Space M] [MeasurableSpace M] [BorelSpace M] |
| 82 | |
| 83 | /-- Equality of the actual reduced volume produces radial velocity at every earlier source point. -/ |
| 84 | theorem exponential_velocity_eq_radial_of_volume_eq |
| 85 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 86 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 87 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 88 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 89 | {b : ℝ} (hb : 0 < b) (hbmax : b < τmax) |
| 90 | (heq : reducedVolume F T p b = euclideanReducedVolume n) |
| 91 | (x : EuclideanSpace ℝ (Fin n)) {τ : ℝ} (hτ : 0 < τ) (hτb : τ < b) : |
| 92 | curveVelocity (G.gamma (metricCoordinates (F.metric T) p x)) τ = |
| 93 | G.toLExponentialFamily.sliceDifferential (metricCoordinates (F.metric T) p x) τ |
| 94 | ((2 * τ)⁻¹ • metricCoordinates (F.metric T) p x) := by |
| 95 | have heqτ := reducedVolume_eq_euclidean_of_le hL hDifferential G hmax hT hwindow |
| 96 | hcurvature hb hbmax hτ hτb.le heq |
| 97 | have hsource := (exponentialSliceChart_global_of_volume_eq hL hDifferential G hmax hT |
| 98 | hwindow hcurvature hτ (hτb.trans hbmax) heqτ).1 |
| 99 | have hreg : (metricCoordinates (F.metric T) p x, τ) ∈ |
| 100 | G.toLExponentialFamily.regularDomain := by |
| 101 | have hx : x ∈ (exponentialSliceChart G τ).source := hsource.symm ▸ mem_univ x |
| 102 | simpa only [exponentialSliceChart_source, mem_ofPred_eq] using hx |
| 103 | exact exponential_velocity_eq_radial G hτ (hτb.trans hbmax) |
| 104 | (fun y ↦ normalized_action_eq_norm_sq_of_volume_eq hL hDifferential G hmax hT hwindow |
| 105 | hcurvature hb hbmax heq y hτ hτb) x |
| 106 | (fun u v ↦ exponential_pairing_eq_of_volume_eq hL hDifferential G hmax hT hwindow |
| 107 | hcurvature hb hbmax heq x u v hτ hτb) hreg.2.2 |
| 108 | |
| 109 | end PoincareMT.ReducedVolume |