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.Extinction.Global.Definitions |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Path.InitialClassAdapters |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.FinitePiece.Inputs |
| 4 | |
| 5 | /-! |
| 6 | # M71 applications with one fixed initial class |
| 7 | |
| 8 | The only initial-class transfer is substitution along M56's equality |
| 9 | with its fixed initial component. Select the actual M67 output, project its coherent |
| 10 | M69 ledger, construct [0,T] from M61, and apply M69. The initial-width identity |
| 11 | holds for every target and package with the same right-hand side. |
| 12 | |
| 13 | This is the zero-time application of Morgan--Tian Proposition 18.18, |
| 14 | pp. 430--432. It does not supply the general late-start component argument. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | def m71InitialClassAlongEq |
| 26 | {F : GeneralizedSliceCarrier.{u}} (g : RiemannianMetric 3 F.carrier) |
| 27 | (S : M59IdentificationSystem.{u}) {C C₀ : SurgerySelectedComponent F} |
| 28 | (h : C = C₀) (initial : M67InitialClassData S C₀ g) : |
| 29 | M67InitialClassData S C g := h.symm ▸ initial |
| 30 | |
| 31 | theorem m71InitialClassAlongEq_width |
| 32 | {F : GeneralizedSliceCarrier.{u}} (g : RiemannianMetric 3 F.carrier) |
| 33 | (S : M59IdentificationSystem.{u}) {C C₀ : SurgerySelectedComponent F} |
| 34 | (h : C = C₀) (initial : M67InitialClassData S C₀ g) : |
| 35 | m61BasedClassWidth S.quotient (m71InitialClassAlongEq g S h initial).metric |
| 36 | C.basepoint (m71InitialClassAlongEq g S h initial).alpha = |
| 37 | m61BasedClassWidth S.quotient initial.metric C₀.basepoint initial.alpha := by |
| 38 | cases h |
| 39 | rfl |
| 40 | |
| 41 | variable {g₀ : StandardInitialMetric} {D : RepairedSurgeryFlowData.{u} g₀} |
| 42 | {W : RepairedEventChildWitness D.flow} |
| 43 | {ancestry : RepairedFiniteAncestryData D.flow W} |
| 44 | (Q : M71FiniteContinuationService D W ancestry) |
| 45 | {T : ℝ} {hT : T ∈ D.flow.time_domain} |
| 46 | (J : M71ComponentContinuationData D W ancestry Q.basepoint_service T hT) |
| 47 | (hM67 : M67SurgeryWidthTheory.{u}) |
| 48 | |
| 49 | noncomputable def m71WidthChoice := |
| 50 | m69M67Choice W J.P |
| 51 | (fun t _ ht => Q.comparison_bounds t (Set.mem_univ t) ht) |
| 52 | (fun t _ ht => Q.scalar_lower_bound t (Set.mem_univ t) ht) |
| 53 | J.K J.C J.H Q.basepoint_service J.A |
| 54 | Q.identification_system |
| 55 | (m71InitialClassAlongEq (D.flow.metric 0) Q.identification_system |
| 56 | (ancestry.path_for_initial T hT J.terminal_point) Q.initial) |
| 57 | Q.hM61 Q.hM65 Q.hM58 Q.hM66 hM67 |
| 58 | |
| 59 | noncomputable def m71ClassLedger := |
| 60 | m69ClassLedgerFromM67 (m71WidthChoice Q J hM67).1 (m71WidthChoice Q J hM67).2 |
| 61 | |
| 62 | noncomputable def m71ComparisonInterval := |
| 63 | m69FullIntervalInput Q.hM61 (m71WidthChoice Q J hM67).1 (m71ClassLedger Q J hM67) |
| 64 | |
| 65 | theorem m71WidthChoice_initial_width : |
| 66 | (m71WidthChoice Q J hM67).1.width (m67InitialTime J.P) = |
| 67 | m61BasedClassWidth Q.identification_system.quotient Q.initial.metric |
| 68 | ancestry.initial_component.basepoint Q.initial.alpha := by |
| 69 | exact (m67AnchoredInitialWidth (m71WidthChoice Q J hM67).2).trans |
| 70 | (m71InitialClassAlongEq_width (D.flow.metric 0) Q.identification_system |
| 71 | (ancestry.path_for_initial T hT J.terminal_point) Q.initial) |
| 72 | |
| 73 | @[simp] theorem m71ComparisonInterval_start : |
| 74 | (m71ComparisonInterval Q J hM67).T₁ = 0 := rfl |
| 75 | |
| 76 | @[simp] theorem m71ComparisonInterval_end : |
| 77 | (m71ComparisonInterval Q J hM67).T₂ = T := rfl |
| 78 | |
| 79 | theorem m71FinitePieceApplication |
| 80 | (hM68 : M68ScalarClockStatement.{u}) (hM69 : M69FinitePieceStatement.{u}) : |
| 81 | Nonempty (M69FinitePieceConclusion (m71ClassLedger Q J hM67) |
| 82 | (m71ComparisonInterval Q J hM67) (m71WidthChoice Q J hM67).2.estimate) := by |
| 83 | obtain ⟨C, _hprofile⟩ := hM69 |
| 84 | (fun t _ ht => Q.comparison_bounds t (Set.mem_univ t) ht) |
| 85 | (fun t _ ht => Q.scalar_lower_bound t (Set.mem_univ t) ht) |
| 86 | Q.identification_system |
| 87 | (m71InitialClassAlongEq (D.flow.metric 0) Q.identification_system |
| 88 | (ancestry.path_for_initial T hT J.terminal_point) Q.initial) |
| 89 | Q.hM58 Q.hM66 hM67 hM68 |
| 90 | (m71ClassLedger Q J hM67) (m71ComparisonInterval Q J hM67) |
| 91 | exact ⟨C⟩ |
| 92 | |
| 93 | end PoincareMT |