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.Exponential.Action.ActionSmooth |
| 2 | |
| 3 | /-! |
| 4 | # Open initial-vector slices and smooth common exponential prefixes |
| 5 | |
| 6 | Morgan-Tian Lemmas 6.18 and 6.22, pp. 113-116. |
| 7 | Relative physical openness gives ordinary openness in initial vectors |
| 8 | at fixed time. Actual IVP coherence supplies common closed prefixes |
| 9 | for every supplied family, and joint action smoothness restricts to |
| 10 | ordinary smoothness in the initial vector. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M14 |
| 21 | |
| 22 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 23 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 24 | {T : ℝ} {x : G.Point} |
| 25 | |
| 26 | /-- A fixed square-time survival slice is open in the initial vector, |
| 27 | also at physical boundary times, Lemma 6.18, pp. 113-114. -/ |
| 28 | theorem exponentialFamily_domain_slice_isOpen (E : M14ExponentialFamily G T x) (s : ℝ) : |
| 29 | IsOpen {Z | (Z, s) ∈ E.domain} := by |
| 30 | rw [isOpen_iff_mem_nhds] |
| 31 | intro Z hZ |
| 32 | obtain ⟨U, hU, hZU, hsub⟩ := E.domain_relative_open (Z, s) hZ |
| 33 | have hcont : Continuous (fun W : G.Horizontal x => (W, s)) := |
| 34 | continuous_id.prodMk continuous_const |
| 35 | apply mem_of_superset ((hU.preimage hcont).mem_nhds hZU) |
| 36 | intro W hW |
| 37 | exact hsub ⟨hW, (E.domain_admissible hZ).1, (E.domain_admissible hZ).2⟩ |
| 38 | |
| 39 | /-- The supplied exponential map has an ordinary smooth initial-vector |
| 40 | slice at every surviving pair, Lemma 6.18, pp. 113-114. -/ |
| 41 | theorem exponentialFamily_gamma_slice_contMDiffAt (E : M14ExponentialFamily G T x) |
| 42 | {Z : G.Horizontal x} {s : ℝ} (hs : (Z, s) ∈ E.domain) : |
| 43 | letI : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 44 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 45 | ContMDiffAt (𝓘(ℝ, G.Horizontal x)) (spacetimeModel n) ∞ (fun W => E.gamma W s) Z := by |
| 46 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 47 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 48 | have h : ContMDiffOn (𝓘(ℝ, G.Horizontal x)) (spacetimeModel n) ∞ |
| 49 | (fun W => E.gamma W s) {W | (W, s) ∈ E.domain} := |
| 50 | E.family_smooth.comp (contMDiff_id.prodMk (contMDiff_const (c := s))).contMDiffOn |
| 51 | (fun _ hW => hW) |
| 52 | exact (h Z hs).contMDiffAt ((exponentialFamily_domain_slice_isOpen E s).mem_nhds hs) |
| 53 | |
| 54 | /-- Every supplied family has a common smooth closed survival prefix |
| 55 | near each surviving initial vector, Lemma 6.18, pp. 113-114. -/ |
| 56 | theorem exponentialFamily_smooth_prefix |
| 57 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 58 | (E : M14ExponentialFamily G T x) {Z : G.Horizontal x} {s : ℝ} |
| 59 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s) : |
| 60 | ∃ U : Set (G.Horizontal x), IsOpen U ∧ Z ∈ U ∧ U ×ˢ Icc 0 s ⊆ E.domain ∧ |
| 61 | M14HorizontalFamilySmooth G E.gamma (U ×ˢ Icc 0 s) := by |
| 62 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 63 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 64 | have hsurv : (Z, s) ∈ initialValueDomain G T x := exponentialFamily_domain_eq E ▸ hs |
| 65 | obtain ⟨U, hU, hZU, htube, _⟩ := |
| 66 | initialValueCurve_smooth_prefix hM04 hM12 E.base_time hpos hsurv |
| 67 | rw [← exponentialFamily_domain_eq E] at htube |
| 68 | exact ⟨U, hU, hZU, htube, E.family_smooth.mono htube⟩ |
| 69 | |
| 70 | /-- The actual action has an ordinary smooth initial-vector slice |
| 71 | at every positive surviving pair, including physical boundary times, |
| 72 | Lemma 6.22, pp. 115-116. -/ |
| 73 | theorem exponentialFamily_action_slice_contMDiffAt |
| 74 | (hM04 : RicciFlowCurvatureTheory.{0}) (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 75 | (E : M14ExponentialFamily G T x) {Z : G.Horizontal x} {s : ℝ} |
| 76 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s) : |
| 77 | letI : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 78 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 79 | ContMDiffAt (𝓘(ℝ, G.Horizontal x)) (𝓘(ℝ, ℝ)) ∞ (fun W => E.action W s) Z := by |
| 80 | let : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 81 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 82 | have h : ContMDiffOn (𝓘(ℝ, G.Horizontal x)) (𝓘(ℝ, ℝ)) ∞ |
| 83 | (fun W => E.action W s) {W | (W, s) ∈ E.domain} := |
| 84 | (exponentialFamily_action_smooth hM04 hM12 E).comp |
| 85 | (contMDiff_id.prodMk (contMDiff_const (c := s))).contMDiffOn (fun _ hW => ⟨hW, hpos⟩) |
| 86 | exact (h Z hs).contMDiffAt ((exponentialFamily_domain_slice_isOpen E s).mem_nhds hs) |
| 87 | |
| 88 | end PoincareMT.M14 |