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.Variation.Extension.PotentialCoefficient |
| 2 | |
| 3 | /-! |
| 4 | # Continuous scalar potential for a continuous gauge clock |
| 5 | |
| 6 | The compact action bounds in Morgan-Tian Proposition 6.30, |
| 7 | pp. 118-119, require only continuity of the time lift. The actual |
| 8 | scalar curvature and cylinder map supply continuity of the spatial |
| 9 | potential throughout the admissible gauge coordinate domain. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff |
| 16 | |
| 17 | universe u |
| 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 | |
| 24 | /-- The actual gauge potential is continuous whenever its time lift |
| 25 | is continuous, the compact coefficient bound in Proposition 6.30, |
| 26 | pp. 118-119. No derivative of the clock is needed. -/ |
| 27 | theorem backwardPotentialCoefficient_continuousOn |
| 28 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) (b : G.gaugeCover.index) |
| 29 | (θ : ℝ → (G.timeIntervals.interval (G.gaugeCover.interval b)).Point) |
| 30 | (x : G.gaugeCover.spatial b) {J : Set ℝ} (hθ : ContinuousOn θ J) : |
| 31 | ContinuousOn (backwardPotentialCoefficient b θ x) |
| 32 | (J ×ˢ (G.gaugeCover.spatial b : Set (EuclideanSpace ℝ (Fin n)))) := by |
| 33 | have hc : ContinuousOn (chartAt (EuclideanSpace ℝ (Fin n)) x).symm |
| 34 | (G.gaugeCover.spatial b : Set _) := by |
| 35 | simpa only [(G.gaugeCover.spatial b).chartAt_target_eq] using |
| 36 | (contMDiffOn_chart_symm (I := 𝓡 n) (n := ∞) (x := x)).continuousOn |
| 37 | have hpair : ContinuousOn |
| 38 | (fun z : ℝ × EuclideanSpace ℝ (Fin n) => |
| 39 | (θ z.1, (chartAt (EuclideanSpace ℝ (Fin n)) x).symm z.2)) |
| 40 | (J ×ˢ (G.gaugeCover.spatial b : Set _)) := |
| 41 | (hθ.comp continuousOn_fst (fun _ hz => hz.1)).prodMk |
| 42 | (hc.comp continuousOn_snd (fun _ hz => hz.2)) |
| 43 | have H := (hM12.leafwise_calculus X time I G.spacetime G.slices |
| 44 | G.timeIntervals G.gaugeCover).2 G.leafwise |
| 45 | have hscalar : Continuous (horizontalScalarCurvature G.leafwise) := H.scalar_smooth.continuous |
| 46 | exact (Real.continuous_sqrt.comp continuous_fst).continuousOn.mul |
| 47 | (hscalar.comp_continuousOn |
| 48 | ((G.gaugeCover.cylinder b).smooth.continuous.comp_continuousOn hpair)) |
| 49 | |
| 50 | end PoincareMT.M14 |