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.NoncollapseGeometry |
| 2 | |
| 3 | /-! |
| 4 | Adapted from Mapher `PoincareMT/Definitions/Ch16/CanonicalInduction.lean` at |
| 5 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. Declaration bodies are retained; |
| 6 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 7 | -/ |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | |
| 11 | universe u |
| 12 | |
| 13 | namespace PoincareMT |
| 14 | |
| 15 | /-- The concrete output of Proposition 17.1, after consuming the uniform |
| 16 | noncollapsing output for the same finite prefix. -/ |
| 17 | structure SurgeryCanonicalExtension {K : MetricSurgeryConstants} |
| 18 | (p : SurgeryParameterPrefix K) (Q : SurgeryNoncollapseExtension.{u} p) where |
| 19 | rNext : ℝ |
| 20 | deltaNext : ℝ |
| 21 | r_pos : 0 < rNext |
| 22 | r_le_last : rNext ≤ p.r ⟨p.i, Nat.lt_succ_self _⟩ |
| 23 | delta_pos : 0 < deltaNext |
| 24 | delta_le_cutoff : deltaNext ≤ Q.cutoff rNext |
| 25 | canonical : ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 26 | SurgeryObservationIsNextEpoch p O → |
| 27 | SurgeryPrefixControls p F O → |
| 28 | SurgeryFlowAdmissible F → |
| 29 | SurgeryFlowPinched F → |
| 30 | SurgeryFlowTerminalPolicyOn F (surgeryObservationInterval O) → |
| 31 | SurgeryPostPrefixScales p F O rNext deltaNext → |
| 32 | (∀ t ∈ surgeryObservationInterval O ∩ Set.Ico (surgeryEpochStart (p.i - 1)) O.H, |
| 33 | F.parameters.delta t ≤ deltaNext) → |
| 34 | SurgeryCanonicalOn F (surgeryObservationInterval O) rNext |
| 35 | |
| 36 | end PoincareMT |