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.Paths.Joining.PrefixJoinGauge |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Variation.Extension.ContinuousPotential |
| 3 | |
| 4 | /-! |
| 5 | # Uniform actual action coefficients near a prefix join |
| 6 | |
| 7 | One compact time-space gauge region controls the actual weighted |
| 8 | metric operator and scalar potential independently of the transition |
| 9 | width. Morgan-Tian Proposition 6.30, pp. 118-119. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | -- The ordinary spatial chart uses its prescribed Euclidean operator spaces. |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M14.PrefixJoinGauge |
| 22 | |
| 23 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 24 | {I : SpacetimeInterval} {G : GeneralizedLGeometryTransport n X time I} |
| 25 | {T τ₁ τ₂ c : ℝ} {x y : G.Point} |
| 26 | {q : M14BackwardPath G T τ₁ τ₂ x y} |
| 27 | {p : M14BackwardPath G T τ₁ c x (q.curve c)} (D : PrefixJoinGauge q p) |
| 28 | |
| 29 | private noncomputable local instance dualNormedGroup : |
| 30 | NormedAddCommGroup (EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 31 | ContinuousLinearMap.toNormedAddCommGroup |
| 32 | |
| 33 | private noncomputable local instance dualNormedSpace : |
| 34 | NormedSpace ℝ (EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 35 | ContinuousLinearMap.toNormedSpace |
| 36 | |
| 37 | private noncomputable local instance bilinearNormedGroup : |
| 38 | NormedAddCommGroup |
| 39 | (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 40 | ContinuousLinearMap.toNormedAddCommGroup |
| 41 | |
| 42 | private noncomputable local instance bilinearNormedSpace : |
| 43 | NormedSpace ℝ |
| 44 | (EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) := |
| 45 | ContinuousLinearMap.toNormedSpace |
| 46 | |
| 47 | /-- The retained actual gauge clock is C1 throughout its closed time |
| 48 | window, which is strictly inside the full path's interval, |
| 49 | Proposition 6.30, pp. 118-119. -/ |
| 50 | theorem clock_contMDiffOn_one : |
| 51 | ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡∂ 1) 1 (fun s => (D.lift (q.curve s)).1) |
| 52 | (Icc (c - D.radius) (c + D.radius)) := by |
| 53 | have hsub : Icc (c - D.radius) (c + D.radius) ⊆ Ioo τ₁ τ₂ := |
| 54 | fun _ hs => ⟨D.left_margin.trans_le hs.1, hs.2.trans_lt D.right_margin⟩ |
| 55 | have hL := (D.lift_smooth.of_le (by simp : (1 : ℕ∞ω) ≤ ∞)).comp |
| 56 | (q.curve_regular.mono hsub) D.continuation_in_image |
| 57 | exact fun s hs => (hL s hs).fst |
| 58 | |
| 59 | /-- One finite bound controls the actual weighted metric operator |
| 60 | and scalar potential on the fixed compact gauge region for every |
| 61 | transition width, Proposition 6.30, pp. 118-119. -/ |
| 62 | theorem exists_coefficient_bound (hM12 : GeneralizedRicciGaugeTheory.{u} n) : |
| 63 | let x₀ := (D.lift (q.curve c)).2 |
| 64 | ∃ C : ℝ, 0 ≤ C ∧ ∀ s ∈ Icc (c - D.radius) (c + D.radius), ∀ v ∈ D.spatialRegion, |
| 65 | ‖backwardMetricCoefficient (G.gaugeCover.spatial D.index) |
| 66 | (G.gaugeCover.metric D.index).metric T x₀ (s, v)‖ ≤ C ∧ |
| 67 | ‖backwardPotentialCoefficient D.index (fun t => (D.lift (q.curve t)).1) x₀ (s, v)‖ ≤ C := by |
| 68 | dsimp only |
| 69 | let J := Icc (c - D.radius) (c + D.radius) |
| 70 | let x₀ := (D.lift (q.curve c)).2 |
| 71 | let B := backwardMetricCoefficient (G.gaugeCover.spatial D.index) |
| 72 | (G.gaugeCover.metric D.index).metric T x₀ |
| 73 | let V := backwardPotentialCoefficient D.index (fun t => (D.lift (q.curve t)).1) x₀ |
| 74 | have hpos : ∀ s ∈ J, 0 < s := |
| 75 | fun _ hs => (p.tau_nonneg.trans_lt D.left_margin).trans_le hs.1 |
| 76 | have htime : ∀ s ∈ J, T - s ∈ (G.gaugeCover.interval D.index).domain := by |
| 77 | intro s hs |
| 78 | have ht := (D.lift_time _ (D.continuation_in_image s hs)).trans |
| 79 | (q.curve_time s ⟨D.left_margin.le.trans hs.1, hs.2.trans D.right_margin.le⟩) |
| 80 | rw [← ht] |
| 81 | exact (D.lift (q.curve s)).1.property |
| 82 | have hM : ContinuousOn B (J ×ˢ D.spatialRegion) := |
| 83 | (backwardMetricCoefficient_contDiffOn (G.gaugeCover.spatial D.index) |
| 84 | (G.gaugeCover.metric D.index).metric (G.gaugeCover.metric D.index).smooth |
| 85 | T x₀ hpos htime).continuousOn.mono (fun _ hz => ⟨hz.1, D.region_subset hz.2⟩) |
| 86 | have hV : ContinuousOn V (J ×ˢ D.spatialRegion) := |
| 87 | (backwardPotentialCoefficient_continuousOn hM12 D.index |
| 88 | (fun t => (D.lift (q.curve t)).1) x₀ D.clock_contMDiffOn_one.continuousOn).mono |
| 89 | (fun _ hz => ⟨hz.1, D.region_subset hz.2⟩) |
| 90 | have hcompact : IsCompact (J ×ˢ D.spatialRegion) := isCompact_Icc.prod D.region_compact |
| 91 | obtain ⟨CM, hCM⟩ := hcompact.exists_bound_of_continuousOn hM |
| 92 | obtain ⟨CV, hCV⟩ := hcompact.exists_bound_of_continuousOn hV |
| 93 | refine ⟨max (max CM CV) 0, le_max_right _ _, ?_⟩ |
| 94 | intro s hs v hv |
| 95 | exact ⟨(hCM (s, v) ⟨hs, hv⟩).trans ((le_max_left _ _).trans (le_max_left _ _)), |
| 96 | (hCV (s, v) ⟨hs, hv⟩).trans ((le_max_right _ _).trans (le_max_left _ _))⟩ |
| 97 | |
| 98 | end PoincareMT.M14.PrefixJoinGauge |