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.Gauge.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.Gauge.SliceMap |
| 3 | |
| 4 | /-! |
| 5 | # Slice geometry fields of a moving gauge |
| 6 | |
| 7 | The three slice fields in `MovingGaugeCalculus` are consequences of the |
| 8 | dependent slice-map construction. They are kept together here so the |
| 9 | calculus assembly can consume one checked geometric package. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle Topology |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 21 | {I K : SpacetimeInterval} {F : GeneralizedFlowSpacetime n X time I} |
| 22 | {S : ∀ s : ℝ, SpacetimeSliceGeometry F s} |
| 23 | {T : SmoothSpacetimeInterval K} {C : Type v} [TopologicalSpace C] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) C] [IsManifold (𝓡 n) ∞ C] |
| 25 | {e : MovingSpacetimeGauge F T C} |
| 26 | |
| 27 | /-- The three exact geometric fields contributed by the moving slice map. -/ |
| 28 | structure MovingGaugeSliceGeometryFields |
| 29 | (e : MovingSpacetimeGauge F T C) |
| 30 | (G : MovingSpacetimeGaugeGeometry e) : Prop where |
| 31 | slice_localDiffeomorph : ∀ t : T.Point, |
| 32 | IsLocalDiffeomorph (𝓡 n) (𝓡 n) ∞ (movingGaugeSliceMap e S t) |
| 33 | slice_tangent_eq : ∀ (t : T.Point) (x : C) (u : TangentSpace (𝓡 n) x), |
| 34 | (S t.val).tangentEquiv (movingGaugeSliceMap e S t x) |
| 35 | (mfderiv (𝓡 n) (𝓡 n) (movingGaugeSliceMap e S t) x u) = |
| 36 | G.spatialTangentEquiv t x u |
| 37 | slice_metric_eq : ∀ (t : T.Point) (x : C) |
| 38 | (u v : TangentSpace (𝓡 n) x), |
| 39 | (S t.val).metricOnPoints.inner (movingGaugeSliceMap e S t x) |
| 40 | (mfderiv (𝓡 n) (𝓡 n) (movingGaugeSliceMap e S t) x u) |
| 41 | (mfderiv (𝓡 n) (𝓡 n) (movingGaugeSliceMap e S t) x v) = |
| 42 | (G.metric t.val).inner x u v |
| 43 | |
| 44 | /-- Construct the slice-geometry fields from the checked `SliceMap` laws. -/ |
| 45 | theorem movingGaugeSliceGeometryFields |
| 46 | (e : MovingSpacetimeGauge F T C) |
| 47 | (G : MovingSpacetimeGaugeGeometry e) : |
| 48 | MovingGaugeSliceGeometryFields (S := S) e G where |
| 49 | slice_localDiffeomorph := fun t ↦ movingGaugeSliceMap_localDiffeomorph e S G t |
| 50 | slice_tangent_eq := fun t x u ↦ movingGaugeSliceMap_tangent_eq e S G t x u |
| 51 | slice_metric_eq := fun t x u v ↦ |
| 52 | movingGaugeSliceMap_metric_eq e S G t x u v |
| 53 | (movingGaugeSliceMap_tangent_eq e S G t x u) |
| 54 | (movingGaugeSliceMap_tangent_eq e S G t x v) |
| 55 | |
| 56 | end PoincareMT |