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.SourceNames.LGeometry |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Calculus.ODE.Local.ClosedPicardSmooth |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Calculus.ODE.Local.ClosedPicardEquation |
| 4 | |
| 5 | /-! |
| 6 | # Smooth initial-state dependence of an actual closed ODE family |
| 7 | |
| 8 | Morgan-Tian Lemma 6.18, pp. 113-114. A supplied continuous path-valued |
| 9 | family satisfies the actual Picard equation. The common implicit-family |
| 10 | uniqueness neighborhood identifies it locally with the smooth family. |
| 11 | Thus the original family is smooth in its initial state, in the sup path |
| 12 | norm, under the explicit short-interval state-derivative bound. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Topology ContDiff |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 23 | {a b : ℝ} |
| 24 | |
| 25 | /-- A continuous family of actual closed-time initial-value solutions |
| 26 | is smooth in the initial state when the reference path satisfies the |
| 27 | explicit smallness bound, the local smooth-dependence assertion of |
| 28 | Lemma 6.18, pp. 113-114. The conclusion is in the sup path norm. -/ |
| 29 | theorem closedODEFamily_contDiffAt (hab : a < b) (t₀ : Icc a b) |
| 30 | (f : ℝ × E → E) (hf : ContDiffOn ℝ ∞ f (Icc a b ×ˢ univ)) |
| 31 | (α : E → C(Icc a b, E)) {x₀ : E} (hα : ContinuousAt α x₀) |
| 32 | (hi : ∀ᶠ x in 𝓝 x₀, α x t₀ = x) |
| 33 | (hode : ∀ᶠ x in 𝓝 x₀, ∀ r : Icc a b, HasDerivWithinAt |
| 34 | (fun s => α x (projIcc a b (t₀.property.1.trans t₀.property.2) s)) |
| 35 | (f (r.val, α x r)) (Icc a b) r.val) |
| 36 | (hsmall : (b - a) * ‖closedTimePostcomp (M08.spatialWithinFDeriv (Icc a b) univ f) |
| 37 | (M08.spatialWithinFDeriv_contDiffOn (uniqueDiffOn_Icc hab) isOpen_univ f hf).continuousOn |
| 38 | (α x₀)‖ < 1) : |
| 39 | ContDiffAt ℝ ∞ α x₀ := by |
| 40 | have heq : ∀ᶠ x in 𝓝 x₀, α x = ContinuousMap.const _ x + |
| 41 | closedPathPrimitive t₀ (closedTimePostcomp f hf.continuousOn (α x)) := by |
| 42 | filter_upwards [hi, hode] with x hx hd |
| 43 | have h := closedPath_picard_equation_of_ode t₀ f hf.continuousOn (α x) hd |
| 44 | rwa [hx] at h |
| 45 | obtain ⟨σ, U, W, hU, hxU, hW, hxW, _, hσ, _, huniq⟩ := |
| 46 | exists_closedPicard_smooth_family hab t₀ f hf x₀ (α x₀) heq.self_of_nhds hsmall |
| 47 | have hgraph : Tendsto (fun x => (x, α x)) (𝓝 x₀) (𝓝 (x₀, α x₀)) := |
| 48 | (continuousAt_id.prodMk hα).tendsto |
| 49 | have hsame : α =ᶠ[𝓝 x₀] σ := by |
| 50 | filter_upwards [heq, hgraph.eventually (hW.mem_nhds hxW)] with x hx hxW |
| 51 | exact ((huniq (x, α x) hxW).mp hx).symm |
| 52 | exact (hσ.contDiffAt (hU.mem_nhds hxU)).congr_of_eventuallyEq hsame |
| 53 | |
| 54 | end PoincareMT.M14 |