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: letI to let and an unused binder in ComplementaryAttachments (job 991)
Browse filesChecks
build Program · lake build and axioms
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+2 −2 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/ComplementaryAttachments.lean View file
| @@ -40,7 +40,7 @@ theorem complementaryOriginalEdge_coface_mem | ||
| 40 | 40 | simp only [triangleCofaces, Finset.mem_filter, Finset.mem_univ, true_and] |
| 41 | 41 | exact hsub |
| 42 | 42 | rw [complementaryOriginalEdge, complementaryTriangleEdgeEquiv_cofaces] at hmem |
| 43 | - letI : DecidableEq K.vertices := fun a b => Classical.propDecidable (a = b) | |
| 43 | + let : DecidableEq K.vertices := fun a b => Classical.propDecidable (a = b) | |
| 44 | 44 | exact Sym2.mem_toFinset.mp hmem |
| 45 | 45 | |
| 46 | 46 | theorem complementaryCentroid_triangle_val |
| @@ -64,7 +64,7 @@ theorem residualCofaceContact_subset_selectedDualRim [Fintype K.barycentricSubdi | ||
| 64 | 64 | {t : Finset E | t ∈ K.faces ∧ t.card = 3 ∧ e ⊆ t}.ncard = 2) |
| 65 | 65 | (s : (complementaryTriangleGraph K.vertexAbstractComplex.toPreAbstractSimplicialComplex P).edgeSet) |
| 66 | 66 | (hs : s.val ∉ D.edgeSet) (t : Triangle K) |
| 67 | - (het : (complementaryOriginalEdge K P hcofaces s).val.map (Function.Embedding.subtype _) ⊆ t.val) : | |
| 67 | + (_het : (complementaryOriginalEdge K P hcofaces s).val.map (Function.Embedding.subtype _) ⊆ t.val) : | |
| 68 | 68 | residualCofaceContact K (complementaryOriginalEdge K P hcofaces s) t.val ⊆ |
| 69 | 69 | K.barycentricSubdivision.vertexDualRim (selectedDualCentroidSet K P D hD hcofaces) := by |
| 70 | 70 | let r := complementaryCentroidEmbedding K P hcofaces |