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.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Cylinders.CylinderMetricBounds |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Cylinders.CylinderFiniteJets |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.Ends.SourceTubeInitialPair |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallInitialNodeCapture |
| 7 | |
| 8 | /-! |
| 9 | # Exact normalization of the initial cylinder coefficient field |
| 10 | |
| 11 | Squaring the original zero-node scale identity removes the square root |
| 12 | of the global normalization. The whole-slice cylinder coefficients are |
| 13 | therefore one fixed scalar times the original normalized neck field. |
| 14 | Source: Morgan--Tian Proposition 10.7, p. 253; M28 derivation 106. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M28.CounterexampleNeckFamily |
| 26 | |
| 27 | open tube |
| 28 | open PoincareMT.Proofs.M28.FiniteHessian |
| 29 | |
| 30 | variable {epsilon C A : ℝ} |
| 31 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 32 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 33 | |
| 34 | /-- The literal initial squared scale cancels the original positive |
| 35 | global normalization at every source index. Source: Proposition 10.7, |
| 36 | p. 253; M28 derivation 106. -/ |
| 37 | theorem normalizedSlice_initial_scale_sq (H : CounterexampleNeckFamily E) |
| 38 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) : |
| 39 | (E (k + H.shift)).flow.scalar |
| 40 | ⟨(E (k + H.shift)).time, (E (k + H.shift)).basepoint⟩ * |
| 41 | ((T k).list.node 0).2.scale ^ 2 = ((4 * max C 2)⁻¹) ^ 2 := by |
| 42 | have hs := congrArg (fun r : ℝ => r ^ 2) (H.tubeNodeScale_zero T k) |
| 43 | simpa only [tubeNodeScale, mul_pow, Real.sq_sqrt (H.base_scalar_pos k).le] using hs |
| 44 | |
| 45 | /-- The actual globally normalized initial cylinder field is a fixed |
| 46 | multiple of the original neck coefficients. This is an identity of the |
| 47 | whole coefficient function, hence of every germ and jet. Source: |
| 48 | Proposition 10.7, p. 253; M28 derivation 106. -/ |
| 49 | theorem normalizedSlice_initial_coefficients (H : CounterexampleNeckFamily E) |
| 50 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) |
| 51 | (q : UnitTwoSphere) (s : ℝ) : |
| 52 | (H.normalizedSliceMetric k).pullbackCoefficients |
| 53 | (cylinderNeckChart ((T k).list.node 0).2 q s) = |
| 54 | fun x => ((4 * max C 2)⁻¹) ^ 2 • |
| 55 | cylinderNeckCoefficients ((T k).list.node 0).2 q s x := by |
| 56 | funext x |
| 57 | change RiemannianMetric.pullbackCoefficients (M13.scaleSmoothMetric _ _ _) |
| 58 | (cylinderNeckChart ((T k).list.node 0).2 q s) x = _ |
| 59 | rw [scaleSmoothMetric_cylinderNeckCoefficients, H.normalizedSlice_initial_scale_sq] |
| 60 | |
| 61 | /-- The actual globally normalized initial coefficients have the fixed |
| 62 | Euclidean lower ellipticity used by the captured-map estimate. Source: |
| 63 | Proposition 10.7, p. 253; M28 derivation 106. -/ |
| 64 | theorem normalizedSlice_initial_coefficient_lower (H : CounterexampleNeckFamily E) |
| 65 | (T : ∀ k, SourceTubeData (H.segment k)) (k : ℕ) |
| 66 | (q : UnitTwoSphere) {s : ℝ} (hs : s ∈ Ioo (-epsilon⁻¹) epsilon⁻¹) |
| 67 | (v : EuclideanSpace ℝ (Fin 3)) : |
| 68 | (((4 * max C 2)⁻¹) ^ 2 * (1 - epsilon)) * ‖v‖ ^ 2 ≤ |
| 69 | (H.normalizedSliceMetric k).pullbackCoefficients |
| 70 | (cylinderNeckChart ((T k).list.node 0).2 q s) 0 v v := by |
| 71 | have heps := (T k).initial_node_geometry.1 |
| 72 | have hsN : s ∈ Ioo (-((T k).list.node 0).2.epsilon⁻¹) |
| 73 | ((T k).list.node 0).2.epsilon⁻¹ := by simpa only [heps] using hs |
| 74 | have h := (cylinderNeckCoefficients_quadratic_bounds ((T k).list.node 0).2 q hsN v).1 |
| 75 | rw [heps] at h |
| 76 | rw [H.normalizedSlice_initial_coefficients] |
| 77 | simpa only [smul_apply, smul_eq_mul, mul_assoc] using |
| 78 | mul_le_mul_of_nonneg_left h (sq_nonneg ((4 * max C 2)⁻¹)) |
| 79 | |
| 80 | /-- The literal initial normalized fields have common finite jets over |
| 81 | arbitrary original-index, sphere-point and valid-height families. No |
| 82 | captured-map bounds or target comparison are assumed. Source: |
| 83 | Proposition 10.7, p. 253; M28 derivation 106. -/ |
| 84 | theorem hasUniformJetBoundsAt_normalizedSlice_initial_coefficients |
| 85 | (H : CounterexampleNeckFamily E) (T : ∀ k, SourceTubeData (H.segment k)) |
| 86 | {ι : Type*} (k : ι → ℕ) (q : ι → UnitTwoSphere) (s : ι → ℝ) |
| 87 | (hs : ∀ i, s i ∈ Ioo (-epsilon⁻¹) epsilon⁻¹) |
| 88 | (m : ℕ) (hm : m ≤ ⌊epsilon⁻¹⌋₊) : |
| 89 | HasUniformJetBoundsAt m |
| 90 | (fun i => (H.normalizedSliceMetric (k i)).pullbackCoefficients |
| 91 | (cylinderNeckChart ((T (k i)).list.node 0).2 (q i) (s i))) |
| 92 | (fun _ => (0 : EuclideanSpace ℝ (Fin 3))) := by |
| 93 | let : AddMonoid (SpacetimeBounds.MetricCoefficient 3) := |
| 94 | (inferInstance : NormedAddCommGroup (SpacetimeBounds.MetricCoefficient 3)).toAddMonoid |
| 95 | let N := fun i => ((T (k i)).list.node 0).2 |
| 96 | have heps (i : ι) : (N i).epsilon = epsilon := (T (k i)).initial_node_geometry.1 |
| 97 | have heps0 := (T 0).initial_node_geometry.1 |
| 98 | have hpos : 0 < epsilon := heps0 ▸ ((T 0).list.node 0).2.epsilon_pos |
| 99 | have hsmall : epsilon ≤ 1 := by |
| 100 | have h := heps0 ▸ ((T 0).list.node 0).2.epsilon_lt_half |
| 101 | linarith |
| 102 | have hj := hasUniformJetBoundsAt_cylinderNeckCoefficients N hpos hsmall heps m hm q s hs |
| 103 | have hc (i : ι) : ContDiffAt ℝ ∞ (cylinderNeckCoefficients (N i) (q i) (s i)) 0 := by |
| 104 | apply (contDiffOn_cylinderNeckCoefficients (N i) (q i) (s i)).contDiffAt |
| 105 | apply (isOpen_cylinderNeckChartDomain (N i) (q i) (s i)).mem_nhds |
| 106 | apply zero_mem_cylinderNeckChartDomain |
| 107 | simpa only [heps i] using hs i |
| 108 | let L : SpacetimeBounds.MetricCoefficient 3 →L[ℝ] SpacetimeBounds.MetricCoefficient 3 := |
| 109 | ((4 * max C 2)⁻¹) ^ 2 • ContinuousLinearMap.id ℝ (SpacetimeBounds.MetricCoefficient 3) |
| 110 | have hscaled := hj.clm (G := SpacetimeBounds.MetricCoefficient 3) hc L |
| 111 | apply hscaled.congr_germ |
| 112 | intro i |
| 113 | filter_upwards [] with x |
| 114 | change ((4 * max C 2)⁻¹) ^ 2 • cylinderNeckCoefficients (N i) (q i) (s i) x = _ |
| 115 | exact (congrFun (H.normalizedSlice_initial_coefficients T (k i) (q i) (s i)) x).symm |
| 116 | |
| 117 | end PoincareMT.M28.CounterexampleNeckFamily |