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.ReducedGeometry.Rescaling.Geometry.RescalingBranches |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Rescaling.Geometry.RescalingDifferential |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Exponential.Stability.StableDomain |
| 4 | |
| 5 | /-! |
| 6 | # Full stable carriers under parabolic rescaling |
| 7 | |
| 8 | Morgan-Tian Definition 6.25 and Corollary 6.74, pp. 116, 142. The |
| 9 | normalized linear homeomorphism transports the full open neighborhood |
| 10 | of unique minimizing branches and actual differential invertibility. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | -- The rescaled spacetime retains the original actual point type. |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M14 |
| 23 | |
| 24 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] |
| 25 | {time : X → ℝ} {I : SpacetimeInterval} |
| 26 | (hCoordinates : M12MetricPredecessors.{0} n) |
| 27 | (hM12 : GeneralizedRicciGaugeTheory.{u} n) |
| 28 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 29 | (G : GeneralizedLGeometryTransport n X time I) (Q : ℝ) (hQ : 0 < Q) (a : ℝ) |
| 30 | |
| 31 | include hCoordinates in |
| 32 | /-- The full stable-initial-vector predicate is invariant under the |
| 33 | normalized initial equivalence. Corollary 6.74, p. 142. -/ |
| 34 | theorem rescalingStableInitialVector_iff {T τ : ℝ} {x : G.Point} |
| 35 | (E : M14ExponentialFamily G T x) |
| 36 | (E' : M14ExponentialFamily (rescalingTransport hM12 hM13 G Q hQ a) |
| 37 | (parabolicTime Q a T) x) (Z : G.Horizontal x) : |
| 38 | M14StableInitialVector G T τ x E Z ↔ |
| 39 | M14StableInitialVector (rescalingTransport hM12 hM13 G Q hQ a) |
| 40 | (parabolicTime Q a T) (Q * τ) x E' |
| 41 | (rescalingInitialEquiv G.spacetime Q hQ a x Z) := by |
| 42 | let A := rescalingInitialEquiv G.spacetime Q hQ a x |
| 43 | have hdom : (Z, Real.sqrt τ) ∈ E.domain ↔ (A Z, Real.sqrt (Q * τ)) ∈ E'.domain := by |
| 44 | simpa only [Real.sqrt_mul hQ.le] using |
| 45 | rescalingExponential_domain_iff hCoordinates hM12 hM13 G Q hQ a E E' Z (Real.sqrt τ) |
| 46 | have hbij (hs : (Z, Real.sqrt τ) ∈ E.domain) |
| 47 | (hs' : (A Z, Real.sqrt (Q * τ)) ∈ E'.domain) : |
| 48 | Function.Bijective (E'.differential (A Z) (Real.sqrt (Q * τ)) hs') ↔ |
| 49 | Function.Bijective (E.differential Z (Real.sqrt τ) hs) := by |
| 50 | revert hs' |
| 51 | rw [Real.sqrt_mul hQ.le] |
| 52 | intro hs' |
| 53 | exact rescalingDifferential_bijective_iff hCoordinates hM12 hM13 G Q hQ a E E' |
| 54 | Z (Real.sqrt τ) hs hs' |
| 55 | constructor |
| 56 | · rintro ⟨hs, hb, U, hU, hZ, hbranch⟩ |
| 57 | refine ⟨hdom.mp hs, (hbij hs (hdom.mp hs)).mpr hb, |
| 58 | A.symm ⁻¹' U, hU.preimage A.symm.continuous, ?_, ?_⟩ |
| 59 | · simpa only [mem_preimage, A, ContinuousLinearEquiv.symm_apply_apply] using hZ |
| 60 | · intro W hW |
| 61 | have h := (rescalingUniqueBranch_iff hCoordinates hM12 hM13 G Q hQ a E E' |
| 62 | (A.symm W)).mp (hbranch _ hW) |
| 63 | simpa only [A, ContinuousLinearEquiv.apply_symm_apply] using h |
| 64 | · rintro ⟨hs', hb, U, hU, hZ, hbranch⟩ |
| 65 | refine ⟨hdom.mpr hs', (hbij (hdom.mpr hs') hs').mp hb, |
| 66 | A ⁻¹' U, hU.preimage A.continuous, hZ, ?_⟩ |
| 67 | intro W hW |
| 68 | exact (rescalingUniqueBranch_iff hCoordinates hM12 hM13 G Q hQ a E E' W).mpr |
| 69 | (hbranch _ hW) |
| 70 | |
| 71 | /-- A supplied source stable set supplies a point totalizing the actual |
| 72 | target endpoint map, even if its carrier is empty. Definition 6.25 and |
| 73 | Corollary 6.74, pp. 116, 142. -/ |
| 74 | noncomputable def rescalingStableSet {T τ : ℝ} {x : G.Point} |
| 75 | (E : M14ExponentialFamily G T x) |
| 76 | (E' : M14ExponentialFamily (rescalingTransport hM12 hM13 G Q hQ a) |
| 77 | (parabolicTime Q a T) x) (H : M14StableSet G T τ x E) : |
| 78 | M14StableSet (rescalingTransport hM12 hM13 G Q hQ a) |
| 79 | (parabolicTime Q a T) (Q * τ) x E' := by |
| 80 | let q₀ := H.endpoint_slice_map 0 |
| 81 | let q₀' : ((rescalingTransport hM12 hM13 G Q hQ a).slices |
| 82 | (parabolicTime Q a T - Q * τ)).Point := ⟨q₀.val, by |
| 83 | change parabolicTime Q a (G.spacetime.timeFunction q₀.val) = parabolicTime Q a T - Q * τ |
| 84 | rw [q₀.property] |
| 85 | unfold parabolicTime |
| 86 | ring⟩ |
| 87 | exact stableSetOfSlicePoint E' (mul_pos hQ H.tau_pos) q₀' |
| 88 | |
| 89 | include hCoordinates in |
| 90 | /-- Any two full frozen source and target stable records have precisely |
| 91 | corresponding carriers. Corollary 6.74, p. 142. -/ |
| 92 | theorem rescalingStable_carrier_iff {T τ : ℝ} {x : G.Point} |
| 93 | (E : M14ExponentialFamily G T x) |
| 94 | (E' : M14ExponentialFamily (rescalingTransport hM12 hM13 G Q hQ a) |
| 95 | (parabolicTime Q a T) x) (H : M14StableSet G T τ x E) |
| 96 | (H' : M14StableSet (rescalingTransport hM12 hM13 G Q hQ a) |
| 97 | (parabolicTime Q a T) (Q * τ) x E') (Z : G.Horizontal x) : |
| 98 | Z ∈ H.carrier ↔ rescalingInitialEquiv G.spacetime Q hQ a x Z ∈ H'.carrier := by |
| 99 | rw [H.carrier_exact, H'.carrier_exact] |
| 100 | exact rescalingStableInitialVector_iff hCoordinates hM12 hM13 G Q hQ a E E' Z |
| 101 | |
| 102 | end PoincareMT.M14 |