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.Tube.Spheres.RoundTransfer |
| 3 | |
| 4 | /-! |
| 5 | # Finite coefficient reconstruction for cylinder two-jets |
| 6 | |
| 7 | One fixed Euclidean basis controls the nested operator norm of all retained |
| 8 | metric jets. The bound precedes the source manifold and neck. It is used to |
| 9 | turn the actual frozen coefficient estimates into a scalar modulus input |
| 10 | for Morgan--Tian Lemma A.2, as derived in M28 derivation 22. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open scoped BigOperators |
| 18 | |
| 19 | namespace PoincareMT.M28.tube |
| 20 | |
| 21 | open PoincareMT.SpacetimeBounds |
| 22 | |
| 23 | private abbrev JE := EuclideanSpace ℝ (Fin 3) |
| 24 | private abbrev jb := (EuclideanSpace.basisFun (Fin 3) ℝ).toBasis |
| 25 | |
| 26 | private abbrev JMetric := MetricCoefficient 3 |
| 27 | local instance : NormedAddCommGroup JMetric := ContinuousLinearMap.toNormedAddCommGroup |
| 28 | local instance : NormedSpace ℝ JMetric := ContinuousLinearMap.toNormedSpace |
| 29 | private abbrev JFirst := JE →L[ℝ] JMetric |
| 30 | local instance : NormedAddCommGroup JFirst := ContinuousLinearMap.toNormedAddCommGroup |
| 31 | local instance : NormedSpace ℝ JFirst := ContinuousLinearMap.toNormedSpace |
| 32 | private abbrev JSecond := JE →L[ℝ] JFirst |
| 33 | local instance : NormedAddCommGroup JSecond := ContinuousLinearMap.toNormedAddCommGroup |
| 34 | local instance : NormedSpace ℝ JSecond := ContinuousLinearMap.toNormedSpace |
| 35 | |
| 36 | private def basisJetBound : ℝ := |
| 37 | 1 + 3 * ‖jb.equivFunL.toContinuousLinearMap‖ |
| 38 | |
| 39 | private theorem one_le_basisJetBound : 1 ≤ basisJetBound := by |
| 40 | dsimp [basisJetBound] |
| 41 | linarith [norm_nonneg jb.equivFunL.toContinuousLinearMap] |
| 42 | |
| 43 | private theorem norm_le_basisJetBound {F : Type*} |
| 44 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 45 | (L : JE →L[ℝ] F) {A : ℝ} (hA : 0 ≤ A) |
| 46 | (hL : ∀ i : Fin 3, ‖L (EuclideanSpace.basisFun (Fin 3) ℝ i)‖ ≤ A) : |
| 47 | ‖L‖ ≤ basisJetBound * A := by |
| 48 | have h := jb.opNorm_le hA hL |
| 49 | have h' : ‖L‖ ≤ (3 * ‖jb.equivFunL.toContinuousLinearMap‖) * A := by |
| 50 | simpa [nsmul_eq_mul] using h |
| 51 | apply h'.trans |
| 52 | exact mul_le_mul_of_nonneg_right (by dsimp [basisJetBound]; linarith) hA |
| 53 | |
| 54 | /-- Basis coefficient bounds through metric order two give one universal |
| 55 | nested-operator bound. This is a finite linear estimate, not an assumed |
| 56 | coordinate-jet bound on a neck. -/ |
| 57 | theorem exists_metricTwoJet_coefficient_bound : |
| 58 | ∃ K : ℝ, 0 < K ∧ ∀ (J : MetricTwoJet 3) (A : ℝ), 0 ≤ A → |
| 59 | (∀ a b : Fin 3, |
| 60 | |J.1 (EuclideanSpace.basisFun (Fin 3) ℝ a) |
| 61 | (EuclideanSpace.basisFun (Fin 3) ℝ b)| ≤ A) → |
| 62 | (∀ i a b : Fin 3, |
| 63 | |J.2.1 (EuclideanSpace.basisFun (Fin 3) ℝ i) |
| 64 | (EuclideanSpace.basisFun (Fin 3) ℝ a) |
| 65 | (EuclideanSpace.basisFun (Fin 3) ℝ b)| ≤ A) → |
| 66 | (∀ j i a b : Fin 3, |
| 67 | |J.2.2 (EuclideanSpace.basisFun (Fin 3) ℝ j) |
| 68 | (EuclideanSpace.basisFun (Fin 3) ℝ i) |
| 69 | (EuclideanSpace.basisFun (Fin 3) ℝ a) |
| 70 | (EuclideanSpace.basisFun (Fin 3) ℝ b)| ≤ A) → |
| 71 | ‖J‖ ≤ K * A := by |
| 72 | have hC : 0 < basisJetBound := lt_of_lt_of_le (by norm_num) one_le_basisJetBound |
| 73 | refine ⟨basisJetBound ^ 4, pow_pos hC _, ?_⟩ |
| 74 | intro J A hA hzero hfirst hsecond |
| 75 | have h0 : ‖J.1‖ ≤ basisJetBound ^ 2 * A := by |
| 76 | have h := norm_le_basisJetBound J.1 (by positivity : 0 ≤ basisJetBound * A) |
| 77 | (fun a => norm_le_basisJetBound _ hA (fun b => |
| 78 | by simpa only [Real.norm_eq_abs] using hzero a b)) |
| 79 | simpa only [pow_two, mul_assoc] using h |
| 80 | have h1 : ‖J.2.1‖ ≤ basisJetBound ^ 3 * A := by |
| 81 | have h := norm_le_basisJetBound J.2.1 |
| 82 | (by positivity : 0 ≤ basisJetBound * (basisJetBound * A)) (fun i => |
| 83 | norm_le_basisJetBound _ (by positivity : 0 ≤ basisJetBound * A) (fun a => |
| 84 | norm_le_basisJetBound _ hA (fun b => |
| 85 | by simpa only [Real.norm_eq_abs] using hfirst i a b))) |
| 86 | convert h using 1 |
| 87 | ring |
| 88 | have h2 : ‖J.2.2‖ ≤ basisJetBound ^ 4 * A := by |
| 89 | have h := norm_le_basisJetBound J.2.2 |
| 90 | (by positivity : 0 ≤ basisJetBound * (basisJetBound * (basisJetBound * A))) (fun j => |
| 91 | norm_le_basisJetBound _ |
| 92 | (by positivity : 0 ≤ basisJetBound * (basisJetBound * A)) (fun i => |
| 93 | norm_le_basisJetBound _ (by positivity : 0 ≤ basisJetBound * A) (fun a => |
| 94 | norm_le_basisJetBound _ hA (fun b => |
| 95 | by simpa only [Real.norm_eq_abs] using hsecond j i a b)))) |
| 96 | convert h using 1 |
| 97 | ring |
| 98 | have h24 : basisJetBound ^ 2 ≤ basisJetBound ^ 4 := |
| 99 | pow_le_pow_right₀ one_le_basisJetBound (by omega) |
| 100 | have h34 : basisJetBound ^ 3 ≤ basisJetBound ^ 4 := |
| 101 | pow_le_pow_right₀ one_le_basisJetBound (by omega) |
| 102 | change max ‖J.1‖ (max ‖J.2.1‖ ‖J.2.2‖) ≤ _ |
| 103 | exact max_le (h0.trans (mul_le_mul_of_nonneg_right h24 hA)) |
| 104 | (max_le (h1.trans (mul_le_mul_of_nonneg_right h34 hA)) h2) |
| 105 | |
| 106 | end PoincareMT.M28.tube |