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.Families.ParameterizedGaugeFamily |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Calculus.Local.CompactFamilyTube |
| 3 | |
| 4 | /-! |
| 5 | # Admissibility and exact identities of gauge translations |
| 6 | |
| 7 | Morgan-Tian Proposition 6.30, pp. 118-119. A compact relative tube |
| 8 | keeps every actual spatial shift admissible near a zero displacement. |
| 9 | The translation preserves the actual clock and has exact recovery and |
| 10 | marked-target identities. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | namespace PoincareMT.M14 |
| 20 | |
| 21 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 22 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 23 | {P : Type v} (f : ℝ × P → G.Point) (j : G.gaugeCover.index) |
| 24 | (lift : G.Point → (G.timeIntervals.interval (G.gaugeCover.interval j)).Point × |
| 25 | G.gaugeCover.spatial j) (χ : ℝ → ℝ) (d : P → EuclideanSpace ℝ (Fin n)) |
| 26 | |
| 27 | /-- The original family is retained off the cutoff support, |
| 28 | Proposition 6.30, pp. 118-119. -/ |
| 29 | theorem supportedGaugeTranslateFamily_eq_of_not_tsupport {z : ℝ × P} |
| 30 | (hs : z.1 ∉ tsupport χ) : supportedGaugeTranslateFamily f j lift χ d z = f z := by |
| 31 | simp only [supportedGaugeTranslateFamily, if_neg hs] |
| 32 | |
| 33 | /-- Zero parameter displacement recovers the actual central curve |
| 34 | where the inverse gauge reconstructs it, Proposition 6.30, pp. 118-119. -/ |
| 35 | theorem supportedGaugeTranslateFamily_eq_of_zero {z : ℝ × P} |
| 36 | (hz : (G.gaugeCover.cylinder j).toSpacetime (lift (f z)) = f z) (hd : d z.2 = 0) : |
| 37 | supportedGaugeTranslateFamily f j lift χ d z = f z := by |
| 38 | rw [supportedGaugeTranslateFamily_eq_gauge f j lift χ d hz] |
| 39 | simp only [gaugeTranslateFamily, hd, smul_zero, |
| 40 | TopologicalSpace.Opens.affineShift_zero, Prod.mk.eta, hz] |
| 41 | |
| 42 | /-- Spatial translation retains the actual time coordinate, |
| 43 | Proposition 6.30, pp. 118-119. -/ |
| 44 | theorem supportedGaugeTranslateFamily_time {z : ℝ × P} |
| 45 | (hz : z.1 ∈ tsupport χ → (G.gaugeCover.cylinder j).toSpacetime (lift (f z)) = f z) : |
| 46 | G.spacetime.timeFunction (supportedGaugeTranslateFamily f j lift χ d z) = |
| 47 | G.spacetime.timeFunction (f z) := by |
| 48 | by_cases hs : z.1 ∈ tsupport χ |
| 49 | · rw [supportedGaugeTranslateFamily_eq_gauge f j lift χ d (hz hs)] |
| 50 | simp only [gaugeTranslateFamily, (G.gaugeCover.cylinder j).time_eq] |
| 51 | exact ((G.gaugeCover.cylinder j).time_eq (lift (f z))).symm.trans |
| 52 | (congrArg G.spacetime.timeFunction (hz hs)) |
| 53 | · rw [supportedGaugeTranslateFamily_eq_of_not_tsupport f j lift χ d hs] |
| 54 | |
| 55 | /-- At a unit cutoff value the endpoint translation gives the exact |
| 56 | prescribed spatial point in the gauge, Proposition 6.30, pp. 118-119. -/ |
| 57 | theorem supportedGaugeTranslateFamily_eq_target {z : ℝ × P} |
| 58 | (hz : (G.gaugeCover.cylinder j).toSpacetime (lift (f z)) = f z) |
| 59 | (hχ : χ z.1 = 1) (y : G.gaugeCover.spatial j) |
| 60 | (hd : d z.2 = y.val - (lift (f z)).2.val) : |
| 61 | supportedGaugeTranslateFamily f j lift χ d z = |
| 62 | (G.gaugeCover.cylinder j).toSpacetime ((lift (f z)).1, y) := by |
| 63 | rw [supportedGaugeTranslateFamily_eq_gauge f j lift χ d hz] |
| 64 | have hshift : (lift (f z)).2.val + χ z.1 • d z.2 ∈ G.gaugeCover.spatial j := by |
| 65 | rw [hχ, one_smul, hd, add_comm, sub_add_cancel] |
| 66 | exact y.property |
| 67 | have hpoint : (G.gaugeCover.spatial j).affineShift (lift (f z)).2 (χ z.1 • d z.2) = y := by |
| 68 | apply Subtype.ext |
| 69 | rw [(G.gaugeCover.spatial j).affineShift_val hshift, hχ, one_smul, hd, |
| 70 | add_comm, sub_add_cancel] |
| 71 | simp only [gaugeTranslateFamily, hpoint] |
| 72 | |
| 73 | variable [TopologicalSpace P] |
| 74 | |
| 75 | /-- All supported spatial translations are admissible on one open |
| 76 | parameter neighborhood of a zero displacement, including closed time |
| 77 | endpoints, Proposition 6.30, pp. 118-119. -/ |
| 78 | theorem exists_supportedGaugeTranslate_tube {C : Set ℝ} {U : Set P} {V : Set G.Point} |
| 79 | (hC : IsCompact C) (hU : IsOpen U) (hf : ContinuousOn f (C ×ˢ U)) |
| 80 | (hlift : ContinuousOn lift V) (hχ : Continuous χ) (hd : ContinuousOn d U) |
| 81 | (hsrc : ∀ z ∈ C ×ˢ U, z.1 ∈ tsupport χ → f z ∈ V) |
| 82 | {p : P} (hp : p ∈ U) (hdp : d p = 0) : |
| 83 | ∃ N : Set P, IsOpen N ∧ p ∈ N ∧ N ⊆ U ∧ |
| 84 | ∀ z ∈ C ×ˢ N, z.1 ∈ tsupport χ → |
| 85 | (lift (f z)).2.val + χ z.1 • d z.2 ∈ G.gaugeCover.spatial j := by |
| 86 | let K := C ∩ tsupport χ |
| 87 | have hK : IsCompact K := hC.inter_right (isClosed_tsupport χ) |
| 88 | have hL : ContinuousOn (fun z : ℝ × P => lift (f z)) (K ×ˢ U) := |
| 89 | hlift.comp (hf.mono (fun _ hz => ⟨hz.1.1, hz.2⟩)) |
| 90 | (fun z hz => hsrc z ⟨hz.1.1, hz.2⟩ hz.1.2) |
| 91 | let F := fun z : ℝ × P => (lift (f z)).2.val + χ z.1 • d z.2 |
| 92 | have hF : ContinuousOn F (K ×ˢ U) := |
| 93 | (continuous_subtype_val.comp_continuousOn hL.snd).add |
| 94 | ((hχ.comp continuous_fst).continuousOn.smul |
| 95 | (hd.comp continuousOn_snd (fun _ hz => hz.2))) |
| 96 | have hcenter (s : ℝ) (_hs : s ∈ K) : F (s, p) ∈ G.gaugeCover.spatial j := by |
| 97 | simpa only [F, hdp, smul_zero, add_zero] using (lift (f (s, p))).2.property |
| 98 | obtain ⟨N, hN, hpN, hNU, hshift⟩ := exists_open_parameter_tube hK hU hF |
| 99 | (G.gaugeCover.spatial j).isOpen hp hcenter |
| 100 | exact ⟨N, hN, hpN, hNU, fun z hz hs => hshift z.1 ⟨hz.1, hs⟩ z.2 hz.2⟩ |
| 101 | |
| 102 | end PoincareMT.M14 |