Yang–Mills: the 2026 Lean construction, rerun and read; the mass gap still open
OpenAI's 2026 Lean construction of 4D Yang–Mills as the expert group keeps it: settle what it proves, rerun it, read it; uniqueness and the mass gap are open, and Clay's problem unsolved

| 1 | import YM.UVNext.FREE_STRESS_CERTIFICATE.Size |
| 2 | /-! Signed permutations exchanging two quadratic plane monomials on a parity class. -/ |
| 3 | noncomputable section |
| 4 | set_option autoImplicit false |
| 5 | namespace YM.Pert.Rigid |
| 6 | open Function UVNext.FreeStress Classical |
| 7 | abbrev Edge := Axis × Axis |
| 8 | abbrev Slate := Edge×Edge |
| 9 | |
| 10 | def tape (c : Face) : Slate := (c.val.1.val,c.val.2.val) |
| 11 | def same (p q : Edge) : Prop := p=q ∨ p=q.swap |
| 12 | def Same (c d : Slate) : Prop := same c.1 d.1 ∧ same c.2 d.2 ∨ same c.1 d.2 ∧ same c.2 d.1 |
| 13 | instance (p q : Edge) : Decidable (same p q) := by unfold same; infer_instance |
| 14 | instance (p q : Slate) : Decidable (Same p q) := by unfold Same; infer_instance |
| 15 | |
| 16 | def mapEdge (f : Axis → Axis) (p : Edge) : Edge := (f p.1,f p.2) |
| 17 | def mapSlate (f : Axis → Axis) (c : Slate) : Slate := (mapEdge f c.1,mapEdge f c.2) |
| 18 | def pop (p : Edge) (a : Axis) : Bool := decide (p.1=a ∨ p.2=a) |
| 19 | def paint (c : Slate) (a : Axis) : Bool := pop c.1 a != pop c.2 a -- != is Bool cast? |
| 20 | def camp (c : Face) : Bool := (tape c).1 == (tape c).2 |
| 21 | |
| 22 | abbrev northWest (i j : Axis) := Equiv.swap i j |
| 23 | def swings : Fin 10 → Equiv.Perm Axis := Fin.cons (Equiv.refl _) <| Fin.cons (northWest 0 1) <| Fin.cons (northWest 0 2) <| Fin.cons (northWest 0 3) <| Fin.cons (northWest 1 2) <| Fin.cons (northWest 1 3) <| Fin.cons (northWest 2 3) <| Fin.cons ((northWest 0 1).trans (northWest 2 3)) <| Fin.cons ((northWest 0 2).trans (northWest 1 3)) <| Fin.cons ((northWest 0 3).trans (northWest 1 2)) Fin.elim0 |
| 24 | |
| 25 | set_option maxRecDepth 40000 in |
| 26 | set_option maxHeartbeats 20000000 in |
| 27 | lemma swingTest : ∀ (i : Fin 10) (a : Axis), (swings i (swings i a))=a := by decide |
| 28 | |
| 29 | set_option maxRecDepth 40000 in |
| 30 | set_option maxHeartbeats 20000000 in |
| 31 | theorem havePath : ∀ c d : Face, paint (tape c) = paint (tape d) → (∃ i : Fin 10, Same (mapSlate (swings i) (tape c)) (tape d) ∧ Same (mapSlate (swings i) (tape d)) (tape c)) ∧ camp c = camp d := by decide |
| 32 | |
| 33 | end YM.Pert.Rigid |