{
  "notes": "Episode 2 of 5. Seats: 50 total, 26 used in episode 1, 16 spent here, 8 left for episodes 3-4. Episode 5 should only finish.\n\nWHAT EPISODE 1 FOUND (all 26 results accepted; bank pinned at TheJustinSunPrize/awards commit 7782c2aa02df745da60d53e61718b714f8685a98, snapshot 2026-11-23):\n- The bank has 1,072 entries, not 1,022: catalog-1001-1022.md holds JSP-001001..001072. Index counts: 396 Solved, 104 Lean Yes; 292 Solved+Lean-No in all, 290 of them in JSP-000001..001022 (candidates per range 15/20/22/28/32/28/42/30/37/27/9). JSP-001023..001072 was not scanned in episode 1 (2 matching rows expected); it is being read now.\n- EVERY one of the 292 rows has Eligible to claim = No and both claim statuses Unavailable. None is Claimed, so all pass the requester's filter, but the bank itself does not mark any as claimable. The write-up must say this plainly.\n- Screens (source-level, nothing rebuilt): 254 of 290 already have a public Lean proof (mostly plby/lean-proofs src/latest/ErdosProblems, pinned 8822f7d, and repos registered through PRs on the awards repo); 19 unresolved scope cases: JSP-000036, 175, 182, 205, 243, 314, 356, 393, 404, 714, 725, 728, 733, 753, 755, 782, 822, 831, 895; 17 'no hit': JSP-000104, 108, 121, 126, 139, 140, 155, 161, 163, 168, 173, 176, 179, 192, 194, 195, 198.\n- All 17 no-hits come from the one screen (101-200) that was rate-limited on GitHub and never looked at plby/lean-proofs or the awards repo's PRs. shortlist-e1 ranked them (173, 198, 108, 121, 139 first) and selected NONE. My own check this episode (GitHub issue search of TheJustinSunPrize/awards, titles only, PRs not opened): JSP-000173 has 8 hits incl. open #5480, #1419 'register Lean formalization (plby/lean-proofs)' and #1120; JSP-000198 has 11 incl. open #727 '[Award claim] Lean formalization', #1504, #71, #726; JSP-000108 has 13 incl. open #1492, #819, #814; JSP-000121 has 9 incl. open #5487, #1418, #890; JSP-000139 has 19 incl. open #5067, #5542, #5485, #5050. So the episode-1 shortlist is not usable: its top five all have open registrations. The awards repo is at PR #5624; the bank looks saturated with Lean registrations whose index rows still say Lean proof No. Expect few or no clean targets.\n- Sources flagged by the plane: bank-scan-e1/r000301-000400, r000401-000500, r001001-001022 and bank-screen-e1/r000401-000500. Treat their rows as less verified in the write-up.\n- Rules (prize-rules-e1/rules): Lean only. Lean verifier gets 30% of the allocation (solver 70%; MathDB pilot 50/30/20). Tier I is $1,000,000 per problem; tiers II-V have NO published amount ('adjudicated by the Academic Committee and published upon review'), so the 30% cannot be turned into a number; no award row publishes an amount. Procedure (legacy): search existing PRs; fork, edit the problem's catalog entry, PR to main with .github/PULL_REQUEST_TEMPLATE.md (references only: Lean repo, branch, 40-char commit, theorem, toolchain, manifest, build commands, #print axioms output; Lean source stays in the claimant's own repository); maintainer review and rebuild; after merge a claim-award issue '[Award claim] JSP-<n>'; identity email; 14-day public review; KYC; payout in TRC-20 USDT or ERC-20 USDC. Priority goes to the earliest valid public proof. Retroactive to achievements on or after 2026-01-01; whether that cutoff is per role is unsettled. Lean-only awards exist (JSP-000305, 371, 381, 697).\n- Tooling (lean-preflight-e1/tooling): Mathlib master 90e6eec9fe53b02d431c90718e4a1d22d67a204e with leanprover/lean4:v4.37.0-rc1 built on a worker (Linux x86_64) with `lake exe cache get`, also offline from copied files; toolchain 3.5 GB + packages 7.5 GB, far over the 8 MiB source cap, and no plane build/fetch channel was verified. Decision: proofs are written and compiled inside research items and returned as JSON with the whole Lean source, build log and #print axioms output; a second item on another machine rebuilds each. No trunk, no code batches.\n\nWHAT THIS EPISODE RUNS (one pipeline, all JSON, each batch at most five items so no canary):\n1. rescreen-e2 (g1..g4: the 36 doubtful ids, nine each; g5-tail: inventory and screen of JSP-001023..001072). Dispositions: complete_public_lean, open_effort, scope_gap, no_lean_found.\n2. select-e2/targets, after rescreen settles: up to five targets by slot (tier A no_lean_found, then tier B scope_gap = the bank's full statement where public Lean proves less), three backups, full specifications, and a table of every re-screened id. It may NOT relax the rule to fill slots: fewer than five is a finding, reported in `shortfall`.\n3. prove-e2/slot-1..slot-5, after select: each proves the target of its slot, up to 240 minutes; status complete, stuck (with the exact lemma, goal and error) or no_target.\n4. verify-e2/slot-1..slot-5, paired by item, only where status is complete: clean rebuild, axiom and source audit, statement-against-bank comparison, prior-art recheck; verdict accept or reject.\n\nNEXT EPISODE (3): read select-e2/targets first (targets, shortfall, table). Per slot: complete + accept = done; complete + reject = one repair item given the verifier's differences, then one verify item; stuck = one retry item given its stuck_at, or the next backup when the retry looks hopeless; no_target = nothing to do. Use new batch names (prove-e3, verify-e3), the same Lean pin, a pipeline with `after` by item, and at most 8 items in total. If select chose no target, do not invent one: spend nothing, and finish with the saturation finding. If a batch was refused or the pipeline stalled, run its remaining stages again under new names.\nEPISODE 4: last repairs and verifications. EPISODE 5: finish.\nFINAL WRITE-UP needs, and the last episode's `read` must name (30 at most): the 11 bank-scan-e1 results (statement, solution link, proof length, Mathlib areas for all 290), the 11 bank-screen-e1 results (prior-art disposition), select-e2/targets (re-screen table, tail rows, targets), prize-rules-e1/rules, and for each slot its latest verify result (it carries the Lean source) or, where none, its latest prove result: 29 with five slots. Drop the five rescreen-e2 items from `read` then; select's table carries them.\nThe report: (a) every one of the 292 rows with id, Erdős number, statement, solution link, proof length, Mathlib areas, prior-art disposition and source; (b) the ranked shortlist with reasons, and why the episode-1 ranking was withdrawn; (c) per target the Lean source, build log and #print axioms output, or exactly where it stuck; (d) amounts and claim procedure as above, with the unknowns. Say explicitly: nothing was rebuilt in the 254 exclusions, Eligible to claim is No everywhere, tier II-V amounts are unpublished, a later bank commit may differ. No claim, PR, issue or message is to be sent by anyone.",
  "spawn": [
    {
      "name": "rescreen-e2",
      "brief": "Re-screen for existing Lean 4 proofs these problems of the Justin Sun Prize bank (https://github.com/TheJustinSunPrize/awards, pinned commit 7782c2aa02df745da60d53e61718b714f8685a98): {{ids}}.\nAn earlier screen could not search GitHub and missed the two places where most other solved bank problems turned out to have a Lean proof. For each problem check, in this order:\n1. Its entry in problems/catalog-*.md at the pinned commit: copy the Problem description verbatim, the Erdős number if the entry gives one, and the cited solution.\n2. Every issue and pull request of TheJustinSunPrize/awards that names its JSP id, open and closed (https://github.com/TheJustinSunPrize/awards/issues?q=<id> and /pulls?q=<id>, or the search API; on a rate limit read the HTML pages): number, state, title, and the Lean repository, commit and theorem it registers.\n3. https://github.com/plby/lean-proofs under src/latest/ErdosProblems/ (Erdos<N>.lean and the folder Erdos<N>/; files under ComparatorChallenges are statements, not proofs), and every repository a PR names. Read the main theorem: say what it proves, and whether the file is free of sorry, admit and axiom declarations (say if you only searched the text and did not build).\n4. google-deepmind/formal-conjectures (FormalConjectures/ErdosProblems/<N>.lean), teorth/erdosproblems data/problems.yaml, the erdosproblems.com page and thread, and the public Lean Zulip archive.\nGive each problem one disposition:\n- complete_public_lean: a public proof whose main theorem matches the bank's statement and the cited resolution.\n- open_effort: no confirmed complete match, but an open PR, issue or public repository claims or is working on the same full statement.\n- scope_gap: public Lean proves only a weaker or different statement and nothing public claims the rest; say exactly which part of the bank's statement has no Lean proof.\n- no_lean_found: nothing in any channel.\nName each channel you could not reach. Open no issue, PR or comment anywhere.\nResult: one JSON object {\"bank_commit\", \"checked_at_utc\", \"rows\": [{\"jsp_id\", \"erdos_number\", \"bank_statement\", \"solution_url\", \"proof_pages\", \"mathlib_areas\", \"awards_prs\": [{\"number\", \"state\", \"title\", \"lean_repo\"}], \"public_lean\": [{\"url\", \"theorem\", \"proves\", \"sorry_free\"}], \"disposition\", \"gap\", \"channels_unreached\"}], \"inventory\": [only when an inventory is asked for above: {\"jsp_id\", \"current_status\", \"lean_proof\", \"eligible_to_claim\"}], \"unverified\": []}. One row per problem named above. Under 60,000 bytes in all.",
      "items": [
        {
          "key": "g1",
          "vars": {
            "ids": "JSP-000104 (Erdős 88), JSP-000108 (Erdős 92), JSP-000121 (Erdős 110), JSP-000126 (Erdős 118), JSP-000139 (Erdős 133), JSP-000140 (Erdős 136), JSP-000155 (Erdős 157), JSP-000161 (Erdős 163), JSP-000163 (Erdős 166)"
          }
        },
        {
          "key": "g2",
          "vars": {
            "ids": "JSP-000168 (Erdős 172), JSP-000173 (Erdős 179), JSP-000175 (Erdős 181), JSP-000176 (Erdős 182), JSP-000179 (Erdős 186), JSP-000182 (Erdős 190), JSP-000192 (Erdős 207), JSP-000194 (Erdős 210), JSP-000195 (Erdős 211)"
          }
        },
        {
          "key": "g3",
          "vars": {
            "ids": "JSP-000198 (Erdős 216), JSP-000036 (modularity theorem, no Erdős number), JSP-000205 (Erdős 232), JSP-000243 (Erdős 286), JSP-000314 (Erdős 380), JSP-000356 (Erdős 437), JSP-000393 (Erdős 485), JSP-000404 (Erdős 504), JSP-000714 (Erdős 861)"
          }
        },
        {
          "key": "g4",
          "vars": {
            "ids": "JSP-000725 (Erdős 874), JSP-000728 (Erdős 877), JSP-000733 (Erdős 882), JSP-000753 (Erdős 908), JSP-000755 (Erdős 910), JSP-000782 (Erdős 941), JSP-000822 (Erdős 989), JSP-000831 (Erdős 998), JSP-000895 (Erdős 1076)"
          }
        },
        {
          "key": "g5-tail",
          "vars": {
            "ids": "every entry from JSP-001023 to JSP-001072 whose Current status is Solved and whose Lean proof is not Yes; first make the inventory of all fifty (problems/README.md index; problems/catalog-1001-1022.md holds them), which no earlier pass read"
          }
        }
      ],
      "output": {
        "format": "json",
        "maxBytes": 64000
      },
      "minutes": 60
    },
    {
      "name": "select-e2",
      "brief": "You are handed the results of {{after.batch}}: a re-screen of those solved problems of the Justin Sun Prize bank (https://github.com/TheJustinSunPrize/awards at commit 7782c2aa02df745da60d53e61718b714f8685a98) that an earlier pass could not match to a public Lean proof. From them choose up to five targets for a complete Lean 4 + Mathlib formalization, and up to three backups.\nRules. A target is a row whose disposition is no_lean_found (tier A) or scope_gap (tier B: the target is then the bank's full statement, which nothing public proves). Never a row that is complete_public_lean or open_effort. Fill slots 1 to 5 with tier A first, then tier B, each tier ordered by how likely one worker is to finish a self-contained proof on Mathlib alone in four hours: short elementary published proofs in number theory or combinatorics first; long papers, deep theorems absent from Mathlib, heavy analysis, geometry or set theory last. Before you fix a target, confirm it yourself: search the issues and pull requests of TheJustinSunPrize/awards for its JSP id again, read its bank entry at the pinned commit, and read the cited solution far enough to write the statement exactly. If fewer than five rows qualify, leave the other slots out and say why in `shortfall`; do not relax the rules to fill them.\nFor each target and backup write a specification a prover can work from alone: slot (1 to 5; backups b1 to b3), tier, jsp_id, erdos_number, bank_statement (the entry's Problem description, verbatim), bank_url, resolution (what the cited solution proves or disproves), target_statement (the exact mathematical statement to formalize: every definition, quantifier, hypothesis and case spelled out, matching the bank's statement, never a special case or an easier variant), solution_url, locator (theorem and pages), proof_outline (the lemmas in order, one line each), mathlib (modules and lemmas to use), missing (what Mathlib lacks), prior_art (public Lean near it, with URLs), risk.\nResult: one JSON object {\"bank_commit\", \"checked_at_utc\", \"targets\": [], \"backups\": [], \"shortfall\", \"table\": [one row per re-screened problem: {\"jsp_id\", \"erdos_number\", \"disposition\", \"evidence_url\", \"gap\"}, and for problems numbered above JSP-001022 also \"bank_statement\", \"solution_url\", \"proof_pages\", \"mathlib_areas\"], \"missing_inputs\": [re-screen results that failed or were not handed], \"unverified\": []}. Under 60,000 bytes. Open no issue, PR or comment anywhere.",
      "items": [
        {
          "key": "targets"
        }
      ],
      "output": {
        "format": "json",
        "maxBytes": 64000
      },
      "minutes": 60,
      "after": {
        "batch": "rescreen-e2",
        "pairing": "batch",
        "when": "settled"
      }
    },
    {
      "name": "prove-e2",
      "brief": "Formalize in Lean 4 with Mathlib one solved problem of the Justin Sun Prize bank that has no public Lean proof: 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 with \"status\": \"no_target\" and \"slot\" only, 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 exactly: the same objects, quantifiers and cases, no added hypothesis that gives the conclusion away, not a special case, not vacuous. Define what Mathlib lacks. Then prove it completely on Mathlib alone: no sorry, admit, axiom, unsafe, native_decide or implemented_by, and nothing copied from another proof repository. Split the proof into lemmas and build often. If you cannot finish, keep everything that compiles and record exactly where you stopped: the lemma, its goal state, the error, and what would close it. Never call a proof complete that did not build.\nLean setup, tested on Linux x86_64 on 2026-11-23: download https://github.com/leanprover/lean4/releases/download/v4.37.0-rc1/lean-4.37.0-rc1-linux.tar.zst (sha256 2e1bbb832870bb81b7131cb70b13aec2cc7ed9f22e2bdbb236b86076ae20382d), unpack it and put its bin first on PATH. Project: lean-toolchain `leanprover/lean4:v4.37.0-rc1`; a lakefile.toml requiring mathlib from https://github.com/leanprover-community/mathlib4.git at rev 90e6eec9fe53b02d431c90718e4a1d22d67a204e; one library holding the file. Run `lake update`, `lake exe cache get`, `lake build`. It takes about 12 GB of disk; keep downloads and caches inside your task workspace. End the file with `#print axioms <theorem>`: only propext, Classical.choice and Quot.sound may appear.\nResult: one JSON object {\"status\": \"complete\" or \"stuck\", \"slot\", \"jsp_id\", \"erdos_number\", \"bank_statement\", \"theorem_name\", \"formal_statement\" (the theorem's Lean statement), \"correspondence\" (each definition, quantifier, hypothesis and the conclusion against the bank's words), \"lean_source\" (the whole file as last built; for a stuck proof the open steps marked with sorry), \"lean_version\", \"mathlib_commit\", \"commands\", \"build_exit_code\", \"build_log_tail\", \"axioms_output\", \"stuck_at\" (null when complete), \"solution_url\", \"unverified\"}. `status` is \"complete\" only when `lake build` exited 0 on exactly `lean_source`, it holds no sorry, and the axioms are within those three. Under 60,000 bytes: cut logs, never the source. Submit no claim, PR or issue anywhere.",
      "items": [
        {
          "key": "slot-1",
          "vars": {
            "slot": "1"
          }
        },
        {
          "key": "slot-2",
          "vars": {
            "slot": "2"
          }
        },
        {
          "key": "slot-3",
          "vars": {
            "slot": "3"
          }
        },
        {
          "key": "slot-4",
          "vars": {
            "slot": "4"
          }
        },
        {
          "key": "slot-5",
          "vars": {
            "slot": "5"
          }
        }
      ],
      "output": {
        "format": "json",
        "maxBytes": 64000
      },
      "minutes": 240,
      "requires": {
        "platform": [
          "linux-x64"
        ]
      },
      "after": {
        "batch": "select-e2",
        "pairing": "batch"
      }
    },
    {
      "name": "verify-e2",
      "brief": "Check independently the Lean 4 proof in the result at {{after.result}} (item {{after.key}} of {{after.batch}}, also handed): a formalization of a solved problem of the Justin Sun Prize bank (https://github.com/TheJustinSunPrize/awards at commit 7782c2aa02df745da60d53e61718b714f8685a98). Trust nothing it says about itself; change nothing in it.\n1. Build. Lean setup, tested on Linux x86_64 on 2026-11-23: download https://github.com/leanprover/lean4/releases/download/v4.37.0-rc1/lean-4.37.0-rc1-linux.tar.zst (sha256 2e1bbb832870bb81b7131cb70b13aec2cc7ed9f22e2bdbb236b86076ae20382d), unpack it and put its bin first on PATH. Project: lean-toolchain `leanprover/lean4:v4.37.0-rc1`; a lakefile.toml requiring mathlib from https://github.com/leanprover-community/mathlib4.git at rev 90e6eec9fe53b02d431c90718e4a1d22d67a204e; one library holding the file. Run `lake update`, `lake exe cache get`, `lake build`. It takes about 12 GB of disk; keep downloads and caches inside your task workspace. Build `lean_source` byte for byte in a fresh project; record the exit code, the end of the log and the `#print axioms` line for `theorem_name` (only propext, Classical.choice, Quot.sound allowed).\n2. Source. Search the file for sorry, admit, axiom, unsafe, native_decide, implemented_by, extern and opaque, and read every definition the statement uses: one that makes the statement trivial or vacuous rejects it.\n3. Statement. Read the bank entry for its JSP id (problems/catalog-*.md at that commit) and the cited solution. Compare `formal_statement` with the bank's Problem description part by part: objects and definitions, quantifier order, hypotheses, every case, the conclusion. List each difference and whether it makes the theorem weaker, stronger or different. An added hypothesis that carries the conclusion, a special case or an unsatisfiable hypothesis rejects it.\n4. Prior art. Search the issues and pull requests of TheJustinSunPrize/awards for the JSP id, and https://github.com/plby/lean-proofs (src/latest/ErdosProblems) for the Erdős number: list what registers a Lean proof of it, with dates.\nResult: one JSON object {\"jsp_id\", \"theorem_name\", \"build\": \"pass\" or \"fail\", \"build_exit_code\", \"build_log_tail\", \"axioms_output\", \"axioms_ok\", \"forbidden_found\": [], \"statement_matches\": \"yes\", \"partly\" or \"no\", \"differences\": [], \"prior_art\": [], \"lean_source\" (as you built it), \"verdict\": \"accept\" or \"reject\", \"reasons\", \"unverified\"}. Accept only when the build passed, the axioms are within the three, nothing forbidden was found and the statement matches. Under 60,000 bytes. Open no issue or PR anywhere.",
      "items": [
        {
          "key": "slot-1"
        },
        {
          "key": "slot-2"
        },
        {
          "key": "slot-3"
        },
        {
          "key": "slot-4"
        },
        {
          "key": "slot-5"
        }
      ],
      "output": {
        "format": "json",
        "maxBytes": 64000
      },
      "minutes": 90,
      "requires": {
        "platform": [
          "linux-x64"
        ]
      },
      "after": {
        "batch": "prove-e2",
        "pairing": "item",
        "check": {
          "path": "status",
          "equals": "complete"
        }
      }
    }
  ],
  "read": [
    "select-e2/targets",
    "prize-rules-e1/rules",
    "rescreen-e2/g1",
    "rescreen-e2/g2",
    "rescreen-e2/g3",
    "rescreen-e2/g4",
    "rescreen-e2/g5-tail",
    "prove-e2/slot-1",
    "prove-e2/slot-2",
    "prove-e2/slot-3",
    "prove-e2/slot-4",
    "prove-e2/slot-5",
    "verify-e2/slot-1",
    "verify-e2/slot-2",
    "verify-e2/slot-3",
    "verify-e2/slot-4",
    "verify-e2/slot-5"
  ],
  "cancel": [],
  "wake": {
    "batches": [
      "prove-e2",
      "verify-e2"
    ],
    "afterMinutes": 900
  },
  "finish": false
}
