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.MinimizingRegion.Configuration |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Assembly.Configuration |
| 3 | import PoincareLib.Geometry.RicciFlow.Curvature.Construction |
| 4 | |
| 5 | /-! |
| 6 | # The minimizing-region producer on the selected surgery history |
| 7 | |
| 8 | Proposition 16.4, p. 369. The actual M33 history contains the complete |
| 9 | required closed strip. M14 supplies one geometry conclusion and one |
| 10 | exponential family on that same history. The scalar continuity and |
| 11 | comparison endpoints substitute directly into the pinned producer. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.Proofs.M46 |
| 23 | |
| 24 | /-- The generic minimizing-region assembly applies to the actual |
| 25 | included M33 history without extending it across its terminal time. |
| 26 | Source: Proposition 16.4, p. 369. -/ |
| 27 | theorem actualHistory_minimizingRegion_of_slice_comparison |
| 28 | (P : M46Predecessors.{u}) {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} |
| 29 | (D : NoncollapseTest F O) (H : HalfRadiusHistory D) {start : ℝ} (hstart : 0 ≤ start) |
| 30 | (C : ActionConfinement H.spacetime.geometry.toLGeometry D.time start |
| 31 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val) |
| 32 | (hcontinuous : ∀ a c : ℝ, 0 < a → c ^ 2 ≤ D.time - start → |
| 33 | ContinuousOn (cappedSliceAction H.spacetime.geometry.toLGeometry D.time |
| 34 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val |
| 35 | C.barrier) (Icc a c)) |
| 36 | (hbound : ∀ b : ℝ, 0 < b → b ^ 2 ≤ D.time - start → |
| 37 | cappedSliceAction H.spacetime.geometry.toLGeometry D.time |
| 38 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val |
| 39 | C.barrier b ≤ 3 * b) : |
| 40 | Nonempty (MinimizingRegion H.spacetime.geometry.toLGeometry D.time start |
| 41 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val C) := by |
| 42 | let G := H.spacetime.geometry.toLGeometry |
| 43 | let x : G.Point := |
| 44 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val |
| 45 | have hbase : G.spacetime.timeFunction x = D.time := |
| 46 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).property |
| 47 | have hstrip : Icc start D.time ⊆ H.spacetime.history.generalized.interval := by |
| 48 | rw [H.spacetime.history.interval_eq] |
| 49 | intro t ht |
| 50 | exact ⟨hstart.trans ht.1, ht.2⟩ |
| 51 | obtain ⟨LG⟩ := P.m14.conclusion _ _ _ G |
| 52 | obtain ⟨E⟩ := LG.exponential.family D.time x hbase |
| 53 | exact minimizingRegion_nonempty_of_slice_comparison ricciFlowCurvatureTheory.{0} |
| 54 | P.m12 LG E C hstrip hcontinuous hbound |
| 55 | |
| 56 | /-- The two scalar proof endpoints substitute into the literal |
| 57 | `MinimizingRegionProducer`; no additional premise enters the public M46 |
| 58 | statement. Source: Proposition 16.4, p. 369 and pp. 389-391. -/ |
| 59 | theorem minimizingRegionProducer_of_slice_comparison |
| 60 | (P : M46Predecessors.{u}) {K : MetricSurgeryConstants} |
| 61 | (p : SurgeryParameterPrefix K) (rNext cutoff rho : ℝ) |
| 62 | (hcontinuous : ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 63 | ObservedInputs p rNext cutoff F O → |
| 64 | ∀ (D : NoncollapseTest F O) (H : HalfRadiusHistory D), |
| 65 | surgeryEpochStart p.i ≤ D.time → rho ≤ D.radius → |
| 66 | ∀ C : ActionConfinement H.spacetime.geometry.toLGeometry |
| 67 | D.time (surgeryEpochStart (p.i - 1)) |
| 68 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val, |
| 69 | C.barrier = actionBudget p → ∀ a c : ℝ, |
| 70 | 0 < a → c ^ 2 ≤ D.time - surgeryEpochStart (p.i - 1) → |
| 71 | ContinuousOn (cappedSliceAction H.spacetime.geometry.toLGeometry D.time |
| 72 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val |
| 73 | C.barrier) (Icc a c)) |
| 74 | (hbound : ∀ (F : SurgeryFlowData.{u}) (O : SurgeryObservation F), |
| 75 | ObservedInputs p rNext cutoff F O → |
| 76 | ∀ (D : NoncollapseTest F O) (H : HalfRadiusHistory D), |
| 77 | surgeryEpochStart p.i ≤ D.time → rho ≤ D.radius → |
| 78 | ∀ C : ActionConfinement H.spacetime.geometry.toLGeometry |
| 79 | D.time (surgeryEpochStart (p.i - 1)) |
| 80 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val, |
| 81 | C.barrier = actionBudget p → ∀ b : ℝ, |
| 82 | 0 < b → b ^ 2 ≤ D.time - surgeryEpochStart (p.i - 1) → |
| 83 | cappedSliceAction H.spacetime.geometry.toLGeometry D.time |
| 84 | ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val |
| 85 | C.barrier b ≤ 3 * b) : |
| 86 | MinimizingRegionProducer.{u} p rNext cutoff rho := by |
| 87 | intro F O inputs D H htime hr C hbarrier |
| 88 | apply actualHistory_minimizingRegion_of_slice_comparison P D H |
| 89 | (by unfold surgeryEpochStart; positivity) C |
| 90 | · exact hcontinuous F O inputs D H htime hr C hbarrier |
| 91 | · exact hbound F O inputs D H htime hr C hbarrier |
| 92 | |
| 93 | end PoincareMT.Proofs.M46 |