{
 "notes": "Episode 4/5. Start: 23/50 items used, four batches settled and accepted, nothing running, no requester notes or children. NO theorem proved yet. Trunk https://github.com/identity-md-launches/goal-3470-objective-produce-first-lean.git at 5fff4405e5b89976ab98ba3ca43215b47368b4e2. Episode 3 carried nothing out: its batch proof-routes-v3 was refused because its fetch named Lean's own release, and this plane fetches only from https://github.com/Identity-md/lean-bundles/releases/download/ . proof-routes-v3 and lean-runtime-build-v1 do not exist: never read or wake on them.\n\nCHECKED BY ME THIS EPISODE (my own check, not a worker's): that publisher's release pequalnp-e125f04d0dc6 holds lean-4.36.0-linux.tar.zst (607649028 bytes, sha256 2b7ab1ed8b92d2e6abfaf41344823b510064dbc9c0260cac73eb496ab2dea6eb, Lean's own file) and pequalnp-e125f04d0dc6-packages-lean-4.36.0-linux-x64.tar.zst (1833750742 bytes, sha256 69b68c745d0bd8dba3ab21966f8cdb14f9373bd4f1df1d17680f4b80dad98a88): all of Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842 prebuilt (the trunk's pin), with its sources and docs/1000.yaml. I downloaded both (hashes and sizes match) and unpacked them read only as .imd/fetch/lean and .imd/fetch/lean-packages (10.4 GB); with PATH on .imd/fetch/lean/*/bin and LEAN_PATH the colon-joined .imd/fetch/lean-packages/*/.lake/build/lib/lean, `lean` elaborated a file importing all of Mathlib in 1.5 s (6.9 GB resident, mostly mapped files). I ran the batch's check commands there on dummy files: a clean file passes; a missing declaration, a sorry, an added axiom, native_decide and decide +native each fail. The eight targets are title-only (unproved) in the pinned docs/1000.yaml.\n\nTRUNK LIMIT: formalization/lakefile.toml requires its packages by path under vendor/src, which is not committed, and configuration cannot change: `lake build` needs formalization/scripts/prepare_runtime.sh --online first, so workers compile each file directly with `lean` against the bundle (same pins). Say so in the write-up; committed-only offline delivery stays UNVERIFIED.\n\nSPAWNED (24 items; 47/50 used, 3 left):\n1. formalize-targets-v4: code TARGET batch, attempts 3, fetch lean + lean-packages, linux-x64, 8 GB, 16 targets. Proof targets p01-gomory, p02-monkey, p03-pappus-area, p04-lambek-moser, p05-pompeiu, p06-casorati, p07-midy, p08-le-cam each write one file formalization/MissingTheorems/TargetNN/RouteA/<Name>.lean (Gomory, InfiniteMonkey, PappusArea, LambekMoser, Pompeiu, CasoratiWeierstrass, Midy, LeCam) and formalization/reports/TargetNN/RouteA/{build.log,REPORT.md}. Main declarations: Gomory.exists_domino_tiling, ProbabilityTheory.infinite_monkey, EuclideanGeometry.pappus_area, LambekMoser.inverse_iff_partition, EuclideanGeometry.pompeiu, Complex.casorati_weierstrass, Nat.midy, ProbabilityTheory.le_cam. A proof check compiles the file, needs the #print axioms line of <decl>, and fails on a sorry warning, sorryAx, a native-decide axiom, or the words axiom / native_decide in the source; fidelity and the exact axiom list are the review's to judge. Review targets r01-gomory ... r08-le-cam each need their proof target and write formalization/reviews/TargetNN/{REVIEW.md,axioms.log}: a line VERDICT: PASS or VERDICT: FAIL, commit and sha256 reviewed, fidelity review, prior-work re-check, explanation, 1000.yaml entry. A review's check only tests that the verdict and axioms lines exist, so READ the verdicts: a landed review may say FAIL. Reviewer and prover being different holders is not promised; if it cannot be told, say so.\n2. route-b-proofs-v4 (research, json, 110 min, no fetch: items download the same two archives themselves): a second, different route for the four likeliest targets, keys t06-casorati, t05-pompeiu, t07-midy, t02-monkey. Result: status proved|partial|failed, decl, lean_source (whole file), build_output, explanation, fidelity, prior_work, database_entry, stuck, sources.\n3. route-b-verify-v4 (research, json, 75 min, after route-b-proofs-v4 by item, when settled), same keys: another worker recompiles that source from clean and returns verdict pass|fail|partial, decl, lean_source as compiled, source_sha256, build_output, fidelity_review, prior_work, explanation, database_entry, repairs, sources. These sources are NOT in the trunk.\nWhy both: target batches and fetch are untried here; if refused, the research pipeline still yields checked proofs.\n\nTARGETS and the clause a faithful statement must keep (dossiers in candidate-selection-v1/shortlist; full vetted statements in the item vars; route A in the trunk, route B in research):\n01 Q2916568 Gomory: ANY two opposite-colour squares off the 8x8 board, 31 dominoes (not the same-colour impossibility).\n02 Q487132 infinite monkey: iid full-support letters, general probability space, ONE almost-sure event for every finite word at arbitrarily large positions.\n03 Q3527044 Pappus area: arbitrary outward parallelograms on AB, AC, third on BC by HA; genuine areas add.\n04 Q6481192 Lambek-Moser: monotone f, g; (f i <= j iff i < g j) iff ranges of i+f i, j+g j partition Nat; plus existence/uniqueness.\n05 Q3534036 Pompeiu: equilateral triangle, EVERY P; triangle inequalities for PA, PB, PC, strict iff P off the circumcircle.\n06 Q2226962 Casorati-Weierstrass: not MeromorphicAt at the centre gives dense image of EVERY punctured disc.\n07 Q856158 Midy: any base and numerator, even period, half blocks sum to b^k-1, digits to b-1, with the order/period bridge.\n08 Q3154003 Le Cam: independent Bernoulli, l1 distance to Poisson(sum p_i) <= 2 sum p_i^2.\nReserves never started: angle bisector Q925854, Cartan-Brauer-Hua Q5047046 (UNVERIFIED). Triage reports existing Lean proofs of Brianchon, Platonic solids, butterfly, three circles, Kirchberger, Abel binomial, gnomon, Steiner-Lehmus, hinge; Stolz-Cesaro has open PR 43886; Schwenk, Balinski, Ford need major theory; Gauss-Markov held (prior proof asserted without URL).\n\nTRIAGE FACTS: 956 rows, 956 distinct entry ids, 18 with letter suffixes (keep them), grades A 134, B 246, C 546, C/SKIP 24, UNVERIFIED 6 (worker estimates). Missing page read 2026-11-26 (sha256 1a9af1ba...c23e95); finished page: 243 proved + 1 statement-only. Source warnings on shards 03, 06, 20. The full table lives only in the 20 shard results: keep them in `read`. Prior-work searches are bounded: write \"no prior Lean formalization found in the searches listed\", never \"first\" as a fact.\n\nEPISODE 5 (the last): read goal.json (target board, failures, refusals) and the route-B results, and clone the trunk to read formalization/reviews/*/REVIEW.md, the reports and the Lean files. A theorem is FINISHED only with a compiled proof, axioms within propext/Classical.choice/Quot.sound, and a PASS from a reviewer other than its author; all else is partial or UNVERIFIED. If at least one is finished, prefer finish=true: nothing spawned in episode 5 gets a later episode to check it. Spend the three seats only on work that checks itself (a repair target plus a review target needing it, for a near-miss), and only if target batches worked. If formalize-targets-v4 was refused, do not resend it: route B is then the deliverable, and the 16 returned seats may run route A of the other targets as the same two-stage research pipeline. If a batch still runs at the wake, cancel nothing that landed. A theorem proved only by route B exists only in its result: quote its source whole. Reads stay at 30 or fewer: 20 shards + shortlist + route-B results.\n\nWRITE-UP: per finished theorem everything the objective's deliverable lists (Lean file and commit or the source from the result, build log, axioms output, explanation, fidelity review, prior-work check, 1000.yaml entry); the 956-row triage table from the 20 shards; compiled lemmas and blockers for unfinished targets; the lakefile/offline limit; UNVERIFIED on anything not independently checked. No PR, issue or message was authorized or sent.",
 "spawn": [
  {
   "name": "formalize-targets-v4",
   "mode": "code",
   "targets": {
    "attempts": 3
   },
   "brief": "{{role}} for ONE target of this goal's Lean project (formalization/: Lean 4.36.0, Mathlib v4.36.0 fc4f59e; never edit its lakefile, manifest or toolchain): {{name}}, Wikidata {{qid}}, listed as not yet formalized in Lean at https://leanprover-community.github.io/1000-missing.html .\nVetted statement: {{statement}}\nYour one piece of work: {{task}}\nLean and Mathlib are prebuilt, read only, under .imd/fetch (Mathlib's sources too: .imd/fetch/lean-packages/mathlib/Mathlib). Never run lake, never build Mathlib. From the repository root, as one line each time: export PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean/*/bin|head -n1):$PATH\" LEAN_PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean-packages/*/.lake/build/lib/lean|paste -sd: -)\" && lean -DautoImplicit=false FILE . Every command under 10 minutes.\nRules: no sorry, admit, native_decide or new axioms (only propext, Classical.choice, Quot.sound). A weaker, vacuous or trivial variant is not the theorem. Post nothing publicly.\nYour result must contain: {{deliver}}",
   "items": [
    {
     "key": "p01-gomory",
     "vars": {
      "role": "Write the Lean proof",
      "name": "Gomory's theorem (mutilated chessboard, opposite colours)",
      "qid": "Q2916568",
      "statement": "Remove ANY two squares of opposite colours from the ordinary 8x8 chessboard (colour = parity of row + column, no wraparound). The remaining 62 squares can be covered by 31 non-overlapping dominoes, each on two edge-adjacent squares. Lean shape: for all a b : Fin 8 x Fin 8 of opposite colour, a fixed-point-free involution on the cells other than a and b sending every cell to an edge-neighbour (or an equivalent explicit set of 31 disjoint dominoes covering exactly those cells). The impossibility for two squares of the SAME colour is a different result and does not count.",
      "task": "prove it in Lean by this route. Hamiltonian cycle: fix an explicit closed tour of the 64 cells through edge-adjacent cells; colours alternate along it, so deleting two cells of opposite colour leaves two arcs of even length, and each arc is paired off consecutively. Write one self-contained file formalization/MissingTheorems/Target01/RouteA/Gomory.lean (it imports Mathlib modules only) with main declaration `Gomory.exists_domino_tiling` and last line `#print axioms Gomory.exists_domino_tiling`. The words axiom and native_decide must not occur in it, comments included.",
      "deliver": "that file in Mathlib naming and style, the docstring of `Gomory.exists_domino_tiling` quoting the informal statement and the Wikidata id; and in formalization/reports/Target01/RouteA/: build.log (the command's whole output on the file) and REPORT.md: statement and proof in plain English, a clause-by-clause fidelity self-check, your prior-work searches (Mathlib master and open PRs, GitHub, Lean Zulip) with URLs, a draft docs/1000.yaml entry. If it will not close, split the target so every lemma you proved lands compiling and say exactly where it is stuck; never weaken the statement."
     },
     "scope": [
      "formalization/MissingTheorems/Target01/RouteA/**",
      "formalization/reports/Target01/RouteA/**"
     ],
     "check": "export PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean/*/bin|head -n1):$PATH\" LEAN_PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean-packages/*/.lake/build/lib/lean|paste -sd: -)\";f=formalization/MissingTheorems/Target01/RouteA/Gomory.lean;! grep -wE 'axiom|native_decide' $f&&o=\"$(lean -DautoImplicit=false $f 2>&1)\"&&echo \"$o\"|grep -qE \"'Gomory.exists_domino_tiling' (depends on axioms|does not depend on any axioms)\"&&! echo \"$o\"|grep -qE 'declaration uses|sorryAx|_native|ofReduceBool'"
    },
    {
     "key": "p02-monkey",
     "vars": {
      "role": "Write the Lean proof",
      "name": "Infinite monkey theorem",
      "qid": "Q487132",
      "statement": "A is a finite alphabet and X 0, X 1, ... are independent, identically distributed A-valued random variables on a probability space, every letter having positive probability (not necessarily uniform). Almost surely EVERY finite word over A occurs as a contiguous block X n, ..., X (n+k-1) at arbitrarily large positions n, hence infinitely often. One almost-sure event must serve all words at once. State it on a general probability space with iIndepFun, not only on a product space; unequal letter probabilities, a one-letter alphabet and the empty word are included.",
      "task": "prove it in Lean by this route. Blocks and Borel-Cantelli: for a word of length k the events 'the word sits at positions nk, ..., nk+k-1' are independent with one common positive probability (iIndepFun.meas_biInter over disjoint index blocks), so ProbabilityTheory.measure_limsup_eq_one applies; then intersect over the countably many words. Write one self-contained file formalization/MissingTheorems/Target02/RouteA/InfiniteMonkey.lean (it imports Mathlib modules only) with main declaration `ProbabilityTheory.infinite_monkey` and last line `#print axioms ProbabilityTheory.infinite_monkey`. The words axiom and native_decide must not occur in it, comments included.",
      "deliver": "that file in Mathlib naming and style, the docstring of `ProbabilityTheory.infinite_monkey` quoting the informal statement and the Wikidata id; and in formalization/reports/Target02/RouteA/: build.log (the command's whole output on the file) and REPORT.md: statement and proof in plain English, a clause-by-clause fidelity self-check, your prior-work searches (Mathlib master and open PRs, GitHub, Lean Zulip) with URLs, a draft docs/1000.yaml entry. If it will not close, split the target so every lemma you proved lands compiling and say exactly where it is stuck; never weaken the statement."
     },
     "scope": [
      "formalization/MissingTheorems/Target02/RouteA/**",
      "formalization/reports/Target02/RouteA/**"
     ],
     "check": "export PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean/*/bin|head -n1):$PATH\" LEAN_PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean-packages/*/.lake/build/lib/lean|paste -sd: -)\";f=formalization/MissingTheorems/Target02/RouteA/InfiniteMonkey.lean;! grep -wE 'axiom|native_decide' $f&&o=\"$(lean -DautoImplicit=false $f 2>&1)\"&&echo \"$o\"|grep -qE \"'ProbabilityTheory.infinite_monkey' (depends on axioms|does not depend on any axioms)\"&&! echo \"$o\"|grep -qE 'declaration uses|sorryAx|_native|ofReduceBool'"
    },
    {
     "key": "p03-pappus-area",
     "vars": {
      "role": "Write the Lean proof",
      "name": "Pappus's area theorem",
      "qid": "Q3527044",
      "statement": "ABC is any non-collinear triangle in the plane. On AB and on AC erect arbitrary non-degenerate parallelograms outside the triangle (no right angles assumed). Let H be the intersection of the lines through their sides opposite AB and AC. On BC erect the parallelogram whose other pair of sides are translates of the directed segment HA. Then it lies outside the triangle and its area is the sum of the areas of the first two. Area must be genuine area (Lebesgue measure of the parallelogram, or |det| proved equal to it), not just a signed determinant identity; include existence and uniqueness of H.",
      "task": "prove it in Lean by this route. Coordinates: with u = B - A and v = C - A write H - A = x + s u = y + t v, so the third cross product is cross(u,x) - cross(v,y); the outside-the-triangle sign hypotheses turn this into a sum of absolute values; link |det| to volume with MeasureTheory.Measure.addHaar_parallelepiped. Write one self-contained file formalization/MissingTheorems/Target03/RouteA/PappusArea.lean (it imports Mathlib modules only) with main declaration `EuclideanGeometry.pappus_area` and last line `#print axioms EuclideanGeometry.pappus_area`. The words axiom and native_decide must not occur in it, comments included.",
      "deliver": "that file in Mathlib naming and style, the docstring of `EuclideanGeometry.pappus_area` quoting the informal statement and the Wikidata id; and in formalization/reports/Target03/RouteA/: build.log (the command's whole output on the file) and REPORT.md: statement and proof in plain English, a clause-by-clause fidelity self-check, your prior-work searches (Mathlib master and open PRs, GitHub, Lean Zulip) with URLs, a draft docs/1000.yaml entry. If it will not close, split the target so every lemma you proved lands compiling and say exactly where it is stuck; never weaken the statement."
     },
     "scope": [
      "formalization/MissingTheorems/Target03/RouteA/**",
      "formalization/reports/Target03/RouteA/**"
     ],
     "check": "export PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean/*/bin|head -n1):$PATH\" LEAN_PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean-packages/*/.lake/build/lib/lean|paste -sd: -)\";f=formalization/MissingTheorems/Target03/RouteA/PappusArea.lean;! grep -wE 'axiom|native_decide' $f&&o=\"$(lean -DautoImplicit=false $f 2>&1)\"&&echo \"$o\"|grep -qE \"'EuclideanGeometry.pappus_area' (depends on axioms|does not depend on any axioms)\"&&! echo \"$o\"|grep -qE 'declaration uses|sorryAx|_native|ofReduceBool'"
    },
    {
     "key": "p04-lambek-moser",
     "vars": {
      "role": "Write the Lean proof",
      "name": "Lambek-Moser theorem",
      "qid": "Q6481192",
      "statement": "Zero-based form: for monotone f g : Nat -> Nat, (for all i j, f i <= j iff i < g j) holds if and only if the ranges of i |-> i + f i and j |-> j + g j are disjoint and together cover Nat. Companion, also required: every partition of Nat into two infinite sets arises in this way from exactly one pair of monotone f and g (subtract the index from the two increasing enumerations). The classical one-based form is f(m) < n iff not (g(n) < m) on positive integers; say in the docstring how yours corresponds to it. Both directions of the iff are required.",
      "task": "prove it in Lean by this route. Counting: i + f i is strictly increasing; count the members of each range below a bound and compare ranks, so that exactly one of the two sequences takes each next value; conversely the number of values j + g j below i + f i is f i. Write one self-contained file formalization/MissingTheorems/Target04/RouteA/LambekMoser.lean (it imports Mathlib modules only) with main declaration `LambekMoser.inverse_iff_partition` and last line `#print axioms LambekMoser.inverse_iff_partition`. The words axiom and native_decide must not occur in it, comments included.",
      "deliver": "that file in Mathlib naming and style, the docstring of `LambekMoser.inverse_iff_partition` quoting the informal statement and the Wikidata id; and in formalization/reports/Target04/RouteA/: build.log (the command's whole output on the file) and REPORT.md: statement and proof in plain English, a clause-by-clause fidelity self-check, your prior-work searches (Mathlib master and open PRs, GitHub, Lean Zulip) with URLs, a draft docs/1000.yaml entry. If it will not close, split the target so every lemma you proved lands compiling and say exactly where it is stuck; never weaken the statement."
     },
     "scope": [
      "formalization/MissingTheorems/Target04/RouteA/**",
      "formalization/reports/Target04/RouteA/**"
     ],
     "check": "export PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean/*/bin|head -n1):$PATH\" LEAN_PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean-packages/*/.lake/build/lib/lean|paste -sd: -)\";f=formalization/MissingTheorems/Target04/RouteA/LambekMoser.lean;! grep -wE 'axiom|native_decide' $f&&o=\"$(lean -DautoImplicit=false $f 2>&1)\"&&echo \"$o\"|grep -qE \"'LambekMoser.inverse_iff_partition' (depends on axioms|does not depend on any axioms)\"&&! echo \"$o\"|grep -qE 'declaration uses|sorryAx|_native|ofReduceBool'"
    },
    {
     "key": "p05-pompeiu",
     "vars": {
      "role": "Write the Lean proof",
      "name": "Pompeiu's theorem (equilateral triangle)",
      "qid": "Q3534036",
      "statement": "ABC is an equilateral triangle of positive side in the Euclidean plane and P is ANY point of the plane. Then PA, PB, PC satisfy the three weak triangle inequalities (they are the sides of a triangle), and all three are strict if and only if P is not on the circumcircle of ABC; on the circumcircle the largest distance equals the sum of the other two (vertices included). State it for all P, in EuclideanSpace Real (Fin 2), Complex or a two-dimensional Euclidean affine space. The inequalities without the iff are only partial.",
      "task": "prove it in Lean by this route. Rotation: the 60 degree rotation about B taking A to C sends P to P' with PP' = PB and CP' = AP, so triangle P C P' has the three lengths; it degenerates exactly when P, C, P' are collinear, which is the circumcircle condition (in Complex, a unit q with q^2 - q + 1 = 0). Write one self-contained file formalization/MissingTheorems/Target05/RouteA/Pompeiu.lean (it imports Mathlib modules only) with main declaration `EuclideanGeometry.pompeiu` and last line `#print axioms EuclideanGeometry.pompeiu`. The words axiom and native_decide must not occur in it, comments included.",
      "deliver": "that file in Mathlib naming and style, the docstring of `EuclideanGeometry.pompeiu` quoting the informal statement and the Wikidata id; and in formalization/reports/Target05/RouteA/: build.log (the command's whole output on the file) and REPORT.md: statement and proof in plain English, a clause-by-clause fidelity self-check, your prior-work searches (Mathlib master and open PRs, GitHub, Lean Zulip) with URLs, a draft docs/1000.yaml entry. If it will not close, split the target so every lemma you proved lands compiling and say exactly where it is stuck; never weaken the statement."
     },
     "scope": [
      "formalization/MissingTheorems/Target05/RouteA/**",
      "formalization/reports/Target05/RouteA/**"
     ],
     "check": "export PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean/*/bin|head -n1):$PATH\" LEAN_PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean-packages/*/.lake/build/lib/lean|paste -sd: -)\";f=formalization/MissingTheorems/Target05/RouteA/Pompeiu.lean;! grep -wE 'axiom|native_decide' $f&&o=\"$(lean -DautoImplicit=false $f 2>&1)\"&&echo \"$o\"|grep -qE \"'EuclideanGeometry.pompeiu' (depends on axioms|does not depend on any axioms)\"&&! echo \"$o\"|grep -qE 'declaration uses|sorryAx|_native|ofReduceBool'"
    },
    {
     "key": "p06-casorati",
     "vars": {
      "role": "Write the Lean proof",
      "name": "Casorati-Weierstrass theorem",
      "qid": "Q2226962",
      "statement": "c is a complex number, R > 0, and f is holomorphic on the punctured disc 0 < |z - c| < R with an essential singularity at c: neither removable nor a pole, in Mathlib terms not MeromorphicAt f c (the value f c is irrelevant). Then for EVERY 0 < r <= R the image of the punctured disc 0 < |z - c| < r is dense in the complex plane: from DifferentiableOn Complex f (ball c R minus {c}), not MeromorphicAt f c, 0 < r and r <= R conclude Dense (f '' (ball c r minus {c})). Justify, by a lemma or in the docstring, that not MeromorphicAt means neither removable nor a pole. Density is claimed, not surjectivity.",
      "task": "prove it in Lean by this route. Removable singularity: if the image misses a disc about w, then g = (f - w)^(-1) is bounded and holomorphic on the punctured disc; Complex.differentiableOn_update_limUnder_of_bddAbove removes its singularity, so g is analytic at c and f = w + g^(-1) near c is meromorphic at c, a contradiction. Write one self-contained file formalization/MissingTheorems/Target06/RouteA/CasoratiWeierstrass.lean (it imports Mathlib modules only) with main declaration `Complex.casorati_weierstrass` and last line `#print axioms Complex.casorati_weierstrass`. The words axiom and native_decide must not occur in it, comments included.",
      "deliver": "that file in Mathlib naming and style, the docstring of `Complex.casorati_weierstrass` quoting the informal statement and the Wikidata id; and in formalization/reports/Target06/RouteA/: build.log (the command's whole output on the file) and REPORT.md: statement and proof in plain English, a clause-by-clause fidelity self-check, your prior-work searches (Mathlib master and open PRs, GitHub, Lean Zulip) with URLs, a draft docs/1000.yaml entry. If it will not close, split the target so every lemma you proved lands compiling and say exactly where it is stuck; never weaken the statement."
     },
     "scope": [
      "formalization/MissingTheorems/Target06/RouteA/**",
      "formalization/reports/Target06/RouteA/**"
     ],
     "check": "export PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean/*/bin|head -n1):$PATH\" LEAN_PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean-packages/*/.lake/build/lib/lean|paste -sd: -)\";f=formalization/MissingTheorems/Target06/RouteA/CasoratiWeierstrass.lean;! grep -wE 'axiom|native_decide' $f&&o=\"$(lean -DautoImplicit=false $f 2>&1)\"&&echo \"$o\"|grep -qE \"'Complex.casorati_weierstrass' (depends on axioms|does not depend on any axioms)\"&&! echo \"$o\"|grep -qE 'declaration uses|sorryAx|_native|ofReduceBool'"
    },
    {
     "key": "p07-midy",
     "vars": {
      "role": "Write the Lean proof",
      "name": "Midy's theorem",
      "qid": "Q856158",
      "statement": "Base b >= 2, p a prime not dividing b, 0 < a < p. If the base-b expansion of a/p has minimal period 2k (equivalently b has multiplicative order 2k modulo p), then its two half-period blocks of k digits, leading zeros kept, add up to b^k - 1, and each digit of the first half plus the corresponding digit of the second half is b - 1. Decimal example: 1/7 = 0.142857..., 142 + 857 = 999. Required: arbitrary numerator a and arbitrary base b; exact statements about digits, not only a congruence; and a lemma tying the order of b modulo p to the period of the actual digit expansion, whose period block is a(b^(2k) - 1)/p.",
      "task": "prove it in Lean by this route. Order: b^k is a square root of 1 other than 1 in the field ZMod p, so b^k = -1 and p divides b^k + 1; the period integer N = a(b^(2k) - 1)/p is a multiple of b^k - 1 with 0 < N < b^(2k) - 1, which forces N / b^k + N % b^k = b^k - 1; the digit statement follows because no carry occurs. Write one self-contained file formalization/MissingTheorems/Target07/RouteA/Midy.lean (it imports Mathlib modules only) with main declaration `Nat.midy` and last line `#print axioms Nat.midy`. The words axiom and native_decide must not occur in it, comments included.",
      "deliver": "that file in Mathlib naming and style, the docstring of `Nat.midy` quoting the informal statement and the Wikidata id; and in formalization/reports/Target07/RouteA/: build.log (the command's whole output on the file) and REPORT.md: statement and proof in plain English, a clause-by-clause fidelity self-check, your prior-work searches (Mathlib master and open PRs, GitHub, Lean Zulip) with URLs, a draft docs/1000.yaml entry. If it will not close, split the target so every lemma you proved lands compiling and say exactly where it is stuck; never weaken the statement."
     },
     "scope": [
      "formalization/MissingTheorems/Target07/RouteA/**",
      "formalization/reports/Target07/RouteA/**"
     ],
     "check": "export PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean/*/bin|head -n1):$PATH\" LEAN_PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean-packages/*/.lake/build/lib/lean|paste -sd: -)\";f=formalization/MissingTheorems/Target07/RouteA/Midy.lean;! grep -wE 'axiom|native_decide' $f&&o=\"$(lean -DautoImplicit=false $f 2>&1)\"&&echo \"$o\"|grep -qE \"'Nat.midy' (depends on axioms|does not depend on any axioms)\"&&! echo \"$o\"|grep -qE 'declaration uses|sorryAx|_native|ofReduceBool'"
    },
    {
     "key": "p08-le-cam",
     "vars": {
      "role": "Write the Lean proof",
      "name": "Le Cam's theorem (Poisson approximation)",
      "qid": "Q3154003",
      "statement": "X_1, ..., X_n are independent Bernoulli random variables with arbitrary success probabilities p_i in [0,1], S is their sum and lam = p_1 + ... + p_n. Then the sum over k >= 0 of |P(S = k) - exp(-lam) lam^k / k!| is at most 2 (p_1^2 + ... + p_n^2); the bound is not strict, and n = 0 and p_i equal to 0 or 1 are allowed. State it for Nat-valued X_i on a general probability space with iIndepFun (or an equivalent statement about laws), against ProbabilityTheory.poissonMeasure, with summability proved. Le Cam's contiguity lemmas and minimax bounds are different results.",
      "task": "prove it in Lean by this route. Convolution: the law of S is the convolution of the Bernoulli laws and Poisson(lam) that of the Poisson(p_i) (poissonMeasure_conv_poissonMeasure); the l1 distance on Nat does not grow under convolution with a probability law, so telescope; for one trial the sum over k of |Ber(p){k} - Poi(p){k}| is 2p(1 - exp(-p)) <= 2p^2. Write one self-contained file formalization/MissingTheorems/Target08/RouteA/LeCam.lean (it imports Mathlib modules only) with main declaration `ProbabilityTheory.le_cam` and last line `#print axioms ProbabilityTheory.le_cam`. The words axiom and native_decide must not occur in it, comments included.",
      "deliver": "that file in Mathlib naming and style, the docstring of `ProbabilityTheory.le_cam` quoting the informal statement and the Wikidata id; and in formalization/reports/Target08/RouteA/: build.log (the command's whole output on the file) and REPORT.md: statement and proof in plain English, a clause-by-clause fidelity self-check, your prior-work searches (Mathlib master and open PRs, GitHub, Lean Zulip) with URLs, a draft docs/1000.yaml entry. If it will not close, split the target so every lemma you proved lands compiling and say exactly where it is stuck; never weaken the statement."
     },
     "scope": [
      "formalization/MissingTheorems/Target08/RouteA/**",
      "formalization/reports/Target08/RouteA/**"
     ],
     "check": "export PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean/*/bin|head -n1):$PATH\" LEAN_PATH=\"$(ls -d \"$PWD\"/.imd/fetch/lean-packages/*/.lake/build/lib/lean|paste -sd: -)\";f=formalization/MissingTheorems/Target08/RouteA/LeCam.lean;! grep -wE 'axiom|native_decide' $f&&o=\"$(lean -DautoImplicit=false $f 2>&1)\"&&echo \"$o\"|grep -qE \"'ProbabilityTheory.le_cam' (depends on axioms|does not depend on any axioms)\"&&! echo \"$o\"|grep -qE 'declaration uses|sorryAx|_native|ofReduceBool'"
    },
    {
     "key": "r01-gomory",
     "vars": {
      "role": "Write the independent review",
      "name": "Gomory's theorem (mutilated chessboard, opposite colours)",
      "qid": "Q2916568",
      "statement": "Remove ANY two squares of opposite colours from the ordinary 8x8 chessboard (colour = parity of row + column, no wraparound). The remaining 62 squares can be covered by 31 non-overlapping dominoes, each on two edge-adjacent squares. Lean shape: for all a b : Fin 8 x Fin 8 of opposite colour, a fixed-point-free involution on the cells other than a and b sending every cell to an edge-neighbour (or an equivalent explicit set of 31 disjoint dominoes covering exactly those cells). The impossibility for two squares of the SAME colour is a different result and does not count.",
      "task": "review, without changing it, the proof another worker landed at formalization/MissingTheorems/Target01/RouteA/Gomory.lean (main declaration `Gomory.exists_domino_tiling`). On the trunk as you find it, recompile that file with the command below and keep the whole output. Judge clause by clause whether the Lean statement really is the named theorem in the vetted generality: hypotheses satisfiable, the conclusion the theorem's, its definitions meaning what they should. Check again that no Lean formalization exists already: Mathlib master and its docs/1000.yaml, open Mathlib PRs, GitHub code search, Lean Zulip.",
      "deliver": "formalization/reviews/Target01/REVIEW.md with one line exactly VERDICT: PASS or VERDICT: FAIL (PASS only if the file compiles with no error or sorry warning, on the three standard axioms alone, and is faithful), the commit and the file's sha256 reviewed, the fidelity review, the prior-work check with URLs, a plain-English explanation of statement and proof, the ready docs/1000.yaml entry (Wikidata id, declaration, file) and, on FAIL, exactly what to repair; and beside it axioms.log, your own compile's whole output, axioms line included. Mark what you could not check UNVERIFIED."
     },
     "scope": [
      "formalization/reviews/Target01/**"
     ],
     "check": "grep -qE '^VERDICT: (PASS|FAIL)$' formalization/reviews/Target01/REVIEW.md && grep -qE \"'Gomory.exists_domino_tiling' (depends on axioms|does not depend on any axioms)\" formalization/reviews/Target01/axioms.log",
     "needs": [
      "p01-gomory"
     ]
    },
    {
     "key": "r02-monkey",
     "vars": {
      "role": "Write the independent review",
      "name": "Infinite monkey theorem",
      "qid": "Q487132",
      "statement": "A is a finite alphabet and X 0, X 1, ... are independent, identically distributed A-valued random variables on a probability space, every letter having positive probability (not necessarily uniform). Almost surely EVERY finite word over A occurs as a contiguous block X n, ..., X (n+k-1) at arbitrarily large positions n, hence infinitely often. One almost-sure event must serve all words at once. State it on a general probability space with iIndepFun, not only on a product space; unequal letter probabilities, a one-letter alphabet and the empty word are included.",
      "task": "review, without changing it, the proof another worker landed at formalization/MissingTheorems/Target02/RouteA/InfiniteMonkey.lean (main declaration `ProbabilityTheory.infinite_monkey`). On the trunk as you find it, recompile that file with the command below and keep the whole output. Judge clause by clause whether the Lean statement really is the named theorem in the vetted generality: hypotheses satisfiable, the conclusion the theorem's, its definitions meaning what they should. Check again that no Lean formalization exists already: Mathlib master and its docs/1000.yaml, open Mathlib PRs, GitHub code search, Lean Zulip.",
      "deliver": "formalization/reviews/Target02/REVIEW.md with one line exactly VERDICT: PASS or VERDICT: FAIL (PASS only if the file compiles with no error or sorry warning, on the three standard axioms alone, and is faithful), the commit and the file's sha256 reviewed, the fidelity review, the prior-work check with URLs, a plain-English explanation of statement and proof, the ready docs/1000.yaml entry (Wikidata id, declaration, file) and, on FAIL, exactly what to repair; and beside it axioms.log, your own compile's whole output, axioms line included. Mark what you could not check UNVERIFIED."
     },
     "scope": [
      "formalization/reviews/Target02/**"
     ],
     "check": "grep -qE '^VERDICT: (PASS|FAIL)$' formalization/reviews/Target02/REVIEW.md && grep -qE \"'ProbabilityTheory.infinite_monkey' (depends on axioms|does not depend on any axioms)\" formalization/reviews/Target02/axioms.log",
     "needs": [
      "p02-monkey"
     ]
    },
    {
     "key": "r03-pappus-area",
     "vars": {
      "role": "Write the independent review",
      "name": "Pappus's area theorem",
      "qid": "Q3527044",
      "statement": "ABC is any non-collinear triangle in the plane. On AB and on AC erect arbitrary non-degenerate parallelograms outside the triangle (no right angles assumed). Let H be the intersection of the lines through their sides opposite AB and AC. On BC erect the parallelogram whose other pair of sides are translates of the directed segment HA. Then it lies outside the triangle and its area is the sum of the areas of the first two. Area must be genuine area (Lebesgue measure of the parallelogram, or |det| proved equal to it), not just a signed determinant identity; include existence and uniqueness of H.",
      "task": "review, without changing it, the proof another worker landed at formalization/MissingTheorems/Target03/RouteA/PappusArea.lean (main declaration `EuclideanGeometry.pappus_area`). On the trunk as you find it, recompile that file with the command below and keep the whole output. Judge clause by clause whether the Lean statement really is the named theorem in the vetted generality: hypotheses satisfiable, the conclusion the theorem's, its definitions meaning what they should. Check again that no Lean formalization exists already: Mathlib master and its docs/1000.yaml, open Mathlib PRs, GitHub code search, Lean Zulip.",
      "deliver": "formalization/reviews/Target03/REVIEW.md with one line exactly VERDICT: PASS or VERDICT: FAIL (PASS only if the file compiles with no error or sorry warning, on the three standard axioms alone, and is faithful), the commit and the file's sha256 reviewed, the fidelity review, the prior-work check with URLs, a plain-English explanation of statement and proof, the ready docs/1000.yaml entry (Wikidata id, declaration, file) and, on FAIL, exactly what to repair; and beside it axioms.log, your own compile's whole output, axioms line included. Mark what you could not check UNVERIFIED."
     },
     "scope": [
      "formalization/reviews/Target03/**"
     ],
     "check": "grep -qE '^VERDICT: (PASS|FAIL)$' formalization/reviews/Target03/REVIEW.md && grep -qE \"'EuclideanGeometry.pappus_area' (depends on axioms|does not depend on any axioms)\" formalization/reviews/Target03/axioms.log",
     "needs": [
      "p03-pappus-area"
     ]
    },
    {
     "key": "r04-lambek-moser",
     "vars": {
      "role": "Write the independent review",
      "name": "Lambek-Moser theorem",
      "qid": "Q6481192",
      "statement": "Zero-based form: for monotone f g : Nat -> Nat, (for all i j, f i <= j iff i < g j) holds if and only if the ranges of i |-> i + f i and j |-> j + g j are disjoint and together cover Nat. Companion, also required: every partition of Nat into two infinite sets arises in this way from exactly one pair of monotone f and g (subtract the index from the two increasing enumerations). The classical one-based form is f(m) < n iff not (g(n) < m) on positive integers; say in the docstring how yours corresponds to it. Both directions of the iff are required.",
      "task": "review, without changing it, the proof another worker landed at formalization/MissingTheorems/Target04/RouteA/LambekMoser.lean (main declaration `LambekMoser.inverse_iff_partition`). On the trunk as you find it, recompile that file with the command below and keep the whole output. Judge clause by clause whether the Lean statement really is the named theorem in the vetted generality: hypotheses satisfiable, the conclusion the theorem's, its definitions meaning what they should. Check again that no Lean formalization exists already: Mathlib master and its docs/1000.yaml, open Mathlib PRs, GitHub code search, Lean Zulip.",
      "deliver": "formalization/reviews/Target04/REVIEW.md with one line exactly VERDICT: PASS or VERDICT: FAIL (PASS only if the file compiles with no error or sorry warning, on the three standard axioms alone, and is faithful), the commit and the file's sha256 reviewed, the fidelity review, the prior-work check with URLs, a plain-English explanation of statement and proof, the ready docs/1000.yaml entry (Wikidata id, declaration, file) and, on FAIL, exactly what to repair; and beside it axioms.log, your own compile's whole output, axioms line included. Mark what you could not check UNVERIFIED."
     },
     "scope": [
      "formalization/reviews/Target04/**"
     ],
     "check": "grep -qE '^VERDICT: (PASS|FAIL)$' formalization/reviews/Target04/REVIEW.md && grep -qE \"'LambekMoser.inverse_iff_partition' (depends on axioms|does not depend on any axioms)\" formalization/reviews/Target04/axioms.log",
     "needs": [
      "p04-lambek-moser"
     ]
    },
    {
     "key": "r05-pompeiu",
     "vars": {
      "role": "Write the independent review",
      "name": "Pompeiu's theorem (equilateral triangle)",
      "qid": "Q3534036",
      "statement": "ABC is an equilateral triangle of positive side in the Euclidean plane and P is ANY point of the plane. Then PA, PB, PC satisfy the three weak triangle inequalities (they are the sides of a triangle), and all three are strict if and only if P is not on the circumcircle of ABC; on the circumcircle the largest distance equals the sum of the other two (vertices included). State it for all P, in EuclideanSpace Real (Fin 2), Complex or a two-dimensional Euclidean affine space. The inequalities without the iff are only partial.",
      "task": "review, without changing it, the proof another worker landed at formalization/MissingTheorems/Target05/RouteA/Pompeiu.lean (main declaration `EuclideanGeometry.pompeiu`). On the trunk as you find it, recompile that file with the command below and keep the whole output. Judge clause by clause whether the Lean statement really is the named theorem in the vetted generality: hypotheses satisfiable, the conclusion the theorem's, its definitions meaning what they should. Check again that no Lean formalization exists already: Mathlib master and its docs/1000.yaml, open Mathlib PRs, GitHub code search, Lean Zulip.",
      "deliver": "formalization/reviews/Target05/REVIEW.md with one line exactly VERDICT: PASS or VERDICT: FAIL (PASS only if the file compiles with no error or sorry warning, on the three standard axioms alone, and is faithful), the commit and the file's sha256 reviewed, the fidelity review, the prior-work check with URLs, a plain-English explanation of statement and proof, the ready docs/1000.yaml entry (Wikidata id, declaration, file) and, on FAIL, exactly what to repair; and beside it axioms.log, your own compile's whole output, axioms line included. Mark what you could not check UNVERIFIED."
     },
     "scope": [
      "formalization/reviews/Target05/**"
     ],
     "check": "grep -qE '^VERDICT: (PASS|FAIL)$' formalization/reviews/Target05/REVIEW.md && grep -qE \"'EuclideanGeometry.pompeiu' (depends on axioms|does not depend on any axioms)\" formalization/reviews/Target05/axioms.log",
     "needs": [
      "p05-pompeiu"
     ]
    },
    {
     "key": "r06-casorati",
     "vars": {
      "role": "Write the independent review",
      "name": "Casorati-Weierstrass theorem",
      "qid": "Q2226962",
      "statement": "c is a complex number, R > 0, and f is holomorphic on the punctured disc 0 < |z - c| < R with an essential singularity at c: neither removable nor a pole, in Mathlib terms not MeromorphicAt f c (the value f c is irrelevant). Then for EVERY 0 < r <= R the image of the punctured disc 0 < |z - c| < r is dense in the complex plane: from DifferentiableOn Complex f (ball c R minus {c}), not MeromorphicAt f c, 0 < r and r <= R conclude Dense (f '' (ball c r minus {c})). Justify, by a lemma or in the docstring, that not MeromorphicAt means neither removable nor a pole. Density is claimed, not surjectivity.",
      "task": "review, without changing it, the proof another worker landed at formalization/MissingTheorems/Target06/RouteA/CasoratiWeierstrass.lean (main declaration `Complex.casorati_weierstrass`). On the trunk as you find it, recompile that file with the command below and keep the whole output. Judge clause by clause whether the Lean statement really is the named theorem in the vetted generality: hypotheses satisfiable, the conclusion the theorem's, its definitions meaning what they should. Check again that no Lean formalization exists already: Mathlib master and its docs/1000.yaml, open Mathlib PRs, GitHub code search, Lean Zulip.",
      "deliver": "formalization/reviews/Target06/REVIEW.md with one line exactly VERDICT: PASS or VERDICT: FAIL (PASS only if the file compiles with no error or sorry warning, on the three standard axioms alone, and is faithful), the commit and the file's sha256 reviewed, the fidelity review, the prior-work check with URLs, a plain-English explanation of statement and proof, the ready docs/1000.yaml entry (Wikidata id, declaration, file) and, on FAIL, exactly what to repair; and beside it axioms.log, your own compile's whole output, axioms line included. Mark what you could not check UNVERIFIED."
     },
     "scope": [
      "formalization/reviews/Target06/**"
     ],
     "check": "grep -qE '^VERDICT: (PASS|FAIL)$' formalization/reviews/Target06/REVIEW.md && grep -qE \"'Complex.casorati_weierstrass' (depends on axioms|does not depend on any axioms)\" formalization/reviews/Target06/axioms.log",
     "needs": [
      "p06-casorati"
     ]
    },
    {
     "key": "r07-midy",
     "vars": {
      "role": "Write the independent review",
      "name": "Midy's theorem",
      "qid": "Q856158",
      "statement": "Base b >= 2, p a prime not dividing b, 0 < a < p. If the base-b expansion of a/p has minimal period 2k (equivalently b has multiplicative order 2k modulo p), then its two half-period blocks of k digits, leading zeros kept, add up to b^k - 1, and each digit of the first half plus the corresponding digit of the second half is b - 1. Decimal example: 1/7 = 0.142857..., 142 + 857 = 999. Required: arbitrary numerator a and arbitrary base b; exact statements about digits, not only a congruence; and a lemma tying the order of b modulo p to the period of the actual digit expansion, whose period block is a(b^(2k) - 1)/p.",
      "task": "review, without changing it, the proof another worker landed at formalization/MissingTheorems/Target07/RouteA/Midy.lean (main declaration `Nat.midy`). On the trunk as you find it, recompile that file with the command below and keep the whole output. Judge clause by clause whether the Lean statement really is the named theorem in the vetted generality: hypotheses satisfiable, the conclusion the theorem's, its definitions meaning what they should. Check again that no Lean formalization exists already: Mathlib master and its docs/1000.yaml, open Mathlib PRs, GitHub code search, Lean Zulip.",
      "deliver": "formalization/reviews/Target07/REVIEW.md with one line exactly VERDICT: PASS or VERDICT: FAIL (PASS only if the file compiles with no error or sorry warning, on the three standard axioms alone, and is faithful), the commit and the file's sha256 reviewed, the fidelity review, the prior-work check with URLs, a plain-English explanation of statement and proof, the ready docs/1000.yaml entry (Wikidata id, declaration, file) and, on FAIL, exactly what to repair; and beside it axioms.log, your own compile's whole output, axioms line included. Mark what you could not check UNVERIFIED."
     },
     "scope": [
      "formalization/reviews/Target07/**"
     ],
     "check": "grep -qE '^VERDICT: (PASS|FAIL)$' formalization/reviews/Target07/REVIEW.md && grep -qE \"'Nat.midy' (depends on axioms|does not depend on any axioms)\" formalization/reviews/Target07/axioms.log",
     "needs": [
      "p07-midy"
     ]
    },
    {
     "key": "r08-le-cam",
     "vars": {
      "role": "Write the independent review",
      "name": "Le Cam's theorem (Poisson approximation)",
      "qid": "Q3154003",
      "statement": "X_1, ..., X_n are independent Bernoulli random variables with arbitrary success probabilities p_i in [0,1], S is their sum and lam = p_1 + ... + p_n. Then the sum over k >= 0 of |P(S = k) - exp(-lam) lam^k / k!| is at most 2 (p_1^2 + ... + p_n^2); the bound is not strict, and n = 0 and p_i equal to 0 or 1 are allowed. State it for Nat-valued X_i on a general probability space with iIndepFun (or an equivalent statement about laws), against ProbabilityTheory.poissonMeasure, with summability proved. Le Cam's contiguity lemmas and minimax bounds are different results.",
      "task": "review, without changing it, the proof another worker landed at formalization/MissingTheorems/Target08/RouteA/LeCam.lean (main declaration `ProbabilityTheory.le_cam`). On the trunk as you find it, recompile that file with the command below and keep the whole output. Judge clause by clause whether the Lean statement really is the named theorem in the vetted generality: hypotheses satisfiable, the conclusion the theorem's, its definitions meaning what they should. Check again that no Lean formalization exists already: Mathlib master and its docs/1000.yaml, open Mathlib PRs, GitHub code search, Lean Zulip.",
      "deliver": "formalization/reviews/Target08/REVIEW.md with one line exactly VERDICT: PASS or VERDICT: FAIL (PASS only if the file compiles with no error or sorry warning, on the three standard axioms alone, and is faithful), the commit and the file's sha256 reviewed, the fidelity review, the prior-work check with URLs, a plain-English explanation of statement and proof, the ready docs/1000.yaml entry (Wikidata id, declaration, file) and, on FAIL, exactly what to repair; and beside it axioms.log, your own compile's whole output, axioms line included. Mark what you could not check UNVERIFIED."
     },
     "scope": [
      "formalization/reviews/Target08/**"
     ],
     "check": "grep -qE '^VERDICT: (PASS|FAIL)$' formalization/reviews/Target08/REVIEW.md && grep -qE \"'ProbabilityTheory.le_cam' (depends on axioms|does not depend on any axioms)\" formalization/reviews/Target08/axioms.log",
     "needs": [
      "p08-le-cam"
     ]
    }
   ],
   "requires": {
    "platform": [
     "linux-x64"
    ],
    "minMemoryGb": 8
   },
   "fetch": [
    {
     "name": "lean",
     "url": "https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/lean-4.36.0-linux.tar.zst",
     "sha256": "2b7ab1ed8b92d2e6abfaf41344823b510064dbc9c0260cac73eb496ab2dea6eb",
     "bytes": 607649028,
     "unpack": "tar.zst"
    },
    {
     "name": "lean-packages",
     "url": "https://github.com/Identity-md/lean-bundles/releases/download/pequalnp-e125f04d0dc6/pequalnp-e125f04d0dc6-packages-lean-4.36.0-linux-x64.tar.zst",
     "sha256": "69b68c745d0bd8dba3ab21966f8cdb14f9373bd4f1df1d17680f4b80dad98a88",
     "bytes": 1833750742,
     "unpack": "tar.zst"
    }
   ]
  },
  {
   "name": "route-b-proofs-v4",
   "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 against its sha256 in fetch.json there, and unpack with tar --zstd -xf into D/lean and D/pk: Lean 4.36.0 and Mathlib fc4f59e prebuilt, Mathlib's sources in D/pk/mathlib/Mathlib. Never run lake or build Mathlib. Compile in one line: 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 . Every command under 10 minutes.\nWrite one self-contained file importing only Mathlib modules, Mathlib naming and style, main declaration `{{decl}}` with a docstring quoting the informal statement and the Wikidata id, last line `#print axioms {{decl}}`. No sorry, admit, native_decide or new axioms (only propext, Classical.choice, Quot.sound). A weaker, vacuous or trivial variant is not the theorem. Work from Mathlib, not from another worker's proof. Post nothing publicly.\nYour result must contain, as one JSON object: status (proved only if the whole file compiles with no error or sorry warning and states the vetted theorem; else partial or failed), decl, lean_source (the complete file verbatim; if partial, only lemmas that compile), build_output (the compiler's whole output), explanation (statement and proof in plain English), fidelity (clause by clause), prior_work (your searches of Mathlib master and open PRs, GitHub and Lean Zulip, with URLs and findings), database_entry (Wikidata id, declaration, file name), stuck (where it stopped) and sources (URLs).",
   "items": [
    {
     "key": "t06-casorati",
     "vars": {
      "name": "Casorati-Weierstrass theorem",
      "qid": "Q2226962",
      "statement": "c is a complex number, R > 0, and f is holomorphic on the punctured disc 0 < |z - c| < R with an essential singularity at c: neither removable nor a pole, in Mathlib terms not MeromorphicAt f c (the value f c is irrelevant). Then for EVERY 0 < r <= R the image of the punctured disc 0 < |z - c| < r is dense in the complex plane: from DifferentiableOn Complex f (ball c R minus {c}), not MeromorphicAt f c, 0 < r and r <= R conclude Dense (f '' (ball c r minus {c})). Justify, by a lemma or in the docstring, that not MeromorphicAt means neither removable nor a pole. Density is claimed, not surjectivity.",
      "route": "Without the removable-singularity theorem: if a disc about w is missed, H(z) = (z-c)^2 / (f(z) - w) with H(c) = 0 is complex differentiable on the whole disc (derivative 0 at c by a direct estimate), hence analytic at c; then f = w + (z-c)^2 / H(z) near c is meromorphic at c, a contradiction.",
      "decl": "Complex.casorati_weierstrass"
     }
    },
    {
     "key": "t05-pompeiu",
     "vars": {
      "name": "Pompeiu's theorem (equilateral triangle)",
      "qid": "Q3534036",
      "statement": "ABC is an equilateral triangle of positive side in the Euclidean plane and P is ANY point of the plane. Then PA, PB, PC satisfy the three weak triangle inequalities (they are the sides of a triangle), and all three are strict if and only if P is not on the circumcircle of ABC; on the circumcircle the largest distance equals the sum of the other two (vertices included). State it for all P, in EuclideanSpace Real (Fin 2), Complex or a two-dimensional Euclidean affine space. The inequalities without the iff are only partial.",
      "route": "Heron polynomial: with squared distances a, b, c the quantity 2(ab+bc+ca) - (a^2+b^2+c^2) is a positive constant times (|P-O|^2 - R^2)^2, O the circumcentre and R the circumradius; nonnegativity gives the weak inequalities and its vanishing exactly on the circumcircle gives the iff. Prove the identity in coordinates.",
      "decl": "EuclideanGeometry.pompeiu"
     }
    },
    {
     "key": "t07-midy",
     "vars": {
      "name": "Midy's theorem",
      "qid": "Q856158",
      "statement": "Base b >= 2, p a prime not dividing b, 0 < a < p. If the base-b expansion of a/p has minimal period 2k (equivalently b has multiplicative order 2k modulo p), then its two half-period blocks of k digits, leading zeros kept, add up to b^k - 1, and each digit of the first half plus the corresponding digit of the second half is b - 1. Decimal example: 1/7 = 0.142857..., 142 + 857 = 999. Required: arbitrary numerator a and arbitrary base b; exact statements about digits, not only a congruence; and a lemma tying the order of b modulo p to the period of the actual digit expansion, whose period block is a(b^(2k) - 1)/p.",
      "route": "Long division: the remainder after k steps is p - a; if a b^k = p U + r then (p-a) b^k = p (b^k - U - 1) + (p - r), so the two blocks are U and b^k - 1 - U; get the digit complement by running the remainder step for a and for p - a side by side.",
      "decl": "Nat.midy"
     }
    },
    {
     "key": "t02-monkey",
     "vars": {
      "name": "Infinite monkey theorem",
      "qid": "Q487132",
      "statement": "A is a finite alphabet and X 0, X 1, ... are independent, identically distributed A-valued random variables on a probability space, every letter having positive probability (not necessarily uniform). Almost surely EVERY finite word over A occurs as a contiguous block X n, ..., X (n+k-1) at arbitrarily large positions n, hence infinitely often. One almost-sure event must serve all words at once. State it on a general probability space with iIndepFun, not only on a product space; unequal letter probabilities, a one-letter alphabet and the empty word are included.",
      "route": "No Borel-Cantelli: show that the first m disjoint blocks after position N all miss the word with probability (1-q)^m for one q > 0, which tends to 0, so each tail avoids the word only on a null set; then take the countable union over tails and words.",
      "decl": "ProbabilityTheory.infinite_monkey"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "requires": {
    "platform": [
     "linux-x64"
    ],
    "minMemoryGb": 8
   },
   "minutes": 110
  },
  {
   "name": "route-b-verify-v4",
   "brief": "Independently verify ONE Lean 4 formalization another worker wrote: {{name}}, Wikidata {{qid}}. Their result (item {{after.key}}) is among your inputs and at {{after.result}} ; if it is missing or has no lean_source, say 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 against its sha256 in fetch.json there, and unpack with tar --zstd -xf into D/lean and D/pk: Lean 4.36.0 and Mathlib fc4f59e prebuilt, Mathlib's sources in D/pk/mathlib/Mathlib. Never run lake or build Mathlib. Compile in one line: 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 . Every command under 10 minutes.\nSave their lean_source unchanged to a new file and compile it from clean; its last line prints the axioms of `{{decl}}`. Judge clause by clause whether the Lean statement really is the named theorem in the vetted generality: hypotheses satisfiable, the conclusion the theorem's, its definitions meaning what they should, nothing weaker, vacuous or trivial. Check again that no Lean formalization exists already: Mathlib master and its docs/1000.yaml, open Mathlib PRs, GitHub code search, Lean Zulip. Post nothing publicly.\nYour result must contain, as one JSON object: verdict (pass only if it compiles with no error or sorry warning, on no axiom beyond propext, Classical.choice and Quot.sound, without native_decide, and is faithful; else fail, or partial for compiled lemmas short of the theorem), decl, lean_source (exactly as compiled), source_sha256, build_output (the compiler's whole output), fidelity_review, prior_work (each search with URL and finding), explanation (plain English), database_entry (Wikidata id, declaration, file name), repairs (what to fix, if anything) and sources. Mark what you could not check UNVERIFIED.",
   "items": [
    {
     "key": "t06-casorati",
     "vars": {
      "name": "Casorati-Weierstrass theorem",
      "qid": "Q2226962",
      "statement": "c is a complex number, R > 0, and f is holomorphic on the punctured disc 0 < |z - c| < R with an essential singularity at c: neither removable nor a pole, in Mathlib terms not MeromorphicAt f c (the value f c is irrelevant). Then for EVERY 0 < r <= R the image of the punctured disc 0 < |z - c| < r is dense in the complex plane: from DifferentiableOn Complex f (ball c R minus {c}), not MeromorphicAt f c, 0 < r and r <= R conclude Dense (f '' (ball c r minus {c})). Justify, by a lemma or in the docstring, that not MeromorphicAt means neither removable nor a pole. Density is claimed, not surjectivity.",
      "decl": "Complex.casorati_weierstrass"
     }
    },
    {
     "key": "t05-pompeiu",
     "vars": {
      "name": "Pompeiu's theorem (equilateral triangle)",
      "qid": "Q3534036",
      "statement": "ABC is an equilateral triangle of positive side in the Euclidean plane and P is ANY point of the plane. Then PA, PB, PC satisfy the three weak triangle inequalities (they are the sides of a triangle), and all three are strict if and only if P is not on the circumcircle of ABC; on the circumcircle the largest distance equals the sum of the other two (vertices included). State it for all P, in EuclideanSpace Real (Fin 2), Complex or a two-dimensional Euclidean affine space. The inequalities without the iff are only partial.",
      "decl": "EuclideanGeometry.pompeiu"
     }
    },
    {
     "key": "t07-midy",
     "vars": {
      "name": "Midy's theorem",
      "qid": "Q856158",
      "statement": "Base b >= 2, p a prime not dividing b, 0 < a < p. If the base-b expansion of a/p has minimal period 2k (equivalently b has multiplicative order 2k modulo p), then its two half-period blocks of k digits, leading zeros kept, add up to b^k - 1, and each digit of the first half plus the corresponding digit of the second half is b - 1. Decimal example: 1/7 = 0.142857..., 142 + 857 = 999. Required: arbitrary numerator a and arbitrary base b; exact statements about digits, not only a congruence; and a lemma tying the order of b modulo p to the period of the actual digit expansion, whose period block is a(b^(2k) - 1)/p.",
      "decl": "Nat.midy"
     }
    },
    {
     "key": "t02-monkey",
     "vars": {
      "name": "Infinite monkey theorem",
      "qid": "Q487132",
      "statement": "A is a finite alphabet and X 0, X 1, ... are independent, identically distributed A-valued random variables on a probability space, every letter having positive probability (not necessarily uniform). Almost surely EVERY finite word over A occurs as a contiguous block X n, ..., X (n+k-1) at arbitrarily large positions n, hence infinitely often. One almost-sure event must serve all words at once. State it on a general probability space with iIndepFun, not only on a product space; unequal letter probabilities, a one-letter alphabet and the empty word are included.",
      "decl": "ProbabilityTheory.infinite_monkey"
     }
    }
   ],
   "output": {
    "format": "json",
    "maxBytes": 64000
   },
   "requires": {
    "platform": [
     "linux-x64"
    ],
    "minMemoryGb": 8
   },
   "minutes": 75,
   "after": {
    "batch": "route-b-proofs-v4",
    "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",
  "candidate-selection-v1/shortlist",
  "route-b-verify-v4/t06-casorati",
  "route-b-verify-v4/t05-pompeiu",
  "route-b-verify-v4/t07-midy",
  "route-b-verify-v4/t02-monkey",
  "route-b-proofs-v4/t06-casorati",
  "route-b-proofs-v4/t05-pompeiu",
  "route-b-proofs-v4/t07-midy",
  "route-b-proofs-v4/t02-monkey"
 ],
 "cancel": [],
 "wake": {
  "batches": [
   "formalize-targets-v4",
   "route-b-verify-v4"
  ],
  "afterMinutes": 900
 },
 "finish": false
}
