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.Exponential.Jacobian.ExponentialJacobian |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Measure.Transport.ExponentialTransport |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.Action.MovingAction |
| 4 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.Jacobian.WeightedJacobian |
| 5 | import Mathlib.Analysis.Calculus.Deriv.MeanValue |
| 6 | |
| 7 | /-! |
| 8 | # Monotonicity along actual regular exponential rays |
| 9 | |
| 10 | Morgan-Tian Proposition 6.81, pp. 145-146. The actual normalized action and |
| 11 | Jacobian derivatives make the first regular reduced-length residual the |
| 12 | negative logarithmic derivative of the weighted Jacobian. Backward nesting |
| 13 | then gives monotonicity between any two times of the same regular ray. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.ReducedVolume |
| 24 | |
| 25 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 28 | |
| 29 | /-- The actual action-weighted Jacobian in the fixed terminal source coordinates. -/ |
| 30 | noncomputable def weightedExponentialJacobian (G : LExponentialGeometry F T τmax p) |
| 31 | (τ : ℝ) (x : EuclideanSpace ℝ (Fin n)) : ℝ := |
| 32 | Real.rpow τ (-(n : ℝ) / 2) * |
| 33 | Real.exp (-(G.toLExponentialFamily.action (metricCoordinates (F.metric T) p x) τ / |
| 34 | (2 * Real.sqrt τ))) * exponentialSliceJacobian G τ x |
| 35 | |
| 36 | /-- The actual weighted Jacobian is nonnegative at positive times. -/ |
| 37 | theorem weightedExponentialJacobian_nonneg (G : LExponentialGeometry F T τmax p) |
| 38 | {τ : ℝ} (hτ : 0 < τ) (x : EuclideanSpace ℝ (Fin n)) : |
| 39 | 0 ≤ weightedExponentialJacobian G τ x := |
| 40 | mul_nonneg (mul_pos (Real.rpow_pos_of_pos hτ _) (Real.exp_pos _)).le |
| 41 | (exponentialSliceJacobian_nonneg G τ x) |
| 42 | |
| 43 | variable [ConnectedSpace M] |
| 44 | |
| 45 | /-- On the actual regular source, the action weight is exactly the reduced-volume density. -/ |
| 46 | theorem weightedExponentialJacobian_eq_density_mul (hL : LGeodesicTheory F T τmax) |
| 47 | (G : LExponentialGeometry F T τmax p) (x : EuclideanSpace ℝ (Fin n)) {τ : ℝ} |
| 48 | (hreg : (metricCoordinates (F.metric T) p x, τ) ∈ G.toLExponentialFamily.regularDomain) : |
| 49 | weightedExponentialJacobian G τ x = |
| 50 | reducedVolumeDensity F T p τ (exponentialSliceChart G τ x) * |
| 51 | exponentialSliceJacobian G τ x := by |
| 52 | obtain ⟨hτ, hmax, hmin, _⟩ := hreg.1 |
| 53 | have ha := reducedLength_eq_normalized_action_of_minimizing hL G |
| 54 | (metricCoordinates (F.metric T) p x) hτ hmax hmin |
| 55 | simp only [weightedExponentialJacobian, reducedVolumeDensity, exponentialSliceChart_apply, |
| 56 | ha, if_pos hτ] |
| 57 | |
| 58 | /-- The actual weighted ray has the derivative furnished by the geometric producers. -/ |
| 59 | theorem weightedExponentialJacobian_hasDerivAt |
| 60 | (hwindow : Icc (T - τmax) T ⊆ J) (hL : LGeodesicTheory F T τmax) |
| 61 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 62 | (G : LExponentialGeometry F T τmax p) (x : EuclideanSpace ℝ (Fin n)) {τ : ℝ} |
| 63 | (hreg : (metricCoordinates (F.metric T) p x, τ) ∈ G.toLExponentialFamily.regularDomain) : |
| 64 | let q := G.gamma (metricCoordinates (F.metric T) p x) τ |
| 65 | HasDerivAt (fun s ↦ weightedExponentialJacobian G s x) |
| 66 | (weightedExponentialJacobian G τ x * |
| 67 | ((F.connection (T - τ)).scalarCurvature q + |
| 68 | (F.connection (T - τ)).laplacian (fun y ↦ reducedLength F T p y τ) q - |
| 69 | (deriv (fun s ↦ reducedLength F T p q s) τ + |
| 70 | reducedLengthGradientNormSq F T (fun z ↦ reducedLength F T p z.1 z.2) τ q) - |
| 71 | (n : ℝ) / (2 * τ))) τ := by |
| 72 | obtain ⟨hτ, _, _, _⟩ := hreg.1 |
| 73 | have ha := normalized_action_regular_hasDerivAt hL hDifferential G |
| 74 | (metricCoordinates (F.metric T) p x) hreg |
| 75 | have hj := exponentialJacobian_hasDerivAt hwindow hL G x hreg |
| 76 | simp only [exponentialSliceChart_apply] at hj |
| 77 | exact weightedJacobian_hasDerivAt hτ ha hj |
| 78 | |
| 79 | /-- The first actual regular residual makes the weighted-ray derivative nonpositive. -/ |
| 80 | theorem weightedExponentialJacobian_deriv_nonpos |
| 81 | (hwindow : Icc (T - τmax) T ⊆ J) (hL : LGeodesicTheory F T τmax) |
| 82 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 83 | (G : LExponentialGeometry F T τmax p) (x : EuclideanSpace ℝ (Fin n)) {τ : ℝ} |
| 84 | (hreg : (metricCoordinates (F.metric T) p x, τ) ∈ G.toLExponentialFamily.regularDomain) : |
| 85 | deriv (fun s ↦ weightedExponentialJacobian G s x) τ ≤ 0 := by |
| 86 | let Z := metricCoordinates (F.metric T) p x |
| 87 | have hsrc : (Z, τ) ∈ G.regular_chart.source := G.regular_source.symm ▸ hreg |
| 88 | have htgt : (G.gamma Z τ, τ) ∈ G.regular_chart.target := by |
| 89 | simpa only [G.regular_forward] using G.regular_chart.map_source hsrc |
| 90 | have hres := (reducedLength_regular_inequalities hDifferential |
| 91 | (G.regular_point (G.gamma Z τ, τ) htgt)).1 |
| 92 | obtain ⟨hτ, _, _, _⟩ := hreg.1 |
| 93 | rw [(weightedExponentialJacobian_hasDerivAt hwindow hL hDifferential G x hreg).deriv] |
| 94 | refine mul_nonpos_of_nonneg_of_nonpos (weightedExponentialJacobian_nonneg G hτ x) ?_ |
| 95 | dsimp only [reducedLengthLaplacian] at hres |
| 96 | linarith only [hres] |
| 97 | |
| 98 | /-- The weighted Jacobian is antitone on the actual regular time set of each fixed source vector. -/ |
| 99 | theorem weightedExponentialJacobian_antitoneOn |
| 100 | (hwindow : Icc (T - τmax) T ⊆ J) (hL : LGeodesicTheory F T τmax) |
| 101 | (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 102 | (G : LExponentialGeometry F T τmax p) (x : EuclideanSpace ℝ (Fin n)) : |
| 103 | AntitoneOn (fun s ↦ weightedExponentialJacobian G s x) |
| 104 | {s | (metricCoordinates (F.metric T) p x, s) ∈ G.toLExponentialFamily.regularDomain} := by |
| 105 | intro a ha b hb hab |
| 106 | obtain ⟨ha0, _, _, _⟩ := ha.1 |
| 107 | have hreg (s : ℝ) (hs : s ∈ Icc a b) : |
| 108 | (metricCoordinates (F.metric T) p x, s) ∈ G.toLExponentialFamily.regularDomain := |
| 109 | G.backward_nesting _ b hb s (ha0.trans_le hs.1) hs.2 |
| 110 | have hanti : AntitoneOn (fun s ↦ weightedExponentialJacobian G s x) (Icc a b) := by |
| 111 | apply antitoneOn_of_deriv_nonpos (convex_Icc a b) |
| 112 | (fun s hs ↦ (weightedExponentialJacobian_hasDerivAt hwindow hL hDifferential G x |
| 113 | (hreg s hs)).continuousAt.continuousWithinAt) |
| 114 | (fun s hs ↦ (weightedExponentialJacobian_hasDerivAt hwindow hL hDifferential G x |
| 115 | (hreg s (interior_subset hs))).differentiableAt.differentiableWithinAt) |
| 116 | intro s hs |
| 117 | exact weightedExponentialJacobian_deriv_nonpos hwindow hL hDifferential G x |
| 118 | (hreg s (interior_subset hs)) |
| 119 | exact hanti ⟨le_rfl, hab⟩ ⟨hab, le_rfl⟩ hab |
| 120 | |
| 121 | end PoincareMT.ReducedVolume |