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.Boundedness.Projective.TerminalJets |
| 2 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Convergence.Bounds.Terminal |
| 3 | |
| 4 | /-! |
| 5 | # Projective cylinder closeness in the actual terminal slice |
| 6 | |
| 7 | The same buffered estimates apply on an antipodal cylinder covering. The |
| 8 | result records the original selected spatial maps, local diffeomorphism |
| 9 | property, exact antipodal fibers, and terminal metric closeness together. |
| 10 | |
| 11 | Reference: Kleiner--Lott, Theorem 46.1, pp. 2687-2688. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option maxSynthPendingDepth 12 |
| 17 | set_option maxHeartbeats 800000 |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | namespace PoincareMT.RawAncientSequence |
| 23 | |
| 24 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 25 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 26 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 27 | normedAddCommGroupTangentSpaceVectorSpace normedSpaceTangentSpaceVectorSpace |
| 28 | |
| 29 | variable (C : ℕ → FlowCarrier.{0} 3) |
| 30 | (F : ∀ k, RicciFlow 3 (C k).carrier (Iic 0)) (p : ∀ k, (C k).carrier) |
| 31 | |
| 32 | /-- Cylinder metric closeness needs a local covering map, and preserves the |
| 33 | time-zero source metrics and entire original geometric subsequence. -/ |
| 34 | theorem exists_terminal_cylinderCover_closeness_threshold |
| 35 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 36 | (hc : ∀ k t, t ≤ 0 → MetricComplete ((F k).metric t)) |
| 37 | (hop : ∀ k t, t ≤ 0 → ∀ x, ((F k).connection t).NonnegativeCurvatureOperator x) |
| 38 | (radius : ℕ → ℝ) (hradius : Tendsto radius atTop atTop) |
| 39 | (hbound : ∀ k t, t ≤ 0 → ∀ x ∈ ((F k).metric 0).ball (p k) (radius k), |
| 40 | |((F k).connection t).curvatureTensorNorm x| ≤ 4) |
| 41 | (hnormalized : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) |
| 42 | (hbase : ∀ k t, t ≤ 0 → ((F k).connection t).scalarCurvature (p k) ≤ 1) |
| 43 | {ε : ℝ} (hε : 0 < ε) : |
| 44 | ∃ η : ℝ, 0 < η ∧ ∀ {δ : ℝ}, 0 < δ → δ ≤ 1 → δ ≤ η → |
| 45 | ∀ G : AncientPointedGeometricConvergence C (fun k t => (F k).metric (t - δ)) p δ, |
| 46 | G.limitCarrier.metricComplete (G.limitFlow.metric 0) → |
| 47 | (1 / 2 : ℝ) ≤ (G.limitFlow.connection 0).scalarCurvature G.base → |
| 48 | ∀ Φ : RoundCylinderSpace → G.limitCarrier.carrier, |
| 49 | IsLocalDiffeomorph ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ Φ → |
| 50 | (fun z v w => (G.limitFlow.connection 0).scalarCurvature G.base * |
| 51 | roundCylinderPullback (G.limitFlow.metric 0) Φ z v w) = EvolvingRoundCylinderMetric 0 → |
| 52 | ∀ᶠ i in atTop, RoundCylinderClose ε 0 |
| 53 | (roundCylinderPullback ((F (G.subsequence i)).metric 0) |
| 54 | (fun z => G.embedding i (Φ z))) := by |
| 55 | let J := Icc (-ε⁻¹) ε⁻¹ |
| 56 | let d : ℕ := ⌊ε⁻¹⌋₊ |
| 57 | have hJ : IsCompact J := isCompact_Icc |
| 58 | obtain ⟨C₀, Z, hC₀, hZ, hcompare⟩ := |
| 59 | exists_roundCylinder_buffered_comparison_constants hJ d |
| 60 | obtain ⟨B, hB, hterminal⟩ := exists_terminal_cylinderCover_jet_constant C F p P |
| 61 | hc hop radius hradius hbound hJ d |
| 62 | obtain ⟨D, hD, hscalar⟩ := exists_buffered_limit_scalar_error_constant C F p P |
| 63 | hc hop radius hradius hbound hnormalized hbase |
| 64 | obtain ⟨η, hη, htolerance⟩ := exists_roundCylinder_terminal_error_tolerance |
| 65 | hε hC₀ (show 0 ≤ B + 2 * D * Z by positivity) |
| 66 | refine ⟨η, hη, ?_⟩ |
| 67 | intro δ hδ hδone hδη G hcomplete hs Φ hΦ hround |
| 68 | let s := (G.limitFlow.connection 0).scalarCurvature G.base |
| 69 | obtain ⟨hgap, hsone⟩ := hscalar hδ G |
| 70 | have htime := hterminal hδ hδone hs hsone G hcomplete Φ hΦ hround |
| 71 | let Fseq (k : ℕ) := (F k).bufferedExpandingFlow δ |
| 72 | have hab : (-1 : ℝ) < δ / 2 := by linarith |
| 73 | have hbδ : δ / 2 ≤ δ := by linarith |
| 74 | have hsub : ∀ k : ℕ, Ioo (-1) (δ / 2) ⊆ (fun t : ℝ => t - δ) ⁻¹' Iic 0 := by |
| 75 | intro k t ht |
| 76 | change t - δ ≤ 0 |
| 77 | linarith [ht.2] |
| 78 | let W := G.window Fseq hab hbδ 0 hsub |
| 79 | have hzero : (-1 : ℝ) < 0 ∧ 0 < δ / 2 := ⟨by norm_num, by linarith⟩ |
| 80 | let K : Set RoundCylinderCoordinates := {0} ×ˢ J |
| 81 | have hK : IsCompact K := isCompact_singleton.prod hJ |
| 82 | have hKU : K ⊆ Metric.ball (0 : EuclideanSpace ℝ (Fin 2)) (1 / 2) ×ˢ univ := by |
| 83 | rintro x ⟨hx, _⟩ |
| 84 | exact ⟨by simpa only [mem_singleton_iff.mp hx] using |
| 85 | (Metric.mem_ball_self (by norm_num : (0 : ℝ) < 1 / 2)), mem_univ _⟩ |
| 86 | have hinitial := W.eventually_cylinder_parametrized_model_error_jets |
| 87 | hzero hΦ.contMDiff hzero (by linarith : 0 < s) hround hK hKU d hη |
| 88 | filter_upwards [htime, hinitial, |
| 89 | G.eventually_cylinderCover_slab_regular Φ hΦ (-ε⁻¹) ε⁻¹] with i ht hi he |
| 90 | let f : RoundCylinderSpace → (C (G.subsequence i)).carrier := |
| 91 | fun z => G.embedding i (Φ z) |
| 92 | let U : Set RoundCylinderSpace := univ ×ˢ Ioo (-ε⁻¹) ε⁻¹ |
| 93 | have hU : IsOpen U := isOpen_univ.prod isOpen_Ioo |
| 94 | have hf : ContMDiffOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ f U := he.contMDiffOn |
| 95 | have hsmooth : RoundCylinderTensorSmoothOn ε |
| 96 | (roundCylinderPullback ((F (G.subsequence i)).metric 0) f) := by |
| 97 | simpa only [one_mul] using roundCylinderTensorSmoothOn_smul_pullback |
| 98 | ((F (G.subsequence i)).metric 0) hf 1 |
| 99 | refine ⟨hsmooth, ε ^ 2 / 4, by nlinarith [sq_pos_of_pos hε], ?_⟩ |
| 100 | intro z hz |
| 101 | have hzU : z ∈ U := ⟨mem_univ _, hz⟩ |
| 102 | have hzJ : z.2 ∈ J := ⟨hz.1.le, hz.2.le⟩ |
| 103 | apply (hcompare ((F (G.subsequence i)).metric (-δ)) |
| 104 | ((F (G.subsequence i)).metric 0) hU hf z hzU hzJ hs hsone hD.le hδ.le hB hη.le |
| 105 | hgap ?_ ?_).trans (htolerance hδ.le hδη) |
| 106 | · intro j hj |
| 107 | have h := hi j hj z.1 (0, z.2) ⟨rfl, hzJ⟩ |
| 108 | change ‖iteratedFDeriv ℝ j |
| 109 | (((F (G.subsequence i)).metric (0 + -δ)).parametrizedCoefficients |
| 110 | (fun y => G.embedding i (Φ ((chartAt (EuclideanSpace ℝ (Fin 2)) z.1).symm y.1, y.2)))) |
| 111 | (0, z.2) - s⁻¹ • iteratedFDeriv ℝ j roundCylinderModelCoefficients (0, z.2)‖ ≤ η at h |
| 112 | rwa [zero_add] at h |
| 113 | · intro j hj |
| 114 | exact ht z.1 z.2 hzJ j hj |
| 115 | |
| 116 | /-- The actual projective necks have locally invertible coordinates, exactly |
| 117 | the antipodal fibers, the selected center, and the terminal metric estimate. -/ |
| 118 | theorem exists_terminal_projectiveNeck_threshold |
| 119 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 120 | (hc : ∀ k t, t ≤ 0 → MetricComplete ((F k).metric t)) |
| 121 | (hop : ∀ k t, t ≤ 0 → ∀ x, ((F k).connection t).NonnegativeCurvatureOperator x) |
| 122 | (radius : ℕ → ℝ) (hradius : Tendsto radius atTop atTop) |
| 123 | (hbound : ∀ k t, t ≤ 0 → ∀ x ∈ ((F k).metric 0).ball (p k) (radius k), |
| 124 | |((F k).connection t).curvatureTensorNorm x| ≤ 4) |
| 125 | (hnormalized : ∀ k, ((F k).connection 0).scalarCurvature (p k) = 1) |
| 126 | (hbase : ∀ k t, t ≤ 0 → ((F k).connection t).scalarCurvature (p k) ≤ 1) |
| 127 | {ε : ℝ} (hε : 0 < ε) : |
| 128 | ∃ η : ℝ, 0 < η ∧ ∀ {δ : ℝ}, 0 < δ → δ ≤ 1 → δ ≤ η → |
| 129 | ∀ G : AncientPointedGeometricConvergence C (fun k t => (F k).metric (t - δ)) p δ, |
| 130 | G.limitCarrier.metricComplete (G.limitFlow.metric 0) → |
| 131 | (1 / 2 : ℝ) ≤ (G.limitFlow.connection 0).scalarCurvature G.base → |
| 132 | ∀ (Φ : RoundCylinderSpace → G.limitCarrier.carrier) (x : UnitTwoSphere), |
| 133 | IsLocalDiffeomorph ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ Φ → |
| 134 | Φ (x, 0) = G.base → |
| 135 | (∀ z w, Φ z = Φ w ↔ w = z ∨ w = (-z.1, z.2)) → |
| 136 | (fun z v w => (G.limitFlow.connection 0).scalarCurvature G.base * |
| 137 | roundCylinderPullback (G.limitFlow.metric 0) Φ z v w) = EvolvingRoundCylinderMetric 0 → |
| 138 | ∀ᶠ i in atTop, |
| 139 | IsLocalDiffeomorphOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ |
| 140 | (G.embedding i ∘ Φ) (univ ×ˢ Ioo (-ε⁻¹) ε⁻¹) ∧ |
| 141 | (∀ z ∈ univ ×ˢ Icc (-ε⁻¹) ε⁻¹, ∀ w ∈ univ ×ˢ Icc (-ε⁻¹) ε⁻¹, |
| 142 | G.embedding i (Φ z) = G.embedding i (Φ w) ↔ w = z ∨ w = (-z.1, z.2)) ∧ |
| 143 | G.embedding i (Φ (x, 0)) = p (G.subsequence i) ∧ |
| 144 | RoundCylinderClose ε 0 (roundCylinderPullback ((F (G.subsequence i)).metric 0) |
| 145 | (G.embedding i ∘ Φ)) := by |
| 146 | obtain ⟨η, hη, hclose⟩ := exists_terminal_cylinderCover_closeness_threshold C F p P |
| 147 | hc hop radius hradius hbound hnormalized hbase hε |
| 148 | refine ⟨η, hη, ?_⟩ |
| 149 | intro δ hδ hδone hδη G hcomplete hs Φ x hΦ hx hfiber hround |
| 150 | filter_upwards [hclose hδ hδone hδη G hcomplete hs Φ hΦ hround, |
| 151 | G.eventually_cylinderCover_slab_regular Φ hΦ (-ε⁻¹) ε⁻¹, |
| 152 | G.eventually_cylinderCover_antipodal_fibers Φ hΦ.contMDiff.continuous hfiber (-ε⁻¹) ε⁻¹] |
| 153 | with i hclose hlocal hfibers |
| 154 | exact ⟨hlocal, hfibers, by rw [hx, G.base_preserving], hclose⟩ |
| 155 | |
| 156 | end PoincareMT.RawAncientSequence |