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.Measure.Transport.PointwiseMonotonicity |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.InitialJacobian |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.InitialValue.InitialReducedLength |
| 4 | |
| 5 | /-! |
| 6 | # The actual initial Gaussian and pointwise domination |
| 7 | |
| 8 | The normalized Jacobian tends to 2^n and the tangential reduced |
| 9 | length tends to the squared initial norm. Actual weighted-Jacobian |
| 10 | monotonicity therefore gives Gaussian domination on every full |
| 11 | stable carrier. Morgan-Tian Propositions 6.78 and 6.81, pp. 142-146. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M14 |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T : ℝ} {x : G.Point} |
| 26 | |
| 27 | /-- The actual weighted Jacobian tends to the metric Gaussian along |
| 28 | every positive surviving prefix, Proposition 6.78, pp. 142-144. -/ |
| 29 | theorem tendsto_exponentialWeightedJacobian_zero |
| 30 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 31 | (E : M14ExponentialFamily G T x) (v : Module.Basis (Fin n) ℝ (G.Horizontal x)) |
| 32 | (horth : ∀ i j, G.spacetime.horizontalMetric.inner x (v i) (v j) = |
| 33 | if i = j then 1 else 0) |
| 34 | {Z : G.Horizontal x} {b : ℝ} (hb : (Z, b) ∈ E.domain) (hpos : 0 < b) : |
| 35 | Tendsto (exponentialWeightedJacobian E v Z) (𝓝[>] (0 : ℝ)) |
| 36 | (𝓝 (Real.rpow (2 : ℝ) (n : ℝ) * |
| 37 | Real.exp (-G.spacetime.horizontalMetric.inner x Z Z))) := by |
| 38 | have hJ := tendsto_exponentialJacobian_normalized_zero hM04 hM12 E v horth hb hpos |
| 39 | have hl := tendsto_exponential_reducedLength_zero hM04 hM12 E hb hpos |
| 40 | have hlim := hJ.mul (Real.continuous_exp.continuousAt.tendsto.comp hl.neg) |
| 41 | rw [← Real.rpow_natCast (2 : ℝ) n] at hlim |
| 42 | apply hlim.congr' |
| 43 | filter_upwards [self_mem_nhdsWithin] with s hs |
| 44 | change exponentialJacobian E v Z s / s ^ n * Real.exp (-E.reduced_length Z s) = |
| 45 | s ^ (-(n : ℝ)) * Real.exp (-E.reduced_length Z s) * exponentialJacobian E v Z s |
| 46 | rw [Real.rpow_neg (le_of_lt hs), Real.rpow_natCast] |
| 47 | ring |
| 48 | |
| 49 | /-- Actual weighted-Jacobian monotonicity bounds its terminal value |
| 50 | by the initial metric Gaussian, Proposition 6.81, pp. 145-146. -/ |
| 51 | theorem exponentialWeightedJacobian_le_gaussian |
| 52 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 53 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 54 | (E : M14ExponentialFamily G T x) (v : Module.Basis (Fin n) ℝ (G.Horizontal x)) |
| 55 | (horth : ∀ i j, G.spacetime.horizontalMetric.inner x (v i) (v j) = |
| 56 | if i = j then 1 else 0) |
| 57 | {τ : ℝ} (H : M14StableSet G T τ x E) {Z : G.Horizontal x} (hZ : Z ∈ H.carrier) : |
| 58 | exponentialWeightedJacobian E v Z (Real.sqrt τ) ≤ |
| 59 | Real.rpow (2 : ℝ) (n : ℝ) * Real.exp (-G.spacetime.horizontalMetric.inner x Z Z) := |
| 60 | positivePrefix_le_initial_limit |
| 61 | (exponentialWeightedJacobian_antitoneOn hCoordinates hM04 hM12 E v H hZ) |
| 62 | (tendsto_exponentialWeightedJacobian_zero hM04 hM12 E v horth (H.survivor Z hZ) |
| 63 | (Real.sqrt_pos.mpr H.tau_pos)) ⟨Real.sqrt_pos.mpr H.tau_pos, le_rfl⟩ |
| 64 | |
| 65 | /-- Every supplied metric Jacobian obeys the genuine stable-density |
| 66 | Gaussian bound for its own exact orthonormal source basis, |
| 67 | Proposition 6.81, pp. 145-146. -/ |
| 68 | theorem stableDensity_mul_jacobian_le_gaussian |
| 69 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 70 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 71 | (E : M14ExponentialFamily G T x) {τ : ℝ} (H : M14StableSet G T τ x E) |
| 72 | (D : M14MeasureJacobianData G T τ x E H) {Z : G.Horizontal x} (hZ : Z ∈ H.carrier) : |
| 73 | stableReducedVolumeDensity H (H.endpoint_slice_map Z) * D.jacobian Z ≤ |
| 74 | Real.rpow (2 : ℝ) (n : ℝ) * Real.exp (-G.spacetime.horizontalMetric.inner x Z Z) := by |
| 75 | rw [stableDensity_mul_jacobian_eq_weighted E H D hZ] |
| 76 | exact exponentialWeightedJacobian_le_gaussian hCoordinates hM04 hM12 E D.sourceBasis |
| 77 | D.source_basis_orthonormal H hZ |
| 78 | |
| 79 | end PoincareMT.M14 |