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 |
| 2 | import Lean |
| 3 | set_option autoImplicit false |
| 4 | open Lean Elab Command in |
| 5 | run_cmd do |
| 6 | let env := (← getEnv).setExporting false |
| 7 | let all := env.checked.get.constants.fold (init := (#[] : Array Name)) (fun xs n _ => |
| 8 | match env.getModuleIdxFor? n with |
| 9 | | none => xs |
| 10 | | some idx => |
| 11 | if Name.isPrefixOf `YM env.header.modules[idx.toNat]!.module then xs.push n else xs) |
| 12 | let mut holes := 0 |
| 13 | let mut axs := 0 |
| 14 | for n in all do |
| 15 | let some ci := env.checked.get.find? n | throwError "Missing declaration {n}" |
| 16 | if ci.getUsedConstantsAsSet.contains `sorryAx then |
| 17 | holes := holes + 1 |
| 18 | liftIO <| IO.println s!"PLACEHOLDER {n}" |
| 19 | if ci matches .axiomInfo _ then |
| 20 | axs := axs + 1 |
| 21 | liftIO <| IO.println s!"PROJECT_AXIOM {n}" |
| 22 | liftIO <| IO.println s!"DECLARATION_SCAN declarations={all.size} directSorryAx={holes} projectAxioms={axs}" |
| 23 | unless holes == 0 && axs == 0 do throwError "Project contains a placeholder or a new axiom" |
| 24 | for n in [`YM.Pert.Position.Mode, `YM.Pert.Position.solvesJets, `YM.Pert.Position.jets_join, |
| 25 | `YM.Pert.Position.stageTarget, `YM.SharpGram.FixedPrice, `YM.SharpGram.DynamicalCost, |
| 26 | `YM.OPE.Log.MatrixTicket, `YM.OPE.LogTrace, `YM.OPE.tickets_suffice] do |
| 27 | if (env.checked.get.find? n).isSome then throwError "Unexpected declaration {n}" |
| 28 | logInfo "INVENTORY_PASS" |