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.Metric |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceNormalChartDistances |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceNormalDistance |
| 4 | |
| 5 | /-! |
| 6 | # Actual ambient chart distances with distinct buffer radii |
| 7 | |
| 8 | The large retained physical ball and the small normal chart have |
| 9 | separate radii. The same chart and terminal map provide the ambient |
| 10 | distance identities and finite base-ball capture. |
| 11 | MT Theorem 5.6; terminal-source-ambient-charts.md, G6b. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle ENNReal |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | namespace PoincareMT.M47 |
| 23 | |
| 24 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 25 | |
| 26 | variable {M : Type u} {N : Type v} [TopologicalSpace M] [TopologicalSpace N] |
| 27 | [ChartedSpace E M] [ChartedSpace E N] |
| 28 | [IsManifold (𝓡 3) ∞ M] [IsManifold (𝓡 3) ∞ N] [T3Space M] |
| 29 | |
| 30 | /-- The original physical map captures the same small chart in a finite |
| 31 | base ball and preserves distances under the larger source buffer. -/ |
| 32 | theorem terminalSourceNormal_ambient_chart_readouts |
| 33 | (g : RiemannianMetric 3 M) (h : RiemannianMetric 3 N) |
| 34 | (e : PartialDiffeomorph (𝓡 3) (𝓡 3) M N ∞) (hsource : e.source = univ) |
| 35 | (hmetric : ∀ x (v w : TangentSpace (𝓡 3) x), |
| 36 | g.inner x v w = h.inner (e x) |
| 37 | (mfderiv (𝓡 3) (𝓡 3) e x v) (mfderiv (𝓡 3) (𝓡 3) e x w)) |
| 38 | (p0 : M) {A Rbig R rho : ℝ} (C : TerminalSourceChart g R) |
| 39 | (hA : 0 < A) (hAR : A ≤ Rbig) (hRbig : R ≤ Rbig) |
| 40 | (hrho : 0 < rho) (hrhoR : 2 * rho < R) |
| 41 | (hcentre : C.centre ∈ g.ball p0 A) |
| 42 | (hcover : h.ball (e p0) (6 * Rbig) ⊆ e.target) : |
| 43 | (∀ x ∈ Metric.closedBall (0 : E) rho, |
| 44 | e (C.chart x) ∈ h.ball (e p0) (A + R)) ∧ |
| 45 | (∀ x ∈ Metric.closedBall (0 : E) rho, ∀ y ∈ Metric.closedBall (0 : E) rho, |
| 46 | h.edist (e (C.chart x)) (e (C.chart y)) = g.edist (C.chart x) (C.chart y)) := by |
| 47 | have hR : 0 < R := by linarith only [hrho, hrhoR] |
| 48 | have hpoint (x : E) (hx : x ∈ Metric.closedBall (0 : E) rho) : |
| 49 | C.chart x ∈ g.ball p0 (A + R) := by |
| 50 | have hxR : x ∈ Metric.ball (0 : E) R := Metric.closedBall_subset_ball (by linarith) hx |
| 51 | have hradial : g.edist C.centre (C.chart x) < ENNReal.ofReal R := by |
| 52 | rw [C.distance x hxR] |
| 53 | exact (ENNReal.ofReal_lt_ofReal_iff hR).mpr |
| 54 | (by simpa only [Metric.mem_ball, dist_zero_right] using hxR) |
| 55 | calc |
| 56 | _ ≤ g.edist p0 C.centre + g.edist C.centre (C.chart x) := |
| 57 | M36.metric_edist_triangle g _ _ _ |
| 58 | _ < ENNReal.ofReal A + ENNReal.ofReal R := ENNReal.add_lt_add hcentre hradial |
| 59 | _ = ENNReal.ofReal (A + R) := (ENNReal.ofReal_add hA.le hR.le).symm |
| 60 | refine ⟨fun x hx => (terminalSourceNormal_edist_le g h e hsource hmetric _ _).trans_lt |
| 61 | (hpoint x hx), ?_⟩ |
| 62 | intro x hx y hy |
| 63 | have hbuffer (z : E) (hz : z ∈ Metric.closedBall (0 : E) rho) : |
| 64 | C.chart z ∈ g.ball p0 (2 * Rbig) := |
| 65 | (hpoint z hz).trans_le (ENNReal.ofReal_le_ofReal (by linarith)) |
| 66 | exact (terminalSourceNormal_edist_eq_on_buffer g h e hsource hmetric p0 |
| 67 | (hA.trans_le hAR) hcover (hbuffer x hx) (hbuffer y hy)).symm |
| 68 | |
| 69 | /-- Two-sided chart distances hold in the original physical terminal |
| 70 | metric on the identical chart and smaller coordinate ball. -/ |
| 71 | theorem terminalSourceNormal_ambient_chart_distance_bounds |
| 72 | (g : RiemannianMetric 3 M) (h : RiemannianMetric 3 N) |
| 73 | (e : PartialDiffeomorph (𝓡 3) (𝓡 3) M N ∞) (hsource : e.source = univ) |
| 74 | (hmetric : ∀ x (v w : TangentSpace (𝓡 3) x), |
| 75 | g.inner x v w = h.inner (e x) |
| 76 | (mfderiv (𝓡 3) (𝓡 3) e x v) (mfderiv (𝓡 3) (𝓡 3) e x w)) |
| 77 | (p0 : M) {A Rbig R rho : ℝ} (C : TerminalSourceChart g R) |
| 78 | (hA : 0 < A) (hAR : A ≤ Rbig) (hRbig : R ≤ Rbig) |
| 79 | (hrho : 0 < rho) (hrhoR : 2 * rho < R) |
| 80 | (hcentre : C.centre ∈ g.ball p0 A) |
| 81 | (hcover : h.ball (e p0) (6 * Rbig) ⊆ e.target) |
| 82 | (hbound : ∀ x ∈ Metric.closedBall (0 : E) (2 * rho), ∀ v, |
| 83 | (1 / 4 : ℝ) * ‖v‖ ^ 2 ≤ g.pullbackCoefficients C.chart x v v ∧ |
| 84 | g.pullbackCoefficients C.chart x v v ≤ (9 / 4 : ℝ) * ‖v‖ ^ 2) |
| 85 | {x y : E} (hx : x ∈ Metric.ball 0 (rho / 2)) |
| 86 | (hy : y ∈ Metric.ball 0 (rho / 2)) : |
| 87 | (1 / 2 : ℝ) * dist x y ≤ (h.edist (e (C.chart x)) (e (C.chart y))).toReal ∧ |
| 88 | (h.edist (e (C.chart x)) (e (C.chart y))).toReal ≤ (3 / 2 : ℝ) * dist x y := by |
| 89 | have hxy : Metric.ball (0 : E) (rho / 2) ⊆ Metric.closedBall 0 rho := |
| 90 | (Metric.ball_subset_ball (by linarith)).trans Metric.ball_subset_closedBall |
| 91 | rw [(terminalSourceNormal_ambient_chart_readouts g h e hsource hmetric p0 C |
| 92 | hA hAR hRbig hrho hrhoR hcentre hcover).2 x (hxy hx) y (hxy hy)] |
| 93 | exact terminalSourceNormal_chart_distance_bounds g C hrho hrhoR hbound hx hy |
| 94 | |
| 95 | end PoincareMT.M47 |