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.Bounds |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.Levels.PotentialLimit.Connection |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.Levels.PotentialLimit.Forcing |
| 4 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.Levels.PotentialLimit.Equation |
| 5 | |
| 6 | /-! # All compact chart derivative bounds for the actual normalized potentials -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | set_option autoImplicit false |
| 10 | set_option backward.isDefEq.respectTransparency false |
| 11 | set_option maxSynthPendingDepth 12 |
| 12 | set_option maxHeartbeats 800000 |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Manifold ContDiff Bundle Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.ShrinkingSolitonFlow |
| 20 | |
| 21 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 22 | FlowCarrier.isManifold FlowCarrier.t3Space |
| 23 | attribute [local instance] RicciFlow.smallCarrier RicciFlow.smallChartedSpace |
| 24 | RicciFlow.smallIsManifold |
| 25 | |
| 26 | variable {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 29 | [SecondCountableTopology M] [ConnectedSpace M] |
| 30 | {S : GradientShrinkingSolitonData 3 M} (G : ShrinkingSolitonFlow S) {q : ℕ → M} |
| 31 | (L : AncientPointedGeometricConvergence |
| 32 | (fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 33 | (fun _ => G.unscaledSourceFlow.shrink.metric) |
| 34 | (fun k => equivShrink M (q k)) 1) |
| 35 | |
| 36 | open Poincare.Analysis.Calculus |
| 37 | |
| 38 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 39 | |
| 40 | theorem normalizedPotential_chart_eventually_domain |
| 41 | (z : L.limitCarrier.carrier) (K : Set E) (hK : IsCompact K) |
| 42 | (hKt : K ⊆ (extChartAt (𝓡 3) z).target) : |
| 43 | ∀ᶠ k in atTop, ∀ x ∈ K, (extChartAt (𝓡 3) z).symm x ∈ L.exhaustion k := by |
| 44 | let W := AncientPointedGeometricConvergence.window |
| 45 | (C := fun _ => AncientRescalingSequence.smallRescalingCarrier (M := M)) |
| 46 | (J := fun _ => Iio (1 : ℝ)) (T := 1) |
| 47 | (fun _ => G.unscaledSourceFlow.shrink) L |
| 48 | (a := -1) (b := 1 / 2) (by norm_num) (by norm_num) 0 |
| 49 | (by intro k t ht; exact ht.2.trans (by norm_num : (1 / 2 : ℝ) < 1)) |
| 50 | obtain ⟨j, hj⟩ := W.exists_exhaustion_superset |
| 51 | (hK.image_of_continuousOn ((contMDiffOn_extChartAt_symm (n := ∞) z).continuousOn.mono hKt)) |
| 52 | have hmono := monotone_nat_of_le_succ L.exhaustion_increasing |
| 53 | filter_upwards [eventually_ge_atTop j] with k hk x hx |
| 54 | exact hmono hk (hj (mem_image_of_mem _ hx)) |
| 55 | |
| 56 | theorem normalizedPotentialPullback_coordinate_locally_smooth |
| 57 | (z : L.limitCarrier.carrier) : |
| 58 | LocallyEventuallyContDiff (extChartAt (𝓡 3) z).target |
| 59 | (fun k => G.normalizedPotentialPullback L k ∘ (extChartAt (𝓡 3) z).symm) := by |
| 60 | intro K hK hKt |
| 61 | filter_upwards [G.normalizedPotential_chart_eventually_domain L z K hK hKt] with k hk |
| 62 | let U := (extChartAt (𝓡 3) z).target ∩ (extChartAt (𝓡 3) z).symm ⁻¹' L.exhaustion k |
| 63 | have hU : IsOpen U := (contMDiffOn_extChartAt_symm (n := ∞) z).continuousOn.isOpen_inter_preimage |
| 64 | (isOpen_extChartAt_target z) (L.exhaustion_open k) |
| 65 | refine ⟨U, hU, fun x hx => ⟨hKt hx, hk x hx⟩, fun x hx => ?_⟩ |
| 66 | exact (contMDiffAt_iff_contDiffAt.mp |
| 67 | (((G.normalizedPotentialPullback_contMDiffOn L k).contMDiffAt |
| 68 | ((L.exhaustion_open k).mem_nhds hx.2)).comp x |
| 69 | ((contMDiffOn_extChartAt_symm (n := ∞) z).contMDiffAt |
| 70 | ((isOpen_extChartAt_target z).mem_nhds hx.1)))).contDiffWithinAt |
| 71 | |
| 72 | theorem normalizedPotentialSpacetimeCoefficients_deriv_time |
| 73 | (z : L.limitCarrier.carrier) (k : ℕ) (x : E) |
| 74 | (hx : x ∈ (extChartAt (𝓡 3) z).target) |
| 75 | (hxk : (extChartAt (𝓡 3) z).symm x ∈ L.exhaustion k) : |
| 76 | deriv (fun t => G.normalizedPotentialSpacetimeCoefficients L z k (t, x)) 0 = |
| 77 | fderiv ℝ (G.normalizedPotentialSpacetimeCoefficients L z k) (0, x) (1, 0) := by |
| 78 | have he := ((L.embedding_smooth k).contMDiffOn.contMDiffAt |
| 79 | ((L.exhaustion_open k).mem_nhds hxk)).comp x |
| 80 | ((contMDiffOn_extChartAt_symm (n := ∞) z).contMDiffAt |
| 81 | ((isOpen_extChartAt_target z).mem_nhds hx)) |
| 82 | have hh := G.unscaledSourceFlow.shrink.smooth.contDiffAt_spacetime_pullbackCoefficients |
| 83 | isOpen_Iio he (by norm_num : (0 : ℝ) ∈ Iio 1) |
| 84 | exact ((hh.differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt (0 : ℝ) |
| 85 | ((hasDerivAt_id (0 : ℝ)).prodMk (hasDerivAt_const (0 : ℝ) x))).deriv |
| 86 | |
| 87 | theorem normalizedPotentialPullback_coordinate_derivatives_bounded |
| 88 | (hD : S.connection.CurvatureTensorCalculus) (p : M) |
| 89 | (hescape : Tendsto (fun k => (S.metric.edist p (q k)).toReal) atTop atTop) |
| 90 | (hcomplete : MetricComplete (L.limitFlow.metric 0)) (z : L.limitCarrier.carrier) : |
| 91 | LocallyEventuallyBoundedDerivatives (extChartAt (𝓡 3) z).target |
| 92 | (fun k => G.normalizedPotentialPullback L k ∘ (extChartAt (𝓡 3) z).symm) := by |
| 93 | let f := fun k => G.normalizedPotentialPullback L k ∘ (extChartAt (𝓡 3) z).symm |
| 94 | let P := fun k x => G.normalizedPotentialSpacetimeCoefficients L z k (0, x) |
| 95 | obtain ⟨hPs, hPjet⟩ := G.normalizedPotentialCoefficients_smooth_convergence L z |
| 96 | obtain ⟨hAs, hAb⟩ := locallyEventuallyBoundedDerivatives_potentialConnectionOperator |
| 97 | (isOpen_extChartAt_target z) hPs ((L.limitFlow.metric 0).contDiffOn_chartCoefficients z) |
| 98 | (fun x hx => (L.limitFlow.metric 0).isInvertible_chartCoefficients z hx) hPjet |
| 99 | obtain ⟨hBs, hBb⟩ := G.normalizedPotentialForcing_bounds L hD p hescape z |
| 100 | apply locallyEventuallyBoundedDerivatives_of_hessian_recurrence |
| 101 | (A := fun k x => potentialConnectionOperator (P k x, fderiv ℝ (P k) x)) |
| 102 | (B := G.normalizedPotentialForcing L z) |
| 103 | (G.normalizedPotentialPullback_coordinate_locally_smooth L z) hAs hBs hAb hBb |
| 104 | · intro K hK hKt |
| 105 | obtain ⟨B, _, hB⟩ := G.normalizedPotentialPullback_eventually_coordinate_C1_bounded |
| 106 | L hD p hescape hcomplete z K hK hKt |
| 107 | exact ⟨B, hB.mono fun k hk x hx => (hk x hx).1⟩ |
| 108 | · intro K hK hKt |
| 109 | obtain ⟨B, _, hB⟩ := G.normalizedPotentialPullback_eventually_coordinate_C1_bounded |
| 110 | L hD p hescape hcomplete z K hK hKt |
| 111 | exact ⟨B, hB.mono fun k hk x hx => (hk x hx).2⟩ |
| 112 | · intro K hK hKt |
| 113 | filter_upwards [G.normalizedPotential_chart_eventually_domain L z K hK hKt] with k hk x hx |
| 114 | have hneigh : IsOpen ((extChartAt (𝓡 3) z).target ∩ |
| 115 | (extChartAt (𝓡 3) z).symm ⁻¹' L.exhaustion k) := |
| 116 | (contMDiffOn_extChartAt_symm (n := ∞) z).continuousOn.isOpen_inter_preimage |
| 117 | (isOpen_extChartAt_target z) (L.exhaustion_open k) |
| 118 | filter_upwards [hneigh.mem_nhds ⟨hKt hx, hk x hx⟩] with y hy |
| 119 | ext v w |
| 120 | simp only [add_apply] |
| 121 | rw [potentialConnectionOperator_apply] |
| 122 | have heq := G.normalizedPotentialPullback_fderiv2 L z k y hy.1 hy.2 v w |
| 123 | dsimp only at heq |
| 124 | rw [G.normalizedPotentialSpacetimeCoefficients_deriv_time L z k y hy.1 hy.2] at heq |
| 125 | simpa only [normalizedPotentialForcing, add_apply, |
| 126 | smul_apply, smul_eq_mul, div_eq_mul_inv, mul_comm] using heq |
| 127 | |
| 128 | end PoincareMT.ShrinkingSolitonFlow |