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.Control.Basic |
| 2 | |
| 3 | /-! |
| 4 | # Restricting existing scalar derivative controls |
| 5 | |
| 6 | These logical consequences retain the same ordinary slabs and analytic |
| 7 | constant. They produce no control at new times. |
| 8 | -/ |
| 9 | |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | /-- Restrict an actual derivative estimate to a smaller set of times. -/ |
| 17 | theorem SurgeryScalarDerivativeControlOn.restrict |
| 18 | {F : SurgeryFlowData.{u}} {J J' : Set ℝ} {r C : ℝ} |
| 19 | (h : SurgeryScalarDerivativeControlOn F J r C) (hJ : J' ⊆ J) : |
| 20 | SurgeryScalarDerivativeControlOn F J' r C := by |
| 21 | intro a b hab hI hS x t ht hR |
| 22 | exact h a b hab hI hS x t ⟨hJ ht.1, ht.2⟩ hR |
| 23 | |
| 24 | /-- A smaller positive radius raises the curvature threshold, so the existing |
| 25 | estimate still applies to every tested point. -/ |
| 26 | theorem SurgeryScalarDerivativeControlOn.of_radius_le |
| 27 | {F : SurgeryFlowData.{u}} {J : Set ℝ} {r r' C : ℝ} |
| 28 | (h : SurgeryScalarDerivativeControlOn F J r C) |
| 29 | (hr' : 0 < r') (hr : r' ≤ r) : |
| 30 | SurgeryScalarDerivativeControlOn F J r' C := by |
| 31 | have hthreshold : r⁻¹ ^ 2 ≤ (r')⁻¹ ^ 2 := by |
| 32 | gcongr |
| 33 | exact inv_nonneg.mpr (hr'.le.trans hr) |
| 34 | intro a b hab hI hS x t ht hR |
| 35 | exact h a b hab hI hS x t ht (hthreshold.trans hR) |
| 36 | |
| 37 | end PoincareMT |