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.Induction.Noncollapse.StableSet.Seed.StableSource |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.Volume.SmallRadiusAssembly |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.HalfRadiusHistory |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.PositiveComponents.PositiveAncestor |
| 5 | |
| 6 | /-! |
| 7 | # The actual regular source at the selected common cutoff |
| 8 | |
| 9 | Morgan--Tian Proposition 16.1, pp. 391-394. Construct the actual |
| 10 | half-radius history, then substitute cap confinement, the minimizing |
| 11 | region and positive-component propagation into the checked stable |
| 12 | source. The shared birth bound is supplied by the same selected |
| 13 | cutoff and scalar-rate comparison as the small-test cylinder. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.Proofs.M46 |
| 24 | |
| 25 | /-- The selected-cutoff producer used by the final three-radius |
| 26 | assembly. Its source constants are fixed from the old prefix before |
| 27 | the next radius, cutoff, observed flow and actual test. -/ |
| 28 | theorem regularSourceProducer_of_selected_cap_bounds |
| 29 | (P : M46Predecessors.{u}) (P44 : M44CapPersistencePredecessors.{u}) |
| 30 | (S : RepairedControlledSchedulesData.{u}) (p : SurgeryParameterPrefix S.constants) |
| 31 | (hp : S.SeedCompatible p) {B c rNext cutoff rho A eta theta : ℝ} |
| 32 | (hB : 1 ≤ B) (hBanalytic : seedAnalyticConstant S ≤ B) (hc : 0 < c) |
| 33 | (hr : 0 < rNext) (hrLast : rNext ≤ p.r (Fin.last p.i)) |
| 34 | (hcutoff : cutoff ≤ capScalarCutoff p.setup.epsilon c rNext) |
| 35 | (hbirth : ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 36 | ObservedInputs p rNext cutoff F O → |
| 37 | ∀ (t : ℝ) (hT : t ∈ F.surgery_times) [Nonempty (F.slice t).carrier], |
| 38 | t ∈ surgeryObservationInterval O → surgeryEpochStart (p.i - 1) ≤ t → |
| 39 | ∀ i : Fin (F.event t hT).cap_count, |
| 40 | ∀ x ∈ ((F.event t hT).caps i).carrier, |
| 41 | c / (2 * (F.parameters.h t) ^ 2) ≤ (F.connection t).scalarCurvature x) |
| 42 | (avoid : CapAvoidanceProducer.{u} p rNext cutoff rho A eta theta) |
| 43 | (minimize : MinimizingRegionProducer.{u} p rNext cutoff rho) |
| 44 | (caps : ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F) |
| 45 | (inputs : ObservedInputs p rNext cutoff F O), |
| 46 | OverlapCapControl p O inputs.old A eta theta) : |
| 47 | RegularSourceProducer.{u} p rNext cutoff rho (surgeryEpochStart (p.i + 1)) |
| 48 | (actionBudget p / (4 * p.setup.epsilon)) |
| 49 | (p.kappa (Fin.last p.i) * seedImageRadius B (p.r (Fin.last p.i)) ^ 3 / 8) := by |
| 50 | intro F O inputs D hnew _hlow hlarge |
| 51 | obtain ⟨H⟩ := halfRadiusHistory P D |
| 52 | obtain ⟨C, hbarrier⟩ := avoid F O inputs D H hnew hlarge (caps F O inputs) |
| 53 | obtain ⟨M⟩ := minimize F O inputs D H hnew hlarge C hbarrier |
| 54 | exact ⟨H, stableSource_of_observed_cap_birth P P44 S p hp hB hBanalytic hc |
| 55 | hr hrLast hcutoff inputs H hnew C hbarrier M (positiveAncestorExclusion H) |
| 56 | (hbirth F O inputs)⟩ |
| 57 | |
| 58 | end PoincareMT.Proofs.M46 |