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.Pinching.TransportedCarrier |
| 2 | import PoincareLib.Geometry.Riemannian.Tensor.MaximumPrinciple.Transport.Isometry |
| 3 | |
| 4 | /-! |
| 5 | # Local continuity of the transported pinching tensor |
| 6 | |
| 7 | Radial isometries for the initial metric provide fixed Hilbert tensor fibers. |
| 8 | The transported Ricci complement has jointly continuous coefficients in these |
| 9 | fibers, including the initial time. |
| 10 | |
| 11 | Reference: Morgan--Tian, Claim 3.16, p. 42; Theorem 4.8, p. 66. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Bundle Filter |
| 20 | open scoped Manifold ContDiff Topology InnerProductSpace BigOperators |
| 21 | open Poincare.HamiltonIvey |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.RicciFlow.Frame |
| 26 | |
| 27 | variable {M : Type u} [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 29 | {a b : ℝ} |
| 30 | |
| 31 | local instance (x : M) : FiniteDimensional ℝ (TangentSpace (𝓡 3) x) := by |
| 32 | unfold TangentSpace |
| 33 | infer_instance |
| 34 | |
| 35 | theorem contMDiffWithinAt_ricci_spacetime_fields |
| 36 | (F : RicciFlow 3 M (Ico a b)) {O : Set M} {t : ℝ} {x : M} |
| 37 | (ht : t ∈ Ico a b) (hx : x ∈ O) |
| 38 | (X Y : (p : ℝ × M) → TangentSpace (𝓡 3) p.2) |
| 39 | (hX : ContMDiffWithinAt (𝓘(ℝ, ℝ).prod (𝓡 3)) |
| 40 | ((𝓡 3).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin 3))) ∞ |
| 41 | (fun p => TotalSpace.mk' (EuclideanSpace ℝ (Fin 3)) p.2 (X p)) |
| 42 | (Ico a b ×ˢ O) (t, x)) |
| 43 | (hY : ContMDiffWithinAt (𝓘(ℝ, ℝ).prod (𝓡 3)) |
| 44 | ((𝓡 3).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin 3))) ∞ |
| 45 | (fun p => TotalSpace.mk' (EuclideanSpace ℝ (Fin 3)) p.2 (Y p)) |
| 46 | (Ico a b ×ˢ O) (t, x)) : |
| 47 | ContMDiffWithinAt (𝓘(ℝ, ℝ).prod (𝓡 3)) 𝓘(ℝ, ℝ) ∞ |
| 48 | (fun p => (F.connection p.1).ricci p.2 (X p) (Y p)) |
| 49 | (Ico a b ×ˢ O) (t, x) := by |
| 50 | have hsub : Ico a b ×ˢ O ⊆ Ico a b ×ˢ (univ : Set M) := |
| 51 | prod_mono Subset.rfl (subset_univ O) |
| 52 | have hR := ((contMDiffOn_ricciEndomorphism F) (t, x) |
| 53 | ⟨ht, mem_univ _⟩).mono hsub |
| 54 | have hG := (F.smooth (t, x) ⟨ht, mem_univ _⟩).mono hsub |
| 55 | have h := hG.clm_bundle_apply₂ (F₃ := ℝ) (E₃ := fun _ : M => ℝ) |
| 56 | (hR.clm_bundle_apply hX) hY |
| 57 | apply (contMDiffWithinAt_totalSpace.mp h).2.congr_of_eventuallyEq_of_mem |
| 58 | (hx := show (t, x) ∈ Ico a b ×ˢ O from ⟨ht, hx⟩) |
| 59 | filter_upwards [self_mem_nhdsWithin] with p hp |
| 60 | rw [metric_ricciEndomorphism_left, ricciBilin_apply F p.2 hp.1] |
| 61 | rfl |
| 62 | |
| 63 | end PoincareMT.RicciFlow.Frame |