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.Spacetime.Rescaling.Atlas |
| 2 | import PoincareLib.Geometry.Spacetime.Rescaling.Interval |
| 3 | import PoincareLib.Geometry.Riemannian.Homothety.Basic |
| 4 | import PoincareLib.Geometry.Spacetime.GeometryTheory |
| 5 | |
| 6 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Definitions/M13SpacetimeRescaling.lean`, |
| 7 | revision `49331b7d7ecad38f53e4300c3b35d6a84b2cc648`. |
| 8 | Declaration bodies are unchanged; only imports and module placement differ. -/ |
| 9 | |
| 10 | /-! |
| 11 | # Constructed parabolic spacetime geometry |
| 12 | |
| 13 | Morgan-Tian Definition 3.40, p. 61. The target is an actual realization of |
| 14 | the rescaled atlas on the same chosen smooth carrier. Horizontal transport |
| 15 | is the identity on underlying tangent vectors, not an arbitrary fiber map. |
| 16 | Slice identifications include every real time and hence the empty slices |
| 17 | outside the exact time image. M13 supplies existence of this entire record. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open scoped Manifold ContDiff Bundle Topology |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT |
| 27 | |
| 28 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 29 | {A : AdaptedMetricAtlas n X} |
| 30 | |
| 31 | /-- The actual rescaled realization, with its clock, kernels and slice maps. -/ |
| 32 | structure ParabolicSpacetimeRescaling (R : GeneralizedFlowCarrierConclusion A) |
| 33 | (Q : ℝ) (hQ : 0 < Q) (a : ℝ) where |
| 34 | atlasRescaling : ParabolicAtlasRescaling A Q hQ a |
| 35 | realization : GeneralizedFlowCarrierConclusion atlasRescaling.atlas |
| 36 | intervalSystem_eq : realization.timeIntervals = R.timeIntervals |
| 37 | intervalTransport : ParabolicIntervalTransport R.timeIntervals Q hQ a |
| 38 | chartedSpace_eq : realization.spacetime.chartedSpace = R.spacetime.chartedSpace |
| 39 | identification : Diffeomorph (spacetimeModel n) (spacetimeModel n) |
| 40 | R.spacetime.Point realization.spacetime.Point ∞ |
| 41 | identification_eq : ∀ p : R.spacetime.Point, identification p = p |
| 42 | differential_eq : ∀ (p : R.spacetime.Point) |
| 43 | (Z : TangentSpace (spacetimeModel n) p), |
| 44 | (show SpacetimeModelVector n from |
| 45 | mfderiv (spacetimeModel n) (spacetimeModel n) identification p Z) = Z |
| 46 | time_differential : ∀ (p : R.spacetime.Point) |
| 47 | (Z : TangentSpace (spacetimeModel n) p), |
| 48 | (show ℝ from mfderiv (spacetimeModel n) 𝓘(ℝ) |
| 49 | realization.spacetime.timeFunction p Z) = |
| 50 | Q * (show ℝ from |
| 51 | mfderiv (spacetimeModel n) 𝓘(ℝ) R.spacetime.timeFunction p Z) |
| 52 | timeVector_eq : ∀ p : R.spacetime.Point, |
| 53 | (show SpacetimeModelVector n from realization.spacetime.timeVector p) = |
| 54 | (1 / Q : ℝ) • R.spacetime.timeVector p |
| 55 | horizontal : ∀ p : R.spacetime.Point, |
| 56 | R.spacetime.Horizontal p ≃L[ℝ] realization.spacetime.Horizontal p |
| 57 | horizontal_val : ∀ (p : R.spacetime.Point) (v : R.spacetime.Horizontal p), |
| 58 | (show SpacetimeModelVector n from (horizontal p v).val) = v.val |
| 59 | horizontal_smooth : |
| 60 | ContMDiff ((spacetimeModel n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) |
| 61 | ((spacetimeModel n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ |
| 62 | (fun v : Bundle.TotalSpace (EuclideanSpace ℝ (Fin n)) R.spacetime.Horizontal ↦ |
| 63 | Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) |
| 64 | (E := realization.spacetime.Horizontal) v.proj (horizontal v.proj v.2)) |
| 65 | horizontal_inverse_smooth : |
| 66 | ContMDiff ((spacetimeModel n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) |
| 67 | ((spacetimeModel n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ |
| 68 | (fun v : Bundle.TotalSpace (EuclideanSpace ℝ (Fin n)) |
| 69 | realization.spacetime.Horizontal ↦ |
| 70 | Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) |
| 71 | (E := R.spacetime.Horizontal) v.proj ((horizontal v.proj).symm v.2)) |
| 72 | projection_eq : ∀ (p : R.spacetime.Point) |
| 73 | (Z : TangentSpace (spacetimeModel n) p), |
| 74 | realization.spacetime.horizontalProjection p Z = |
| 75 | horizontal p (R.spacetime.horizontalProjection p Z) |
| 76 | metric_eq : ∀ (p : R.spacetime.Point) (v w : R.spacetime.Horizontal p), |
| 77 | realization.spacetime.horizontalMetric.inner p (horizontal p v) (horizontal p w) = |
| 78 | Q * R.spacetime.horizontalMetric.inner p v w |
| 79 | sliceIdentification : ∀ t : ℝ, |
| 80 | Diffeomorph (𝓡 n) (𝓡 n) (R.slices t).Point |
| 81 | (realization.slices (parabolicTime Q a t)).Point ∞ |
| 82 | sliceIdentification_eq : ∀ (t : ℝ) (x : (R.slices t).Point), |
| 83 | (sliceIdentification t x).val = x.val |
| 84 | slice_tangent : ∀ (t : ℝ) (x : (R.slices t).Point) |
| 85 | (v : TangentSpace (𝓡 n) x), |
| 86 | (show SpacetimeModelVector n from |
| 87 | ((realization.slices (parabolicTime Q a t)).tangentEquiv |
| 88 | (sliceIdentification t x) |
| 89 | (mfderiv (𝓡 n) (𝓡 n) (sliceIdentification t) x v)).val) = |
| 90 | (horizontal x.val ((R.slices t).tangentEquiv x v)).val |
| 91 | slice_metric : ∀ t : ℝ, |
| 92 | MetricHomothety (R.slices t).metricOnPoints |
| 93 | (realization.slices (parabolicTime Q a t)).metricOnPoints |
| 94 | (sliceIdentification t) Q |
| 95 | |
| 96 | end PoincareMT |