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.Horizontal |
| 2 | |
| 3 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Statements/M13BackwardEndpoints.lean`, |
| 4 | revision `49331b7d7ecad38f53e4300c3b35d6a84b2cc648`. |
| 5 | Declaration bodies are unchanged; only imports and module placement differ. -/ |
| 6 | |
| 7 | /-! |
| 8 | # Backward scaling at included endpoints |
| 9 | |
| 10 | The affine derivative calculation in Morgan-Tian Lemma 6.72, p. 141, |
| 11 | with the exact time-domain convention of Definition 3.40, p. 61. The |
| 12 | within derivative uses its actual set and a uniqueness-of-derivative |
| 13 | hypothesis; it therefore applies to one-sided interval endpoints without |
| 14 | requiring an extension of the curve or spacetime through that endpoint. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 26 | {A : AdaptedMetricAtlas n X} {R : GeneralizedFlowCarrierConclusion A} |
| 27 | {Q : ℝ} {hQ : 0 < Q} {a : ℝ} |
| 28 | |
| 29 | /-- Actual one-sided differential transport on the precise scaled domain. -/ |
| 30 | structure ParabolicBackwardEndpointCalculus |
| 31 | (P : ParabolicSpacetimeRescaling R Q hQ a) : Prop where |
| 32 | differentiable : ∀ (γ : ℝ → R.spacetime.Point) (J : Set ℝ) (s : ℝ), |
| 33 | MDifferentiableWithinAt 𝓘(ℝ) (spacetimeModel n) γ J (s / Q) → |
| 34 | MDifferentiableWithinAt 𝓘(ℝ) (spacetimeModel n) |
| 35 | (show ℝ → P.realization.spacetime.Point from parabolicBackwardCurve Q γ) |
| 36 | (parabolicBackwardDomain Q J) s |
| 37 | derivative : ∀ (γ : ℝ → R.spacetime.Point) (J : Set ℝ) (s : ℝ), |
| 38 | UniqueDiffWithinAt ℝ J (s / Q) → |
| 39 | MDifferentiableWithinAt 𝓘(ℝ) (spacetimeModel n) γ J (s / Q) → |
| 40 | (show SpacetimeModelVector n from |
| 41 | mfderivWithin 𝓘(ℝ) (spacetimeModel n) |
| 42 | (show ℝ → P.realization.spacetime.Point from parabolicBackwardCurve Q γ) |
| 43 | (parabolicBackwardDomain Q J) s (show TangentSpace 𝓘(ℝ) s from (1 : ℝ))) = |
| 44 | (1 / Q : ℝ) • (mfderivWithin 𝓘(ℝ) (spacetimeModel n) γ J (s / Q) |
| 45 | (show TangentSpace 𝓘(ℝ) (s / Q) from (1 : ℝ))) |
| 46 | velocity_val : ∀ (γ : ℝ → R.spacetime.Point) (J : Set ℝ) (τ : ℝ), |
| 47 | UniqueDiffWithinAt ℝ J τ → |
| 48 | MDifferentiableWithinAt 𝓘(ℝ) (spacetimeModel n) γ J τ → |
| 49 | HasDerivWithinAt (fun s ↦ R.spacetime.timeFunction (γ s)) (-1) J τ → |
| 50 | (backwardHorizontalVelocityWithin R.spacetime γ J τ).val = |
| 51 | mfderivWithin 𝓘(ℝ) (spacetimeModel n) γ J τ |
| 52 | (show TangentSpace 𝓘(ℝ) τ from (1 : ℝ)) + R.spacetime.timeVector (γ τ) |
| 53 | velocity : ∀ (γ : ℝ → R.spacetime.Point) (J : Set ℝ) (s : ℝ), |
| 54 | UniqueDiffWithinAt ℝ J (s / Q) → |
| 55 | MDifferentiableWithinAt 𝓘(ℝ) (spacetimeModel n) γ J (s / Q) → |
| 56 | backwardHorizontalVelocityWithin P.realization.spacetime (parabolicBackwardCurve Q γ) |
| 57 | (parabolicBackwardDomain Q J) s = |
| 58 | (1 / Q : ℝ) • P.horizontal (γ (s / Q)) |
| 59 | (backwardHorizontalVelocityWithin R.spacetime γ J (s / Q)) |
| 60 | energy : ∀ (γ : ℝ → R.spacetime.Point) (J : Set ℝ) (s : ℝ), |
| 61 | UniqueDiffWithinAt ℝ J (s / Q) → |
| 62 | MDifferentiableWithinAt 𝓘(ℝ) (spacetimeModel n) γ J (s / Q) → |
| 63 | P.realization.spacetime.horizontalMetric.inner (γ (s / Q)) |
| 64 | (backwardHorizontalVelocityWithin P.realization.spacetime (parabolicBackwardCurve Q γ) |
| 65 | (parabolicBackwardDomain Q J) s) |
| 66 | (backwardHorizontalVelocityWithin P.realization.spacetime (parabolicBackwardCurve Q γ) |
| 67 | (parabolicBackwardDomain Q J) s) = |
| 68 | R.spacetime.horizontalMetric.inner (γ (s / Q)) |
| 69 | (backwardHorizontalVelocityWithin R.spacetime γ J (s / Q)) |
| 70 | (backwardHorizontalVelocityWithin R.spacetime γ J (s / Q)) / Q |
| 71 | |
| 72 | end PoincareMT |