{
 "notes": "Episode 3 of 5. Seats: 50, 37 used when this episode began (verify-e2 was refused, so its 5 were never spent). This episode commits 12: audit-e3 7, select-e3 1, prove-e3 2, verify-e3 2. One is spare; a cancelled item gives its seat back.\n\nWHAT EPISODE 2 RETURNED (bank pinned at TheJustinSunPrize/awards 7782c2aa; Lean pin leanprover/lean4:v4.37.0-rc1 with Mathlib 90e6eec9, unchanged):\n- rescreen-e2, 39 rows: 31 complete_public_lean, 6 open_effort (JSP-000404, 755, 782, 001058, 001067, 001070), 2 scope_gap (JSP-000198, JSP-000036), 0 no_lean_found. All 17 'no hit' rows of episode 1 have a public Lean proof (plby/lean-proofs or awards PRs).\n- Tail JSP-001023..001072: THREE rows are Solved with Lean proof No (001058, 001067, 001070), not the two the index count implied; all three are OpenAI September 2026 preprints, research-level, each with an open effort. So the candidate table has 293 rows (290 + 3) against an index count of 292: say so in the write-up.\n- select-e2/targets: two targets only, both tier B, no backups. Slot 1 JSP-000198 (Erdős 216, empty convex polygons: h(3)=3, h(4)=5, h(5)=10, h(6)=30, none for k>=7; public Lean lacks the sharp h(6)=30 without a SAT axiom). Slot 2 JSP-000036 (modularity of every elliptic curve over Q, Breuil-Conrad-Diamond-Taylor; public Lean checks one curve at three primes). Slots 3-5: no target. The plane flagged the sources of select-e2/targets, prove-e2/slot-1 and prove-e2/slot-2.\n- prove-e2/slot-1: stuck. JSP198.lean states the whole classification (Point, orient, GeneralPosition, Hole, Force; theorem JSP198.empty_polygon_threshold_classification) and builds (exit 0, 18297 jobs), but the proof is one sorry and the axioms include sorryAx. Missing: Harborth's 10-point argument, the 29-point and 9-point counterexamples, Horton sets, and a kernel-checked refutation of the 30-point CNF.\n- prove-e2/slot-2: stuck. JSP36.lean states JSP36.modularity (a Gamma0(N) weight-2 CuspForm, prime Hecke eigenform, q-expansion coefficients equal to W.LFunction n) and proves nine supporting lemmas on the three standard axioms; the main theorem is a sorry (sorryAx). Missing: the whole Breuil-Conrad-Diamond-Taylor argument.\n- prove-e2/slot-3..5: no_target. verify-e2 never ran.\nDECIDED: no retry of JSP-000198 or JSP-000036. Neither can be closed in a four-hour item; they are reported as failed with their stuck_at. Do not spend seats on them.\n\nREFUSAL LESSON: verify-e2 was refused because its brief asked for 'a command's verbatim output'. Briefs must ask for findings (build pass or fail, the messages Lean gave for the file, the axioms named), never for output pasted or copied as printed. This episode's briefs are worded so; keep that wording in any new brief.\n\nWHY AN AUDIT: the 254 exclusions of episode 1 rest on screens that matched files to problems and compared no statement; one of those screens was wrong for all 17 of its 'no hit' rows, and the re-screen of 36 rows found 2 scope gaps and 3 open efforts. The requester asked for anything not verified to be said, and this is the largest unverified claim and the only place a real target can still hide.\n\nWHAT RUNS NOW (one pipeline, all JSON):\n1. audit-e3 a1..a7, handed the 11 bank-screen-e1 results: for each of the 254 rows in its range (the 36 re-screened ids skipped), compare the bank entry with the final Lean theorem and search for sorry, axioms and native_decide. Verdict per row: confirmed, narrower, incomplete, no_proof, not_checked. Ranges: a1 1-330, a2 331-470, a3 471-600, a4 601-670, a5 671-800, a6 801-900, a7 901-1022. Seven items, so the first five are its canary.\n2. select-e3/targets, once the audit has settled: up to two targets (gap real, nobody else covers it, the WHOLE bank statement provable from Mathlib in four hours), two backups, `flagged` (every row not confirmed, with why it is or is not a target), `counts`, `shortfall`. No target at all is a valid result.\n3. prove-e3/slot-1, slot-2: status complete, stuck or no_target; the result carries the whole Lean source.\n4. verify-e3/slot-1, slot-2, paired by item, only where status is complete: rebuild on another machine, source and axiom audit, statement against the bank, prior art; verdict accept or reject with `repair`.\n\nEPISODE 4: read select-e3/targets first (counts, flagged, targets, shortfall), then each slot. complete + accept: done. complete + reject: one repair item (new batch name, the prove brief plus the verifier's `repair`) if a seat is left, then a verify if another is. stuck: retry once only when stuck_at is a narrow lemma; otherwise give the seat to a backup target of select-e3. no_target: nothing. If audit-e3 paused in its canary, read why: resume it when the failures were not the brief's, else run the failed and unreleased items again in a new batch with itemsFrom 'both' and a mended brief, seats allowing. If prove-e3 or verify-e3 was refused, run it again under a new name with the wording mended. Never spend more than goal.items.max minus used. With no target and nothing failed, set finish in episode 4 rather than wait. EPISODE 5: finish only.\n\nTHE READ OF THE EPISODE THAT SETS finish (30 at most) is what the write-up is handed. Name: bank-scan-e1 r000001-000100, r000101-000200, r000201-000300, r000301-000400, r000401-000500, r000501-000600, r000601-000700, r000701-000800, r000801-000900, r000901-001000, r001001-001022 (11: statement, solution link, proof length and Mathlib areas for the 290 rows; I inferred these keys from the three the plane named, and this episode's `read` asks for them, so `refused` in the next goal.json shows any that is wrong); audit-e3 a1..a7 (7: disposition and evidence per row; for a range whose audit failed name the bank-screen-e1 result of the same hundreds instead and say it is unaudited); select-e2/targets (the 39 re-screened rows and the tail); select-e3/targets; prize-rules-e1/rules; prove-e2/slot-1 and slot-2; and per slot of episode 3 the prove result (it has the Lean source) and its verify result. That is 28 with two slots.\n\nTHE REPORT: (a) all 293 rows with id, Erdős number, statement, solution link, proof length, Mathlib areas, prior-art disposition and its source: audit-e3 for 254, select-e2 for 39; (b) the ranked shortlist with reasons: why the episode-1 ranking was withdrawn, the two tier-B targets, whatever select-e3 adds, and the shortfall against five; (c) per target the Lean source, the build result and the axioms, or exactly where it stuck (JSP-000198 and JSP-000036 are stuck at their main theorem); (d) amounts and procedure as in the episode-2 notes: Lean verifier 30 percent, tier I 1,000,000 USD, tiers II-V unpublished, references-only PR against the catalog entry with the repository's template, then an '[Award claim] JSP-<n>' issue. Say plainly: Eligible to claim is No on every row; no public proof was rebuilt; tier II-V amounts are unpublished so the 30 percent has no number; a later bank commit may differ; results the plane flagged (bank-scan-e1 r000301-000400, r000401-000500, r001001-001022, bank-screen-e1 r000401-000500, select-e2/targets, prove-e2 slot-1 and slot-2) are less verified. No claim, PR, issue or message is to be sent by anyone.",
 "spawn": [
  {
   "name": "audit-e3",
   "brief": "Audit, at statement level, the public Lean 4 proofs already recorded for the solved problems JSP-{{lo}} to JSP-{{hi}} of the Justin Sun Prize bank (https://github.com/TheJustinSunPrize/awards, pinned commit 7782c2aa02df745da60d53e61718b714f8685a98). You are handed the results of {{after.batch}}: an earlier screen that names, for each problem whose index row says Current status Solved and Lean proof No, a public Lean proof, mostly in https://github.com/plby/lean-proofs at commit 8822f7ddef30fadbd92e1c6ab4ed897af356af5e under src/latest/ErdosProblems/, or in a repository registered through a pull request on the awards repository. That screen matched files to problems and compared no statement. Your rows are the problems of your range that it marked as having a public Lean proof, except these, audited elsewhere: {{skip}}. Where the screen for part of your range is missing, take the rows from problems/README.md at the pinned commit (Solved, Lean proof No) and look for the proof in the two places above.\nFor each row:\n1. Read the problem's entry in problems/catalog-*.md at the pinned commit: its Problem description and what the entry says was proved.\n2. Open the Lean source the screen names, at a fixed commit. Find the final theorem meant to answer the problem and read its statement with the definitions it uses.\n3. Search that file and the repository's own files it imports for sorry, admit, declared axioms, native_decide, unsafe and implemented_by.\n4. Give one verdict. confirmed: the theorem states the bank's whole problem as resolved and step 3 found nothing. narrower: it proves strictly less (one case, one direction, one part of several, a weaker bound, another convention). incomplete: step 3 found something the final theorem depends on. no_proof: the source holds no proof of this problem. not_checked: you ran out of time.\n5. For every verdict other than confirmed: say exactly what is missing, grade the missing part elementary, moderate or research, and list the titles and states of what https://github.com/TheJustinSunPrize/awards/issues?q=<JSP id> returns, naming any that points to another Lean proof.\nWork in bulk: fetch each repository once at its commit and script steps 2 and 3, then read the statements yourself. Build nothing. A row you could not read is not_checked.\nResult: one JSON object: {\"bank_commit\", \"range\", \"checked_at_utc\", \"rows\": [{\"jsp_id\", \"erdos_number\", \"bank_statement\" (the Problem description, 300 characters at most), \"evidence_url\" (the file at a commit), \"theorem\" (its full name), \"verdict\", \"found\" (what step 3 found, or null), \"gap\" (null when confirmed), \"missing_grade\", \"awards_hits\"}], \"counts\" (rows per verdict), \"unverified\" (what you could not check; say that nothing was rebuilt)}. Send no issue, pull request, comment or message to anyone.",
   "items": [
    {
     "key": "a1",
     "vars": {
      "lo": "000001",
      "hi": "000330",
      "skip": "JSP-000036, 104, 108, 121, 126, 139, 140, 155, 161, 163, 168, 173, 175, 176, 179, 182, 192, 194, 195, 198, 205, 243, 314"
     }
    },
    {
     "key": "a2",
     "vars": {
      "lo": "000331",
      "hi": "000470",
      "skip": "JSP-000356, 393, 404"
     }
    },
    {
     "key": "a3",
     "vars": {
      "lo": "000471",
      "hi": "000600",
      "skip": "none"
     }
    },
    {
     "key": "a4",
     "vars": {
      "lo": "000601",
      "hi": "000670",
      "skip": "none"
     }
    },
    {
     "key": "a5",
     "vars": {
      "lo": "000671",
      "hi": "000800",
      "skip": "JSP-000714, 725, 728, 733, 753, 755, 782"
     }
    },
    {
     "key": "a6",
     "vars": {
      "lo": "000801",
      "hi": "000900",
      "skip": "JSP-000822, 831, 895"
     }
    },
    {
     "key": "a7",
     "vars": {
      "lo": "000901",
      "hi": "001022",
      "skip": "none"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 48000
   },
   "after": {
    "batch": "bank-screen-e1",
    "pairing": "batch"
   },
   "minutes": 120
  },
  {
   "name": "select-e3",
   "brief": "You are handed the results of {{after.batch}}: a statement-level audit of the public Lean 4 proofs recorded for solved problems of the Justin Sun Prize bank (https://github.com/TheJustinSunPrize/awards at commit 7782c2aa02df745da60d53e61718b714f8685a98) whose index rows still say Lean proof No. From its rows whose verdict is narrower, incomplete or no_proof, choose up to two targets for a complete Lean 4 + Mathlib formalization, and up to two backups.\nA row is a target only if all three hold, each checked by you:\n1. The gap is real. Read the bank entry and the Lean source yourself: the public theorem does not give the bank's whole problem as resolved, or it depends on sorry, a declared axiom or native_decide.\n2. Nobody else covers it. Open the issues and pull requests that https://github.com/TheJustinSunPrize/awards/issues?q=<JSP id> returns, and search GitHub, https://github.com/google-deepmind/formal-conjectures, erdosproblems.com and the Lean Zulip archive: there is no other complete public Lean proof of the whole statement and no open effort that claims it.\n3. It can be done. One worker with four hours and Mathlib at commit 90e6eec9fe53b02d431c90718e4a1d22d67a204e must prove the bank's WHOLE statement from Mathlib alone: not only the missing part, and not by copying the public proof. Prefer short elementary proofs in number theory and combinatorics.\nJSP-000198 and JSP-000036 are not targets: both were attempted and are stuck. Do not relax a rule to fill a slot: no target at all is a valid result, explained in `shortfall`. Rank targets by rule 3, slot 1 first, and write for each a specification a prover can work from without the audit.\nResult: one JSON object: {\"bank_commit\", \"checked_at_utc\", \"targets\": [{\"slot\" (1 or 2), \"jsp_id\", \"erdos_number\", \"bank_statement\", \"bank_url\", \"resolution\" (what the published solution proves), \"target_statement\" (the exact mathematical statement to formalize: every object, quantifier and case, in words and formulas), \"solution_url\", \"locator\" (theorem and pages), \"proof_outline\", \"mathlib\" (modules and lemmas you checked exist at that commit), \"gap\" (what the public Lean lacks, with its URL), \"prior_art\": [{\"url\", \"finding\"}], \"risk\"}], \"backups\" (same shape, no slot), \"shortfall\", \"flagged\": [for every audited row that is not confirmed: {\"jsp_id\", \"verdict\", \"evidence_url\", \"gap\", \"decision\" (target, backup, or why it is neither)}], \"counts\" (audited rows per verdict, and the ranges whose audit is missing), \"missing_inputs\", \"unverified\"}. Send no issue, pull request, comment or message to anyone.",
   "items": [
    {
     "key": "targets"
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "after": {
    "batch": "audit-e3",
    "pairing": "batch",
    "when": "settled"
   },
   "minutes": 75
  },
  {
   "name": "prove-e3",
   "brief": "Formalize in Lean 4 with Mathlib one solved problem of the Justin Sun Prize bank: the entry of `targets` whose `slot` is {{slot}} in the handed result of {{after.batch}}. If `targets` has no such entry, write the JSON object {\"status\": \"no_target\", \"slot\": \"{{slot}}\"} and stop.\nWork. Read the bank entry (bank_url) and the cited solution yourself. State the theorem so that it matches the bank's statement and the entry's target_statement exactly: the same objects, quantifiers and cases, no added hypothesis that gives the conclusion away, no easier special case. Then prove it completely from Mathlib: no sorry, no admit, no new axiom, no native_decide, no unsafe, no implemented_by. Write your own proof; do not copy a public Lean proof of a part of it.\nSetup, the same for every prover: Lean toolchain leanprover/lean4:v4.37.0-rc1 (https://github.com/leanprover/lean4/releases/download/v4.37.0-rc1/lean-4.37.0-rc1-linux.tar.zst, sha256 2e1bbb832870bb81b7131cb70b13aec2cc7ed9f22e2bdbb236b86076ae20382d); a new Lake project in your task folder that requires Mathlib from https://github.com/leanprover-community/mathlib4 at commit 90e6eec9fe53b02d431c90718e4a1d22d67a204e; `lake update`, `lake exe cache get`, then `lake build`. One Lean file, ending with `#print axioms` for the main theorem. Build a two-line file first to prove the setup, then build often.\nResult: one JSON object: {\"status\": \"complete\" or \"stuck\", \"slot\", \"jsp_id\", \"erdos_number\", \"bank_statement\", \"theorem_name\", \"formal_statement\", \"correspondence\" (how each part of the bank's statement maps to the formal one), \"lean_source\" (the whole file), \"lean_version\", \"mathlib_commit\", \"steps\" (what you did to build, in order), \"build_exit_code\", \"build_messages\" (the errors, warnings and axiom lines Lean gave for your file in the last build, 40 lines at most), \"axioms\" (the axioms the main theorem depends on, as its `#print axioms` line names them), \"stuck_at\" (null when complete; otherwise the lemma, its goal and the error where the proof stops, and what would close it), \"solution_url\", \"unverified\"}. `complete` means all of: the last build exited 0, the file has no sorry, and the axioms are among propext, Classical.choice and Quot.sound. Anything else is `stuck`: keep what compiles, leave one sorry at each open goal, and say where. Keep the whole result under 60,000 bytes. Send no issue, pull request, comment or message to anyone.",
   "items": [
    {
     "key": "slot-1",
     "vars": {
      "slot": "1"
     }
    },
    {
     "key": "slot-2",
     "vars": {
      "slot": "2"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "after": {
    "batch": "select-e3",
    "pairing": "batch"
   },
   "requires": {
    "platform": [
     "linux-x64"
    ]
   },
   "minutes": 240
  },
  {
   "name": "verify-e3",
   "brief": "Review independently one Lean 4 formalization of a solved problem of the Justin Sun Prize bank (https://github.com/TheJustinSunPrize/awards at commit 7782c2aa02df745da60d53e61718b714f8685a98): the result {{after.key}} of {{after.batch}}, handed to you and at {{after.result}}. It holds `lean_source`, `theorem_name`, `jsp_id`, `bank_statement` and `correspondence`. You did not write it: trust nothing it says about itself.\n1. Rebuild. In a new Lake project in your task folder, with Lean toolchain leanprover/lean4:v4.37.0-rc1 (https://github.com/leanprover/lean4/releases/download/v4.37.0-rc1/lean-4.37.0-rc1-linux.tar.zst, sha256 2e1bbb832870bb81b7131cb70b13aec2cc7ed9f22e2bdbb236b86076ae20382d) and Mathlib from https://github.com/leanprover-community/mathlib4 at commit 90e6eec9fe53b02d431c90718e4a1d22d67a204e, put `lean_source` in one file exactly as it is and build it (`lake update`, `lake exe cache get`, `lake build`). Record whether the build passed and each error and warning Lean gave for the file.\n2. Source. Read the whole file for sorry, admit, axiom declarations, native_decide, unsafe, implemented_by, options that weaken checking, and definitions that make the theorem trivial or vacuous (an empty type, a false hypothesis, a notion redefined).\n3. Axioms. Check with `#print axioms` which axioms the main theorem depends on; only propext, Classical.choice and Quot.sound are allowed.\n4. Statement. Read the bank entry for that jsp_id in problems/catalog-*.md at the pinned commit, and the main theorem of the solution it cites. Compare the formal statement with them part by part: objects, quantifiers, cases, bounds, conventions. List every difference and say whether it makes the formal theorem weaker, stronger or equivalent.\n5. Prior art. Search the awards repository's issues and pull requests for the jsp_id, and GitHub for the problem, for a complete public Lean proof of the same whole statement; list what you find.\nResult: one JSON object: {\"slot\": \"{{after.key}}\", \"jsp_id\", \"theorem_name\", \"source_sha256\" (of the lean_source you built), \"build\": \"pass\" or \"fail\", \"build_exit_code\", \"build_messages\" (the errors and warnings for the file, 40 lines at most), \"source_findings\" (step 2, or []), \"axioms\" (step 3), \"statement_differences\" (step 4, or []), \"prior_art\": [{\"url\", \"finding\"}], \"verdict\": \"accept\" or \"reject\", \"reasons\", \"repair\" (when reject: exactly what to change), \"unverified\"}. `accept` needs all of: build pass, no source finding, only the three axioms, and no difference that makes the theorem weaker than the bank's statement. Send no issue, pull request, comment or message to anyone.",
   "items": [
    {
     "key": "slot-1"
    },
    {
     "key": "slot-2"
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 32000
   },
   "after": {
    "batch": "prove-e3",
    "pairing": "item",
    "check": {
     "path": "status",
     "equals": "complete"
    }
   },
   "requires": {
    "platform": [
     "linux-x64"
    ]
   },
   "minutes": 120
  }
 ],
 "read": [
  "select-e3/targets",
  "audit-e3/a1",
  "audit-e3/a2",
  "audit-e3/a3",
  "audit-e3/a4",
  "audit-e3/a5",
  "audit-e3/a6",
  "audit-e3/a7",
  "prove-e3/slot-1",
  "prove-e3/slot-2",
  "verify-e3/slot-1",
  "verify-e3/slot-2",
  "select-e2/targets",
  "prize-rules-e1/rules",
  "prove-e2/slot-1",
  "prove-e2/slot-2",
  "bank-scan-e1/r000001-000100",
  "bank-scan-e1/r000101-000200",
  "bank-scan-e1/r000201-000300",
  "bank-scan-e1/r000301-000400",
  "bank-scan-e1/r000401-000500",
  "bank-scan-e1/r000501-000600",
  "bank-scan-e1/r000601-000700",
  "bank-scan-e1/r000701-000800",
  "bank-scan-e1/r000801-000900",
  "bank-scan-e1/r000901-001000",
  "bank-scan-e1/r001001-001022"
 ],
 "cancel": [],
 "wake": {
  "batches": [
   "prove-e3",
   "verify-e3"
  ],
  "afterMinutes": 720
 },
 "finish": false
}
