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.Comparison.Smoothing.Global |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Smoothing.Basepoint.Manifold |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Transport.Theory |
| 4 | /-! |
| 5 | # Smooth approximants of the selected comparison |
| 6 | |
| 7 | Morgan-Tian Proposition 15.12, p. 365, supplies the comparison map used |
| 8 | in Claim 18.22, p. 433. The 2026-09-18 SurgeryComparison.Transport full contract requires smooth |
| 9 | approximants of that literal map, with its exact target point and a |
| 10 | near-unit bound in the actual metrics. The error budget below reserves |
| 11 | room for both smoothing and the supported target point correction. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.SurgeryComparison.Transport |
| 21 | |
| 22 | variable {g₀ : StandardInitialMetric} {D : RepairedSurgeryFlowData.{u} g₀} |
| 23 | {T : ℝ} {hT : T ∈ D.flow.surgery_times} |
| 24 | [Nonempty (D.flow.slice T).carrier] |
| 25 | {I : RepairedComparisonHomotopyInput D T hT} |
| 26 | |
| 27 | /-- The literal selected comparison admits smooth near-unit approximants |
| 28 | with its exact target point and homotopy class. The time window precedes |
| 29 | the choice of approximant; Claim 18.22, Morgan-Tian p. 433, and the full |
| 30 | SurgeryComparison.Transport contract's quantitative smoothing section. -/ |
| 31 | theorem comparison_smooth_approximants |
| 32 | (Q : RepairedComparisonMapConclusion I.toRepairedComparisonMapInput) : |
| 33 | ∀ eta : ℝ, 0 < eta → ∃ d : ℝ, 0 < d ∧ |
| 34 | ∀ t : ℝ, T - d < t → t < T → |
| 35 | ∃ f : C(I.parent.carrier.carrier, I.child.carrier.carrier), |
| 36 | ContMDiff (𝓡 3) (𝓡 3) ∞ f ∧ |
| 37 | f I.parent.basepoint = Q.target_basepoint ∧ |
| 38 | ContinuousMap.Homotopic f Q.map ∧ |
| 39 | ∀ x y, I.child_metric.edist (f x) (f y) ≤ |
| 40 | ENNReal.ofReal (1 + eta) * (I.parent_metric t).edist x y := by |
| 41 | let : CompactSpace I.parent.carrier.carrier := isCompact_univ_iff.mp I.parent.compact |
| 42 | let : CompactSpace I.child.carrier.carrier := isCompact_univ_iff.mp I.child.compact |
| 43 | let : SimplyConnectedSpace I.parent.carrier.carrier := I.parent_simply_connected |
| 44 | let : SimplyConnectedSpace I.child.carrier.carrier := I.child_simply_connected |
| 45 | intro eta heta |
| 46 | let theta : ℝ := min 1 (eta / 8) |
| 47 | have htheta : 0 < theta := lt_min zero_lt_one (by positivity) |
| 48 | have htheta1 : theta ≤ 1 := min_le_left _ _ |
| 49 | have hthetaeta : theta ≤ eta / 8 := min_le_right _ _ |
| 50 | have hbudget : (1 + theta) * (1 + theta + theta) ≤ 1 + eta := by |
| 51 | nlinarith [mul_le_of_le_one_right htheta.le htheta1] |
| 52 | obtain ⟨d, hd, _, hlate⟩ := Q.late_lipschitz theta htheta |
| 53 | refine ⟨d, hd, fun t ht htT => ?_⟩ |
| 54 | obtain ⟨r, hr, hcorrect⟩ := exists_smooth_pointCorrected_map |
| 55 | (I.parent_metric t) I.child_metric Q.target_basepoint htheta |
| 56 | obtain ⟨f, hf, hhom, hclose, hbound⟩ := exists_smooth_approximation |
| 57 | (I.parent_metric t) I.child_metric Q.map (L := 1 + theta) |
| 58 | (epsilon := r) (sigma := theta) (by linarith) hr htheta (hlate t ht htT) |
| 59 | have hbaseclose : I.child_metric.edist (f I.parent.basepoint) Q.target_basepoint < |
| 60 | ENNReal.ofReal r := by |
| 61 | rw [← Q.based] |
| 62 | exact hclose I.parent.basepoint |
| 63 | obtain ⟨f', hf', hbase, hhom', hbound'⟩ := |
| 64 | hcorrect f hf I.parent.basepoint hbaseclose (1 + theta + theta) hbound |
| 65 | refine ⟨f', hf', hbase, hhom'.trans hhom, fun x y => (hbound' x y).trans ?_⟩ |
| 66 | exact mul_le_mul' (ENNReal.ofReal_le_ofReal hbudget) le_rfl |
| 67 | |
| 68 | end PoincareMT.SurgeryComparison.Transport |