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.Surgery.Induction.Schedules.Models.EvolvingCylinderTimeJets |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Models.EvolvingCylinderCoefficients |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Schedules.Gluing.Convergence.SequenceJets |
| 4 | |
| 5 | /-! |
| 6 | # Convergent time and scale parameters give convergent model jets |
| 7 | |
| 8 | All finite spatial cylinder jets vary continuously with time. A |
| 9 | convergent scalar factor preserves that convergence, and positive |
| 10 | scaling preserves the actual model coefficient's invertibility. |
| 11 | Source: Morgan--Tian Proposition 15.2, pp. 353-354. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Filter |
| 18 | open scoped ContDiff Topology |
| 19 | |
| 20 | namespace PoincareMT.M45 |
| 21 | |
| 22 | open M44 SpacetimeBounds |
| 23 | |
| 24 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 25 | |
| 26 | noncomputable local instance modelConvergenceCoefficientNormedGroup : |
| 27 | NormedAddCommGroup (MetricCoefficient 3) := ContinuousLinearMap.toNormedAddCommGroup |
| 28 | |
| 29 | noncomputable local instance modelConvergenceCoefficientNormedSpace : |
| 30 | NormedSpace ℝ (MetricCoefficient 3) := ContinuousLinearMap.toNormedSpace |
| 31 | |
| 32 | variable {ι : Type*} {l : Filter ι} |
| 33 | |
| 34 | /-- Converging model times give convergence of every fixed spatial |
| 35 | jet at the centered point. Source: Proposition 15.2, pp. 353-354. -/ |
| 36 | theorem pointJetsConverge_evolvingCylinderModel {s : ι → ℝ} {s0 : ℝ} |
| 37 | (hs : Tendsto s l (𝓝 s0)) : |
| 38 | PointJetsConverge (fun i => evolvingCylinderModelField (s i)) (fun _ => 0) |
| 39 | (evolvingCylinderModelField s0) 0 l := by |
| 40 | intro m |
| 41 | exact (continuous_model_evolvingCylinder_iteratedFDeriv m 0).continuousAt.tendsto.comp hs |
| 42 | |
| 43 | /-- Converging times and scalar factors give convergence of each |
| 44 | finite jet of the rescaled model. Source: Proposition 15.2, pp. 353-354. -/ |
| 45 | theorem pointJetsConverge_scaled_evolvingCylinderModel {s r : ι → ℝ} {s0 r0 : ℝ} |
| 46 | (hs : Tendsto s l (𝓝 s0)) (hr : Tendsto r l (𝓝 r0)) : |
| 47 | PointJetsConverge (fun i x => r i • evolvingCylinderModelField (s i) x) (fun _ => 0) |
| 48 | (fun x => r0 • evolvingCylinderModelField s0 x) 0 l := by |
| 49 | exact (pointJetsConverge_evolvingCylinderModel hs).const_smul_family hr |
| 50 | (fun i => (evolvingCylinderModelField_contDiff (s i)).contDiffAt) |
| 51 | (evolvingCylinderModelField_contDiff s0).contDiffAt |
| 52 | |
| 53 | /-- Positive rescaling preserves the actual model coefficient's |
| 54 | invertibility at every spatial point before time one. Source: |
| 55 | the metric rescalings in Proposition 15.2, pp. 353-354. -/ |
| 56 | theorem model_evolvingCylinder_smul_isInvertible {r t : ℝ} |
| 57 | (hr : 0 < r) (ht : t < 1) (x : E) : |
| 58 | (r • evolvingCylinderModelField t x).IsInvertible := by |
| 59 | have hB := model_evolvingCylinderField_isInvertible ht x |
| 60 | apply ContinuousLinearMap.IsInvertible.of_inverse |
| 61 | (g := r⁻¹ • (evolvingCylinderModelField t x).inverse) |
| 62 | · apply ContinuousLinearMap.ext |
| 63 | intro v |
| 64 | simp only [ContinuousLinearMap.comp_apply, smul_apply, map_smul, |
| 65 | hB.self_apply_inverse, smul_smul, inv_mul_cancel₀ hr.ne', one_smul, |
| 66 | ContinuousLinearMap.id_apply] |
| 67 | · apply ContinuousLinearMap.ext |
| 68 | intro v |
| 69 | simp only [ContinuousLinearMap.comp_apply, smul_apply, map_smul, |
| 70 | hB.inverse_apply_self, smul_smul, mul_inv_cancel₀ hr.ne', one_smul, |
| 71 | ContinuousLinearMap.id_apply] |
| 72 | |
| 73 | end PoincareMT.M45 |