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.Interval |
| 2 | import PoincareLib.Geometry.Riemannian.Homothety.Calculus |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.Gauge.Geometry |
| 4 | |
| 5 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Definitions/M13OrdinaryRescaling.lean`, |
| 6 | revision `49331b7d7ecad38f53e4300c3b35d6a84b2cc648`. |
| 7 | Declaration bodies are unchanged; only imports and module placement differ. -/ |
| 8 | |
| 9 | /-! |
| 10 | # Ordinary parabolic rescaling and its selected product geometries |
| 11 | |
| 12 | Morgan-Tian Definitions 3.1-3.2, p. 35, Definition 3.40 and the |
| 13 | time-translation paragraph, p. 61. The rescaled ordinary flow has the exact |
| 14 | affine image interval and the metric Q*g(a+s/Q) at every real s. Its |
| 15 | existence is an M13 theorem output, including for an empty spatial manifold. |
| 16 | The separate nonempty product comparison uses the supplied source and |
| 17 | target M12 product witnesses and their actual manifold differentials. |
| 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 : ℕ} {M : Type u} [TopologicalSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 30 | {I : SpacetimeInterval} |
| 31 | |
| 32 | /-- An actual ordinary flow on the affine image interval. The identity of |
| 33 | metric representatives holds at all real times; the flow's smoothness and |
| 34 | Ricci equation concern precisely its specified interval. -/ |
| 35 | structure OrdinaryParabolicRescaling (F : RicciFlow n M I.domain) |
| 36 | (Q : ℝ) (hQ : 0 < Q) (a : ℝ) where |
| 37 | flow : RicciFlow n M (parabolicInterval Q hQ a I).domain |
| 38 | metric_eq : ∀ (s : ℝ) (x : M) (u v : TangentSpace (𝓡 n) x), |
| 39 | (flow.metric s).inner x u v = Q * (F.metric (parabolicTimeInv Q a s)).inner x u v |
| 40 | metric_homothety : ∀ s : ℝ, |
| 41 | MetricHomothety (F.metric (parabolicTimeInv Q a s)) (flow.metric s) |
| 42 | (Diffeomorph.refl (𝓡 n) M ∞) Q |
| 43 | metric_calculus : ∀ [T3Space M] [MeasurableSpace M] [BorelSpace M], ∀ s : ℝ, |
| 44 | MetricHomothetyCalculus (F.metric (parabolicTimeInv Q a s)) (flow.metric s) |
| 45 | (Diffeomorph.refl (𝓡 n) M ∞) Q |
| 46 | |
| 47 | /-- The prescribed target-to-source point map between the exact products. -/ |
| 48 | noncomputable def ordinaryProductTimeMap (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 49 | (I : SpacetimeInterval) : (parabolicInterval Q hQ a I).domain × M → I.domain × M := |
| 50 | fun p ↦ (parabolicTimePointInv Q hQ a I p.1, p.2) |
| 51 | |
| 52 | /-- The actual comparison of two fixed M12 ordinary-product witnesses. |
| 53 | The map reverses the affine clock and keeps the spatial point. Its horizontal |
| 54 | equivalence is the restriction of that same map's actual differential. -/ |
| 55 | structure OrdinaryParabolicProductComparison [Nonempty M] |
| 56 | {F : RicciFlow n M I.domain} {Q : ℝ} {hQ : 0 < Q} {a : ℝ} |
| 57 | (R : OrdinaryParabolicRescaling F Q hQ a) |
| 58 | (source : OrdinaryProductRicciGeometry F.metric I) |
| 59 | (target : OrdinaryProductRicciGeometry R.flow.metric (parabolicInterval Q hQ a I)) where |
| 60 | source_equation : IntrinsicGeneralizedRicciEquation source.leafwiseConnection |
| 61 | target_equation : IntrinsicGeneralizedRicciEquation target.leafwiseConnection |
| 62 | comparison : Diffeomorph (spacetimeModel n) (spacetimeModel n) |
| 63 | target.product.spacetime.Point source.product.spacetime.Point ∞ |
| 64 | comparison_eq : ∀ p : target.product.spacetime.Point, |
| 65 | comparison p = ordinaryProductTimeMap Q hQ a I p |
| 66 | coordinate_eq : ∀ p : |
| 67 | (target.product.timeIntervals.interval (parabolicInterval Q hQ a I)).Point × M, |
| 68 | comparison (target.product.productIdentification p) = |
| 69 | source.product.productIdentification (ordinaryProductTimeMap Q hQ a I p) |
| 70 | coordinate_derivative : ∀ (p : |
| 71 | (target.product.timeIntervals.interval (parabolicInterval Q hQ a I)).Point × M) |
| 72 | (b : ℝ) (u : TangentSpace (𝓡 n) p.2), |
| 73 | mfderiv (spacetimeModel n) (spacetimeModel n) comparison |
| 74 | (target.product.productIdentification p) |
| 75 | (mfderiv (spacetimeModel n) (spacetimeModel n) target.product.productIdentification p |
| 76 | (b • (target.product.timeIntervals.interval |
| 77 | (parabolicInterval Q hQ a I)).positiveTangent p.1, u)) = |
| 78 | mfderiv (spacetimeModel n) (spacetimeModel n) source.product.productIdentification |
| 79 | (ordinaryProductTimeMap Q hQ a I p) |
| 80 | ((b / Q) • (source.product.timeIntervals.interval I).positiveTangent |
| 81 | (ordinaryProductTimeMap Q hQ a I p).1, u) |
| 82 | time_vector_eq : ∀ p : target.product.spacetime.Point, |
| 83 | mfderiv (spacetimeModel n) (spacetimeModel n) comparison p |
| 84 | (target.product.spacetime.timeVector p) = |
| 85 | (1 / Q : ℝ) • source.product.spacetime.timeVector (comparison p) |
| 86 | horizontalTangentEquiv : ∀ p : target.product.spacetime.Point, |
| 87 | target.product.spacetime.Horizontal p ≃L[ℝ] |
| 88 | source.product.spacetime.Horizontal (comparison p) |
| 89 | horizontalTangentEquiv_val : ∀ (p : target.product.spacetime.Point) |
| 90 | (v : target.product.spacetime.Horizontal p), |
| 91 | (horizontalTangentEquiv p v).val = |
| 92 | mfderiv (spacetimeModel n) (spacetimeModel n) comparison p v.val |
| 93 | horizontal_metric : ∀ (p : target.product.spacetime.Point) |
| 94 | (u v : target.product.spacetime.Horizontal p), |
| 95 | target.product.spacetime.horizontalMetric.inner p u v = |
| 96 | Q * source.product.spacetime.horizontalMetric.inner (comparison p) |
| 97 | (horizontalTangentEquiv p u) (horizontalTangentEquiv p v) |
| 98 | |
| 99 | end PoincareMT |