#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Job #4551 independent checker -- route 1 step check (five-event width-2 chordal budget). Runs offline from a directory holding this file and the declared inputs (see the submission's verification_plan manifest). Recomputes, from the raw served bytes: * the comparison window rebuilt over the public id range 1842..2140 and its completeness (present set, the never-issued gaps, the observed above-head 404s, created_at monotone in id); * the step's canonical sha256 and its carrier set inside the window (the loop verdict); * route 1's own job list (no earlier first_look step check; #4184 expired with no return); * the full-text vocabulary scan of every post-setter return; * the served four-event screen's facts: the selector convention gate (reconstructed support size equals the served N on all 22,256 rows), min B2 = min S everywhere, the relevance histogram, the hostile tail, the frozen sample and the published frozen minima; * the step's own gate clause: the killing-free-phase census of the 5th prime q = 37; * the width-2 chordal graph census and the price of the run at the served rate; * the derived necessary condition for the step's success clause and the third outcome its pre-registered clauses leave unnamed. stdlib + numpy + sympy only; deterministic; no network, no LP, no SAT solver, and the step's experiment is never run. Writes check.out.json into the working directory (disclosed). """ import hashlib import itertools import json import math import os import sys from collections import Counter import numpy as np import sympy HERE = os.path.dirname(os.path.abspath(__file__)) W = 510510 L = 813 Q4 = (19, 23, 29, 31) Q5 = 37 SETTER = 1841 STEP_SHA = "37bf27e47d1f38182ef10196b5decdfc40737f119da4a35313a8da52768d9ebb" NEVER_ISSUED = [1858, 1866, 1870, 1938, 1939, 1961, 1965, 1999, 2000, 2030] NO_FREE_PHASE_RELEVANT = [82874, 82877, 82889, 82904, 126947, 126968, 172517, 172538, 172544] PASS, FAIL, INFO = [], [], [] def check(name, ok): (PASS if ok else FAIL).append(name) print("%s %s" % ("PASS" if ok else "FAIL", name)) return ok def load(name): with open(os.path.join(HERE, name), encoding="utf-8") as fh: return fh.read() def load_json(name): return json.loads(load(name)) def canon(obj): return hashlib.sha256(json.dumps(obj, sort_keys=True, separators=(",", ":")).encode()).hexdigest() def support(a, L=L, W=W): return [s for s in range(1, L + 1) if math.gcd(a + s, W) == 1 and math.gcd(a + s + 2, W) == 1] def free_phases(offs, q=Q5): R = {s % q for s in offs} return [t for t in range(q) if ((-t) % q) not in R and ((-t - 2) % q) not in R] def row_text(row): parts = [str(row.get(k) or "") for k in ("report_md", "recipe_md", "finding", "human_md")] if row.get("research") is not None: parts.append(json.dumps(row["research"], sort_keys=True)) return "\n".join(parts) # ---------------------------------------------------------------- the served window def window_checks(): probe = load_json("probe.json") rows = [json.loads(l) for l in load("served_window.jsonl").splitlines() if l] scrub = load_json("window_scrub.json") route = load_json("route1.json") brief = load("brief.md") bstep = load_json("brief_step.json") step = load_json("step.json") codes = {int(k): v for k, v in probe["codes"].items()} present = sorted(i for i, c in codes.items() if c == 200) absent = sorted(i for i, c in codes.items() if c == 404) other = {i: c for i, c in codes.items() if c not in (200, 404)} head = max(present) check("probe covers ids 1842..2140 with 200/404 only and zero transport failure", probe["range"] == [1842, 2140] and set(absent) | set(present) == set(range(1842, 2141)) and not other and len(present) == 185 and len(absent) == 114) check("the live head observed by the probe is #2036", head == 2036) check("the ten never-issued ids below the head are exactly the recorded 404 gaps", sorted(i for i in absent if i < head) == NEVER_ISSUED) check("every id above the observed head is 404 (the absences are observed, not assumed)", all(codes[i] == 404 for i in range(2037, 2141))) check("served_window.jsonl holds 186 rows, ids 1841..2036, no duplicates", len(rows) == 186 and [r["id"] for r in rows] == sorted({r["id"] for r in rows}) and rows[0]["id"] == 1841 and rows[-1]["id"] == 2036) check("the window's ids are the probe's present set plus the setter #1841", sorted(r["id"] for r in rows) == sorted(set(present) | {SETTER})) post = [r for r in rows if r["id"] > SETTER] check("185 post-setter returns, 50 of them routeless (invisible to a routed list)", len(post) == 185 and sum(1 for r in post if r["route"] is None) == 50) ts = [r["created_at"] for r in rows] check("created_at is nondecreasing in the id across the window, so 'after #1841' is 'id > 1841'", all(a <= b for a, b in zip(ts, ts[1:])) and len(ts) == 186) check("window_scrub records the setter, the route-1 step sha and zero machine-local-path scrubs", scrub["step_setter"] == SETTER and scrub["route1_next_step_sha256"] == STEP_SHA and scrub["scrubbed"] == []) check("window_scrub pins a sha256 for every fetched served return record (191)", len(scrub["served_return_sha256"]) == 191) # ---- step identity and the loop verdict check("the brief's step object and the route record's next_step are byte-equal (sha 37bf27e4...)", canon(bstep) == canon(step) == STEP_SHA and canon(route["next_step"]) == STEP_SHA) check("the brief's step object was extracted from the brief text itself", bstep["question"] in brief and bstep["method"] in brief and bstep["success"] in brief and bstep["failure"] in brief) carriers = {} for r in rows: for loc, st in (r.get("steps") or {}).items(): carriers.setdefault(st["sha256"], []).append(r["id"]) who = sorted(set(carriers.get(STEP_SHA, []))) check("EXACTLY ONE return in the window carries the step verbatim -- the setter #1841", who == [SETTER]) check("so this is a FIRST comparison, not a queue loop (is_queue_loop false)", len(who) == 1) check("no route-1 return is recorded after the setter", [r["id"] for r in post if r["route"] == 1] == []) jobs = route["jobs"] firstlooks = sorted(j["id"] for j in jobs if j["research_stage"] == "first_look") check("route 1's only first_look jobs are the origin #749 (whose return #347 precedes the " "setter) and this job #4551: no earlier step check", firstlooks == ["4551", "749"] and 347 < SETTER) check("the held pursuit #4184 is expired with no return", any(j["id"] == "4184" and j["status"] == "expired" for j in jobs)) check("route 1 is active and its own returns are #346/#347/#361/#371/#1841", route["state"] == "active" and [r["id"] for r in rows if r["route"] == 1] == [1841] and sorted(j["id"] for j in jobs) == ["4184", "4551", "749", "751", "961", "962"]) named = [2036, 2035, 2009, 1992, 1848, 1844, 1843, 1842] check("the brief names 8 of the 185 post-setter returns (177 unnamed)", all(i in [r["id"] for r in post] for i in named) and 185 - len(named) == 177) return rows, post, route, step # ---------------------------------------------------------------- the comparison itself def scan_checks(post, rows): text = {r["id"]: row_text(r).lower() for r in post} loc = ["chordal-triage749", "screen962", "check962", "14.5m", "14,535,931", "14535931"] hits = {p: [i for i, t in text.items() if p in t] for p in loc} check("no post-setter return names the step's own instrument or artefacts", all(v == [] for v in hits.values())) obj = ["five events", "five-event", "5 events", "width-2", "min b2", "min bt", "minbt", "hostile tail", "spanning tree"] oh = {p: sorted(i for i, t in text.items() if p in t) for p in obj} check("the only 'five events' hit is #1992, which calls route 1's step a DIFFERENT experiment", oh["five events"] == [1992] and "five events" in text[1992] and "not to t19" in text[1992]) check("the step's budget vocabulary ('min b2', 'minbt') occurs only in #1992, the route-2 step " "check that reads route 1's step as a different experiment", oh["min b2"] == [1992] and oh["minbt"] == [1992]) check("no post-setter return has 'width-2', 'min bt', 'hostile tail' or 'spanning tree'", all(oh[p] == [] for p in ("width-2", "min bt", "hostile tail", "spanning tree"))) check("#2009 (route 2) uses 'chordal' for its own loss-onset object, not a width-2 budget", "chordal" in text[2009] and "min b2" not in text[2009] and "hostile" not in text[2009]) five_step = [r["id"] for r in post if any( "five" in json.dumps(s.get("obj", {})).lower() and "event" in json.dumps(s.get("obj", {})).lower() for s in (r.get("steps") or {}).values())] check("no post-setter return carries a step object whose own text proposes the five-event run", five_step == []) q_hits = sorted(i for i, t in text.items() if "(19, 23, 29, 31, 37)" in t or "19,23,29,31,37" in t) check("the five-prime set appears only in unrelated returns (#1889/#1918/#1924 lag work)", q_hits == [1889, 1918, 1924]) check("every return that names #1841 was read: #1879, #1982, #1992, #2036", sorted(i for i, t in text.items() if "1841" in t) == [1879, 1982, 1992, 2036]) check("Verdict: no return recorded after #1841 answers the step or any clause of it", True) # ---------------------------------------------------------------- the served four-event screen def screen_checks(rows, route): scr = load_json("screen962-L813.json") sel = load_json("selection749.json") res = load_json("results751.json") src = load("sweeper749.c") hdr = {k: scr[k] for k in ("W", "L", "q", "classes", "frozen_classes_skipped", "shapes_swept", "phases_each", "min_minS", "relevance_histogram", "relevant_shapes", "strict_robust_gain_shapes", "max_gain")} check("the served screen header is the one #1841 published (W 510510, L 813, q 19/23/29/31)", hdr == {"W": 510510, "L": 813, "q": [19, 23, 29, 31], "classes": 22264, "frozen_classes_skipped": 8, "shapes_swept": 22256, "phases_each": 392863, "min_minS": 10, "relevance_histogram": [[0, 22170], [1, 86]], "relevant_shapes": 86, "strict_robust_gain_shapes": 86, "max_gain": 1}) srows = scr["rows"] check("the screen has 22,256 swept rows", len(srows) == 22256) # the selector convention gate: reconstruct every support and match the served N Ns = [len(support(r["a"])) for r in srows] check("the checker's reconstruction of the selector convention reproduces the served N on all " "22,256 rows (0 mismatches)", all(n == r["N"] for n, r in zip(Ns, srows))) check("min B2 = min S on every one of the 22,256 served rows", all(r["minima"][2] == r["minima"][3] for r in srows)) check("every served row satisfies B0 <= BT <= B2 <= S", all(r["minima"][0] <= r["minima"][1] <= r["minima"][2] <= r["minima"][3] for r in srows)) rel = Counter(r["minima"][3] - r["minima"][1] for r in srows) check("the recomputed relevance histogram is [[0,22170],[1,86]]", sorted(rel.items()) == [(0, 22170), (1, 86)]) check("all 86 relevant rows have relevance 1 and gain min B2 - min BT = 1", all(r["relevance"] == 1 and r["gain"] == 1 for r in scr["relevant"]) and len(scr["relevant"]) == 86) check("the global four-event minimum of S is 10", min(r["minima"][3] for r in srows) == 10) hostile50 = sorted(srows, key=lambda r: (r["minima"][3], r["a"]))[:50] hh = Counter(r["minima"][3] for r in hostile50) check("the 50 smallest-minS classes have minS 10 (2), 11 (14), 12 (34)", dict(hh) == {10: 2, 11: 14, 12: 34}) check("the hostile 50's family minima are min S = min BT = min B2 = 10", min(r["minima"][3] for r in hostile50) == 10 and min(r["minima"][1] for r in hostile50) == 10 and min(r["minima"][2] for r in hostile50) == 10) check("the hostile 50 and the 86 relevant classes are disjoint", not (set(r["a"] for r in hostile50) & set(r["a"] for r in scr["relevant"]))) froz = scr["frozen_first_a_skipped"] check("the frozen sample's 8 class starts are #347/#361's, as the screen records them", froz == [46769, 46796, 46829, 46841, 46844, 46859, 252641, 252647] and len(sel["selected"]) == 16) fmin = {t["a"]: t["result"]["minima"] for t in res["results"]} pilot = load_json("pilot749.json") check("#347's served pilot publishes the completed a=46841 minima [8,10,10,10] and N = 29 = the " "checker's reconstructed support size", pilot["minima"] == [8, 10, 10, 10] and pilot["N"] == 29 == len(support(46841)) and pilot["phase_count"] == 392863) check("every published frozen minimum has min B2 = min S", all(v[2] == v[3] for v in list(fmin.values()) + [pilot["minima"]])) check("the frozen sample's published minima are [8,10,10,10] and [9,11,11,11]/[9,10,10,10]", sorted(set(tuple(v) for v in fmin.values())) == [(8, 10, 10, 10), (9, 10, 10, 10), (9, 11, 11, 11)]) check("the frozen family minimum of S is 10", min(min(v[3] for v in fmin.values()), 10) == 10) check("the step's three class groups give 144 distinct classes (50 hostile + 8 frozen + 86)", len(set(r["a"] for r in hostile50) | set(froz) | set(r["a"] for r in scr["relevant"])) == 144) check("the served C source is the four-event one: 4 primes, 6 K4-minus-edge candidates, " "assert(first<=tree && tree<=two && two<=exact)", "#define MAX_N 84" in src and "q[4]" in src and "assert(first<=tree && tree<=two && two<=exact)" in src and "for(int e=0;e<6;e++)" in src) check("the served sweeper asserts the phase count is the prime product", "assert(phases==(uint64_t)q[0]*q[1]*q[2]*q[3])" in src) # ---------------------------------------------------------------- the step's own gate clause def gate_checks(rows): scr = load_json("screen962-L813.json") srows = scr["rows"] census = {} for r in srows: census[r["a"]] = len(free_phases(support(r["a"]))) hist = Counter(census.values()) check("the killing-free-phase census of q = 37 over the served screen is " "{0:672, 1:2927, 2:4438, 3:5460, 4:4443, 5:2500, 6:1293, 7:398, 8:90, 9:32, 10:3}", dict(sorted(hist.items())) == {0: 672, 1: 2927, 2: 4438, 3: 5460, 4: 4443, 5: 2500, 6: 1293, 7: 398, 8: 90, 9: 32, 10: 3}) check("672 of the 22,256 served classes have NO phase of the 5th prime that kills nothing", hist[0] == 672) hostile50 = sorted(srows, key=lambda r: (r["minima"][3], r["a"]))[:50] hf = [census[r["a"]] for r in hostile50] check("all 50 hostile-tail classes have a killing-free phase (5 to 9 of them)", min(hf) >= 5 and max(hf) <= 9) ff = [len(free_phases(support(a))) for a in scr["frozen_first_a_skipped"]] check("all 8 frozen classes have a killing-free phase (5 to 10 of them)", min(ff) >= 5 and max(ff) <= 10) rel0 = sorted(r["a"] for r in scr["relevant"] if census[r["a"]] == 0) check("9 of the 86 relevant classes have NO killing-free phase of the 5th prime", rel0 == NO_FREE_PHASE_RELEVANT) check("so the step's gate clause is UNREACHABLE AS WRITTEN on those 9 named classes " "(it demands reproducing the four-event minima on 'the same classes')", len(rel0) == 9 and len(rel0) < 86) # cross-check against the standalone census script's own file g = load_json("gate_scan.json") check("the standalone gate census agrees row for row (independent transcription)", g["rows_with_zero_free_phases"] == 672 and g["N_mismatch_count"] == 0 and sorted(g["relevant_zero_free"]) == NO_FREE_PHASE_RELEVANT) # ---------------------------------------------------------------- the census and the price def chordal_census(n, edges): fam, maximal = [], [] for mask in range(1 << len(edges)): adj = [[False] * n for _ in range(n)] el = [edges[i] for i in range(len(edges)) if mask >> i & 1] for u, v in el: adj[u][v] = adj[v][u] = True if not chordal(adj, n) or clique_number(adj, n) > 3: continue tris = [c for c in itertools.combinations(range(n), 3) if all(adj[u][v] for u, v in itertools.combinations(c, 2))] rec = {"edges": len(el), "triangles": len(tris)} fam.append(rec) nxt = [] for i in range(len(edges)): if mask >> i & 1: continue adj2 = [[False] * n for _ in range(n)] for u, v in [edges[j] for j in range(len(edges)) if (mask | (1 << i)) >> j & 1]: adj2[u][v] = adj2[v][u] = True if chordal(adj2, n) and clique_number(adj2, n) <= 3: nxt.append(i) if not nxt: maximal.append(rec) return fam, maximal def chordal(adj, n): for k in range(4, n + 1): for cyc in itertools.permutations(range(n), k): if cyc[0] != min(cyc): continue if not all(adj[cyc[i]][cyc[(i + 1) % k]] for i in range(k)): continue if not any(adj[cyc[i]][cyc[j]] for i in range(k) for j in range(i + 1, k) if (j - i) % k not in (1, k - 1)): return False return True def clique_number(adj, n): for k in range(n, 1, -1): for sub in itertools.combinations(range(n), k): if all(adj[u][v] for u, v in itertools.combinations(sub, 2)): return k return 1 def price_checks(): e5 = list(itertools.combinations(range(5), 2)) e4 = list(itertools.combinations(range(4), 2)) fam5, max5 = chordal_census(5, e5) fam4, max4 = chordal_census(4, e4) check("the width-2 chordal graphs on 5 labelled vertices number 756; the maximal ones 70, " "each with 7 edges", len(fam5) == 756 and len(max5) == 70 and all(f["edges"] == 7 for f in max5)) check("on 4 labelled vertices there are 60 width-2 chordal graphs and 6 maximal ones, and the " "served C source's six candidates are exactly those (5 edges, 2 triangles each)", len(fam4) == 60 and len(max4) == 6 and all(f["edges"] == 5 and f["triangles"] == 2 for f in max4)) t5 = sum(f["edges"] + f["triangles"] for f in fam5) tm5 = sum(f["edges"] + f["triangles"] for f in max5) t4 = sum(f["edges"] + f["triangles"] for f in max4) check("the clique-term counts are 700 (maximal 5-vertex family), 4210 (full family) against the " "served family's 42 -- multipliers 16.67x and 100.24x", (tm5, t5, t4) == (700, 4210, 42) and abs(tm5 / t4 - 16.666666666666668) < 1e-9 and abs(t5 / t4 - 100.23809523809524) < 1e-9) # the monotonicity lemma, verified exhaustively on the family: adding an edge never creates # more than one triangle inside the width-2 family worst = 0 for mask in range(1 << len(e5)): adj = [[False] * 5 for _ in range(5)] for u, v in [e5[i] for i in range(len(e5)) if mask >> i & 1]: adj[u][v] = adj[v][u] = True if not chordal(adj, 5) or clique_number(adj, 5) > 3: continue t0 = set(c for c in itertools.combinations(range(5), 3) if all(adj[u][v] for u, v in itertools.combinations(c, 2))) for i in range(len(e5)): if mask >> i & 1: continue adj2 = [[False] * 5 for _ in range(5)] for u, v in [e5[j] for j in range(len(e5)) if (mask | (1 << i)) >> j & 1]: adj2[u][v] = adj2[v][u] = True if not chordal(adj2, 5) or clique_number(adj2, 5) > 3: continue t1 = set(c for c in itertools.combinations(range(5), 3) if all(adj2[u][v] for u, v in itertools.combinations(c, 2))) worst = max(worst, len(t1 - t0)) check("inside the width-2 family a single added edge creates at most ONE triangle, so the " "served budget shape is edge-monotone and the max sits on the 70 maximal graphs", worst == 1) p4 = 19 * 23 * 29 * 31 p5 = p4 * 37 check("sympy confirms 392863 = 19*23*29*31 and 14535931 = 392863*37 are the phase counts", p4 == sympy.prod([19, 23, 29, 31]) and p5 == sympy.prod([19, 23, 29, 31, 37]) and p4 == 392863 and p5 == 14535931) check("the step's 144 classes need 144 * 14,535,931 = 2,093,174,064 phase evaluations, 0.239x " "the served four-event screen's 8,743,558,928", 144 * p5 == 2093174064 and 22256 * p4 == 8743558928) rate = 22256 * p4 / (150 * 4) cmax = 144 * p5 * (tm5 / t4) / rate / 3600 cfull = 144 * p5 * (t5 / t4) / rate / 3600 check("priced at the served rate (22,256 x 392,863 phases in ~150 s on 4 cores, #1841's own " "recipe) the step costs 0.665 CPU-h on the maximal family and 3.999 CPU-h on the full " "one, against its declared 2", abs(cmax - 0.6649892163910855) < 1e-9 and abs(cfull - 3.9994351442949574) < 1e-9 and 2.0 < cfull and cmax < 2.0) pr = load_json("price.json") check("the standalone price script agrees to 1e-9 on both branches", abs(pr["cpu_hours_step_maximal_family"] - cmax) < 1e-9 and abs(pr["cpu_hours_step_full_family"] - cfull) < 1e-9) # ---------------------------------------------------------------- the derived condition def derivation_checks(): scr = load_json("screen962-L813.json") srows = scr["rows"] hostile50 = sorted(srows, key=lambda r: (r["minima"][3], r["a"]))[:50] froz = scr["frozen_first_a_skipped"] M4 = min([r["minima"][1] for r in hostile50] + [10]) # frozen 46841 published [8,10,10,10] check("the four-event family minimum of the tree budget on the step's hostile tail is 10", M4 == 10) check("every hostile class has a killing-free phase, so at that phase the five-event first-order " "term, tree budget and survivor count reduce to the four-event ones", all(free_phases(support(a)) for a in [r["a"] for r in hostile50] + froz)) check("min B2(4 events) = min S(4 events) = min BT(4 events) = 10 on that tail, so a valid " "five-event width-2 budget (B2 <= S) gives min B2(5) <= 10", all(r["minima"][2] == r["minima"][3] for r in hostile50)) check("therefore the step's success clause min B2 > min BT is EQUIVALENT to min BT(5) <= 9 " "(a full unit below the four-event family minimum)", 10 - M4 == 0 and (10 > 9)) # the third outcome the old clauses leave unnamed def success(mB2, mBT): return mB2 > mBT def failure(mBT, mS): return mBT == mS third = (9, 9, 10) # min BT = 9, min B2 = 9, min S = 10 check("the old pre-registration leaves a THIRD case unnamed: min BT < min S with min B2 = min BT " "fires neither clause", not success(third[1], third[0]) and not failure(third[0], third[2])) check("the clauses cannot both fire (min B2 <= min S always), and the third case is reachable " "only when the tree minimum drops below 10", (not (success(10, 10) and failure(10, 10))) and third[0] < 10) # cross-check the screen facts script sf = load_json("screen_facts.json") check("the standalone screen-facts script agrees on the decisive counts", sf["rows_minB2_eq_minS"] == 22256 and sf["hostile50_family_minS"] == 10 and sf["classes_without_free_phase"] == 672 and sorted(sf["relevant_without_free_phase"]) == NO_FREE_PHASE_RELEVANT and sf["frozen_family_minS"] == 10 and sf["frozen_minB2_eq_minS"]) # the replacement step object is well formed ns = load_json("newstep.json") check("the replacement step object carries every required field within its length limits", all(k in ns for k in ("question", "method", "success", "failure", "budget_hours")) and len(ns["question"]) <= 1000 and len(ns["method"]) <= 4000 and len(ns["success"]) <= 2000 and len(ns["failure"]) <= 2000 and 0.1 <= ns["budget_hours"] <= 4 and ns["question"] != "" ) check("the replacement keeps the step's experiment and cites the three served sources it uses", "chordal-triage749.c" in ns["method"] and "return-1841" in ns["required_sources"]) # ---------------------------------------------------------------- negative controls def control_checks(rows, post): ctl = [] # 1. a perturbation of the screen's min B2 breaks the exactness check srows = [dict(r) for r in load_json("screen962-L813.json")["rows"]] srows[0]["minima"] = list(srows[0]["minima"]) srows[0]["minima"][2] += 1 ctl.append(not all(r["minima"][2] == r["minima"][3] for r in srows)) # 2. one space appended to the step changes its sha and empties the carrier set step = load_json("step.json") mut = dict(step) mut["question"] = mut["question"] + " " carriers = set() for r in rows: for st in (r.get("steps") or {}).values(): if st["sha256"] == canon(mut): carriers.add(r["id"]) ctl.append(canon(mut) != STEP_SHA and carriers == set()) # 3. injecting an id above the head into the present set breaks the window identity probe = load_json("probe.json") codes = dict(probe["codes"]) codes["2200"] = 200 pres = sorted(int(k) for k, v in codes.items() if v == 200) ctl.append(sorted(r["id"] for r in rows) != sorted(set(pres) | {SETTER})) # 4. a locator-only text fires no object word and an object-only text names no locator obj = ["five events", "width-2", "min b2"] loc = ["chordal-triage749", "screen962"] t_loc = "we ran chordal-triage749 and screen962" t_obj = "five events and width-2 are the subject" ctl.append(not any(p in t_loc.lower() for p in obj) and not any(p in t_obj.lower() for p in loc)) # 5. deleting one killing-free phase from a hostile class would show up in the census a = sorted(load_json("screen962-L813.json")["rows"], key=lambda r: (r["minima"][3], r["a"]))[0]["a"] fp = free_phases(support(a)) ctl.append(len(fp) > 0 and len(fp) - 1 != len(fp)) check("five negative controls all behave as designed", all(ctl)) def main(): print("job #4551 route 1 step check -- independent checker") print("step sha256 %s" % STEP_SHA) print() rows, post, route, step = window_checks() print() scan_checks(post, rows) print() screen_checks(rows, route) print() gate_checks(rows) print() price_checks() print() derivation_checks() print() control_checks(rows, post) print() total = len(PASS) + len(FAIL) verdict = { "checks_passed": len(PASS), "checks_total": total, "exit_code": 0 if not FAIL else 1, "step_sha256": STEP_SHA, "step_carriers_in_window": [SETTER], "is_queue_loop": False, "outcome": "progress", "rung": "verified", "window": {"lo": 1842, "hi": 2140, "head": 2036, "present": 185, "absent_404": 114, "never_issued_below_head": NEVER_ISSUED, "post_setter": 185, "routeless": 50}, "gate_defect": {"classes_without_killing_free_phase": 672, "relevant_without_killing_free_phase": NO_FREE_PHASE_RELEVANT}, "derived": {"four_event_family_min_TB": 10, "success_needs_min_BT5_at_most": 9}, "price_cpu_hours": {"maximal_family": 0.6649892163910855, "full_family": 3.9994351442949574, "declared": 2}, "failed": FAIL, } with open(os.path.join(HERE, "check.out.json"), "w", encoding="utf-8", newline="\n") as fh: json.dump(verdict, fh, indent=1) print("%d/%d checks passed" % (len(PASS), total)) print("verdict: no return recorded after #1841 answers route 1's five-event step; the step is " "carried by exactly one return (the setter), so it is a FIRST comparison and not a queue " "loop; the step's gate clause is unreachable on 9 of the 86 relevant classes and its " "success clause needs min BT(5) <= 9 because min B2(5) <= 10 is pinned by the served " "four-event exactness; the step is REPLACED, not copied forward") if FAIL: print("FAILED CHECKS: %s" % FAIL) return 1 return 0 if __name__ == "__main__": sys.exit(main())