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.InitialTime.InitialWeightedLimit |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Comparison.RegularWeights |
| 3 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Comparison.SourceGaussian |
| 4 | |
| 5 | /-! |
| 6 | # The produced Gaussian majorant for actual regular rays |
| 7 | |
| 8 | Ray antitonicity and the actual initial limit give the Gaussian estimate. |
| 9 | The measurable zero extension is therefore integrable on the fixed source |
| 10 | space, with its pointwise initial limit retained by initial coverage. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.ReducedVolume |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] [T3Space M] |
| 24 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 25 | |
| 26 | /-- Initial coverage preserves the actual Gaussian ray limit under zero extension. -/ |
| 27 | theorem regularWeightedJacobian_tendsto_initial |
| 28 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 29 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 30 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 31 | (x : EuclideanSpace ℝ (Fin n)) : |
| 32 | Tendsto (fun τ : ℝ ↦ regularWeightedJacobian G τ x) (𝓝[>] (0 : ℝ)) |
| 33 | (𝓝 ((2 : ℝ) ^ n * Real.exp (-‖x‖ ^ 2))) := |
| 34 | (weightedExponentialJacobian_tendsto_initial G hmax hT hwindow hcurvature x).congr' |
| 35 | (regularWeightedJacobian_eventually_eq G x).symm |
| 36 | |
| 37 | variable [ConnectedSpace M] |
| 38 | |
| 39 | /-- The actual initial limit and ray monotonicity bound every regular weight by the Gaussian. -/ |
| 40 | theorem weightedExponentialJacobian_le_sourceGaussian |
| 41 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 42 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 43 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 44 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 45 | (x : EuclideanSpace ℝ (Fin n)) {τ : ℝ} |
| 46 | (hreg : (metricCoordinates (F.metric T) p x, τ) ∈ G.toLExponentialFamily.regularDomain) : |
| 47 | weightedExponentialJacobian G τ x ≤ (2 : ℝ) ^ n * Real.exp (-‖x‖ ^ 2) := by |
| 48 | obtain ⟨hτ, _, _, _⟩ := hreg.1 |
| 49 | apply ge_of_tendsto (weightedExponentialJacobian_tendsto_initial G hmax hT hwindow hcurvature x) |
| 50 | filter_upwards [Ioo_mem_nhdsGT hτ] with s hs |
| 51 | exact weightedExponentialJacobian_antitoneOn hwindow hL hDifferential G x |
| 52 | (G.backward_nesting _ τ hreg s hs.1 hs.2.le) hreg hs.2.le |
| 53 | |
| 54 | /-- The zero extension has the same Gaussian majorant on the whole source space. -/ |
| 55 | theorem regularWeightedJacobian_le_sourceGaussian |
| 56 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 57 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 58 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 59 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 60 | (τ : ℝ) (x : EuclideanSpace ℝ (Fin n)) : |
| 61 | regularWeightedJacobian G τ x ≤ (2 : ℝ) ^ n * Real.exp (-‖x‖ ^ 2) := by |
| 62 | classical |
| 63 | by_cases hx : x ∈ (exponentialSliceChart G τ).source |
| 64 | · rw [regularWeightedJacobian, indicator_of_mem hx] |
| 65 | exact weightedExponentialJacobian_le_sourceGaussian hL hDifferential G hmax hT hwindow |
| 66 | hcurvature x (by rwa [exponentialSliceChart_source] at hx) |
| 67 | · simpa only [regularWeightedJacobian, indicator_of_notMem hx] using |
| 68 | (sourceGaussian_pos n x).le |
| 69 | |
| 70 | /-- The produced Gaussian estimate proves integrability of the actual source weight. -/ |
| 71 | theorem regularWeightedJacobian_integrable |
| 72 | (hL : LGeodesicTheory F T τmax) (hDifferential : ReducedLengthDifferentialTheory F T τmax) |
| 73 | (G : LExponentialGeometry F T τmax p) (hmax : 0 < τmax) |
| 74 | (hT : T ∈ J) (hwindow : Icc (T - τmax) T ⊆ J) |
| 75 | (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - τmax) T)) |
| 76 | {τ : ℝ} (hτ : 0 < τ) (hτmax : τ < τmax) : |
| 77 | Integrable (regularWeightedJacobian G τ) := by |
| 78 | apply (sourceGaussian_integrable n).mono' |
| 79 | (regularWeightedJacobian_measurable G hτ hτmax).aestronglyMeasurable |
| 80 | apply Filter.Eventually.of_forall |
| 81 | intro x |
| 82 | rw [Real.norm_eq_abs, abs_of_nonneg (regularWeightedJacobian_nonneg G hτ x)] |
| 83 | exact regularWeightedJacobian_le_sourceGaussian hL hDifferential G hmax hT hwindow hcurvature τ x |
| 84 | |
| 85 | end PoincareMT.ReducedVolume |