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.Basic |
| 2 | |
| 3 | /-! |
| 4 | # Literal ordinary restrictions for the normalized start |
| 5 | |
| 6 | Morgan--Tian Definitions 3.1-3.2, p. 35. Restriction changes only the domain |
| 7 | on which smoothness and the Ricci equation are asserted; both total metric |
| 8 | and connection representatives are retained. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set |
| 14 | open scoped Manifold ContDiff |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.M51Ordinary |
| 19 | |
| 20 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 22 | {J K : Set ℝ} |
| 23 | |
| 24 | def restrict (F : RicciFlow n M J) (hKJ : K ⊆ J) |
| 25 | (hK : K.OrdConnected) (hne : K.Nontrivial) : RicciFlow n M K where |
| 26 | metric := F.metric |
| 27 | connection := F.connection |
| 28 | interval := hK |
| 29 | nontrivial := hne |
| 30 | smooth := F.smooth.mono (Set.prod_mono hKJ (Subset.refl _)) |
| 31 | equation t ht x v w := (F.equation t (hKJ ht) x v w).mono hKJ |
| 32 | |
| 33 | @[simp] theorem restrict_metric (F : RicciFlow n M J) (hKJ : K ⊆ J) |
| 34 | (hK : K.OrdConnected) (hne : K.Nontrivial) (t : ℝ) : |
| 35 | (restrict F hKJ hK hne).metric t = F.metric t := rfl |
| 36 | |
| 37 | @[simp] theorem restrict_connection (F : RicciFlow n M J) (hKJ : K ⊆ J) |
| 38 | (hK : K.OrdConnected) (hne : K.Nontrivial) (t : ℝ) : |
| 39 | (restrict F hKJ hK hne).connection t = F.connection t := rfl |
| 40 | |
| 41 | end PoincareMT.M51Ordinary |