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.CurveShortening.Comparison.Theory |
| 2 | |
| 3 | /-! |
| 4 | # Proposition 19.35: boundary-length bookkeeping |
| 5 | |
| 6 | The intrinsic boundary speed is a metric tangent norm, hence nonnegative. |
| 7 | These interval-integral lemmas are the small analytic facts used when the |
| 8 | absolute-turning hypotheses are split into subarcs. |
| 9 | |
| 10 | Context: Morgan--Tian Proposition 19.35, printed pp. 467-481; actual intrinsic |
| 11 | boundary, scalar comparison or endpoint assembly. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle intervalIntegral |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | /-- The exact intrinsic circle speed is nonnegative. Source: MT Proposition 19.35, pp. |
| 22 | 467-481; `reports/2026-09-23-intrinsic-assembly.md`. -/ |
| 23 | theorem m64Intrinsic_boundarySpeed_nonneg (N : IntrinsicAnnulus) |
| 24 | (radius x : ℝ) : |
| 25 | 0 ≤ intrinsicBoundarySpeed N.metric radius x := by |
| 26 | exact Real.sqrt_nonneg _ |
| 27 | |
| 28 | /-- The intrinsic boundary length is nonnegative on an ordered parameter interval. Source: |
| 29 | MT Proposition 19.35, pp. 467-481; `reports/2026-09-23-intrinsic-assembly.md`. -/ |
| 30 | theorem m64Intrinsic_boundaryLength_nonneg (N : IntrinsicAnnulus) |
| 31 | (radius a b : ℝ) (hab : a ≤ b) : |
| 32 | 0 ≤ intrinsicBoundaryLength N.metric radius a b := by |
| 33 | unfold intrinsicBoundaryLength |
| 34 | exact intervalIntegral.integral_nonneg hab |
| 35 | (fun _ _ => m64Intrinsic_boundarySpeed_nonneg N radius _) |
| 36 | |
| 37 | /-- The exact absolute geodesic-curvature integral is nonnegative on an ordered interval. |
| 38 | Source: MT Proposition 19.35, pp. 467-481; `reports/2026-09-23-intrinsic-assembly.md`. -/ |
| 39 | theorem m64Intrinsic_geodesicCurvatureIntegral_nonneg (N : IntrinsicAnnulus) |
| 40 | (radius a b : ℝ) (hab : a ≤ b) : |
| 41 | 0 ≤ intrinsicGeodesicCurvatureIntegral N.metric N.connection radius a b := by |
| 42 | unfold intrinsicGeodesicCurvatureIntegral |
| 43 | apply intervalIntegral.integral_nonneg hab |
| 44 | intro x _ |
| 45 | exact mul_nonneg (Real.sqrt_nonneg _) (m64Intrinsic_boundarySpeed_nonneg N radius x) |
| 46 | |
| 47 | end PoincareMT |