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.CanonicalInduction.Terminal.Germs.TerminalGermsOpenCharts |
| 2 | import PoincareLib.Geometry.Manifold.RegularLevel.OpenInclusion |
| 3 | |
| 4 | /-! |
| 5 | # Original tangent readouts on an open target |
| 6 | |
| 7 | The inherited open-submanifold charts make the actual inclusion |
| 8 | differential the identity. The literal restriction square consequently |
| 9 | retains the original chart differential and metric readout. |
| 10 | Source: MT Proposition 5.14, pp. 90-91; |
| 11 | derivations/terminal-germs-overlap.md, Stage A5j3. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open TopologicalSpace |
| 18 | open scoped Manifold ContDiff |
| 19 | |
| 20 | namespace PoincareMT.M47 |
| 21 | |
| 22 | variable {n : ℕ} {M N : Type*} |
| 23 | [TopologicalSpace M] [TopologicalSpace N] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] |
| 26 | |
| 27 | /-- The differential of the actual restricted chart map is the |
| 28 | original differential in the inherited tangent coordinates. -/ |
| 29 | theorem terminalGerms_openChartMap_mfderiv |
| 30 | (q : M → N) (hq : IsLocalDiffeomorph (𝓡 n) (𝓡 n) ∞ q) |
| 31 | (V : Opens N) (x : terminalGermsOpenChartSource q hq V) : |
| 32 | mfderiv (𝓡 n) (𝓡 n) (terminalGermsOpenChartMap q hq V) x = |
| 33 | mfderiv (𝓡 n) (𝓡 n) q x.val := by |
| 34 | have h := terminalGerms_openChartMap_differential q hq V x |
| 35 | rw [Poincare.Geometry.Manifold.RegularLevel.mfderiv_opens_subtypeVal |
| 36 | (I := 𝓡 n) V (terminalGermsOpenChartMap q hq V x), |
| 37 | Poincare.Geometry.Manifold.RegularLevel.mfderiv_opens_subtypeVal |
| 38 | (I := 𝓡 n) (terminalGermsOpenChartSource q hq V) x] at h |
| 39 | ext v |
| 40 | exact congrArg (fun A => A v) h |
| 41 | |
| 42 | variable [IsManifold (𝓡 n) ∞ M] [IsManifold (𝓡 n) ∞ N] |
| 43 | |
| 44 | /-- An actual restricted-chart metric identity reads the same original |
| 45 | metric and original differential at every source point over the target. -/ |
| 46 | theorem terminalGerms_open_metric_readout |
| 47 | (q : M → N) (hq : IsLocalDiffeomorph (𝓡 n) (𝓡 n) ∞ q) |
| 48 | (V : Opens N) (g : RiemannianMetric n M) (gV : RiemannianMetric n V) |
| 49 | (hread : ∀ (x : terminalGermsOpenChartSource q hq V) |
| 50 | (a b : TangentSpace (𝓡 n) x), |
| 51 | g.inner x.val |
| 52 | (mfderiv (𝓡 n) (𝓡 n) |
| 53 | (Subtype.val : terminalGermsOpenChartSource q hq V → M) x a) |
| 54 | (mfderiv (𝓡 n) (𝓡 n) |
| 55 | (Subtype.val : terminalGermsOpenChartSource q hq V → M) x b) = |
| 56 | gV.inner (terminalGermsOpenChartMap q hq V x) |
| 57 | (mfderiv (𝓡 n) (𝓡 n) (terminalGermsOpenChartMap q hq V) x a) |
| 58 | (mfderiv (𝓡 n) (𝓡 n) (terminalGermsOpenChartMap q hq V) x b)) |
| 59 | (x : M) (hx : q x ∈ V) (a b : TangentSpace (𝓡 n) x) : |
| 60 | g.inner x a b = gV.inner ⟨q x, hx⟩ |
| 61 | (mfderiv (𝓡 n) (𝓡 n) q x a) (mfderiv (𝓡 n) (𝓡 n) q x b) := by |
| 62 | have h := hread ⟨x, hx⟩ a b |
| 63 | have hs := Poincare.Geometry.Manifold.RegularLevel.mfderiv_opens_subtypeVal |
| 64 | (I := 𝓡 n) (terminalGermsOpenChartSource q hq V) ⟨x, hx⟩ |
| 65 | rw [hs, terminalGerms_openChartMap_mfderiv] at h |
| 66 | exact h |
| 67 | |
| 68 | end PoincareMT.M47 |