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.RoundGaussJetReadout |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Spheres.RoundModelCenterMetricJet |
| 4 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Spheres.RoundNormalizedGaussChart |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Spheres.RoundGaussScalarReadout |
| 6 | |
| 7 | /-! |
| 8 | # Uniform scalar comparison on actual round components |
| 9 | |
| 10 | The epsilon threshold is selected from one compact family of model jets |
| 11 | before any manifold, metric, component or point is supplied. Genuine local |
| 12 | Gauss charts and the frozen covariant comparison produce the nearby source |
| 13 | jets. The scalar readout then gives the ratio used in Morgan--Tian section |
| 14 | 10.3.1, printed p. 247, without a metric-jet or scalar-closeness premise. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option maxSynthPendingDepth 12 |
| 21 | |
| 22 | open Set Metric |
| 23 | open scoped Manifold ContDiff Bundle Topology |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.M28.tube |
| 28 | |
| 29 | open PoincareMT.SpacetimeBounds |
| 30 | |
| 31 | /-- A universal accuracy controls the actual normalized scalar throughout |
| 32 | every round component. All geometric objects are quantified after it. -/ |
| 33 | theorem exists_round_scalar_accuracy {delta : ℝ} (hdelta : 0 < delta) : |
| 34 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 35 | ∀ (M : Type u) [TopologicalSpace M] |
| 36 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 37 | [IsManifold (𝓡 3) ∞ M] [T2Space M] |
| 38 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 39 | (epsilon : ℝ) (N : SingularRoundComponent g epsilon), |
| 40 | epsilon ≤ epsilon₀ → ∀ x ∈ N.carrier, |
| 41 | |D.scalarCurvature x / N.scale - 6| < delta := by |
| 42 | obtain ⟨eta, heta, hmodulus⟩ := exists_roundJet_scalar_uniform_modulus 0 4 hdelta |
| 43 | let C : ℝ := 1 + ‖modelTensorConnectionLiftMap‖ * 2 |
| 44 | have hC : 0 < C := by dsimp [C]; positivity |
| 45 | let epsilon₀ := min (1 / 200 : ℝ) (eta / (2 * C)) |
| 46 | have hepsilon₀ : 0 < epsilon₀ := by |
| 47 | apply lt_min (by norm_num) |
| 48 | exact div_pos heta (mul_pos (by norm_num) hC) |
| 49 | refine ⟨epsilon₀, hepsilon₀, min_le_left _ _, ?_⟩ |
| 50 | intro M _ _ _ _ g D epsilon N hepsilon x hx |
| 51 | have hsmall : C * epsilon < eta := by |
| 52 | have h := hepsilon.trans (min_le_right _ _) |
| 53 | have hmul := (le_div_iff₀ (mul_pos (by norm_num : (0 : ℝ) < 2) hC)).mp h |
| 54 | nlinarith |
| 55 | have hhalf : epsilon ≤ (1 / 2 : ℝ) := |
| 56 | (hepsilon.trans (min_le_left _ _)).trans (by norm_num) |
| 57 | have horder : 2 ≤ ⌊epsilon⁻¹⌋₊ := by |
| 58 | apply Nat.le_floor |
| 59 | rw [inv_eq_one_div, le_div_iff₀ N.epsilon_pos] |
| 60 | norm_num |
| 61 | linarith |
| 62 | obtain ⟨R, hR, e, he0, he, hi, hcenter, hgauss⟩ := |
| 63 | exists_normalized_gauss_parametrization N.model_metric (N.inverse x) |
| 64 | have hmodel : metricTwoJet (N.model_metric.pullbackCoefficients e) 0 ∈ |
| 65 | roundJetScalarSixSet 0 4 := by |
| 66 | exact ⟨round_model_center_metricTwoJet_mem_boundSet N hR e he hi hcenter hgauss, |
| 67 | round_gauss_model_scalar_eq_six N isOpen_ball he hi (mem_ball_self hR)⟩ |
| 68 | have hdist := (round_gauss_two_jet_dist_le N hR e he hi hcenter hgauss horder).trans_lt |
| 69 | hsmall |
| 70 | have hscalar := hmodulus _ hmodel _ hdist |
| 71 | rw [round_gauss_source_scalar_eq N D isOpen_ball he hi (mem_ball_self hR), |
| 72 | he0, N.right_inverse hx] at hscalar |
| 73 | exact hscalar |
| 74 | |
| 75 | /-- The round alternative has a universal scalar ratio under one accuracy |
| 76 | threshold, derived from the actual metric certificate. -/ |
| 77 | theorem exists_round_scalar_ratio_accuracy : |
| 78 | ∃ epsilon₀ : ℝ, 0 < epsilon₀ ∧ epsilon₀ ≤ (1 / 200 : ℝ) ∧ |
| 79 | ∀ (M : Type u) [TopologicalSpace M] |
| 80 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 81 | [IsManifold (𝓡 3) ∞ M] [T2Space M] |
| 82 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 83 | (epsilon : ℝ) (N : SingularRoundComponent g epsilon), |
| 84 | epsilon ≤ epsilon₀ → ∀ x ∈ N.carrier, ∀ y ∈ N.carrier, |
| 85 | D.scalarCurvature x ≤ 2 * D.scalarCurvature y := by |
| 86 | obtain ⟨epsilon₀, hpos, hsmall, hclose⟩ := |
| 87 | exists_round_scalar_accuracy.{u} (delta := 1 / 2) (by norm_num) |
| 88 | refine ⟨epsilon₀, hpos, hsmall, ?_⟩ |
| 89 | intro M _ _ _ _ g D epsilon N hepsilon |
| 90 | exact round_scalar_ratio_of_normalized_close N D |
| 91 | (by norm_num : (0 : ℝ) < 1 / 2) (by norm_num) |
| 92 | (hclose M g D epsilon N hepsilon) |
| 93 | |
| 94 | end PoincareMT.M28.tube |