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.CanonicalData |
| 2 | |
| 3 | /-! |
| 4 | # The observed M46/M47 control pairing |
| 5 | |
| 6 | This is the admission-free Section 17.2 adapter. It applies the selected |
| 7 | canonical extension to an observed flow and then applies the same-prefix |
| 8 | noncollapsing extension on that identical observation. The cutoff is |
| 9 | weakened from `deltaNext` to the M46 cutoff; no derivative or high-curvature |
| 10 | analytic estimate is manufactured here. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | theorem SurgeryCanonicalExtension.observedControls |
| 20 | {K : MetricSurgeryConstants} {p : SurgeryParameterPrefix K} |
| 21 | {Q : SurgeryNoncollapseExtension.{u} p} |
| 22 | (R : SurgeryCanonicalExtension p Q) |
| 23 | (F : SurgeryFlowData.{u}) (O : SurgeryObservation F) |
| 24 | (hnext : SurgeryObservationIsNextEpoch p O) |
| 25 | (hprefix : SurgeryPrefixControls p F O) |
| 26 | (hadmissible : SurgeryFlowAdmissible F) |
| 27 | (hpinched : SurgeryFlowPinched F) |
| 28 | (terminal_policy : SurgeryFlowTerminalPolicyOn F (surgeryObservationInterval O)) |
| 29 | (scales : SurgeryPostPrefixScales p F O R.rNext R.deltaNext) |
| 30 | (overlap : ∀ t ∈ surgeryObservationInterval O ∩ |
| 31 | Set.Ico (surgeryEpochStart (p.i - 1)) O.H, |
| 32 | F.parameters.delta t ≤ R.deltaNext) : |
| 33 | SurgeryCanonicalOn F (surgeryObservationInterval O) R.rNext ∧ |
| 34 | SurgeryNoncollapsedOn F (surgeryObservationInterval O) Q.kappaNew := by |
| 35 | have scales' : SurgeryPostPrefixScales p F O R.rNext (Q.cutoff R.rNext) := { |
| 36 | r_eq := scales.r_eq |
| 37 | delta_le := fun t ht => |
| 38 | (scales.delta_le t ht).trans R.delta_le_cutoff |
| 39 | h_eq := scales.h_eq |
| 40 | } |
| 41 | have canonical := R.canonical F O hnext hprefix hadmissible hpinched |
| 42 | terminal_policy scales overlap |
| 43 | have overlap' : ∀ t ∈ surgeryObservationInterval O ∩ overlapInterval p, |
| 44 | F.parameters.delta t ≤ Q.cutoff R.rNext := by |
| 45 | intro t ht |
| 46 | have hsource : t ∈ surgeryObservationInterval O ∩ |
| 47 | Set.Ico (surgeryEpochStart (p.i - 1)) O.H := |
| 48 | ⟨ht.1, ⟨ht.2.1, ht.1.2⟩⟩ |
| 49 | exact (overlap t hsource).trans R.delta_le_cutoff |
| 50 | have noncollapsed := Q.noncollapsed R.rNext R.r_pos R.r_le_last F O |
| 51 | hnext hprefix hadmissible hpinched terminal_policy scales' canonical overlap' |
| 52 | exact ⟨canonical, noncollapsed⟩ |
| 53 | |
| 54 | theorem SurgeryCanonicalExtension.observedControls_maximal |
| 55 | {K : MetricSurgeryConstants} {p : SurgeryParameterPrefix K} |
| 56 | {Q : SurgeryNoncollapseExtension.{u} p} |
| 57 | (R : SurgeryCanonicalExtension p Q) |
| 58 | (F : SurgeryFlowData.{u}) (O : SurgeryObservation F) |
| 59 | (hmax : SurgeryObservationIsMaximalNextEpoch p O) |
| 60 | (hprefix : SurgeryPrefixControls p F O) |
| 61 | (hadmissible : SurgeryFlowAdmissible F) |
| 62 | (hpinched : SurgeryFlowPinched F) |
| 63 | (terminal_policy : SurgeryFlowTerminalPolicyOn F (surgeryObservationInterval O)) |
| 64 | (scales : SurgeryPostPrefixScales p F O R.rNext R.deltaNext) |
| 65 | (overlap : ∀ t ∈ surgeryObservationInterval O ∩ |
| 66 | Set.Ico (surgeryEpochStart (p.i - 1)) O.H, |
| 67 | F.parameters.delta t ≤ R.deltaNext) : |
| 68 | SurgeryCanonicalOn F F.time_domain R.rNext ∧ |
| 69 | SurgeryNoncollapsedOn F F.time_domain Q.kappaNew := by |
| 70 | have h := R.observedControls F O hmax.1 hprefix hadmissible hpinched |
| 71 | terminal_policy scales overlap |
| 72 | simpa [surgeryObservationInterval, hmax.2] using h |
| 73 | |
| 74 | end PoincareMT |