#!/usr/bin/env python3 """Job #2551 (explore): decisive evidence for the prior-art hunt on return #153. Two independent jobs, both exact: (1) The identity that makes the *refuted* pair-trigger majorant of research/global-factor-signs.md section 3 a corollary of the classical Bonferroni non-vacuity, not a discovery: sum_{j -84; m=6 cell k=19,m=6 -> -8568. (2) The channel record: every query run for this hunt, verbatim, with the calibration that makes a zero readable. Written to artifacts/pa153-channels.json. Read-only: no served file is modified. Exit 0 on all checks. """ from math import comb import hashlib import json import os RUN = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) A = os.path.join(RUN, "artifacts") W = os.path.join(RUN, "work") # ---------------------------------------------------------------- (1) identity def check_identity(kmax=60): rows = 0 for k in range(1, kmax + 1): for m in range(1, k + 1): lhs = sum((-1) ** j * comb(k, j) for j in range(m)) rhs = (-1) ** (m - 1) * comb(k - 1, m - 1) assert lhs == rhs, (k, m, lhs, rhs) rows += 1 return rows # The two cells the return's own validator printed. Reproduced from the same # numbers, so a reviewer can diff against work/r153.json/subset_check.out. CELLS = { "ten-prime cell (the note's, section 3)": { "k": 10, "m": 4, "F": -84, "closed_form": -84, "order2_triggers": 0, "served_source": "work/r153.json/subset_check.out", }, "m=6 cell (the validator's own new instance)": { "k": 19, "m": 6, "F": -8568, "closed_form": -8568, "order2_triggers": 0, "served_source": "work/r153.json/subset_check.out", }, } def check_cells(): out = {} for name, c in CELLS.items(): lhs = sum((-1) ** j * comb(c["k"], j) for j in range(c["m"])) assert lhs == c["F"] == c["closed_form"], (name, lhs, c) assert c["order2_triggers"] == 0 out[name] = {"k": c["k"], "m": c["m"], "sum_{jW}(n)-H_W(n)F(s)-E_W(n), the negative-sign rule on " "regular composites, and the refutation of a pair-trigger majorant for " "F(s)^- = max(-F(s),0)"), "owning_convention_named": [ "Bonferroni-type inequalities / sharpened sieve inequalities " "(combinatorics + probability: MSC 05C65, 60C05, 05A19, 60E15) -- NOT a " "number-theory category", "iterated finite differences of a sieve weight " "(sieve weights and their smoothings)", "switching / role reversal (weighted sieves with switching)", ], "channels": { "arxiv_api": { "endpoint": "https://export.arxiv.org/api/query", "note": "https only this session; http 301s (matches the corpus's 2026-08-19 note)", "queries": [ {"q": 'abs:"Jacobsthal"', "total": 111, "calibration": True, "header": "Hyperbolic Jacobsthal spinor sequences; Jacobsthal NUMBER papers", "readable": "channel answers; Jacobsthal function absent from these titles"}, {"q": 'all:"sifting limit"', "total": 1, "header": "Sifting limits for the Lambda^2 Lambda^- sieve (1012.3809, Blight 2010)", "readable": "calibration passes: the singular owning term returns exactly 1"}, {"q": 'ti:"sieve weights"', "total": 2, "header": "1606.06781v4 Granville-Koukoulopoulos-Maynard, Sieve weights and their smoothings; " "2101.04418v2 Walker, Correlations of sieve weights and distributions of zeros", "readable": "the owning phrase is a CLOSED two-paper set on arXiv titles"}, {"q": 'ti:"Bonferroni" AND cat:math.NT', "total": 0, "readable": "no math.NT paper carries Bonferroni in its title"}, {"q": 'abs:"Bonferroni" AND abs:"hypergraph"', "total": 0, "readable": "Grable 1994 is not on arXiv (Discrete Math. 1994)"}, {"q": 'abs:"sieve" AND abs:"alternating inequalities"', "total": 0}, {"q": 'abs:"sieve" AND abs:"sign of the weight"', "total": 0}, {"q": 'abs:"negative part" AND cat:math.NT', "total": 4, "header": "base phi expansions; Euler's theorem; zeta zeros/prolate; class groups of " "prime-power cyclotomic fields", "readable": "none of the four is a sieve weight"}, {"q": 'ti:"switching" AND cat:math.NT', "total": 7, "header": "2405.19063v3 Matomaki-Zuniga Alterman, Weighted sieves with switching " "(first hit) + 6 unrelated", "readable": "the switching convention is located"}, {"q": 'all:"prime producing sieves"', "total": 2, "header": "2407.14368v1 Ford-Maynard, On the theory of prime producing sieves; " "2504.13195v3 on alpha p - beta mod 1", "readable": "the corpus's already-matched import is located independently"}, {"q": 'all:"sieve weights" AND all:"parity problem"', "total": 0, "conjunctive": True}, {"q": 'abs:"truncated divisor sums" AND abs:"sign"', "total": 0, "conjunctive": True}, {"q": 'abs:"truncated Mobius"', "total": 0}, {"q": 'abs:"divisor sums" AND abs:"sieve weight"', "total": 1, "header": "1606.06781v4 (GKM)", "readable": "unique hit"}, {"q": 'ti:"Brun" AND cat:math.NT', "total": 16, "header": "arithmetic-reading", "readable": "Brun-Titchmarsh / Brun's constant papers only; no Bonferroni-depth paper"}, ], }, "zbmath_api": { "endpoint": "https://api.zbmath.org/v1/document/_search", "note": "works via curl; Python urllib fails here with a self-signed-cert chain " "(intercepting proxy) -- channel note, not a source being down", "queries": [ {"q": 'ti:"sieve weights"', "total": 3, "header": "GKM (Ann. Sci. ENS 54 (2021) 1089-1177, Zbl 1500.11071); Vakhitova 2012; " "Walker (Correlations of sieve weights and distributions of zeros)", "readable": "closed three-record set"}, {"q": '"sieve" & "alternating inequalities"', "total": 1, "header": "Grable, Hypergraphs and sharpened sieve inequalities, Discrete Math. 1994, " "75-82, Zbl 0809.05074, MSC 05C65/60C05", "readable": "UNIQUE hit: the phrase+sieve conjunction points to exactly one record"}, {"q": 'ti:"Bonferroni-type"', "total": 56, "header": "dominated by Galambos & Simonelli, Bonferroni-type inequalities with " "applications, Springer 1996, Zbl (60E15/60-02)", "readable": "owning convention is probability"}, {"q": 'Bonferroni & cc:11', "total": 5, "header": "Galambos-Simonelli 2004; Tao 2024 (Zbl 1557.11114, MSC 11N05/40A05, rev. " "Teravainen); Simsek-So 2019; Wegner 2005; Paseman 2013", "readable": "MATCHES the corpus's own independent count ('Bonferroni sieve returns 10 " "records, exactly one MSC 11') -- reproduced"}, {"q": 'Bonferroni & sieve', "total": 10, "header": "incl. Grable 1994 (Hypergraphs and sharpened sieve inequalities)", "readable": "the sharpened-sieve-inequality paper is INSIDE this set"}, {"q": 'ti:"inclusion-exclusion" & cc:11', "total": 15, "header": "Bachman ternary inclusion-exclusion polynomials; Bordelles-Toth additive " "functions; Akiyama 1993", "readable": "number-theory inclusion-exclusion = cyclotomic/polynomial objects, not " "sieve sign"}, {"q": '"negative part" & ti:"sieve"', "total": 0}, {"q": '"parity problem" & cc:11', "total": 25, "header": "Heath-Brown 1982 A parity problem from sieve theory; Murty-Vatwani 2017; " "Goldston-Graham 2011; Helfgott 2006", "readable": "the parity problem is located and is a different object"}, {"q": 'ti:"truncated Mobius"', "total": 1, "header": "Shokri-Moura-Stevens, truncated Mobius PLANES (design theory)", "readable": "false friend"}, ], }, "serper_google": { "queries": [ {"q": "truncated Mobius divisor sum sign negative higher-order inclusion-exclusion " "Bonferroni sieve weight", "top": "terrytao.wordpress.com open question: the parity problem in sieve theory", "readable": "lands in the owning convention's own frame, not on the object"}, {"q": "Matomaki Zuniga Alterman switching principle role reversal negative mass sieve " "weights pairs of primes threshold", "top": "2405.19063v3 Weighted sieves with switching", "readable": "convention located and confirmed"}, {"q": '"finite difference" sieve weight truncated Mobius sign "negative part" number of ' "prime factors cutoff binomial coefficient", "top": "unrelated (arXiv new-listing pages)", "readable": "VOID as a negative: long conjunctive query, exactly the failure mode " "SEARCH-CONVENTIONS section 2 names. Recorded, not counted."}, ], }, }, "inaccessible": [ "MathSciNet mrlookup: POST https://mathscinet.ams.org/mrlookup with ti=... & format=bibtex " "returned the HTML lookup FORM this session, not records -- the corpus recorded it working on " "2026-08-19 (free, prints the total match count, BibTeX). OWED, not a negative.", "Galambos & Simonelli, Bonferroni-type inequalities with applications, Springer 1996 " "(zbMATH 60-02): NOT OPENED. The corpus already names it the owning convention for degree-k " "Bonferroni (attack-bonferroni-degree.md section 8.3) and records its prime-number-applications " "chapter as unopened. Still unopened after this job: it is a book, not a page.", "Grable 1994 full text: read only through the zbMATH reviewer's abstract (I. Tomescu). The " "paper is pre-arXiv (Discrete Math. 1994); no open copy located in this session.", ], "exact_identity": { "statement": "sum_{j= m) the complete subset sum of global-factor-signs.md (2) IS that partial " "alternating binomial sum, so F(s) = (-1)^(m-1) C(k-1,m-1): the classical Bonferroni " "truncation error, exact rather than bounded"), }, "no_absence_claim": ( "the zeros above are calibrated negatives inside named conventions, not an absence proof; per " "SEARCH-CONVENTIONS section 6 a document asserting absence must name the convention, and this " "record names three"), } def main(): rows = check_identity(60) cells = check_cells() CHANNELS["identity_rows_checked"] = rows CHANNELS["cells_reproduced"] = cells os.makedirs(A, exist_ok=True) p = os.path.join(A, "pa153-channels.json") with open(p, "w", encoding="utf-8") as fh: json.dump(CHANNELS, fh, indent=1, sort_keys=True) h = hashlib.sha256(open(p, "rb").read()).hexdigest() print("identity: %d rows exact, 0 mismatches (k<=60)" % rows) for n, c in cells.items(): print("cell: %-42s k=%2d m=%d F=%d closed form=%d order-2 triggers=%d" % (n, c["k"], c["m"], c["sum_{j