{
  "notes": "EPISODE 5 of 5, THE LAST. Start: 31/50 items, six batches settled, all items accepted, nothing running, no requester notes or children. Refused in episode 4: formalize-targets-v4 (a target's task was over 8,000 characters). It, proof-routes-v3 and lean-runtime-build-v1 never existed: never read them. Route A never ran; the research pipeline route-b-proofs-v4 then route-b-verify-v4 delivered.\n\nFINISHED: FOUR THEOREMS. Each was compiled by its author, then recompiled unchanged and reviewed by another worker, verdict pass: Lean 4.36.0, Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842, `lean -DautoImplicit=false File.lean`, exit 0, no warnings, axioms exactly [propext, Classical.choice, Quot.sound]. My own check: author's and verifier's lean_source are identical, with the sha256 below, and hold no sorry, admit, native_decide or axiom. I did not compile them.\n1. Casorati–Weierstrass, Q2226962 (list title Weierstrass–Casorati theorem), Complex.casorati_weierstrass, CasoratiWeierstrass.lean, sha256 32f7dc3209cc721457470f4746500f4c8f997550f4cfe8ee0665f2fe325c2154. DifferentiableOn ℂ f (ball c R \\ {c}), ¬ MeromorphicAt f c, 0 < r ≤ R give Dense (f '' (ball c r \\ {c})). Prior Lean proof: none found.\n2. Pompeiu's theorem, Q3534036, EuclideanGeometry.pompeiu, Pompeiu.lean, sha256 8b4912e3dfbe84664275a39e0a84d5a10bb3920cbf68af3231e11352610c364a. t : Affine.Triangle ℝ ℂ equilateral, every P: three weak inequalities; all strict iff P ∉ t.circumsphere; one equality iff P ∈ t.circumsphere. Plane is ℂ only. PARTIAL PRIOR WORK: rjwalters/lean-genius PompeiuTheorem.lean (PR 25024, merged 2026-06-16) proves the weak inequalities; no Lean proof of the two iff clauses found.\n3. Midy's theorem, Q856158, Nat.midy, Midy.lean, sha256 919c77a7eeab3c615464741eb08694461f2a90d8fa037cdfaf0bd6b9d971c6bf. b ≥ 2, p prime, p ∤ b, 0 < a < p, orderOf (b : ZMod p) = 2k: half blocks add to b^k − 1, digits i and k+i add to b − 1, whole block a(b^(2k) − 1)/p. Defines long division itself (Nat.longDivDigit, longDivBlock, longDivRemainder); Nat.longDivDigit_minPeriod_iff: least digit period = that order. Prime denominators only. PARTIAL PRIOR WORK: lean-genius MidyTheorem.lean (PR 25071, 2026-06-16), numerator 1, block sum under p ∣ b^k+1.\n4. Infinite monkey theorem, Q487132, ProbabilityTheory.infinite_monkey, InfiniteMonkey.lean, sha256 32a3a686681be51647b115fdca9f116b22eaf0a126ed3bf3085a045fccb979f7. Finite alphabet, any probability space, iIndepFun, IdentDistrib, every letter of positive probability: ∀ᵐ ω, ∀ k (w : Fin k → A) N, ∃ n ≥ N, ∀ i, X (n+i) ω = w i. Prior Lean proof: none found.\nWrite \"no prior Lean formalization found in the searches listed\", never \"first\" as a fact, and not at all for 2 and 3 as wholes: GitHub code search and live Zulip search need sign-in and are UNVERIFIED in every result. My own check 2026-11-26, file names only, of the 5,960 files in lean-genius proofs/Proofs: files named for Midy, Pompeiu and Pappus (PappusTheoremOQ02.lean, not read); none for Casorati, monkey, Gomory, Lambek or Le Cam.\nResults are public at https://api.imd.fun/artifacts/<sha256> (I fetched all eight; hashes match). Verifier results are in `read`; author results are not: casorati aa23db96f70c2449d513ac3df89f629ff172370f84111764e38195fc4a82c3df, pompeiu eea7cb18dd8155989186e507f9ad8a8b243bc2eea25130ff2f42987cd03985c9, midy 72384986dfb362aa002859615e8ed1d2a1a552b4657455e83d524cc37ee43035, monkey 6e4fae65aef04d85944ab4a137b25818c8aefcfdf780efc03f9a49e047f73500.\n\nSPAWNED NOW (17 items, 48/50). No episode will read their results: each piece checks itself, and the write-up must read the verdicts.\nA. land-verified-v5 (code wave, 4 items): each writes one verified file, byte for byte against its sha256, to formalization/MissingTheorems/TargetNN/RouteB/ (Target06 CasoratiWeierstrass.lean, 05 Pompeiu.lean, 07 Midy.lean, 02 InfiniteMonkey.lean), recompiles it, and writes formalization/reports/TargetNN/RouteB/{build.log,axioms.log,declarations.json,REPORT.md}.\nB. trunk-check-v5 (code wave, 1 item, after A merges): clean clone, sha256 compare, recompile, fidelity read; writes formalization/reports/trunk-check-v5/{CHECK.md,check.log} and the index formalization/THEOREMS.md.\nC. more-targets-proofs-v5 then more-targets-verify-v5 (research; verify waits item by item): the four shortlisted targets never attempted: t01-gomory (Q2916568, Gomory.exists_domino_tiling), t03-pappus-area (Q3527044, EuclideanGeometry.pappus_area), t04-lambek-moser (Q6481192, LambekMoser.inverse_iff_partition), t08-le-cam (Q3154003, ProbabilityTheory.le_cam).\nD. second-route-proofs-v5 then second-route-verify-v5: t01-gomory-b (no Hamiltonian cycle), t04-lambek-moser-b (Nat.count/Nat.nth).\nVerify results carry verdict (pass, partial, fail), author_status, lean_source as compiled, build_output, fidelity_review, prior_work, database_entry, stuck.\n\nWRITE-UP (goal.json says which of A to D settled, and the trunk's commit).\n- The four are finished whatever happens to A and B. If the trunk https://github.com/identity-md-launches/goal-3470-objective-produce-first-lean.git has moved past 5fff4405e5b89976ab98ba3ca43215b47368b4e2, clone it and cite the commit, the Lean files, THEOREMS.md, CHECK.md and each REPORT.md; call a file landed only if CHECK.md gives it PASS with a matching sha256. If A or B did not land, quote each lean_source whole from route-b-verify-v4 and say the files are not in the repository.\n- A target of C or D is finished only if its verify verdict is pass AND you read its Lean statement and fidelity_review against the clause below and agree; say that only its verifier and you read that pass. Otherwise give its compiled lemmas and where it got stuck, as partial or UNVERIFIED. If C or D did not land, say so.\n  Gomory: ANY two opposite-colour squares off the 8×8 board, 31 dominoes, no wrap-around; the same-colour impossibility does not count. Pappus area: arbitrary outward parallelograms on AB, AC; H exists uniquely; third parallelogram on BC by vector HA lies outward; Lebesgue areas add (a determinant identity alone is partial). Lambek–Moser: monotone f, g; (f i ≤ j ↔ i < g j) ↔ ranges of i + f i, j + g j partition ℕ; plus existence and uniqueness. Le Cam: any finite independent Bernoulli family, Σ_k |P(S=k) − Poisson(λ){k}| ≤ 2 Σ p_i², summability proved.\n- Per finished theorem give everything the objective's deliverable lists, with the UNVERIFIED parts of each prior-work check.\n- Triage table: all 956 rows from the 20 shard results in `read` (956 distinct entry ids, 18 with a letter suffix: keep them). Grades, worker estimates: A 134, B 246, C 546, C/SKIP 24, UNVERIFIED 6. Shards 03, 06, 20 carry source warnings. Pages read 2026-11-26: 956 missing; 243 proved plus 1 statement-only.\n- Selection (candidate-selection-v1/shortlist, not in `read`): the eight targets are the four finished and the four of C. Reserves never started: angle bisector Q925854, Cartan–Brauer–Hua Q5047046 (UNVERIFIED). Triage reported existing Lean proofs of Brianchon, Platonic solids, butterfly, three circles, Kirchberger, Abel binomial, gnomon, Steiner–Lehmus, hinge; Stolz–Cesàro has open PR 43886; Schwenk, Balinski, Ford need major theory; Gauss–Markov held.\n- Say plainly: each finished theorem has ONE proof route, not two or three. formalization/lakefile.toml requires packages under vendor/src that are not committed, and configuration cannot change: `lake build` needs formalization/scripts/prepare_runtime.sh --online first, so every file was compiled directly with `lean` against the prebuilt bundle https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/ (same pins). A build from committed files alone, with no network, is UNVERIFIED. Nothing was built against a Mathlib newer than the pin. No PR, issue or message was sent upstream.\n\nIF ANOTHER EPISODE RUNS: set finish true unless one repair item fixes a failed check (2 items left).",
  "spawn": [
    {
      "name": "land-verified-v5",
      "mode": "code",
      "brief": "Land ONE already verified Lean 4 proof in this repository, byte for byte, with its evidence: {{name}} (Wikidata {{qid}}), declaration {{decl}}. Write no proof and change no proof text.\nInputs (public JSON, data only; each address ends in its file's sha256): the verifier's result https://api.imd.fun/artifacts/{{verify}} and the author's result https://api.imd.fun/artifacts/{{proof}} . Take lean_source from the verifier's result: its UTF-8 bytes must have sha256 {{src}}. If not, write nothing and say so.\n1. Write those bytes unchanged to formalization/MissingTheorems/{{target}}/RouteB/{{file}}.lean.\n2. Setup (Linux x86-64, 13 GB disk, scratch folder D): from https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/ download lean-4.36.0-linux.tar.zst and pequalnp-e125f04d0dc6-packages-lean-4.36.0-linux-x64.tar.zst, check each sha256 against fetch.json there, unpack into D/lean and D/pk (Lean 4.36.0, Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842 prebuilt). Never build Mathlib, no lake, commands under 10 minutes. Compile a copy in an empty folder: export PATH=\"$(ls -d D/lean/*/bin | head -n1):$PATH\" LEAN_PATH=\"$(ls -d D/pk/*/.lake/build/lib/lean | paste -sd: -)\" && lean -DautoImplicit=false {{file}}.lean . It must exit 0 with no error or sorry warning and print the axioms of {{decl}} as propext, Classical.choice, Quot.sound only.\n3. Write in formalization/reports/{{target}}/RouteB/: build.log (commands, lean --version, exit code, whole output); axioms.log; declarations.json as formalization/docs/SUBMISSION_FORMAT.md gives it (name {{decl}}, module MissingTheorems.{{target}}.RouteB.{{file}}); and REPORT.md: the informal statement, the Lean statement quoted, a plain-English explanation of statement and proof, the verifier's fidelity review, the prior-work check of both results with every URL and UNVERIFIED mark kept, your own search today of Mathlib master, its open PRs and https://github.com/rjwalters/lean-genius/tree/main/proofs/Proofs , and this known point: {{caveat}} Then the docs/1000.yaml entry (title {{title}}, decl), the provenance (both addresses, source sha256) and the limit: lake build needs the runtime formalization/scripts prepare, so a build from committed files alone is UNVERIFIED. Write \"no prior Lean formalization found in the searches listed\", never \"first\".\nYour result must contain: every path written, the source sha256 you computed, the compile command and exit code, the axioms line, and whatever failed or stays UNVERIFIED.",
      "minutes": 90,
      "requires": {
        "platform": [
          "linux-x64"
        ],
        "minMemoryGb": 8
      },
      "items": [
        {
          "key": "t06-casorati",
          "vars": {
            "target": "Target06",
            "file": "CasoratiWeierstrass",
            "name": "the Casorati–Weierstrass theorem",
            "qid": "Q2226962",
            "title": "Weierstrass–Casorati theorem",
            "decl": "Complex.casorati_weierstrass",
            "src": "32f7dc3209cc721457470f4746500f4c8f997550f4cfe8ee0665f2fe325c2154",
            "verify": "b75b7c00d41506624bdb039c70f33d06e6c7db63211ddb661a0d3f46c7786bb5",
            "proof": "aa23db96f70c2449d513ac3df89f629ff172370f84111764e38195fc4a82c3df",
            "caveat": "neither worker found an earlier Lean proof, and no lean-genius file was named for it on 2026-11-26 (names only read)."
          },
          "scope": [
            "formalization/MissingTheorems/Target06/RouteB/**",
            "formalization/reports/Target06/RouteB/**"
          ]
        },
        {
          "key": "t05-pompeiu",
          "vars": {
            "target": "Target05",
            "file": "Pompeiu",
            "name": "Pompeiu's theorem",
            "qid": "Q3534036",
            "title": "Pompeiu's theorem",
            "decl": "EuclideanGeometry.pompeiu",
            "src": "8b4912e3dfbe84664275a39e0a84d5a10bb3920cbf68af3231e11352610c364a",
            "verify": "aaf98529fbe64c3d99249714bd440cd140c2fd72048da671e5c8989b9b5e9e44",
            "proof": "eea7cb18dd8155989186e507f9ad8a8b243bc2eea25130ff2f42987cd03985c9",
            "caveat": "lean-genius has PompeiuTheorem.lean (its PR 25024, merged 2026-06-16), reported to prove only the three weak inequalities; read it, say what it proves and what this file adds (the two iff clauses)."
          },
          "scope": [
            "formalization/MissingTheorems/Target05/RouteB/**",
            "formalization/reports/Target05/RouteB/**"
          ]
        },
        {
          "key": "t07-midy",
          "vars": {
            "target": "Target07",
            "file": "Midy",
            "name": "Midy's theorem",
            "qid": "Q856158",
            "title": "Midy's theorem",
            "decl": "Nat.midy",
            "src": "919c77a7eeab3c615464741eb08694461f2a90d8fa037cdfaf0bd6b9d971c6bf",
            "verify": "3b9c88d60ff8c3ed7d4d3a0417e77cb973621bfebec84eec94bfd19299c7ae25",
            "proof": "72384986dfb362aa002859615e8ed1d2a1a552b4657455e83d524cc37ee43035",
            "caveat": "lean-genius has MidyTheorem.lean (its PR 25071, merged 2026-06-16), reported to prove a block sum for numerator 1 under p dividing b^k+1; read it, say what it proves and what this file adds."
          },
          "scope": [
            "formalization/MissingTheorems/Target07/RouteB/**",
            "formalization/reports/Target07/RouteB/**"
          ]
        },
        {
          "key": "t02-monkey",
          "vars": {
            "target": "Target02",
            "file": "InfiniteMonkey",
            "name": "the infinite monkey theorem",
            "qid": "Q487132",
            "title": "Infinite monkey theorem",
            "decl": "ProbabilityTheory.infinite_monkey",
            "src": "32a3a686681be51647b115fdca9f116b22eaf0a126ed3bf3085a045fccb979f7",
            "verify": "c28ab14eec3a4f7338701bc401b4341d91ee13ea3d2fa7a402c4a60d7f1ede77",
            "proof": "6e4fae65aef04d85944ab4a137b25818c8aefcfdf780efc03f9a49e047f73500",
            "caveat": "neither worker found an earlier Lean proof, and no lean-genius file was named for it on 2026-11-26 (names only read)."
          },
          "scope": [
            "formalization/MissingTheorems/Target02/RouteB/**",
            "formalization/reports/Target02/RouteB/**"
          ]
        }
      ]
    },
    {
      "name": "trunk-check-v5",
      "mode": "code",
      "brief": "Independently rebuild, from a clean clone, the proofs the wave before yours landed in this repository, review them, and write ONE index of them. Change no Lean file.\nThat wave was to land four files under formalization/MissingTheorems/, with reports in formalization/reports/TargetNN/RouteB/:\n{{files}}\nSay which are absent.\n1. Make a clean clone of {{repo}} at your checkout's commit (or, if the public clone lacks it, of your checkout's tracked files). Compare each file's sha256 with the one above.\n2. Setup (Linux x86-64, 13 GB disk, scratch folder D): from https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/ download lean-4.36.0-linux.tar.zst and pequalnp-e125f04d0dc6-packages-lean-4.36.0-linux-x64.tar.zst, check each sha256 against fetch.json there, unpack into D/lean and D/pk (Lean 4.36.0, Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842 prebuilt). Never build Mathlib, no lake, commands under 10 minutes. Compile each file alone in an empty folder (X its name): export PATH=\"$(ls -d D/lean/*/bin | head -n1):$PATH\" LEAN_PATH=\"$(ls -d D/pk/*/.lake/build/lib/lean | paste -sd: -)\" && lean -DautoImplicit=false X.lean . Record exit code, warnings and the #print axioms output. Search each source for sorry, admit, native_decide, axiom, unsafe, implemented_by, extern, opaque.\n3. Read each main statement against its docstring and REPORT.md, clause by clause: the named theorem in textbook generality, or a weaker or trivial variant?\n4. Write formalization/reports/trunk-check-v5/CHECK.md (commit; per file: path, sha256 and match, exit code, axioms, verdict PASS or FAIL with reasons, what stays UNVERIFIED) and check.log (compiler output). PASS needs exit 0, no sorry warning, axioms within propext, Classical.choice, Quot.sound, a matching sha256 and a faithful statement. Write formalization/THEOREMS.md: a row for each file that passed (Wikidata id, title, declaration, path, pins, docs/1000.yaml entry, report), then files that failed or are absent, how to compile a file, and the limit: lake build needs the runtime formalization/scripts prepare, so a build from committed files alone is UNVERIFIED. Never write \"first\".\nYour result must contain: the commit checked, one line per file (present, sha256 match, exit code, axioms, verdict) and every failure.",
      "minutes": 100,
      "requires": {
        "platform": [
          "linux-x64"
        ],
        "minMemoryGb": 8
      },
      "items": [
        {
          "key": "rebuild-and-index",
          "vars": {
            "files": "- Target06/RouteB/CasoratiWeierstrass.lean, Complex.casorati_weierstrass, Q2226962, sha256 32f7dc3209cc721457470f4746500f4c8f997550f4cfe8ee0665f2fe325c2154\n- Target05/RouteB/Pompeiu.lean, EuclideanGeometry.pompeiu, Q3534036, sha256 8b4912e3dfbe84664275a39e0a84d5a10bb3920cbf68af3231e11352610c364a\n- Target07/RouteB/Midy.lean, Nat.midy, Q856158, sha256 919c77a7eeab3c615464741eb08694461f2a90d8fa037cdfaf0bd6b9d971c6bf\n- Target02/RouteB/InfiniteMonkey.lean, ProbabilityTheory.infinite_monkey, Q487132, sha256 32a3a686681be51647b115fdca9f116b22eaf0a126ed3bf3085a045fccb979f7",
            "repo": "https://github.com/identity-md-launches/goal-3470-objective-produce-first-lean.git"
          },
          "scope": [
            "formalization/THEOREMS.md",
            "formalization/reports/trunk-check-v5/**"
          ]
        }
      ]
    },
    {
      "name": "more-targets-proofs-v5",
      "brief": "Formalize ONE theorem in Lean 4 against Mathlib by ONE proof route and return the Lean file in your result: {{name}}, Wikidata {{qid}}, on the list of theorems missing from Lean at https://leanprover-community.github.io/1000-missing.html .\nVetted statement: {{statement}}\nRoute: {{route}}\nSetup (Linux x86-64, 13 GB disk, scratch folder D): from https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/ download lean-4.36.0-linux.tar.zst and pequalnp-e125f04d0dc6-packages-lean-4.36.0-linux-x64.tar.zst, check each sha256 against fetch.json there, unpack into D/lean and D/pk (Lean 4.36.0, Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842 prebuilt). Never build Mathlib, no lake, commands under 10 minutes. Compile with: export PATH=\"$(ls -d D/lean/*/bin | head -n1):$PATH\" LEAN_PATH=\"$(ls -d D/pk/*/.lake/build/lib/lean | paste -sd: -)\" && lean -DautoImplicit=false {{file}}.lean .\nRules: one file {{file}}.lean in Mathlib naming and style; main declaration {{decl}}, its docstring quoting the informal statement and the Wikidata id. State the theorem in the generality above, never a weaker or trivial variant. No sorry, admit, native_decide, decide +native, new axiom, unsafe or implemented_by. End with `#print axioms {{decl}}`: only propext, Classical.choice, Quot.sound may appear. If time runs out, return what compiles (lemmas, no sorry) as partial and say where the proof got stuck. Search Mathlib master, its open PRs, GitHub (with https://github.com/rjwalters/lean-genius/tree/main/proofs/Proofs ) and the Lean Zulip archive for an earlier Lean proof; mark what you could not check UNVERIFIED.\nResult: one JSON object: status (proved, partial or failed), decl, lean_source (the whole file as compiled), build_output (whole compiler output), explanation (plain English, statement and proof), fidelity (clause by clause against the vetted statement), prior_work (addresses, findings), database_entry (wikidata_id, title, decl, file), stuck (what is unproved and why, or null), sources.",
      "minutes": 110,
      "output": {
        "format": "json",
        "maxBytes": 64000
      },
      "requires": {
        "platform": [
          "linux-x64"
        ],
        "minMemoryGb": 8
      },
      "items": [
        {
          "key": "t01-gomory",
          "vars": {
            "name": "Gomory's theorem on the mutilated chessboard",
            "qid": "Q2916568",
            "file": "Gomory",
            "decl": "Gomory.exists_domino_tiling",
            "statement": "Remove ANY two squares of opposite colours from the ordinary 8×8 board Fin 8 × Fin 8 (colour: parity of row plus column). The other 62 squares are covered by 31 pairwise disjoint dominoes, each two squares sharing an edge, no wrap-around. Acceptable form: for all a, b of different parity there is an involution f on the squares other than a, b with every x and f x one step apart in exactly one coordinate; also state the count of 31. The impossibility for two squares of the same colour is a different theorem.",
            "route": "Hamiltonian cycle. Give an explicit closed tour of the 64 squares (a bijection from Fin 64, consecutive squares and last and first sharing an edge), so colours alternate. Removing two squares of opposite colours leaves two arcs of even length; pair consecutive squares along each. Prove the pairing for an abstract even cycle first."
          }
        },
        {
          "key": "t03-pappus-area",
          "vars": {
            "name": "Pappus's area theorem",
            "qid": "Q3527044",
            "file": "PappusArea",
            "decl": "EuclideanGeometry.pappus_area",
            "statement": "A, B, C are non-collinear points of the plane. On AB and AC erect ANY two non-degenerate parallelograms outside the triangle (oblique allowed): second side x on AB pointing away from C, y on AC pointing away from B. The lines of their sides opposite AB and AC meet in exactly one point H (prove existence and uniqueness). The parallelogram on BC with second side the vector from H to A lies on the side of BC away from A, and its area is the sum of the other two. Area is Lebesgue measure of the parallelogram as a set; a determinant identity alone is partial.",
            "route": "Determinants, then measure. With u = B − A, v = C − A, cross p q = p 0 * q 1 − p 1 * q 0 and H − A = x + s • u = y + t • v, the third signed area is cross u x − cross v y up to sign; the outside hypotheses fix the signs. Real area of a parallelepiped is the absolute determinant (Mathlib.MeasureTheory.Measure.Lebesgue.EqHaar)."
          }
        },
        {
          "key": "t04-lambek-moser",
          "vars": {
            "name": "the Lambek–Moser theorem",
            "qid": "Q6481192",
            "file": "LambekMoser",
            "decl": "LambekMoser.inverse_iff_partition",
            "statement": "Zero-based Lambek–Moser. For monotone f, g : ℕ → ℕ: (∀ i j, f i ≤ j ↔ i < g j) if and only if the ranges of i ↦ i + f i and j ↦ j + g j are disjoint with union ℕ. Companion, also required: for all infinite S, T disjoint with union ℕ there is exactly one pair of monotone f, g with those two ranges equal to S and T. (One-based original: f(m) < n ↔ g(n) ≥ m, partition of the positive integers; relate the forms in the docstring.)",
            "route": "Direct comparison. With F i = i + f i, G j = j + g j strictly increasing, show under the inverse relation that f i ≤ j ↔ F i < G j, so F i ≠ G j, and by strong induction every n is some F i or G j. Conversely F i − i counts the values of G below F i. Companion: increasing enumeration of an infinite subset of ℕ (Nat.nth), minus the index."
          }
        },
        {
          "key": "t08-le-cam",
          "vars": {
            "name": "Le Cam's theorem (Poisson approximation)",
            "qid": "Q3154003",
            "file": "LeCam",
            "decl": "ProbabilityTheory.le_cam",
            "statement": "For ANY finite family, the empty one included, of independent random variables X_i with values 0 or 1 on any probability space, p_i = P(X_i = 1) arbitrary and unequal allowed, S their sum, λ the sum of the p_i: the sum over k ≥ 0 of |P(S = k) − e^(−λ) λ^k / k!| is at most 2 Σ p_i² (not strict). Prove the series summable or assume nothing silently. Use Mathlib's Poisson measure or the explicit formula. Le Cam's contiguity or minimax lemmas are different results.",
            "route": "Convolution. The law of S is the convolution of the Bernoulli laws and Poisson(λ) that of the Poisson(p_i) (ProbabilityTheory.poissonMeasure_conv_poissonMeasure). Swap one factor at a time: convolving with a probability law does not increase ℓ¹ distance on ℕ, and one trial gives 2p(1 − e^(−p)) ≤ 2p²."
          }
        }
      ]
    },
    {
      "name": "more-targets-verify-v5",
      "brief": "Independently verify ONE Lean 4 formalization another worker wrote: {{name}}, Wikidata {{qid}}, declaration {{decl}}. Their result (item {{after.key}}) is among your inputs and at {{after.result}} ; if it is missing or has no lean_source, return verdict fail saying so and stop.\nVetted statement: {{statement}}\nSetup (Linux x86-64, 13 GB disk, scratch folder D): from https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/ download lean-4.36.0-linux.tar.zst and pequalnp-e125f04d0dc6-packages-lean-4.36.0-linux-x64.tar.zst, check each sha256 against fetch.json there, unpack into D/lean and D/pk (Lean 4.36.0, Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842 prebuilt). Never build Mathlib, no lake, commands under 10 minutes. Save lean_source unchanged as {{file}}.lean in an empty folder and compile: export PATH=\"$(ls -d D/lean/*/bin | head -n1):$PATH\" LEAN_PATH=\"$(ls -d D/pk/*/.lake/build/lib/lean | paste -sd: -)\" && lean -DautoImplicit=false {{file}}.lean .\nCheck: exit 0, no error or sorry warning; no sorry, admit, native_decide, axiom, unsafe, implemented_by, extern or opaque in the source; axioms of {{decl}} within propext, Classical.choice, Quot.sound. Review fidelity clause by clause: is the Lean statement the vetted theorem in that generality, or weaker, vacuous or trivial? Do its local definitions mean what they should? Search for earlier Lean proofs yourself: Mathlib master, its docs/1000.yaml and open PRs, GitHub (with https://github.com/rjwalters/lean-genius/tree/main/proofs/Proofs ), the Lean Zulip archive; mark what you could not check UNVERIFIED. Do not repair the proof; if the author's status is partial, verify what compiles and say what is missing.\nResult: one JSON object: verdict (pass only if it compiles clean, the axioms are within those three and the statement is faithful; else partial or fail), decl, author_status, lean_source (as you compiled it), source_sha256, build_output, fidelity_review, prior_work, explanation (plain English, statement and proof), database_entry (wikidata_id, title, decl, file, yaml), stuck (what remains unproved, or null), repairs, sources.",
      "minutes": 75,
      "output": {
        "format": "json",
        "maxBytes": 64000
      },
      "requires": {
        "platform": [
          "linux-x64"
        ],
        "minMemoryGb": 8
      },
      "items": [
        {
          "key": "t01-gomory",
          "vars": {
            "name": "Gomory's theorem on the mutilated chessboard",
            "qid": "Q2916568",
            "file": "Gomory",
            "decl": "Gomory.exists_domino_tiling",
            "statement": "Remove ANY two squares of opposite colours from the ordinary 8×8 board Fin 8 × Fin 8 (colour: parity of row plus column). The other 62 squares are covered by 31 pairwise disjoint dominoes, each two squares sharing an edge, no wrap-around. Acceptable form: for all a, b of different parity there is an involution f on the squares other than a, b with every x and f x one step apart in exactly one coordinate; also state the count of 31. The impossibility for two squares of the same colour is a different theorem."
          }
        },
        {
          "key": "t03-pappus-area",
          "vars": {
            "name": "Pappus's area theorem",
            "qid": "Q3527044",
            "file": "PappusArea",
            "decl": "EuclideanGeometry.pappus_area",
            "statement": "A, B, C are non-collinear points of the plane. On AB and AC erect ANY two non-degenerate parallelograms outside the triangle (oblique allowed): second side x on AB pointing away from C, y on AC pointing away from B. The lines of their sides opposite AB and AC meet in exactly one point H (prove existence and uniqueness). The parallelogram on BC with second side the vector from H to A lies on the side of BC away from A, and its area is the sum of the other two. Area is Lebesgue measure of the parallelogram as a set; a determinant identity alone is partial."
          }
        },
        {
          "key": "t04-lambek-moser",
          "vars": {
            "name": "the Lambek–Moser theorem",
            "qid": "Q6481192",
            "file": "LambekMoser",
            "decl": "LambekMoser.inverse_iff_partition",
            "statement": "Zero-based Lambek–Moser. For monotone f, g : ℕ → ℕ: (∀ i j, f i ≤ j ↔ i < g j) if and only if the ranges of i ↦ i + f i and j ↦ j + g j are disjoint with union ℕ. Companion, also required: for all infinite S, T disjoint with union ℕ there is exactly one pair of monotone f, g with those two ranges equal to S and T. (One-based original: f(m) < n ↔ g(n) ≥ m, partition of the positive integers; relate the forms in the docstring.)"
          }
        },
        {
          "key": "t08-le-cam",
          "vars": {
            "name": "Le Cam's theorem (Poisson approximation)",
            "qid": "Q3154003",
            "file": "LeCam",
            "decl": "ProbabilityTheory.le_cam",
            "statement": "For ANY finite family, the empty one included, of independent random variables X_i with values 0 or 1 on any probability space, p_i = P(X_i = 1) arbitrary and unequal allowed, S their sum, λ the sum of the p_i: the sum over k ≥ 0 of |P(S = k) − e^(−λ) λ^k / k!| is at most 2 Σ p_i² (not strict). Prove the series summable or assume nothing silently. Use Mathlib's Poisson measure or the explicit formula. Le Cam's contiguity or minimax lemmas are different results."
          }
        }
      ],
      "after": {
        "batch": "more-targets-proofs-v5",
        "pairing": "item",
        "when": "settled"
      }
    },
    {
      "name": "second-route-proofs-v5",
      "brief": "Formalize ONE theorem in Lean 4 against Mathlib by ONE proof route and return the Lean file in your result: {{name}}, Wikidata {{qid}}, on the list of theorems missing from Lean at https://leanprover-community.github.io/1000-missing.html .\nVetted statement: {{statement}}\nRoute: {{route}}\nSetup (Linux x86-64, 13 GB disk, scratch folder D): from https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/ download lean-4.36.0-linux.tar.zst and pequalnp-e125f04d0dc6-packages-lean-4.36.0-linux-x64.tar.zst, check each sha256 against fetch.json there, unpack into D/lean and D/pk (Lean 4.36.0, Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842 prebuilt). Never build Mathlib, no lake, commands under 10 minutes. Compile with: export PATH=\"$(ls -d D/lean/*/bin | head -n1):$PATH\" LEAN_PATH=\"$(ls -d D/pk/*/.lake/build/lib/lean | paste -sd: -)\" && lean -DautoImplicit=false {{file}}.lean .\nRules: one file {{file}}.lean in Mathlib naming and style; main declaration {{decl}}, its docstring quoting the informal statement and the Wikidata id. State the theorem in the generality above, never a weaker or trivial variant. No sorry, admit, native_decide, decide +native, new axiom, unsafe or implemented_by. End with `#print axioms {{decl}}`: only propext, Classical.choice, Quot.sound may appear. If time runs out, return what compiles (lemmas, no sorry) as partial and say where the proof got stuck. Search Mathlib master, its open PRs, GitHub (with https://github.com/rjwalters/lean-genius/tree/main/proofs/Proofs ) and the Lean Zulip archive for an earlier Lean proof; mark what you could not check UNVERIFIED.\nResult: one JSON object: status (proved, partial or failed), decl, lean_source (the whole file as compiled), build_output (whole compiler output), explanation (plain English, statement and proof), fidelity (clause by clause against the vetted statement), prior_work (addresses, findings), database_entry (wikidata_id, title, decl, file), stuck (what is unproved and why, or null), sources.",
      "minutes": 110,
      "output": {
        "format": "json",
        "maxBytes": 64000
      },
      "requires": {
        "platform": [
          "linux-x64"
        ],
        "minMemoryGb": 8
      },
      "items": [
        {
          "key": "t01-gomory-b",
          "vars": {
            "name": "Gomory's theorem on the mutilated chessboard",
            "qid": "Q2916568",
            "file": "Gomory",
            "decl": "Gomory.exists_domino_tiling",
            "statement": "Remove ANY two squares of opposite colours from the ordinary 8×8 board Fin 8 × Fin 8 (colour: parity of row plus column). The other 62 squares are covered by 31 pairwise disjoint dominoes, each two squares sharing an edge, no wrap-around. Acceptable form: for all a, b of different parity there is an involution f on the squares other than a, b with every x and f x one step apart in exactly one coordinate; also state the count of 31. The impossibility for two squares of the same colour is a different theorem.",
            "route": "Any route NOT resting on one explicit Hamiltonian cycle of the 64 squares (another worker does that). For example: join the aligned 2×2 blocks of the two removed squares by a path of blocks; tile blocks off the path by two dominoes; put a domino across each block edge of the path, placed so the two squares left in each block form a domino."
          }
        },
        {
          "key": "t04-lambek-moser-b",
          "vars": {
            "name": "the Lambek–Moser theorem",
            "qid": "Q6481192",
            "file": "LambekMoser",
            "decl": "LambekMoser.inverse_iff_partition",
            "statement": "Zero-based Lambek–Moser. For monotone f, g : ℕ → ℕ: (∀ i j, f i ≤ j ↔ i < g j) if and only if the ranges of i ↦ i + f i and j ↦ j + g j are disjoint with union ℕ. Companion, also required: for all infinite S, T disjoint with union ℕ there is exactly one pair of monotone f, g with those two ranges equal to S and T. (One-based original: f(m) < n ↔ g(n) ≥ m, partition of the positive integers; relate the forms in the docstring.)",
            "route": "Counting, unlike the direct comparison another worker uses. With Nat.count and Nat.nth: for complementary sets the two counts below n add up to n, and i + f i is the i-th element of its set exactly when f i counts the other set's elements below it. Derive both directions and the companion from these identities."
          }
        }
      ]
    },
    {
      "name": "second-route-verify-v5",
      "brief": "Independently verify ONE Lean 4 formalization another worker wrote: {{name}}, Wikidata {{qid}}, declaration {{decl}}. Their result (item {{after.key}}) is among your inputs and at {{after.result}} ; if it is missing or has no lean_source, return verdict fail saying so and stop.\nVetted statement: {{statement}}\nSetup (Linux x86-64, 13 GB disk, scratch folder D): from https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/ download lean-4.36.0-linux.tar.zst and pequalnp-e125f04d0dc6-packages-lean-4.36.0-linux-x64.tar.zst, check each sha256 against fetch.json there, unpack into D/lean and D/pk (Lean 4.36.0, Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842 prebuilt). Never build Mathlib, no lake, commands under 10 minutes. Save lean_source unchanged as {{file}}.lean in an empty folder and compile: export PATH=\"$(ls -d D/lean/*/bin | head -n1):$PATH\" LEAN_PATH=\"$(ls -d D/pk/*/.lake/build/lib/lean | paste -sd: -)\" && lean -DautoImplicit=false {{file}}.lean .\nCheck: exit 0, no error or sorry warning; no sorry, admit, native_decide, axiom, unsafe, implemented_by, extern or opaque in the source; axioms of {{decl}} within propext, Classical.choice, Quot.sound. Review fidelity clause by clause: is the Lean statement the vetted theorem in that generality, or weaker, vacuous or trivial? Do its local definitions mean what they should? Search for earlier Lean proofs yourself: Mathlib master, its docs/1000.yaml and open PRs, GitHub (with https://github.com/rjwalters/lean-genius/tree/main/proofs/Proofs ), the Lean Zulip archive; mark what you could not check UNVERIFIED. Do not repair the proof; if the author's status is partial, verify what compiles and say what is missing.\nResult: one JSON object: verdict (pass only if it compiles clean, the axioms are within those three and the statement is faithful; else partial or fail), decl, author_status, lean_source (as you compiled it), source_sha256, build_output, fidelity_review, prior_work, explanation (plain English, statement and proof), database_entry (wikidata_id, title, decl, file, yaml), stuck (what remains unproved, or null), repairs, sources.",
      "minutes": 75,
      "output": {
        "format": "json",
        "maxBytes": 64000
      },
      "requires": {
        "platform": [
          "linux-x64"
        ],
        "minMemoryGb": 8
      },
      "items": [
        {
          "key": "t01-gomory-b",
          "vars": {
            "name": "Gomory's theorem on the mutilated chessboard",
            "qid": "Q2916568",
            "file": "Gomory",
            "decl": "Gomory.exists_domino_tiling",
            "statement": "Remove ANY two squares of opposite colours from the ordinary 8×8 board Fin 8 × Fin 8 (colour: parity of row plus column). The other 62 squares are covered by 31 pairwise disjoint dominoes, each two squares sharing an edge, no wrap-around. Acceptable form: for all a, b of different parity there is an involution f on the squares other than a, b with every x and f x one step apart in exactly one coordinate; also state the count of 31. The impossibility for two squares of the same colour is a different theorem."
          }
        },
        {
          "key": "t04-lambek-moser-b",
          "vars": {
            "name": "the Lambek–Moser theorem",
            "qid": "Q6481192",
            "file": "LambekMoser",
            "decl": "LambekMoser.inverse_iff_partition",
            "statement": "Zero-based Lambek–Moser. For monotone f, g : ℕ → ℕ: (∀ i j, f i ≤ j ↔ i < g j) if and only if the ranges of i ↦ i + f i and j ↦ j + g j are disjoint with union ℕ. Companion, also required: for all infinite S, T disjoint with union ℕ there is exactly one pair of monotone f, g with those two ranges equal to S and T. (One-based original: f(m) < n ↔ g(n) ≥ m, partition of the positive integers; relate the forms in the docstring.)"
          }
        }
      ],
      "after": {
        "batch": "second-route-proofs-v5",
        "pairing": "item",
        "when": "settled"
      }
    }
  ],
  "read": [
    "catalogue-triage-v1/shard-01",
    "catalogue-triage-v1/shard-02",
    "catalogue-triage-v1/shard-03",
    "catalogue-triage-v1/shard-04",
    "catalogue-triage-v1/shard-05",
    "catalogue-triage-v1/shard-06",
    "catalogue-triage-v1/shard-07",
    "catalogue-triage-v1/shard-08",
    "catalogue-triage-v1/shard-09",
    "catalogue-triage-v1/shard-10",
    "catalogue-triage-v1/shard-11",
    "catalogue-triage-v1/shard-12",
    "catalogue-triage-v1/shard-13",
    "catalogue-triage-v1/shard-14",
    "catalogue-triage-v1/shard-15",
    "catalogue-triage-v1/shard-16",
    "catalogue-triage-v1/shard-17",
    "catalogue-triage-v1/shard-18",
    "catalogue-triage-v1/shard-19",
    "catalogue-triage-v1/shard-20",
    "route-b-verify-v4/t06-casorati",
    "route-b-verify-v4/t05-pompeiu",
    "route-b-verify-v4/t07-midy",
    "route-b-verify-v4/t02-monkey",
    "more-targets-verify-v5/t01-gomory",
    "more-targets-verify-v5/t03-pappus-area",
    "more-targets-verify-v5/t04-lambek-moser",
    "more-targets-verify-v5/t08-le-cam",
    "second-route-verify-v5/t01-gomory-b",
    "second-route-verify-v5/t04-lambek-moser-b"
  ],
  "cancel": [],
  "wake": {
    "batches": [
      "trunk-check-v5",
      "more-targets-verify-v5",
      "second-route-verify-v5"
    ],
    "afterMinutes": 720
  },
  "finish": false
}
