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.Density.WeightedDensity |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.WeightedJacobian |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Measure.Jacobian.ExponentialJacobian |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Regularity.Formulas.RegularStableEndpoint |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Stability.StrictPrefix |
| 6 | |
| 7 | /-! |
| 8 | # Monotonicity of the actual weighted exponential Jacobian |
| 9 | |
| 10 | The actual tangential derivative, actual Jacobian evolution and proved |
| 11 | regular Laplacian bound give equation 6.21. Strict prefixes provide |
| 12 | joint regularity; continuity includes the terminal endpoint without a |
| 13 | future minimizing branch. Morgan-Tian Proposition 6.81, pp. 145-146. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M14 |
| 24 | |
| 25 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 26 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 27 | {T : ℝ} {x : G.Point} |
| 28 | |
| 29 | /-- At a joint endpoint inside a surviving prefix, the actual weighted |
| 30 | Jacobian has a nonpositive derivative, Proposition 6.81, equation 6.21, |
| 31 | p. 146. -/ |
| 32 | theorem exponentialWeightedJacobian_differentiableAt_and_deriv_nonpos |
| 33 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 34 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 35 | (E : M14ExponentialFamily G T x) (v : Module.Basis (Fin n) ℝ (G.Horizontal x)) |
| 36 | {Z : G.Horizontal x} {s b : ℝ} (hb : (Z, b) ∈ E.domain) |
| 37 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s) (hlt : s < b) |
| 38 | (hz : (Z, s) ∈ M14JointDomain G E) : |
| 39 | DifferentiableAt ℝ (exponentialWeightedJacobian E v Z) s ∧ |
| 40 | deriv (exponentialWeightedJacobian E v Z) s ≤ 0 := by |
| 41 | have hnhds : {r | (Z, r) ∈ E.domain} ∈ 𝓝 s := by |
| 42 | apply mem_of_superset (isOpen_Ioo.mem_nhds ⟨hpos, hlt⟩) |
| 43 | intro r hr |
| 44 | exact (E.maximal_lifetime Z).out (E.domain_zero Z) hb ⟨hr.1.le, hr.2.le⟩ |
| 45 | have ha := (exponential_reducedLength_hasDerivWithinAt hM12 E hs hpos).hasDerivAt hnhds |
| 46 | have hJ := exponentialJacobian_hasDerivAt hCoordinates hM04 hM12 E v hb hs hpos hlt hz |
| 47 | have hp := regular_square_endpoint E hs hpos |
| 48 | have hq : G.spacetime.timeFunction ((E.square_path Z s hs hpos).curve s) = T - s ^ 2 := by |
| 49 | rw [hp] |
| 50 | exact E.clock Z s hs |
| 51 | have hqeq : (⟨(E.square_path Z s hs hpos).curve s, hq⟩ : (G.slices (T - s ^ 2)).Point) = |
| 52 | ⟨E.gamma Z s, E.clock Z s hs⟩ := Subtype.ext hp |
| 53 | have hL := reducedLengthLaplacian_joint_bound hCoordinates hM04 hM12 E hs hpos hz hp hq |
| 54 | rw [hqeq, hp, Real.sqrt_sq hpos.le] at hL |
| 55 | have hden : 2 * s ^ 2 * s = 2 * s ^ 3 := by ring |
| 56 | rw [hden] at hL |
| 57 | exact ⟨(squareWeightedJacobian_hasDerivAt hpos ha hJ).differentiableAt, |
| 58 | squareWeightedJacobian_deriv_nonpos hpos ha hJ (exponentialJacobian_nonneg E v Z s) hL⟩ |
| 59 | |
| 60 | /-- The actual weighted Jacobian is nonincreasing on every positive |
| 61 | stable prefix, including its terminal point, Proposition 6.81, |
| 62 | pp. 145-146. -/ |
| 63 | theorem exponentialWeightedJacobian_antitoneOn |
| 64 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 65 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 66 | (E : M14ExponentialFamily G T x) (v : Module.Basis (Fin n) ℝ (G.Horizontal x)) |
| 67 | {τ : ℝ} (H : M14StableSet G T τ x E) {Z : G.Horizontal x} (hZ : Z ∈ H.carrier) : |
| 68 | AntitoneOn (exponentialWeightedJacobian E v Z) (Ioc 0 (Real.sqrt τ)) := by |
| 69 | have hb := H.survivor Z hZ |
| 70 | have hregular (s : ℝ) (hs : s ∈ Ioo 0 (Real.sqrt τ)) := |
| 71 | exponentialWeightedJacobian_differentiableAt_and_deriv_nonpos hCoordinates hM04 hM12 E v hb |
| 72 | ((E.maximal_lifetime Z).out (E.domain_zero Z) hb ⟨hs.1.le, hs.2.le⟩) hs.1 hs.2 |
| 73 | (mem_jointDomain_of_stable_extension hCoordinates hM04 hM12 E H hZ hs) |
| 74 | apply antitoneOn_of_deriv_nonpos (convex_Ioc 0 (Real.sqrt τ)) |
| 75 | (exponentialWeightedJacobian_continuousOn hM04 hM12 E v hb (Real.sqrt_pos.mpr H.tau_pos)) |
| 76 | · intro s hs |
| 77 | rw [interior_Ioc] at hs |
| 78 | exact (hregular s hs).1.differentiableWithinAt |
| 79 | · intro s hs |
| 80 | rw [interior_Ioc] at hs |
| 81 | exact (hregular s hs).2 |
| 82 | |
| 83 | end PoincareMT.M14 |