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.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.SectionalPlanes |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Uniqueness.RawDistanceExhaustion |
| 4 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Minimum.Compactness.ScalarBound |
| 5 | |
| 6 | /-! |
| 7 | # Actual sectional quotients on arbitrary raw standard flows |
| 8 | |
| 9 | Morgan-Tian Lemma 12.6, p. 297. The actual quotient is continuous on |
| 10 | the raw time domain and compact Euclidean plane parameters. The raw |
| 11 | curvature bound controls both its negative part and its reaction rate. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35.Uniqueness |
| 21 | |
| 22 | open M04 |
| 23 | |
| 24 | abbrev StandardSectionalPair := modelOrthonormalPairs 3 |
| 25 | |
| 26 | noncomputable def rawSectionalRayleigh {g₀ : StandardInitialMetric} |
| 27 | (G : PartialStandardCapFlow g₀) (t : ℝ) |
| 28 | (z : StandardCapSpace × StandardSectionalPair) : ℝ := |
| 29 | (G.flow.connection t).sectionalCurvature z.1 z.2.val.1 z.2.val.2 |
| 30 | |
| 31 | private theorem continuousOn_sectionalRayleigh_euclidean {n : ℕ} {J : Set ℝ} |
| 32 | (F : RicciFlow n (EuclideanSpace ℝ (Fin n)) J) : |
| 33 | ContinuousOn (fun p : (ℝ × EuclideanSpace ℝ (Fin n)) × |
| 34 | (EuclideanSpace ℝ (Fin n) × EuclideanSpace ℝ (Fin n)) => |
| 35 | (F.connection p.1.1).sectionalCurvature p.1.2 p.2.1 p.2.2) |
| 36 | ((J ×ˢ univ) ×ˢ modelOrthonormalPairs n) := by |
| 37 | let V := EuclideanSpace ℝ (Fin n) |
| 38 | let e := trivializationAt V (TangentSpace (𝓡 n)) (0 : V) |
| 39 | have hbase : e.baseSet = univ := rfl |
| 40 | have he (y v : V) : e.symmL ℝ y v = v := by |
| 41 | simp only [e, TangentBundle.symmL_model_space] |
| 42 | rfl |
| 43 | have h := continuousOn_flow_sectionalRayleigh_trivialization F (0 : V) |
| 44 | change ContinuousOn (fun p : (ℝ × V) × (V × V) => |
| 45 | (F.connection p.1.1).curvatureTensor p.1.2 |
| 46 | (e.symmL ℝ p.1.2 p.2.1) (e.symmL ℝ p.1.2 p.2.2) |
| 47 | (e.symmL ℝ p.1.2 p.2.1) (e.symmL ℝ p.1.2 p.2.2) / |
| 48 | metricGram (F.metric p.1.1) p.1.2 |
| 49 | (e.symmL ℝ p.1.2 p.2.1) (e.symmL ℝ p.1.2 p.2.2)) |
| 50 | ((J ×ˢ e.baseSet) ×ˢ modelOrthonormalPairs n) at h |
| 51 | simp only [he, hbase] at h |
| 52 | exact h |
| 53 | |
| 54 | theorem continuousOn_rawSectionalRayleigh {g₀ : StandardInitialMetric} |
| 55 | (G : PartialStandardCapFlow g₀) : |
| 56 | ContinuousOn (Function.uncurry (rawSectionalRayleigh G)) (Ico 0 G.lifetime ×ˢ univ) := by |
| 57 | have h := continuousOn_sectionalRayleigh_euclidean G.flow |
| 58 | have hc : Continuous (fun z : ℝ × (StandardCapSpace × StandardSectionalPair) => |
| 59 | ((z.1, z.2.1), z.2.2.val)) := by fun_prop |
| 60 | have hm : MapsTo (fun z : ℝ × (StandardCapSpace × StandardSectionalPair) => |
| 61 | ((z.1, z.2.1), z.2.2.val)) (Ico 0 G.lifetime ×ˢ univ) |
| 62 | ((Ico 0 G.lifetime ×ˢ univ) ×ˢ modelOrthonormalPairs 3) := |
| 63 | fun z hz => ⟨⟨hz.1, mem_univ _⟩, z.2.2.property⟩ |
| 64 | convert! h.comp hc.continuousOn hm using 1 |
| 65 | |
| 66 | theorem rawSectionalRayleigh_initial_nonneg {g₀ : StandardInitialMetric} |
| 67 | (G : PartialStandardCapFlow g₀) (z : StandardCapSpace × StandardSectionalPair) : |
| 68 | 0 ≤ rawSectionalRayleigh G 0 z := by |
| 69 | have htransport (g h : RiemannianMetric 3 StandardCapSpace) |
| 70 | (D : LeviCivitaData g) (D' : LeviCivitaData h) (hg : g = h) (hD : HEq D D') : |
| 71 | D.curvatureTensor z.1 z.2.val.1 z.2.val.2 z.2.val.1 z.2.val.2 = |
| 72 | D'.curvatureTensor z.1 z.2.val.1 z.2.val.2 z.2.val.1 z.2.val.2 := by |
| 73 | subst h |
| 74 | cases eq_of_heq hD |
| 75 | rfl |
| 76 | apply div_nonneg |
| 77 | · rw [htransport _ _ _ _ G.initial_metric G.initial_connection] |
| 78 | exact g₀.nonnegative_sectional z.1 z.2.val.1 z.2.val.2 |
| 79 | · exact (metricGram_pos_of_modelPair (G.flow.metric 0) z.1 z.2.property).le |
| 80 | |
| 81 | theorem rawSectionalRayleigh_abs_le {g₀ : StandardInitialMetric} |
| 82 | (G : PartialStandardCapFlow g₀) (t : ℝ) (z : StandardCapSpace × StandardSectionalPair) : |
| 83 | |rawSectionalRayleigh G t z| ≤ (G.flow.connection t).curvatureTensorNorm z.1 := |
| 84 | (G.flow.connection t).abs_sectionalCurvature_le_curvatureTensorNorm z.1 z.2.val.1 z.2.val.2 |
| 85 | |
| 86 | theorem rawSectionalRayleigh_reaction_bound {g₀ : StandardInitialMetric} |
| 87 | (G : PartialStandardCapFlow g₀) {K t : ℝ} |
| 88 | (hK : ∀ x, (G.flow.connection t).curvatureTensorNorm x ≤ K) |
| 89 | (z : StandardCapSpace × StandardSectionalPair) : |
| 90 | (G.flow.connection t).scalarCurvature z.1 - 2 * rawSectionalRayleigh G t z ≤ 11 * K := by |
| 91 | have hq := (abs_le.mp ((rawSectionalRayleigh_abs_le G t z).trans (hK z.1))).1 |
| 92 | have hs := (le_abs_self _).trans (M10.abs_scalarCurvature_le |
| 93 | (G.flow.metric t) (G.flow.connection t) z.1) |
| 94 | norm_num at hs |
| 95 | linarith [hK z.1] |
| 96 | |
| 97 | end PoincareMT.M35.Uniqueness |