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.Compactness.Coordinates.EmbeddingBounds |
| 2 | |
| 3 | /-! |
| 4 | # Symmetry and positive ellipticity of terminal coefficients |
| 5 | |
| 6 | The actual retained pullbacks are symmetric, and their closed-slab lower |
| 7 | ellipticity bounds survive coefficient convergence. Zeroth compact-domain |
| 8 | jets suffice, including on the terminal slice and without a new subsequence. |
| 9 | |
| 10 | Reference: Morgan--Tian, Proposition 5.14 and Theorem 9.64, pp. 90-91, 225-229. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option synthInstance.maxHeartbeats 1000000 |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.AncientCompactness |
| 21 | |
| 22 | /-- Compactwise zeroth within-jet convergence gives coefficient convergence |
| 23 | at every point of the same domain, including its boundary. -/ |
| 24 | theorem tendsto_of_compact_zero_jets |
| 25 | {X Y : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 26 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 27 | (f : ℕ → X → Y) (B : X → Y) (Ω : Set X) |
| 28 | (hzero : ∀ K : Set X, IsCompact K → K ⊆ Ω → |
| 29 | TendstoUniformlyOn (fun k => iteratedFDerivWithin ℝ 0 (f k) Ω) |
| 30 | (iteratedFDerivWithin ℝ 0 B Ω) atTop K) |
| 31 | {z : X} (hz : z ∈ Ω) : Tendsto (fun k => f k z) atTop (𝓝 (B z)) := by |
| 32 | have hjet := hzero {z} isCompact_singleton (singleton_subset_iff.mpr hz) |
| 33 | have hvalue := (ContinuousMultilinearMap.uniformContinuous_eval_const |
| 34 | (0 : Fin 0 → X)).comp_tendstoUniformlyOn hjet |
| 35 | simpa only [Function.comp_def, iteratedFDerivWithin_zero_apply] using |
| 36 | hvalue.tendsto_at (mem_singleton z) |
| 37 | |
| 38 | private theorem tendsto_bilinear_eval |
| 39 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 40 | {f : ℕ → E →L[ℝ] E →L[ℝ] ℝ} {B : E →L[ℝ] E →L[ℝ] ℝ} |
| 41 | (h : Tendsto f atTop (𝓝 B)) (v w : E) : |
| 42 | Tendsto (fun k => f k v w) atTop (𝓝 (B v w)) := |
| 43 | ((ContinuousLinearMap.apply ℝ ℝ w).continuous.tendsto (B v)).comp |
| 44 | (((ContinuousLinearMap.apply ℝ (E →L[ℝ] ℝ) v).continuous.tendsto B).comp h) |
| 45 | |
| 46 | end PoincareMT.AncientCompactness |
| 47 | |
| 48 | namespace PoincareMT.NormalizedKappaSolutionSequence |
| 49 | |
| 50 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 51 | FlowCarrier.isManifold FlowCarrier.measurableSpace FlowCarrier.borelSpace |
| 52 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 53 | |
| 54 | local instance terminalPositivityCarrierConnected (C : FlowCarrier.{0} 3) : |
| 55 | ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 56 | |
| 57 | variable {κ : ℝ} (S : NormalizedKappaSolutionSequence κ) |
| 58 | (G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 59 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1) |
| 60 | |
| 61 | /-- The actual retained closed coefficient limit is symmetric and has a |
| 62 | positive lower quadratic bound at every point and ancient time. -/ |
| 63 | theorem terminal_coefficients_symmetric_positive |
| 64 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 65 | (hcontrol : M23AllTimeCurvatureControl S) |
| 66 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) |
| 67 | (q : G.limitCarrier.carrier) {K : Set (EuclideanSpace ℝ (Fin 3))} |
| 68 | (hK : IsCompact K) (hKc : K ⊆ (extChartAt (𝓡 3) q).target) |
| 69 | (B : ℝ × EuclideanSpace ℝ (Fin 3) → |
| 70 | EuclideanSpace ℝ (Fin 3) →L[ℝ] EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) |
| 71 | (hconv : ∀ t : ℝ, t ≤ 0 → ∀ x ∈ K, |
| 72 | Tendsto (fun k => ((S.term (G.subsequence k)).flow.flow.metric t).pullbackCoefficients |
| 73 | (G.embedding k ∘ (extChartAt (𝓡 3) q).symm) x) atTop (𝓝 (B (t, x)))) : |
| 74 | (∀ t : ℝ, t ≤ 0 → ∀ x ∈ K, ∀ v w, B (t, x) v w = B (t, x) w v) ∧ |
| 75 | (∀ t : ℝ, t ≤ 0 → ∀ x ∈ K, ∃ c : ℝ, 0 < c ∧ |
| 76 | ∀ v, c * ‖v‖ ^ 2 ≤ B (t, x) v v) := by |
| 77 | constructor |
| 78 | · intro t ht x hx v w |
| 79 | have hvw := AncientCompactness.tendsto_bilinear_eval (hconv t ht x hx) v w |
| 80 | have hwv := AncientCompactness.tendsto_bilinear_eval (hconv t ht x hx) w v |
| 81 | have heq : (fun k : ℕ => ((S.term (G.subsequence k)).flow.flow.metric t).pullbackCoefficients |
| 82 | (G.embedding k ∘ (extChartAt (𝓡 3) q).symm) x v w) = |
| 83 | (fun k : ℕ => ((S.term (G.subsequence k)).flow.flow.metric t).pullbackCoefficients |
| 84 | (G.embedding k ∘ (extChartAt (𝓡 3) q).symm) x w v) := by |
| 85 | funext k |
| 86 | exact ((S.term (G.subsequence k)).flow.flow.metric t).symm _ _ _ |
| 87 | rw [heq] at hvw |
| 88 | exact tendsto_nhds_unique hvw hwv |
| 89 | · intro t ht x hx |
| 90 | obtain ⟨a, b, ha, _, hbound⟩ := S.exists_eventually_embedding_closed_ellipticity |
| 91 | G P hcontrol hcomplete q hK hKc (le_max_left 1 (-t)) |
| 92 | have htime : t ∈ Icc (-max 1 (-t)) 0 := ⟨by linarith [le_max_right 1 (-t)], ht⟩ |
| 93 | refine ⟨a, ha, fun v => ?_⟩ |
| 94 | apply ge_of_tendsto (AncientCompactness.tendsto_bilinear_eval (hconv t ht x hx) v v) |
| 95 | exact hbound.mono fun k hk => (hk t htime x hx v).1 |
| 96 | |
| 97 | /-- The closed zeroth jets from the retained smooth-limit producer supply |
| 98 | the precise symmetry and positivity inputs for an actual terminal chart flow. -/ |
| 99 | theorem terminal_coefficients_symmetric_positive_of_zero_jets |
| 100 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 101 | (hcontrol : M23AllTimeCurvatureControl S) |
| 102 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metric 0)) |
| 103 | (q : G.limitCarrier.carrier) {K : Set (EuclideanSpace ℝ (Fin 3))} |
| 104 | (hK : IsCompact K) (hKc : K ⊆ (extChartAt (𝓡 3) q).target) |
| 105 | (B : ℝ × EuclideanSpace ℝ (Fin 3) → |
| 106 | EuclideanSpace ℝ (Fin 3) →L[ℝ] EuclideanSpace ℝ (Fin 3) →L[ℝ] ℝ) |
| 107 | (hzero : ∀ A : Set (ℝ × EuclideanSpace ℝ (Fin 3)), IsCompact A → |
| 108 | A ⊆ Iic 0 ×ˢ K → TendstoUniformlyOn |
| 109 | (fun k => iteratedFDerivWithin ℝ 0 |
| 110 | (fun z : ℝ × EuclideanSpace ℝ (Fin 3) => |
| 111 | ((S.term (G.subsequence k)).flow.flow.metric z.1).pullbackCoefficients |
| 112 | (G.embedding k ∘ (extChartAt (𝓡 3) q).symm) z.2) (Iic 0 ×ˢ K)) |
| 113 | (iteratedFDerivWithin ℝ 0 B (Iic 0 ×ˢ K)) atTop A) : |
| 114 | (∀ t : ℝ, t ≤ 0 → ∀ x ∈ K, ∀ v w, B (t, x) v w = B (t, x) w v) ∧ |
| 115 | (∀ t : ℝ, t ≤ 0 → ∀ x ∈ K, ∃ c : ℝ, 0 < c ∧ |
| 116 | ∀ v, c * ‖v‖ ^ 2 ≤ B (t, x) v v) := by |
| 117 | apply S.terminal_coefficients_symmetric_positive G P hcontrol hcomplete q hK hKc B |
| 118 | intro t ht x hx |
| 119 | exact AncientCompactness.tendsto_of_compact_zero_jets _ B (Iic 0 ×ˢ K) hzero |
| 120 | (z := (t, x)) ⟨show t ∈ Iic 0 from ht, hx⟩ |
| 121 | |
| 122 | end PoincareMT.NormalizedKappaSolutionSequence |