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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Topology.Manifold.Poincare.Final.Compatibility.Volume |
| 3 | import PoincareLib.Topology.Manifold.Poincare.Final.Compatibility.Metric |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceNormalScaling |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceNormalTransfer |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Volume.LocalVolume |
| 7 | |
| 8 | /-! |
| 9 | # Source normal-chart inputs from physical terminal controls |
| 10 | |
| 11 | MT Theorem 1.36, p. 20, and Claim 17.9, p. 406. Physical six-radius |
| 12 | image containment, five-radius curvature and the physical volume floor |
| 13 | produce the source bounds with the given single normalization Q. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | universe u v |
| 23 | |
| 24 | namespace PoincareMT.M47 |
| 25 | |
| 26 | variable {M : Type u} {N : Type v} [TopologicalSpace M] [TopologicalSpace N] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) N] |
| 29 | [IsManifold (𝓡 3) ∞ M] [IsManifold (𝓡 3) ∞ N] |
| 30 | [T3Space M] [T3Space N] [MeasurableSpace M] [BorelSpace M] |
| 31 | [MeasurableSpace N] [BorelSpace N] |
| 32 | [SecondCountableTopology M] [SecondCountableTopology N] |
| 33 | |
| 34 | /-- Exact source-ball volume on the physical carrier with its original |
| 35 | radius and normalization factor; MT Definition 3.40 and Theorem 1.36. -/ |
| 36 | theorem terminalSourceNormal_physical_ball_volume |
| 37 | (g : RiemannianMetric 3 M) (gphys : RiemannianMetric 3 N) |
| 38 | (e : PartialDiffeomorph (𝓡 3) (𝓡 3) M N ∞) (hsource : e.source = univ) |
| 39 | {Q : ℝ} (hQ : 0 < Q) |
| 40 | (hmetric : ∀ x (v w : TangentSpace (𝓡 3) x), |
| 41 | g.inner x v w = Q * gphys.inner (e x) |
| 42 | (mfderiv (𝓡 3) (𝓡 3) e x v) (mfderiv (𝓡 3) (𝓡 3) e x w)) |
| 43 | (p : M) (r : ℝ) (hcover : gphys.ball (e p) (r / Real.sqrt Q) ⊆ e.target) : |
| 44 | calibratedMetricVolume g (g.ball p r) = ENNReal.ofReal (Real.sqrt Q ^ 3) * |
| 45 | calibratedMetricVolume gphys (gphys.ball (e p) (r / Real.sqrt Q)) := by |
| 46 | let h : RiemannianMetric 3 N := M13.scaleSmoothMetric gphys Q hQ |
| 47 | have hm (x : M) (v w : TangentSpace (𝓡 3) x) : |
| 48 | g.inner x v w = h.inner (e x) |
| 49 | (mfderiv (𝓡 3) (𝓡 3) e x v) (mfderiv (𝓡 3) (𝓡 3) e x w) := hmetric x v w |
| 50 | have hball : h.ball (e p) r = gphys.ball (e p) (r / Real.sqrt Q) := |
| 51 | terminalSourceNormal_scaled_ball gphys hQ (e p) r |
| 52 | rw [terminalSourceNormal_ball_volume g h e hsource hm p r (hball.symm ▸ hcover), hball] |
| 53 | exact terminalSourceNormal_scaled_volume gphys hQ _ |
| 54 | |
| 55 | /-- Literal physical ball controls imply the source compactness, |
| 56 | curvature and volume required by M07; MT Theorem 1.36 and Claim 17.9. -/ |
| 57 | theorem terminalSourceNormal_physical_buffers |
| 58 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 59 | (gphys : RiemannianMetric 3 N) (Dphys : LeviCivitaData gphys) |
| 60 | (e : PartialDiffeomorph (𝓡 3) (𝓡 3) M N ∞) (hsource : e.source = univ) |
| 61 | {Q R r K v : ℝ} (hQ : 0 < Q) (hR : 0 < R) (hrR : r ≤ R) |
| 62 | (hmetric : ∀ x (v w : TangentSpace (𝓡 3) x), |
| 63 | g.inner x v w = Q * gphys.inner (e x) |
| 64 | (mfderiv (𝓡 3) (𝓡 3) e x v) (mfderiv (𝓡 3) (𝓡 3) e x w)) |
| 65 | (hnorm : ∀ x, D.curvatureTensorNorm x = Dphys.curvatureTensorNorm (e x) / Q) |
| 66 | (p0 : M) (hcompact : IsCompact (univ : Set N)) |
| 67 | (hcover : gphys.ball (e p0) (6 * R / Real.sqrt Q) ⊆ e.target) |
| 68 | (hcurv : ∀ x ∈ gphys.ball (e p0) (5 * R / Real.sqrt Q), |
| 69 | Dphys.curvatureTensorNorm x ≤ K * Q) |
| 70 | (hvol : ENNReal.ofReal (v / Real.sqrt Q ^ 3) ≤ |
| 71 | calibratedMetricVolume gphys (gphys.ball (e p0) (r / Real.sqrt Q))) : |
| 72 | IsCompact (closure (g.ball p0 (5 * R))) ∧ |
| 73 | (∀ x ∈ g.ball p0 (5 * R), D.curvatureTensorNorm x ≤ K) ∧ |
| 74 | ENNReal.ofReal v ≤ g.volumeMeasure (g.ball p0 r) := by |
| 75 | let h : RiemannianMetric 3 N := M13.scaleSmoothMetric gphys Q hQ |
| 76 | have hm (x : M) (v w : TangentSpace (𝓡 3) x) : |
| 77 | g.inner x v w = h.inner (e x) |
| 78 | (mfderiv (𝓡 3) (𝓡 3) e x v) (mfderiv (𝓡 3) (𝓡 3) e x w) := hmetric x v w |
| 79 | have hball (s : ℝ) : h.ball (e p0) s = gphys.ball (e p0) (s / Real.sqrt Q) := |
| 80 | terminalSourceNormal_scaled_ball gphys hQ (e p0) s |
| 81 | have hcover' : h.ball (e p0) (6 * R) ⊆ e.target := (hball _).symm ▸ hcover |
| 82 | have hp0 : e p0 ∈ h.ball (e p0) (R / 2) := by |
| 83 | change h.edist (e p0) (e p0) < ENNReal.ofReal (R / 2) |
| 84 | rw [M36.metric_edist_self] |
| 85 | exact ENNReal.ofReal_pos.mpr (by positivity) |
| 86 | have hcl : closure (h.ball (e p0) (5 * R)) ⊆ h.ball (e p0) (6 * R) := |
| 87 | h.closure_ball_subset_ball_of_margin (by positivity : 0 ≤ R / 2) |
| 88 | (by positivity) (by linarith) hp0 |
| 89 | refine ⟨terminalSourceNormal_compact_ball g h e hsource hm p0 (5 * R) |
| 90 | (hcompact.of_isClosed_subset isClosed_closure (subset_univ _)) (hcl.trans hcover'), ?_, ?_⟩ |
| 91 | · intro x hx |
| 92 | have hmem : e x ∈ h.ball (e p0) (5 * R) := |
| 93 | (terminalSourceNormal_edist_le g h e hsource hm p0 x).trans_lt hx |
| 94 | rw [hnorm] |
| 95 | exact (div_le_iff₀ hQ).mpr (hcurv (e x) (hball _ ▸ hmem)) |
| 96 | · have hcr : h.ball (e p0) r ⊆ e.target := fun x hx => |
| 97 | hcover' (hx.trans_le (ENNReal.ofReal_le_ofReal (by linarith : r ≤ 6 * R))) |
| 98 | have hfloor := terminalSourceNormal_scaled_ball_volume_lower gphys hQ (e p0) hvol |
| 99 | rw [← terminalSourceNormal_ball_volume g h e hsource hm p0 r hcr] at hfloor |
| 100 | simpa only [Proofs.M15.calibratedMetricVolume_eq_volumeMeasure] using hfloor |
| 101 | |
| 102 | end PoincareMT.M47 |