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 |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Volume.MetricComparison |
| 3 | |
| 4 | /-! # The retained source embeddings used by potential level graphs -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | set_option autoImplicit false |
| 8 | set_option backward.isDefEq.respectTransparency false |
| 9 | set_option maxSynthPendingDepth 12 |
| 10 | |
| 11 | open Set Filter Function |
| 12 | open scoped Manifold ContDiff Bundle Topology |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT.ShrinkingSolitonFlow |
| 17 | |
| 18 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 19 | FlowCarrier.isManifold FlowCarrier.t3Space |
| 20 | attribute [local instance] RicciFlow.smallCarrier RicciFlow.smallChartedSpace |
| 21 | RicciFlow.smallIsManifold |
| 22 | |
| 23 | variable {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 25 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 26 | [SecondCountableTopology M] [ConnectedSpace M] |
| 27 | {S : GradientShrinkingSolitonData 3 M} (G : ShrinkingSolitonFlow S) {q : ℕ → M} |
| 28 | (L : AncientPointedGeometricConvergence |
| 29 | (fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 30 | (fun _ => G.unscaledSourceFlow.shrink.metric) |
| 31 | (fun k => equivShrink M (q k)) 1) |
| 32 | |
| 33 | theorem unscaledOriginalEmbedding_injOn (k : ℕ) : |
| 34 | InjOn (G.unscaledOriginalEmbedding L k) (L.exhaustion k) := by |
| 35 | intro x hx y hy hxy |
| 36 | have hsmall : L.embedding k x = L.embedding k y := |
| 37 | (equivShrink M).symm.injective hxy |
| 38 | have hh := (L.embedding_open k).injective (a₁ := ⟨x, hx⟩) (a₂ := ⟨y, hy⟩) hsmall |
| 39 | exact congrArg Subtype.val hh |
| 40 | |
| 41 | theorem unscaledOriginalEmbedding_isLocalDiffeomorphOn (k : ℕ) : |
| 42 | IsLocalDiffeomorphOn (𝓡 3) (𝓡 3) ∞ |
| 43 | (G.unscaledOriginalEmbedding L k) (L.exhaustion k) := by |
| 44 | intro x |
| 45 | exact (L.embedding_smooth k x).comp (𝓡 3) M |
| 46 | ((Poincare.Manifold.shrinkDiffeomorph (𝓡 3) M).symm.isLocalDiffeomorph _) |
| 47 | |
| 48 | /-- The exact original-source pullbacks converge relatively on every |
| 49 | compact set of the retained limit. -/ |
| 50 | theorem unscaledOriginalEmbedding_eventually_relative_metric_error |
| 51 | (K : Set L.limitCarrier.carrier) (hK : IsCompact K) {ε : ℝ} (hε : 0 < ε) : |
| 52 | ∀ᶠ k in atTop, K ⊆ L.exhaustion k ∧ |
| 53 | ∀ x ∈ K, ∀ v : TangentSpace (𝓡 3) x, |
| 54 | |S.metric.inner (G.unscaledOriginalEmbedding L k x) |
| 55 | (mfderiv (𝓡 3) (𝓡 3) (G.unscaledOriginalEmbedding L k) x v) |
| 56 | (mfderiv (𝓡 3) (𝓡 3) (G.unscaledOriginalEmbedding L k) x v) - |
| 57 | (L.limitFlow.metric 0).inner x v v| ≤ |
| 58 | ε * (L.limitFlow.metric 0).inner x v v := by |
| 59 | let W := AncientPointedGeometricConvergence.window |
| 60 | (C := fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 61 | (J := fun _ => Iio (1 : ℝ)) (T := 1) |
| 62 | (fun _ => G.unscaledSourceFlow.shrink) L |
| 63 | (a := -1) (b := 1 / 2) (by norm_num) (by norm_num) 0 |
| 64 | (by intro k t ht; exact ht.2.trans (by norm_num : (1 / 2 : ℝ) < 1)) |
| 65 | obtain ⟨j, hj⟩ := W.exists_exhaustion_superset hK |
| 66 | have hmono := monotone_nat_of_le_succ L.exhaustion_increasing |
| 67 | filter_upwards [W.eventually_pullback_inner_bounds hK (by norm_num : (0 : ℝ) ∈ Ioo (-1) (1 / 2)) hε, |
| 68 | eventually_ge_atTop j] with k hk hjk |
| 69 | have hmem : K ⊆ L.exhaustion k := fun x hx => hmono hjk (hj hx) |
| 70 | refine ⟨hmem, fun x hx v => ?_⟩ |
| 71 | have hh := hk x hx v |
| 72 | change (1 - ε) * (L.limitFlow.metric 0).inner x v v ≤ |
| 73 | spatialPullbackInner L.limitCarrier |
| 74 | (AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 75 | (G.unscaledSourceFlow.shrink.metric 0) (L.embedding k) x v v ∧ |
| 76 | spatialPullbackInner L.limitCarrier |
| 77 | (AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 78 | (G.unscaledSourceFlow.shrink.metric 0) (L.embedding k) x v v ≤ |
| 79 | (1 + ε) * (L.limitFlow.metric 0).inner x v v at hh |
| 80 | rw [← G.unscaledOriginalEmbedding_inner L k x (hmem hx) v v] at hh |
| 81 | exact abs_le.mpr ⟨by linarith [hh.1], by linarith [hh.2]⟩ |
| 82 | |
| 83 | end PoincareMT.ShrinkingSolitonFlow |