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.Soliton.ThreeDimensional.Noncompact.Rigidity.Levels.PotentialLimit.Source |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.AtInfinity.UnscaledLimit |
| 3 | |
| 4 | /-! |
| 5 | # Normalized potential pullbacks on the retained pointed limit |
| 6 | |
| 7 | The functions here use the actual embeddings of the original unscaled |
| 8 | pointed convergence. Their base value is exactly zero. Metric convergence |
| 9 | and the source estimates make their pulled-back covariant Hessians uniformly |
| 10 | small on each compact subset in the exhaustion. |
| 11 | |
| 12 | Reference: Morgan--Tian, Proposition 9.46, pp. 209-213. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option maxSynthPendingDepth 12 |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.ShrinkingSolitonFlow |
| 26 | |
| 27 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 28 | FlowCarrier.isManifold |
| 29 | attribute [local instance] RicciFlow.smallCarrier RicciFlow.smallChartedSpace |
| 30 | RicciFlow.smallIsManifold |
| 31 | |
| 32 | variable {M : Type u} [TopologicalSpace M] |
| 33 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 34 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 35 | [SecondCountableTopology M] [ConnectedSpace M] |
| 36 | {S : GradientShrinkingSolitonData 3 M} (G : ShrinkingSolitonFlow S) {q : ℕ → M} |
| 37 | (L : AncientPointedGeometricConvergence |
| 38 | (fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 39 | (fun _ => G.unscaledSourceFlow.shrink.metric) |
| 40 | (fun k => equivShrink M (q k)) 1) |
| 41 | |
| 42 | /-- The retained spatial embeddings, returned to the original source universe. -/ |
| 43 | def unscaledOriginalEmbedding (k : ℕ) (x : L.limitCarrier.carrier) : M := |
| 44 | (equivShrink M).symm (L.embedding k x) |
| 45 | |
| 46 | /-- The exact centered potential, divided by its source gradient scale, |
| 47 | pulled back along the retained convergence embeddings. -/ |
| 48 | def normalizedPotentialPullback (k : ℕ) (x : L.limitCarrier.carrier) : ℝ := |
| 49 | S.normalizedPotential (q (L.subsequence k)) (G.unscaledOriginalEmbedding L k x) |
| 50 | |
| 51 | theorem unscaledOriginalEmbedding_base (k : ℕ) : |
| 52 | G.unscaledOriginalEmbedding L k L.base = q (L.subsequence k) := by |
| 53 | simp only [unscaledOriginalEmbedding, L.base_preserving, Equiv.symm_apply_apply] |
| 54 | |
| 55 | @[simp] theorem normalizedPotentialPullback_base (k : ℕ) : |
| 56 | G.normalizedPotentialPullback L k L.base = 0 := by |
| 57 | rw [normalizedPotentialPullback, G.unscaledOriginalEmbedding_base, |
| 58 | S.normalizedPotential_center] |
| 59 | |
| 60 | theorem unscaledOriginalEmbedding_contMDiffOn (k : ℕ) : |
| 61 | ContMDiffOn (𝓡 3) (𝓡 3) ∞ (G.unscaledOriginalEmbedding L k) (L.exhaustion k) := by |
| 62 | exact (Poincare.Manifold.shrinkDiffeomorph (𝓡 3) M).symm.contMDiff.comp_contMDiffOn |
| 63 | (L.embedding_smooth k).contMDiffOn |
| 64 | |
| 65 | theorem normalizedPotentialPullback_contMDiffOn (k : ℕ) : |
| 66 | ContMDiffOn (𝓡 3) 𝓘(ℝ, ℝ) ∞ |
| 67 | (G.normalizedPotentialPullback L k) (L.exhaustion k) := |
| 68 | (S.normalizedPotential_contMDiff (q (L.subsequence k))).comp_contMDiffOn |
| 69 | (G.unscaledOriginalEmbedding_contMDiffOn L k) |
| 70 | |
| 71 | /-- The zero-time pulled-back metric is precisely the original soliton |
| 72 | metric evaluated on the derivatives of these same embeddings. -/ |
| 73 | theorem unscaledOriginalEmbedding_inner (k : ℕ) (x : L.limitCarrier.carrier) |
| 74 | (hx : x ∈ L.exhaustion k) (v w : TangentSpace (𝓡 3) x) : |
| 75 | S.metric.inner (G.unscaledOriginalEmbedding L k x) |
| 76 | (mfderiv (𝓡 3) (𝓡 3) (G.unscaledOriginalEmbedding L k) x v) |
| 77 | (mfderiv (𝓡 3) (𝓡 3) (G.unscaledOriginalEmbedding L k) x w) = |
| 78 | spatialPullbackInner L.limitCarrier |
| 79 | (AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 80 | (G.unscaledSourceFlow.shrink.metric 0) (L.embedding k) x v w := by |
| 81 | let d := (Poincare.Manifold.shrinkDiffeomorph (𝓡 3) M).symm |
| 82 | have hd := mfderiv_comp x (d.contMDiff.mdifferentiable (by simp)).mdifferentiableAt |
| 83 | (((L.embedding_smooth k).contMDiffOn.contMDiffAt |
| 84 | ((L.exhaustion_open k).mem_nhds hx)).mdifferentiableAt (by simp)) |
| 85 | change S.metric.inner (d (L.embedding k x)) |
| 86 | (mfderiv (𝓡 3) (𝓡 3) (d ∘ L.embedding k) x v) |
| 87 | (mfderiv (𝓡 3) (𝓡 3) (d ∘ L.embedding k) x w) = _ |
| 88 | rw [hd] |
| 89 | change S.metric.inner _ _ _ = (G.unscaledSourceFlow.metric 0).inner _ _ _ |
| 90 | rw [G.unscaledSourceFlow_metric_zero] |
| 91 | rfl |
| 92 | |
| 93 | theorem normalizedPotentialPullback_scale_tendsto_atTop |
| 94 | (hD : S.connection.CurvatureTensorCalculus) (p : M) |
| 95 | (hescape : Tendsto (fun k => (S.metric.edist p (q k)).toReal) atTop atTop) : |
| 96 | Tendsto (fun k => S.potentialGradientScale (q (L.subsequence k))) atTop atTop := |
| 97 | (S.potentialGradientScale_tendsto_atTop_of_escape hD p q hescape).comp |
| 98 | L.subsequence_strictMono.tendsto_atTop |
| 99 | |
| 100 | /-- The covariant Hessians of the actual normalized source potentials, |
| 101 | pulled back by the actual pointed embeddings, tend to zero uniformly on |
| 102 | compact subsets and on unit tangent vectors for the limiting metric. -/ |
| 103 | theorem normalizedPotentialPullback_hessian_eventually_lt |
| 104 | (hD : S.connection.CurvatureTensorCalculus) (p : M) |
| 105 | (hescape : Tendsto (fun k => (S.metric.edist p (q k)).toReal) atTop atTop) |
| 106 | (j : ℕ) (K : Set L.limitCarrier.carrier) (hK : IsCompact K) |
| 107 | (hKj : K ⊆ L.exhaustion j) {ε : ℝ} (hε : 0 < ε) : |
| 108 | ∀ᶠ k in atTop, ∀ x ∈ K, ∀ v : TangentSpace (𝓡 3) x, |
| 109 | L.limitCarrier.metricNorm (L.limitFlow.metric 0) x v ≤ 1 → |
| 110 | |S.connection.hessian (S.normalizedPotential (q (L.subsequence k))) |
| 111 | (G.unscaledOriginalEmbedding L k x) |
| 112 | (mfderiv (𝓡 3) (𝓡 3) (G.unscaledOriginalEmbedding L k) x v) |
| 113 | (mfderiv (𝓡 3) (𝓡 3) (G.unscaledOriginalEmbedding L k) x v)| < ε := by |
| 114 | obtain ⟨C, hC, hbound⟩ := S.exists_normalizedPotential_hessian_bound |
| 115 | have ha := G.normalizedPotentialPullback_scale_tendsto_atTop L hD p hescape |
| 116 | obtain ⟨N, hjN, hmetric⟩ := L.pullback_metric_converges j K {0} hK hKj |
| 117 | isCompact_singleton (by simp) 1 (by norm_num) |
| 118 | have hmono : Monotone L.exhaustion := monotone_nat_of_le_succ L.exhaustion_increasing |
| 119 | filter_upwards [ha.eventually_gt_atTop (2 * C / ε + 1), eventually_ge_atTop N] |
| 120 | with k hk hkN |
| 121 | have hscale : 0 < S.potentialGradientScale (q (L.subsequence k)) := by |
| 122 | have hnonneg : 0 ≤ 2 * C / ε := by positivity |
| 123 | linarith |
| 124 | have hsmall : 2 * (C / S.potentialGradientScale (q (L.subsequence k))) < ε := by |
| 125 | have hlt : 2 * C / ε < S.potentialGradientScale (q (L.subsequence k)) := by linarith |
| 126 | have hm := (div_lt_iff₀ hε).mp hlt |
| 127 | rw [← mul_div_assoc] |
| 128 | exact (div_lt_iff₀ hscale).mpr (by nlinarith) |
| 129 | intro x hx v hv |
| 130 | have hxk : x ∈ L.exhaustion k := hmono (hjN.trans hkN) (hKj hx) |
| 131 | have hmet := hmetric k hkN 0 (mem_singleton 0) x hx v v hv hv |
| 132 | rw [← G.unscaledOriginalEmbedding_inner L k x hxk v v] at hmet |
| 133 | have hlim : L.limitCarrier.metricInner (L.limitFlow.metric 0) x v v ≤ 1 := by |
| 134 | have hnonneg : 0 ≤ L.limitCarrier.metricInner (L.limitFlow.metric 0) x v v := by |
| 135 | change 0 ≤ (L.limitFlow.metric 0).inner x v v |
| 136 | by_cases hz : v = 0 |
| 137 | · simp [hz] |
| 138 | · exact ((L.limitFlow.metric 0).pos x v hz).le |
| 139 | have hs := Real.sq_sqrt hnonneg |
| 140 | change L.limitCarrier.metricNorm (L.limitFlow.metric 0) x v ^ 2 = _ at hs |
| 141 | have hn : 0 ≤ L.limitCarrier.metricNorm (L.limitFlow.metric 0) x v := |
| 142 | Real.sqrt_nonneg _ |
| 143 | nlinarith |
| 144 | have hsource : S.metric.inner (G.unscaledOriginalEmbedding L k x) |
| 145 | (mfderiv (𝓡 3) (𝓡 3) (G.unscaledOriginalEmbedding L k) x v) |
| 146 | (mfderiv (𝓡 3) (𝓡 3) (G.unscaledOriginalEmbedding L k) x v) ≤ 2 := by |
| 147 | have h := (abs_lt.mp hmet).2 |
| 148 | linarith |
| 149 | exact (hbound _ _ _).trans_lt |
| 150 | ((mul_le_mul_of_nonneg_left hsource (div_nonneg hC hscale.le)).trans_lt |
| 151 | (by simpa only [mul_comm] using hsmall)) |
| 152 | |
| 153 | end PoincareMT.ShrinkingSolitonFlow |