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.Basic |
| 2 | import PoincareLib.Geometry.Spacetime.Horizontal.Basic |
| 3 | |
| 4 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Definitions/M13HorizontalTransport.lean`, |
| 5 | revision `49331b7d7ecad38f53e4300c3b35d6a84b2cc648`. |
| 6 | Declaration bodies are unchanged; only imports and module placement differ. -/ |
| 7 | |
| 8 | /-! |
| 9 | # Raw horizontal transport and backward curves |
| 10 | |
| 11 | Morgan-Tian Definition 3.40, p. 61, and Lemma 6.72, pp. 141-142. These |
| 12 | definitions use the actual spacetime derivative and literal horizontal |
| 13 | projection. A backward clock identity is needed to identify the projected |
| 14 | velocity with gamma' + chi; it is not assumed by the raw operation itself. |
| 15 | No L-action, exponential, or existence assertion is defined here. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped Manifold ContDiff Bundle |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 27 | {A : AdaptedMetricAtlas n X} {R : GeneralizedFlowCarrierConclusion A} |
| 28 | {Q : ℝ} {hQ : 0 < Q} {a : ℝ} |
| 29 | |
| 30 | /-- A section transported by the actual identity on underlying horizontal vectors. -/ |
| 31 | noncomputable def parabolicHorizontalSection (P : ParabolicSpacetimeRescaling R Q hQ a) |
| 32 | (V : HorizontalSection R.spacetime) : HorizontalSection P.realization.spacetime := |
| 33 | fun p ↦ P.horizontal p (V p) |
| 34 | |
| 35 | /-- The inverse-scale reparameterization of the actual point curve. -/ |
| 36 | noncomputable def parabolicBackwardCurve (Q : ℝ) (γ : ℝ → X) : ℝ → X := fun s ↦ γ (s / Q) |
| 37 | |
| 38 | /-- Exact image of a backward-time domain under tau' = Q*tau. -/ |
| 39 | def parabolicBackwardDomain (Q : ℝ) (J : Set ℝ) : Set ℝ := (fun τ ↦ Q * τ) '' J |
| 40 | |
| 41 | /-- The actual horizontal component of the velocity of a spacetime curve. -/ |
| 42 | noncomputable def backwardHorizontalVelocity {time : X → ℝ} {I : SpacetimeInterval} |
| 43 | (F : GeneralizedFlowSpacetime n X time I) (γ : ℝ → F.Point) (τ : ℝ) : |
| 44 | F.Horizontal (γ τ) := |
| 45 | F.horizontalProjection (γ τ) |
| 46 | (mfderiv 𝓘(ℝ) (spacetimeModel n) γ τ |
| 47 | (show TangentSpace 𝓘(ℝ) τ from (1 : ℝ))) |
| 48 | |
| 49 | /-- The within-domain horizontal velocity, retaining included time endpoints. -/ |
| 50 | noncomputable def backwardHorizontalVelocityWithin {time : X → ℝ} {I : SpacetimeInterval} |
| 51 | (F : GeneralizedFlowSpacetime n X time I) (γ : ℝ → F.Point) (J : Set ℝ) (τ : ℝ) : |
| 52 | F.Horizontal (γ τ) := |
| 53 | F.horizontalProjection (γ τ) |
| 54 | (mfderivWithin 𝓘(ℝ) (spacetimeModel n) γ J τ |
| 55 | (show TangentSpace 𝓘(ℝ) τ from (1 : ℝ))) |
| 56 | |
| 57 | /-- An invertible linear comparison preserving the two selected inner products. |
| 58 | The prescribed map is kappa/sqrt(Q), hence a linear isometry for those metrics. |
| 59 | Its existence is an M13 output. -/ |
| 60 | structure ParabolicNormalizedHorizontalIsometry |
| 61 | (P : ParabolicSpacetimeRescaling R Q hQ a) where |
| 62 | linearEquiv : ∀ p : R.spacetime.Point, |
| 63 | R.spacetime.Horizontal p ≃L[ℝ] P.realization.spacetime.Horizontal p |
| 64 | linearEquiv_eq : ∀ (p : R.spacetime.Point) (v : R.spacetime.Horizontal p), |
| 65 | linearEquiv p v = (1 / Real.sqrt Q : ℝ) • P.horizontal p v |
| 66 | inner_eq : ∀ (p : R.spacetime.Point) (v w : R.spacetime.Horizontal p), |
| 67 | P.realization.spacetime.horizontalMetric.inner p (linearEquiv p v) (linearEquiv p w) = |
| 68 | R.spacetime.horizontalMetric.inner p v w |
| 69 | |
| 70 | end PoincareMT |