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.Generalized.ReducedGeometry.Variation.Coordinates.IntervalLift |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Basic |
| 3 | |
| 4 | /-! |
| 5 | # The actual backward clock in a captured interval |
| 6 | |
| 7 | Morgan-Tian Definition 3.38, p. 61, and Definitions 6.1 and 6.7, |
| 8 | pp. 105, 108. The total clock uses an arbitrary fixed interval point |
| 9 | outside its valid range. On every stated valid set its actual value is |
| 10 | T-s, and M13's interval charts give within smoothness, including the |
| 11 | closed square-time endpoints used to identify normalized initial data. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {K : SpacetimeInterval} (J : SmoothSpacetimeInterval K) |
| 22 | |
| 23 | /-- A total lift of the actual backward clock with a fixed value only |
| 24 | outside the valid interval, Definition 6.1, p. 105. -/ |
| 25 | noncomputable def ordinaryCaptureClock (t₀ : J.Point) (T s : ℝ) : J.Point := |
| 26 | by |
| 27 | classical |
| 28 | exact if h : T - s ∈ K.domain then ⟨T - s, h⟩ else t₀ |
| 29 | |
| 30 | /-- The clock equals its prescribed real value on its valid domain, |
| 31 | Definition 6.1, p. 105. -/ |
| 32 | theorem ordinaryCaptureClock_val (t₀ : J.Point) (T : ℝ) {s : ℝ} |
| 33 | (hs : T - s ∈ K.domain) : (ordinaryCaptureClock J t₀ T s).val = T - s := by |
| 34 | simp only [ordinaryCaptureClock, dif_pos hs] |
| 35 | |
| 36 | /-- At elapsed time zero the lifted clock recovers its actual base |
| 37 | interval point, Definition 6.1, p. 105. -/ |
| 38 | theorem ordinaryCaptureClock_zero (t₀ : J.Point) : |
| 39 | ordinaryCaptureClock J t₀ t₀.val 0 = t₀ := by |
| 40 | apply Subtype.ext |
| 41 | simpa only [sub_zero] using ordinaryCaptureClock_val J t₀ t₀.val |
| 42 | (show t₀.val - 0 ∈ K.domain by simpa only [sub_zero] using t₀.property) |
| 43 | |
| 44 | /-- Smoothness holds within every actual valid backward-time set, |
| 45 | including interval endpoints, Definition 3.38, p. 61. -/ |
| 46 | theorem ordinaryCaptureClock_contMDiffOn (t₀ : J.Point) (T : ℝ) {S : Set ℝ} |
| 47 | (hS : ∀ s ∈ S, T - s ∈ K.domain) : |
| 48 | ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡∂ 1) ∞ (ordinaryCaptureClock J t₀ T) S := by |
| 49 | apply intervalLift_contMDiffOn |
| 50 | exact (contMDiff_const.sub contMDiff_id).contMDiffOn.congr |
| 51 | (fun s hs => ordinaryCaptureClock_val J t₀ T (hS s hs)) |
| 52 | |
| 53 | end PoincareMT.M14 |