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.AnnularEvolution.Plateau.Stabilization.Curve.Lift |
| 2 | |
| 3 | /-! |
| 4 | # Constant auxiliary lifts of the actual C2 curve-shortening flow |
| 5 | |
| 6 | The same inclusion pushes the closed velocity and curvature fields |
| 7 | continuously. Its exact horizontal curvature identity preserves the |
| 8 | pure-normal equation on the original time set. |
| 9 | |
| 10 | Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. |
| 11 | 447-449. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Bundle Set |
| 18 | open scoped Manifold ContDiff Topology |
| 19 | |
| 20 | namespace PoincareMT.M64 |
| 21 | |
| 22 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference : ℝ} |
| 25 | |
| 26 | /-- Lift the actual C2 shrinking curve, including closed velocity and curvature fields and |
| 27 | the evolution equation. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ |
| 28 | theorem auxiliaryCircle_c2ShrinkingCurve |
| 29 | (P : M62.CircleProductData F circumference) (q : P.circle.Point) |
| 30 | {c : ℝ → ℝ → M} {J : Set ℝ} (hc : M63C2ShrinkingCurveOn F c J) : |
| 31 | M63C2ShrinkingCurveOn P.flow (fun x t => auxiliaryCircleSection P q (c x t)) J := by |
| 32 | let d := fun x t => auxiliaryCircleSection P q (c x t) |
| 33 | have he := auxiliaryCircle_section_contMDiff P q |
| 34 | have hdiff (t : ℝ) (ht : t ∈ J) (x : ℝ) : |
| 35 | MDifferentiableAt 𝓘(ℝ, ℝ) (𝓡 n) (fun y => c y t) x := |
| 36 | (hc.spatial_regular t ht).mdifferentiableAt (by norm_num) |
| 37 | have hpush := he.continuous_tangentMap (by simp) |
| 38 | have hvel := hpush.comp_continuousOn hc.velocity_continuous |
| 39 | have hcurv := hpush.comp_continuousOn hc.curvature_continuous |
| 40 | refine |
| 41 | { domain_subset := hc.domain_subset |
| 42 | periodic := fun t ht x => ?_ |
| 43 | spatial_regular := fun t ht => |
| 44 | (he.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)).comp |
| 45 | (hc.spatial_regular t ht) |
| 46 | joint_c1 := (he.of_le (by simp)).comp_contMDiffOn hc.joint_c1 |
| 47 | immersed := fun t ht x hzero => ?_ |
| 48 | continuous := he.continuous.comp_continuousOn hc.continuous |
| 49 | velocity_continuous := hvel.congr (fun z hz => ?_) |
| 50 | curvature_continuous := hcurv.congr (fun z hz => ?_) |
| 51 | equation := fun t ht x => ?_ } |
| 52 | · change auxiliaryCircleSection P q (c (x + curvePeriod) t) = |
| 53 | auxiliaryCircleSection P q (c x t) |
| 54 | exact congrArg (auxiliaryCircleSection P q) (hc.periodic t ht x) |
| 55 | · apply hc.immersed t ht x |
| 56 | have hs := auxiliaryCircle_curveVelocity_split P q (hdiff t ht x) |
| 57 | change curveVelocity (auxiliaryCircleSection P q ∘ fun y => c y t) x = 0 at hzero |
| 58 | rw [hzero, map_zero] at hs |
| 59 | exact (congrArg Prod.fst hs).symm |
| 60 | · change (⟨d z.1 z.2, curveVelocity (fun y => d y z.2) z.1⟩ : |
| 61 | TangentBundle (𝓡 (n + 1)) P.charts.Point) = _ |
| 62 | apply congrArg (fun v => (⟨d z.1 z.2, v⟩ : TangentBundle (𝓡 (n + 1)) P.charts.Point)) |
| 63 | exact auxiliaryCircle_curveVelocity_eq P q (hdiff z.2 hz.2 z.1) |
| 64 | · change (⟨d z.1 z.2, m62CurvatureVector P.flow d z.2 z.1⟩ : |
| 65 | TangentBundle (𝓡 (n + 1)) P.charts.Point) = _ |
| 66 | apply congrArg (fun v => (⟨d z.1 z.2, v⟩ : TangentBundle (𝓡 (n + 1)) P.charts.Point)) |
| 67 | exact auxiliaryCircle_curvatureVector_eq P q c z.2 (hc.spatial_regular z.2 hz.2) |
| 68 | (hc.immersed z.2 hz.2) z.1 |
| 69 | · have hmem : (x, t) ∈ univ ×ˢ interior J := ⟨mem_univ _, ht⟩ |
| 70 | have htime : MDifferentiableAt 𝓘(ℝ, ℝ) 𝓘(ℝ, ℝ × ℝ) |
| 71 | (fun s : ℝ => (x, s)) t := |
| 72 | ((differentiableAt_const x).prodMk differentiableAt_id).mdifferentiableAt |
| 73 | have hct : MDifferentiableAt 𝓘(ℝ, ℝ) (𝓡 n) (fun s => c x s) t := |
| 74 | (((hc.joint_c1 (x, t) hmem).contMDiffAt |
| 75 | ((isOpen_univ.prod isOpen_interior).mem_nhds hmem)).mdifferentiableAt |
| 76 | (by norm_num)).comp t htime |
| 77 | change curveVelocity (auxiliaryCircleSection P q ∘ fun s => c x s) t = _ |
| 78 | rw [auxiliaryCircle_curveVelocity_eq P q hct, hc.equation t ht x] |
| 79 | exact (auxiliaryCircle_curvatureVector_eq P q c t |
| 80 | (hc.spatial_regular t (interior_subset ht)) |
| 81 | (hc.immersed t (interior_subset ht)) x).symm |
| 82 | |
| 83 | end PoincareMT.M64 |