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.Control.Basic |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.OldEventPolicy |
| 3 | |
| 4 | /-! |
| 5 | # Terminal policy on a returned observation |
| 6 | |
| 7 | MT Definition 15.8 and Section 17.2, pp. 362 and 409-410. Old events keep |
| 8 | their geometric data, the constructed frontier has its own policy, and |
| 9 | the ordinary segment before the next observation has no further events. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | namespace PoincareMT |
| 17 | |
| 18 | /-- Preserve policy through one observed surgery step. No policy is claimed |
| 19 | for times beyond the returned observation of a longer extension. -/ |
| 20 | theorem M33OldEventDataPreservation.observedTerminalPolicy |
| 21 | {F : SurgeryFlowData.{u}} {E : SurgeryFlowExtension F} {H : Real} |
| 22 | (preserved : M33OldEventDataPreservation E) |
| 23 | (O : SurgeryObservation E.extended) |
| 24 | (hdomain : F.time_domain = Set.Ico 0 H) |
| 25 | (policy : SurgeryFlowTerminalPolicyOn F F.time_domain) |
| 26 | (frontier : SurgeryFlowTerminalPolicyOn E.extended ({H} : Set Real)) |
| 27 | (hfree : Disjoint E.extended.surgery_times (Set.Ioo H O.H)) : |
| 28 | SurgeryFlowTerminalPolicyOn E.extended (surgeryObservationInterval O) := by |
| 29 | have old := preserved.transportPolicy (Set.Subset.refl _) policy |
| 30 | have event_location : ∀ t ∈ surgeryObservationInterval O, |
| 31 | t ∈ E.extended.surgery_times → t ∈ F.time_domain ∨ t = H := by |
| 32 | intro t ht hs |
| 33 | rcases lt_trichotomy t H with hlt | heq | hgt |
| 34 | · exact Or.inl (hdomain ▸ ⟨ht.1, hlt⟩) |
| 35 | · exact Or.inr heq |
| 36 | · exact (Set.disjoint_left.mp hfree hs ⟨hgt, ht.2⟩).elim |
| 37 | constructor |
| 38 | · intro t ht hs hpost |
| 39 | rcases event_location t ht hs with hold | heq |
| 40 | · exact old.nonempty t hold hs |
| 41 | · exact frontier.nonempty t (Set.mem_singleton_iff.mpr heq) hs |
| 42 | · intro t ht hs hempty |
| 43 | rcases event_location t ht hs with hold | heq |
| 44 | · exact old.vanishing t hold hs |
| 45 | · exact frontier.vanishing t (Set.mem_singleton_iff.mpr heq) hs |
| 46 | |
| 47 | end PoincareMT |