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

P-1: omit unused section variables named by build
Browse filesChecks
build Program · lake build and axioms
Details
challenge Program · challenge files and build config
Details
+2 −0 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/BoundaryGraphAttachment.lean View file
| @@ -32,6 +32,7 @@ theorem heightGraph_injective (g : E → F) : Function.Injective (heightGraph g) | ||
| 32 | 32 | exact heightGraph_injective g hyx ▸ hy |
| 33 | 33 | · exact mem_image_of_mem (heightGraph g) |
| 34 | 34 | |
| 35 | +omit [FiniteDimensional ℝ F] in | |
| 35 | 36 | theorem heightGraph_finitePL {g : E → F} {s : Set E} |
| 36 | 37 | (hg : FinitePiecewiseAffineOn g s) : FinitePiecewiseAffineOn (heightGraph g) s := by |
| 37 | 38 | have hid : FinitePiecewiseAffineOn (id : E → E) s := by |
| @@ -72,6 +73,7 @@ theorem graphAttachment_projection_image (g : ι → E → F) (k : ι → (E × | ||
| 72 | 73 | exact image_id _ |
| 73 | 74 | |
| 74 | 75 | open Classical in |
| 76 | +omit [FiniteDimensional ℝ E] [FiniteDimensional ℝ F] in | |
| 75 | 77 | theorem graphAttachment_projection_fiber (g : ι → E → F) (k : ι → (E × F) → ℝ) |
| 76 | 78 | (s : Set (E × F)) (u : ι → Set E) (x : E) : |
| 77 | 79 | graphAttachmentCarrier g k s u ∩ (fun p : (E × F) × (ι → ℝ) ↦ p.1.1) ⁻¹' {x} = |
+1 −0 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/PrimalSectorAttachmentFibers.lean View file
| @@ -87,6 +87,7 @@ theorem sector_inter_subset_spokes (i j : Fin 4) (hij : i ≠ j) : | ||
| 87 | 87 | exact mem_iUnion.mpr ⟨0, hxc.symm ▸ C.center_mem_spoke 0⟩ |
| 88 | 88 | · exact mem_iUnion.mpr ⟨i, (C.spoke_eq_sector_inter i).symm.subset ⟨hxj, hxi⟩⟩ |
| 89 | 89 | |
| 90 | +omit [FiniteDimensional ℝ E] in | |
| 90 | 91 | theorem existsUnique_sector_of_not_mem_spokes {x : E} (hx : x ∈ d) |
| 91 | 92 | (hsp : x ∉ ⋃ k, C.spoke k) : ∃! i, x ∈ C.sector i := by |
| 92 | 93 | have hex : ∃ i, x ∈ C.sector i := by |