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.Assembly.Configuration |
| 2 | |
| 3 | /-! |
| 4 | # Proposition 16.5 on the induction overlap |
| 5 | |
| 6 | The stored M44 service is applied to the calibrated standard flow and the |
| 7 | actual old and new scale profiles. Its positive cutoff is decreased to the |
| 8 | last old cutoff before any observed flow is chosen. |
| 9 | |
| 10 | Source: Morgan--Tian Proposition 16.5, p. 370, as used in Proposition 16.1, |
| 11 | pp. 367-368. The source and dependency check is recorded in |
| 12 | `proof-work/tasks/M46/derivations/lgeometry/2026-09-22-overlap-caps.md`. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.Proofs.M46 |
| 20 | |
| 21 | /-- Redecorating an observation selects the calibrated model in |
| 22 | Proposition 16.5, p. 370, without changing the observation horizon. -/ |
| 23 | theorem redecorateTo_standard_flow {K : MetricSurgeryConstants} |
| 24 | {p : SurgeryParameterPrefix K} {F : SurgeryFlowData.{u}} |
| 25 | (O : SurgeryObservation F) |
| 26 | (hstandard : F.standard_initial = p.setup.standard_initial) : |
| 27 | HEq (O.redecorateTo hstandard).standard_flow p.setup.standard_flow := by |
| 28 | exact eqRec_heq _ _ |
| 29 | |
| 30 | /-- Proposition 16.5 supplies a cutoff before the observed flow. The |
| 31 | minimum preserves Definition 15.7's last prefix bound, pp. 361 and 370. -/ |
| 32 | theorem exists_overlapCapCutoff {g0 : StandardInitialMetric} |
| 33 | (P : RepairedCapPersistenceData.{u} g0) {K : MetricSurgeryConstants} |
| 34 | (hconstants : P.metric_surgery.constants = K) |
| 35 | (p : SurgeryParameterPrefix K) |
| 36 | (hstandard : p.setup.standard_initial = g0) |
| 37 | (rNext : ℝ) (hr : 0 < rNext) (hrLast : rNext ≤ p.r (Fin.last p.i)) |
| 38 | (A eta theta : ℝ) (hA : 0 < A) (heta : 0 < eta) |
| 39 | (htheta : 0 < theta) (hthetaOne : theta < 1) : |
| 40 | ∃ cutoff : ℝ, 0 < cutoff ∧ cutoff ≤ p.Delta (Fin.last p.i) ∧ |
| 41 | ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 42 | SurgeryObservationIsNextEpoch p O → |
| 43 | ∀ old : SurgeryPrefixControls p F O, |
| 44 | SurgeryFlowAdmissible F → SurgeryFlowPinched F → |
| 45 | SurgeryPostPrefixScales p F O rNext cutoff → |
| 46 | SurgeryCanonicalOn F (surgeryObservationInterval O) rNext → |
| 47 | (∀ t ∈ surgeryObservationInterval O ∩ overlapInterval p, |
| 48 | F.parameters.delta t ≤ cutoff) → |
| 49 | OverlapCapControl p O old A eta theta := by |
| 50 | subst K |
| 51 | obtain ⟨deltaBar, hdelta, persistence⟩ := |
| 52 | P.proposition_16_5 p rNext hstandard hr hrLast A eta theta |
| 53 | hA heta htheta hthetaOne |
| 54 | refine ⟨min (p.Delta (Fin.last p.i)) deltaBar, |
| 55 | lt_min (p.Delta_pos _) hdelta, min_le_left _ _, ?_⟩ |
| 56 | intro F O hO old hadmissible hpinched next hcanonical overlap |
| 57 | have nextBar : SurgeryPostPrefixScales p F O rNext deltaBar := { |
| 58 | r_eq := next.r_eq |
| 59 | delta_le := fun t ht => (next.delta_le t ht).trans (min_le_right _ _) |
| 60 | h_eq := next.h_eq |
| 61 | } |
| 62 | have overlapBar : ∀ t ∈ surgeryObservationInterval O ∩ overlapInterval p, |
| 63 | F.parameters.delta t ≤ deltaBar := |
| 64 | fun t ht => (overlap t ht).trans (min_le_right _ _) |
| 65 | have scales := old.capPersistenceScales hO.2 hrLast nextBar overlapBar |
| 66 | have modelScales : SurgeryFixedScalesOn p.setup F |
| 67 | (O.redecorateTo old.standard_initial_eq) |
| 68 | (surgeryEpochStart (p.i - 1)) rNext deltaBar := { |
| 69 | standard_initial_eq := scales.standard_initial_eq |
| 70 | local_constants_eq := scales.local_constants_eq |
| 71 | epsilon_eq := scales.epsilon_eq |
| 72 | C_eq := scales.C_eq |
| 73 | r_lower := scales.r_lower |
| 74 | delta_le := scales.delta_le |
| 75 | h_eq := scales.h_eq |
| 76 | } |
| 77 | intro t hT _ ht hstart j |
| 78 | have hdelta_t : F.parameters.delta t ≤ deltaBar := |
| 79 | scales.delta_le t ⟨ht, hstart⟩ |
| 80 | exact persistence F (O.redecorateTo old.standard_initial_eq) |
| 81 | (redecorateTo_standard_flow O old.standard_initial_eq) |
| 82 | modelScales hadmissible hpinched hcanonical t hT ht hstart hdelta_t j |
| 83 | |
| 84 | /-- The M45 stored cap-persistence data provide the preceding cutoff for |
| 85 | every compatible finite prefix; Proposition 16.1, pp. 367-368. -/ |
| 86 | theorem exists_seedCompatibleOverlapCapCutoff |
| 87 | (S : RepairedControlledSchedulesData.{u}) |
| 88 | (p : SurgeryParameterPrefix S.constants) (hp : S.SeedCompatible p) |
| 89 | (rNext : ℝ) (hr : 0 < rNext) (hrLast : rNext ≤ p.r (Fin.last p.i)) |
| 90 | (A eta theta : ℝ) (hA : 0 < A) (heta : 0 < eta) |
| 91 | (htheta : 0 < theta) (hthetaOne : theta < 1) : |
| 92 | ∃ cutoff : ℝ, 0 < cutoff ∧ cutoff ≤ p.Delta (Fin.last p.i) ∧ |
| 93 | ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 94 | SurgeryObservationIsNextEpoch p O → |
| 95 | ∀ old : SurgeryPrefixControls p F O, |
| 96 | SurgeryFlowAdmissible F → SurgeryFlowPinched F → |
| 97 | SurgeryPostPrefixScales p F O rNext cutoff → |
| 98 | SurgeryCanonicalOn F (surgeryObservationInterval O) rNext → |
| 99 | (∀ t ∈ surgeryObservationInterval O ∩ overlapInterval p, |
| 100 | F.parameters.delta t ≤ cutoff) → |
| 101 | OverlapCapControl p O old A eta theta := by |
| 102 | apply exists_overlapCapCutoff S.cap_persistence S.cap_constants_eq p |
| 103 | (by simpa only [hp.setup_eq] using S.setup_standard_initial_eq) rNext hr hrLast |
| 104 | A eta theta hA heta htheta hthetaOne |
| 105 | |
| 106 | end PoincareMT.Proofs.M46 |