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.Exponential |
| 2 | |
| 3 | /-! Ported from Mapher06/Poincare-MorganTian, `PoincareMT/Statements/M14Exponential.lean`, |
| 4 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are unchanged; |
| 5 | imports and module placement are adapted. See |
| 6 | `references/ricci-flow/mapher/generalized-noncollapse-port.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # M14 exponential and stable-set conclusions |
| 10 | |
| 11 | The conclusion is conditional at the actual endpoints: only positive square |
| 12 | root times in the spacetime time-domain are admitted, and stable sets are |
| 13 | constructed after their fixed-time survival hypotheses and may be empty. The graph domain is |
| 14 | the relative-interior domain of the same endpoint branches; no later-time |
| 15 | neighborhood is added at a terminal slice. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped Manifold ContDiff Bundle Topology intervalIntegral |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | variable {n : ℕ} {X : Type u} [TopologicalSpace X] {time : X → ℝ} |
| 27 | {I : SpacetimeInterval} |
| 28 | |
| 29 | structure M14JointMapData |
| 30 | (G : GeneralizedLGeometryTransport n X time I) |
| 31 | (T : ℝ) (x : G.Point) (E : M14ExponentialFamily G T x) where |
| 32 | image : Set G.Point |
| 33 | image_eq : image = Set.range (fun z : M14JointDomain G E => |
| 34 | E.gamma z.1.1 z.1.2) |
| 35 | injective : Set.InjOn (fun z : M14JointDomain G E => E.gamma z.1.1 z.1.2) Set.univ |
| 36 | image_relative_open : ∃ U : Set G.Point, IsOpen U ∧ image = U |
| 37 | map_continuous : Continuous |
| 38 | (fun z : M14JointDomain G E => E.gamma z.1.1 z.1.2) |
| 39 | map_open : ∀ S : Set (M14JointDomain G E), IsOpen S → |
| 40 | IsOpen ((fun z : M14JointDomain G E => E.gamma z.1.1 z.1.2) '' S) |
| 41 | inverse : G.Point → G.Horizontal x × ℝ |
| 42 | inverse_mem : ∀ q, q ∈ image → inverse q ∈ M14JointDomain G E |
| 43 | inverse_on_image : ∀ q, q ∈ image → |
| 44 | E.gamma (inverse q).1 (inverse q).2 = q |
| 45 | inverse_left : ∀ z : M14JointDomain G E, |
| 46 | inverse (E.gamma z.1.1 z.1.2) = z.1 |
| 47 | inverse_continuous : ContinuousOn inverse image |
| 48 | coordinate_basis : Module.Basis (Fin n) ℝ (G.Horizontal x) |
| 49 | inverse_vector_smooth : ContMDiffOn (spacetimeModel n) (𝓡 n) ∞ |
| 50 | (fun q => (WithLp.equiv 2 (Fin n → ℝ)).symm |
| 51 | (coordinate_basis.equivFun (inverse q).1)) image |
| 52 | inverse_time_smooth : ContMDiffOn (spacetimeModel n) (𝓘(ℝ, ℝ)) ∞ |
| 53 | (fun q => (inverse q).2) image |
| 54 | differential_bijective : ∀ z : M14JointDomain G E, |
| 55 | ∃ H : M14StableSet G T (z.1.2 ^ 2) x E, |
| 56 | ∃ hZ : z.1.1 ∈ H.carrier, |
| 57 | Function.Bijective (H.endpoint_differential z.1.1 hZ) |
| 58 | time_component : ∀ z : M14JointDomain G E, |
| 59 | G.spacetime.timeFunction (E.gamma z.1.1 z.1.2) = T - z.1.2 ^ 2 |
| 60 | action_branch : ∀ z : M14JointDomain G E, |
| 61 | ∃ H : M14StableSet G T (z.1.2 ^ 2) x E, |
| 62 | z.1.1 ∈ H.carrier ∧ |
| 63 | ∃ p : M14BackwardPath G T 0 (z.1.2 ^ 2) x (E.gamma z.1.1 z.1.2), |
| 64 | M14IsMinimizing p ∧ |
| 65 | E.action z.1.1 z.1.2 = M14BackwardLAction G p ∧ |
| 66 | E.reduced_length z.1.1 z.1.2 = |
| 67 | M14ReducedLengthValue G T 0 (z.1.2 ^ 2) x (E.gamma z.1.1 z.1.2) |
| 68 | |
| 69 | /-! Lemma 6.22: the first variation of actual branch action is paired with |
| 70 | the square-root velocity A = 2*s*X. Action at s = 0 is not specified by the |
| 71 | family, so this output concerns only its positive survival domain. -/ |
| 72 | def M14ActionDifferentialStatement |
| 73 | (G : GeneralizedLGeometryTransport n X time I) : Prop := |
| 74 | ∀ (T : ℝ) (x : G.Point) (E : M14ExponentialFamily G T x), |
| 75 | letI : Bundle.RiemannianBundle (G.Horizontal : G.Point → Type _) := |
| 76 | ⟨G.spacetime.horizontalMetric.toRiemannianMetric⟩ |
| 77 | ContMDiffOn ((𝓘(ℝ, G.Horizontal x)).prod (𝓘(ℝ, ℝ))) |
| 78 | (𝓘(ℝ, ℝ)) ∞ (fun z => E.action z.1 z.2) |
| 79 | (E.domain ∩ {z | 0 < z.2}) ∧ |
| 80 | ∀ (Z : G.Horizontal x) (s : ℝ) (hs : (Z, s) ∈ E.domain) (hpos : 0 < s), |
| 81 | MDifferentiableAt (𝓘(ℝ, G.Horizontal x)) (𝓘(ℝ, ℝ)) |
| 82 | (fun V => E.action V s) Z ∧ |
| 83 | ∀ W : G.Horizontal x, |
| 84 | ∃ h : (E.square_path Z s hs hpos).curve s = E.gamma Z s, |
| 85 | mfderiv (𝓘(ℝ, G.Horizontal x)) (𝓘(ℝ, ℝ)) |
| 86 | (fun V => E.action V s) Z W = |
| 87 | G.spacetime.horizontalMetric.inner (E.gamma Z s) |
| 88 | (h ▸ (E.square_path Z s hs hpos).horizontal_velocity s) |
| 89 | (E.differential Z s hs W) |
| 90 | |
| 91 | structure M14ExponentialConclusion |
| 92 | (G : GeneralizedLGeometryTransport n X time I) where |
| 93 | family : ∀ (T : ℝ) (x : G.Point), |
| 94 | G.spacetime.timeFunction x = T → |
| 95 | Nonempty (M14ExponentialFamily G T x) |
| 96 | action_differential : M14ActionDifferentialStatement G |
| 97 | /-- The exponential differential is the pointwise initial-vector mfderiv. -/ |
| 98 | differential_mfderiv : ∀ (T : ℝ) (x : G.Point) |
| 99 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) (s : ℝ) |
| 100 | (hs : (Z, s) ∈ E.domain) (W : G.Horizontal x), |
| 101 | (E.differential Z s hs W).val = |
| 102 | M14InitialVectorDerivative G E.gamma s Z W |
| 103 | /-- Every selected path has an actual pullback extension satisfying the |
| 104 | paired Euler equation on its open interior. -/ |
| 105 | path_euler_transport : ∀ (T : ℝ) (x : G.Point) |
| 106 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) (s : ℝ) |
| 107 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s), |
| 108 | M14EulerEquation G (E.path Z s hs hpos) (E.path_extension Z s hs hpos) |
| 109 | action_transport : ∀ (T : ℝ) (x : G.Point) |
| 110 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) (s : ℝ) |
| 111 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s), |
| 112 | E.action Z s = M14BackwardLAction G (E.path Z s hs hpos) |
| 113 | reduced_length_transport : ∀ (T : ℝ) (x : G.Point) |
| 114 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) (s : ℝ) |
| 115 | (_hs : (Z, s) ∈ E.domain) (_hpos : 0 < s), |
| 116 | E.reduced_length Z s = E.action Z s / (2 * s) |
| 117 | global_action_transport : ∀ (T : ℝ) (x : G.Point) |
| 118 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) (s : ℝ) |
| 119 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s), |
| 120 | M14IsMinimizing (E.path Z s hs hpos) → |
| 121 | E.action Z s = M14ActionValue G T 0 (s ^ 2) x (E.gamma Z s) |
| 122 | global_reduced_length_transport : ∀ (T : ℝ) (x : G.Point) |
| 123 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) (s : ℝ) |
| 124 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s), |
| 125 | M14IsMinimizing (E.path Z s hs hpos) → |
| 126 | E.reduced_length Z s = |
| 127 | M14ReducedLengthValue G T 0 (s ^ 2) x (E.gamma Z s) |
| 128 | /-- Positive membership is equivalent to survival of the specified |
| 129 | initial-value problem, with its endpoint determined by that solution. -/ |
| 130 | positive_survival : ∀ (T : ℝ) (x : G.Point) |
| 131 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) (s : ℝ), |
| 132 | 0 < s → |
| 133 | ((Z, s) ∈ E.domain ↔ |
| 134 | ∃ y : G.Point, |
| 135 | Nonempty (M14SquareRootInitialValuePath G T (s ^ 2) x y Z)) |
| 136 | initial_value_uniqueness : ∀ (T : ℝ) (x : G.Point) |
| 137 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) (s : ℝ) |
| 138 | (_hpos : 0 < s) (y : G.Point) |
| 139 | (P : M14SquareRootInitialValuePath G T (s ^ 2) x y Z), |
| 140 | Set.EqOn P.path.curve (fun τ => E.gamma Z (Real.sqrt τ)) (Set.Icc 0 (s ^ 2)) |
| 141 | stable : ∀ (T τ : ℝ) (x : G.Point) |
| 142 | (_hbase : G.spacetime.timeFunction x = T) (_hτ : 0 < τ) |
| 143 | (E : M14ExponentialFamily G T x), |
| 144 | (∃ Z, (Z, Real.sqrt τ) ∈ E.domain) → |
| 145 | Nonempty (M14StableSet G T τ x E) |
| 146 | joint_domain : ∀ (T : ℝ) (x : G.Point) |
| 147 | (E : M14ExponentialFamily G T x), |
| 148 | M14JointDomain G E = M14RelativeInterior |
| 149 | (M14AdmissibleParameter G T x) (M14StableGraph G E) |
| 150 | joint_map : ∀ (T : ℝ) (x : G.Point) |
| 151 | (E : M14ExponentialFamily G T x), |
| 152 | Nonempty (M14JointMapData G T x E) |
| 153 | strict_prefix : ∀ (T τ₀ τ : ℝ) (x : G.Point) |
| 154 | (E : M14ExponentialFamily G T x) |
| 155 | (H₀ : M14StableSet G T τ₀ x E), |
| 156 | 0 < τ → τ < τ₀ → T - τ ∈ I.domain → |
| 157 | ∀ Z, Z ∈ H₀.carrier → |
| 158 | ∃ H : M14StableSet G T τ x E, |
| 159 | Z ∈ H.carrier ∧ (Z, Real.sqrt τ) ∈ M14JointDomain G E |
| 160 | euler_transport : ∀ (T : ℝ) (x : G.Point) |
| 161 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) (s : ℝ) |
| 162 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s), |
| 163 | ∀ r ∈ M14SqrtParameterInterval 0 (s ^ 2), ∀ W, |
| 164 | M14SquareRootEulerResidual G (E.square_path Z s hs hpos) |
| 165 | (E.square_extension Z s hs hpos) r W = 0 |
| 166 | jacobi_transport : ∀ (T : ℝ) (x : G.Point) |
| 167 | (E : M14ExponentialFamily G T x) (Z : G.Horizontal x) (s : ℝ) |
| 168 | (hs : (Z, s) ∈ E.domain) (hpos : 0 < s), |
| 169 | ∀ (W : G.Horizontal x), ∀ r ∈ M14SqrtParameterInterval 0 (s ^ 2), ∀ V, |
| 170 | M14JacobiResidual G (E.square_path Z s hs hpos) |
| 171 | (E.jacobi_path Z s hs hpos W).1 r V = 0 |
| 172 | |
| 173 | end PoincareMT |
| 174 |