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.CanonicalInduction.Blowup.Controls.BlowupControlsSourceInitialCanonical |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Blowup.Controls.BlowupControlsSourcePointwiseCanonical |
| 3 | |
| 4 | /-! |
| 5 | # Actual pointwise canonical transfer from all three standard alternatives |
| 6 | |
| 7 | The proved literal initial-neck producer discharges the last argument |
| 8 | of the existing three-way consumer. MT Lemma 17.7; |
| 9 | seed-final-substitution.md, S1. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.M47 |
| 19 | |
| 20 | /-- Every standard point has the literal guarded canonical transfer, |
| 21 | with all constants chosen before the physical flow. -/ |
| 22 | theorem exists_source_standard_canonical_neighborhood |
| 23 | (P : M47Predecessors.{u}) (S : RepairedControlledSchedulesData.{u}) |
| 24 | (B : M47ComponentAnalyticBounds.{u} S.setup.C) |
| 25 | (p : SurgeryParameterPrefix S.constants) (hp : S.SeedCompatible p) |
| 26 | {theta v : ℝ} (htheta : theta < 1) (hv : v ∈ Icc 0 theta) |
| 27 | (z : StandardCapSpace) : |
| 28 | ∃ A0 eta0 nearTime Q0 : ℝ, ∃ V : Set StandardCapSpace, |
| 29 | 0 < A0 ∧ 0 < eta0 ∧ 0 < nearTime ∧ 0 < Q0 ∧ IsOpen V ∧ z ∈ V ∧ |
| 30 | ∀ A : ℝ, A0 ≤ A → ∀ eta : ℝ, 0 < eta → eta ≤ eta0 → |
| 31 | ∀ rNext : ℝ, 0 < rNext → rNext ≤ p.r (Fin.last p.i) → |
| 32 | ∃ cutoff : ℝ, 0 < cutoff ∧ cutoff ≤ p.Delta (Fin.last p.i) ∧ |
| 33 | ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 34 | O.H ≤ surgeryEpochStart (p.i + 1) → |
| 35 | ∀ prior : SurgeryPrefixControls p F O, |
| 36 | SurgeryFlowAdmissible F → SurgeryFlowPinched F → |
| 37 | SurgeryPostPrefixScales p F O rNext cutoff → |
| 38 | (∀ b ∈ surgeryObservationInterval O ∩ overlapInterval p, |
| 39 | F.parameters.delta b ≤ cutoff) → |
| 40 | ∀ (t : ℝ) (hT : t ∈ F.surgery_times), |
| 41 | ∀ [Nonempty (F.slice t).carrier], ∀ (i : Fin (F.event t hT).cap_count) |
| 42 | (J : Set ℝ) |
| 43 | (e : SurgeryFlowCylinder F (F.slice t) t ((F.parameters.h t)⁻¹ ^ 2) J |
| 44 | ((F.metric t).ball ((F.event t hT).caps i).tip (A * F.parameters.h t))) |
| 45 | (initial : SurgeryCapInitialComparison F t hT i A), |
| 46 | SurgeryCapFamilyComparison F |
| 47 | (O.redecorateTo prior.standard_initial_eq).standard_flow A eta e initial.chart → |
| 48 | ∀ hzero : (0 : ℝ) ∈ J, |
| 49 | (∀ y ∈ (F.metric t).ball ((F.event t hT).caps i).tip (A * F.parameters.h t), |
| 50 | HEq (e.forward 0 hzero y) y) → |
| 51 | 0 < F.parameters.h t → |
| 52 | ∀ (s : ℝ) (hs : s ∈ J), s ∈ Icc 0 theta → Icc 0 s ⊆ J → |
| 53 | |s - v| < nearTime → ∀ z' ∈ V, |
| 54 | let base := t + s / ((F.parameters.h t)⁻¹ ^ 2) |
| 55 | let x := e.forward s hs (initial.chart z') |
| 56 | let Q := (F.connection base).scalarCurvature x |
| 57 | base ∈ Ico (surgeryEpochStart p.i) O.H → Q0 ≤ Q → rNext⁻¹ ^ 2 ≤ Q → |
| 58 | SurgeryCanonicalOn F (surgeryObservationInterval O ∩ Iio base) rNext → |
| 59 | Q * (base - t) ∈ Icc 0 1 → |
| 60 | SurgeryCanonicalControl F base x S.setup.epsilon S.setup.C := by |
| 61 | exact exists_source_standard_canonical_neighborhood_of_initial S p hp htheta hv z |
| 62 | (fun N hdisjoint hshort => |
| 63 | exists_source_standard_initial_neck_canonical_neighborhood |
| 64 | P S B p hp htheta hv N hdisjoint hshort) |
| 65 | |
| 66 | end PoincareMT.M47 |