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.Singular.Geometry |
| 2 | |
| 3 | /-! |
| 4 | # Open reference spacetime charts before the terminal time |
| 5 | |
| 6 | The reference embedding is defined on a half-open time band. Its restriction |
| 7 | to the strict time band is an open embedding because its image is exactly the |
| 8 | inverse image of an open interval under the spacetime time function. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set Function TopologicalSpace Topology |
| 14 | open scoped Manifold ContDiff |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.SingularTimeReference |
| 19 | |
| 20 | variable {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 21 | {M : Type u} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 23 | [IsManifold (𝓡 3) ∞ M] |
| 24 | |
| 25 | /-- The reference spacetime map restricted to the strict time band. -/ |
| 26 | def interiorSpacetimeForward (R : SingularTimeReference F T M) |
| 27 | (p : Ioo R.tMinus T × M) : F.point := |
| 28 | R.spacetime_forward (⟨p.1, ⟨p.1.property.1.le, p.1.property.2⟩⟩, p.2) |
| 29 | |
| 30 | @[simp] theorem interiorSpacetimeForward_time (R : SingularTimeReference F T M) |
| 31 | (p : Ioo R.tMinus T × M) : |
| 32 | (R.interiorSpacetimeForward p).1 = (p.1 : ℝ) := |
| 33 | R.spacetime_time _ |
| 34 | |
| 35 | /-- The strict reference band contains every old spacetime point at these times. -/ |
| 36 | theorem interiorSpacetimeForward_range (R : SingularTimeReference F T M) : |
| 37 | range R.interiorSpacetimeForward = {p : F.point | p.1 ∈ Ioo R.tMinus T} := by |
| 38 | ext p |
| 39 | constructor |
| 40 | · rintro ⟨q, rfl⟩ |
| 41 | simpa only [mem_ofPred_eq, interiorSpacetimeForward_time] using q.1.property |
| 42 | · intro hp |
| 43 | have hp' : p ∈ range R.spacetime_forward := by |
| 44 | rw [R.spacetime_image] |
| 45 | exact ⟨hp.1.le, hp.2⟩ |
| 46 | obtain ⟨⟨t, x⟩, htx⟩ := hp' |
| 47 | have ht : (t : ℝ) = p.1 := (R.spacetime_time (t, x)).symm.trans (congrArg Sigma.fst htx) |
| 48 | refine ⟨(⟨t, ht.symm ▸ hp⟩, x), ?_⟩ |
| 49 | exact htx |
| 50 | |
| 51 | /-- Restricting the half-open reference band to its time interior gives an open embedding. -/ |
| 52 | theorem interiorSpacetimeForward_isOpenEmbedding (R : SingularTimeReference F T M) : |
| 53 | IsOpenEmbedding R.interiorSpacetimeForward := by |
| 54 | refine ⟨?_, ?_⟩ |
| 55 | · exact R.spacetime_embedding.comp |
| 56 | ((IsEmbedding.inclusion (show Ioo R.tMinus T ⊆ Ico R.tMinus T from |
| 57 | fun _ ht => ⟨ht.1.le, ht.2⟩)).prodMap IsEmbedding.id) |
| 58 | · rw [R.interiorSpacetimeForward_range] |
| 59 | exact isOpen_Ioo.preimage F.time_continuous |
| 60 | |
| 61 | /-- Restrict the interior reference chart further to an open spatial subset. -/ |
| 62 | def openSpacetimeForward (R : SingularTimeReference F T M) (U : Opens M) |
| 63 | (p : Ioo R.tMinus T × U) : F.point := |
| 64 | R.interiorSpacetimeForward (p.1, p.2) |
| 65 | |
| 66 | @[simp] theorem openSpacetimeForward_time (R : SingularTimeReference F T M) |
| 67 | (U : Opens M) (p : Ioo R.tMinus T × U) : |
| 68 | (R.openSpacetimeForward U p).1 = (p.1 : ℝ) := |
| 69 | R.interiorSpacetimeForward_time _ |
| 70 | |
| 71 | /-- The open reference chart is the literal old slice map at each time. -/ |
| 72 | theorem openSpacetimeForward_eq (R : SingularTimeReference F T M) |
| 73 | (U : Opens M) (p : Ioo R.tMinus T × U) : |
| 74 | R.openSpacetimeForward U p = |
| 75 | (⟨p.1, R.forward p.1 ⟨p.1.property.1.le, p.1.property.2⟩ p.2⟩ : F.point) := |
| 76 | Sigma.ext (R.spacetime_time _) (R.spacetime_spatial _) |
| 77 | |
| 78 | /-- Each open spatial part of the strict reference band is an ambient open chart. -/ |
| 79 | theorem openSpacetimeForward_isOpenEmbedding (R : SingularTimeReference F T M) |
| 80 | (U : Opens M) : IsOpenEmbedding (R.openSpacetimeForward U) := |
| 81 | R.interiorSpacetimeForward_isOpenEmbedding.comp (IsOpenEmbedding.id.prodMap U.isOpenEmbedding') |
| 82 | |
| 83 | theorem openSpacetimeForward_injective (R : SingularTimeReference F T M) (U : Opens M) : |
| 84 | Injective (R.openSpacetimeForward U) := |
| 85 | (R.openSpacetimeForward_isOpenEmbedding U).injective |
| 86 | |
| 87 | /-- Membership in the overlap chart is tested by time and the reference inverse map. -/ |
| 88 | theorem mem_range_openSpacetimeForward_iff (R : SingularTimeReference F T M) |
| 89 | (U : Opens M) (p : F.point) : |
| 90 | p ∈ range (R.openSpacetimeForward U) ↔ |
| 91 | ∃ ht : p.1 ∈ Ioo R.tMinus T, |
| 92 | R.inverse p.1 ⟨ht.1.le, ht.2⟩ p.2 ∈ U := by |
| 93 | constructor |
| 94 | · rintro ⟨q, rfl⟩ |
| 95 | rw [R.openSpacetimeForward_eq] |
| 96 | refine ⟨q.1.property, ?_⟩ |
| 97 | change R.inverse q.1 _ (R.forward q.1 _ q.2) ∈ U |
| 98 | exact (R.left_inverse q.1 ⟨q.1.property.1.le, q.1.property.2⟩ (q.2 : M)).symm ▸ |
| 99 | q.2.property |
| 100 | · rintro ⟨ht, hx⟩ |
| 101 | refine ⟨(⟨p.1, ht⟩, ⟨R.inverse p.1 ⟨ht.1.le, ht.2⟩ p.2, hx⟩), ?_⟩ |
| 102 | rw [R.openSpacetimeForward_eq] |
| 103 | exact Sigma.ext rfl (heq_of_eq (R.right_inverse p.1 ⟨ht.1.le, ht.2⟩ p.2)) |
| 104 | |
| 105 | end PoincareMT.SingularTimeReference |