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.AncientKappa.Basic |
| 2 | |
| 3 | /-! |
| 4 | # M16 structural ancient-kappa data |
| 5 | |
| 6 | This layer records the ordinary structural consequences used by the later |
| 7 | ancient-solution arguments. The input is an actual `AncientKappaSolution`; |
| 8 | the output does not repeat its hypotheses and does not assume a limit, |
| 9 | classification, or uniform estimate over a family of solutions. |
| 10 | |
| 11 | The source is Morgan--Tian Chapter 9, Section 1 and Definitions 9.1--9.2, |
| 12 | printed pp. 179--180, with the Harnack inputs from Theorem 4.40, p. 82, and |
| 13 | the positive parabolic rescaling of Definition 3.40, p. 61. The endpoint |
| 14 | and norm conventions follow `reviews/errata/2026-09-10-analytic-outline-audit.md` |
| 15 | and `reviews/errata/2026-09-13-reduced-length-source.md`. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 28 | [IsManifold (𝓡 n) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 29 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 30 | |
| 31 | /-! A same-carrier scalar normalization at a specified point and time. -/ |
| 32 | structure AncientKappaNormalization (K : AncientKappaSolution n M) |
| 33 | (p : M) (b : ℝ) where |
| 34 | scale : ℝ |
| 35 | scale_eq : scale = (K.flow.connection b).scalarCurvature p |
| 36 | scale_pos : 0 < scale |
| 37 | target : AncientKappaSolution n M |
| 38 | target_kappa : target.kappa = K.kappa |
| 39 | metric_eq : ∀ s : ℝ, ∀ x : M, ∀ v w : TangentSpace (𝓡 n) x, |
| 40 | (target.flow.metric s).inner x v w = |
| 41 | scale * (K.flow.metric (b + s / scale)).inner x v w |
| 42 | scalar_eq : ∀ s : ℝ, s ≤ 0 → ∀ x : M, |
| 43 | (target.flow.connection s).scalarCurvature x = |
| 44 | (K.flow.connection (b + s / scale)).scalarCurvature x / scale |
| 45 | curvature_norm_eq : ∀ s : ℝ, s ≤ 0 → ∀ x : M, |
| 46 | (target.flow.connection s).curvatureTensorNorm x = |
| 47 | (K.flow.connection (b + s / scale)).curvatureTensorNorm x / scale |
| 48 | normalized_scalar : |
| 49 | (target.flow.connection 0).scalarCurvature p = 1 |
| 50 | |
| 51 | /-! Derived scalar, curvature, Ricci, metric, and distance controls. -/ |
| 52 | structure AncientKappaStructuralData (K : AncientKappaSolution n M) where |
| 53 | scalar_pos : ∀ t : ℝ, t ≤ 0 → ∀ x : M, |
| 54 | 0 < (K.flow.connection t).scalarCurvature x |
| 55 | norm_le_scalar : ∀ t : ℝ, t ≤ 0 → ∀ x : M, |
| 56 | (K.flow.connection t).curvatureTensorNorm x ≤ |
| 57 | (K.flow.connection t).scalarCurvature x |
| 58 | scalar_le_dim_norm : ∀ t : ℝ, t ≤ 0 → ∀ x : M, |
| 59 | (K.flow.connection t).scalarCurvature x ≤ |
| 60 | (n : ℝ) * (K.flow.connection t).curvatureTensorNorm x |
| 61 | ricci_nonnegative : ∀ t : ℝ, t ≤ 0 → ∀ x : M, |
| 62 | ∀ v : TangentSpace (𝓡 n) x, |
| 63 | 0 ≤ (K.flow.connection t).ricci x v v |
| 64 | ricci_upper_bound : ∀ t : ℝ, t ≤ 0 → ∀ x : M, |
| 65 | ∀ v : TangentSpace (𝓡 n) x, |
| 66 | (K.flow.connection t).ricci x v v ≤ |
| 67 | (K.flow.connection t).scalarCurvature x * |
| 68 | (K.flow.metric t).inner x v v |
| 69 | scalar_derivative_nonnegative : ∀ t : ℝ, t ≤ 0 → ∀ x : M, |
| 70 | ∃ dR : ℝ, |
| 71 | HasDerivWithinAt |
| 72 | (fun s ↦ (K.flow.connection s).scalarCurvature x) dR |
| 73 | (Set.Iic 0) t ∧ 0 ≤ dR |
| 74 | scalar_monotone : ∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x : M, |
| 75 | (K.flow.connection s).scalarCurvature x ≤ |
| 76 | (K.flow.connection t).scalarCurvature x |
| 77 | metric_monotone : ∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x : M, |
| 78 | ∀ v : TangentSpace (𝓡 n) x, |
| 79 | (K.flow.metric t).inner x v v ≤ (K.flow.metric s).inner x v v |
| 80 | edist_monotone : ∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x y : M, |
| 81 | (K.flow.metric t).edist x y ≤ (K.flow.metric s).edist x y |
| 82 | ball_monotone : ∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x : M, ∀ r : ℝ, |
| 83 | RiemannianMetric.ball (K.flow.metric s) x r ⊆ |
| 84 | RiemannianMetric.ball (K.flow.metric t) x r |
| 85 | past_norm_le_scalar : ∀ t b : ℝ, t ≤ b → b ≤ 0 → ∀ x : M, |
| 86 | (K.flow.connection t).curvatureTensorNorm x ≤ |
| 87 | (K.flow.connection b).scalarCurvature x |
| 88 | fixed_set_bound : ∀ (b : ℝ), b ≤ 0 → ∀ (A : Set M) (C : ℝ), |
| 89 | (∀ x ∈ A, (K.flow.connection b).scalarCurvature x ≤ C) → |
| 90 | ∀ t, t ≤ b → ∀ x ∈ A, |
| 91 | (K.flow.connection t).curvatureTensorNorm x ≤ C |
| 92 | whole_past_bound : ∀ b : ℝ, b ≤ 0 → ∃ C : ℝ, 0 < C ∧ |
| 93 | ∀ t, t ≤ b → ∀ x : M, |
| 94 | |(K.flow.connection t).curvatureTensorNorm x| ≤ C |
| 95 | normalization : ∀ (p : M) (b : ℝ), b ≤ 0 → |
| 96 | AncientKappaNormalization K p b |
| 97 | |
| 98 | end PoincareMT |