#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Triage producer for job #1390: the ceiling of route 28's named channel. Route 28 proposes to expand the coprimality of the e-pair by Mobius inversion and to take the (D1) Cauchy arrangement AFTER the expansion, so that the common divisor d becomes a fixed inner modulus factor -- "the modulus here grows by d while the pair count is unchanged ... the same trade Lemma H prices for q, one level in". This script prices exactly that channel against the route's own deficit, using only exact rationals and the exponent formulas the record already states. It does not recompute any published table and enumerates nothing. (D1) block exponents (structured-dispersion-estimate.md (4), section 2): E1 = (1 + a + sigma)/2 E2 = a/2 + 3b/2 - min(sigma, alpha)/4 <- the cross term E3 = a + sigma with M = x^a, N = x^b, Q = x^sigma, alpha = a + b - 1 (the top harmonic band). Target box (delta, nu) = (8/25, 9/20), top sector a = 14/25, b = 1/2, sigma = 1/20, alpha = 3/50: exponents 161/200, 407/400, 61/100; the sector is controlled only if every exponent is below 1, so the deficit is 407/400 - 1 = 7/400. A d-factor multiplies the inner modulus: sigma -> sigma + delta with delta <= log_x d. The channel priced here is the modulus-growth channel only; the pair count is taken to be unchanged, as the route states. Only E2 is improved, and only through min(sigma, alpha), which saturates at alpha; E1 and E3 grow with sigma, so they get worse. Hence the channel's ceiling and the required delta are both computed below. Deterministic: exact integers and Fractions only, no clock, no randomness, no network. Usage: python triage1390-ceiling.py """ import hashlib import json import os import sys from fractions import Fraction as F def sha(p): h = hashlib.sha256() with open(p, "rb") as fh: for b in iter(lambda: fh.read(65536), b""): h.update(b) return h.hexdigest() def exponents(a, b, sigma): alpha = a + b - 1 return {"E1": (1 + a + sigma) / 2, "E2": a / 2 + 3 * b / 2 - min(sigma, alpha) / 4, "E3": a + sigma, "alpha": alpha, "min_sigma_alpha": min(sigma, alpha)} def main(run): # --- the route's own box and target sector ------------------------------- a, b, sigma = F(14, 25), F(1, 2), F(1, 20) base = exponents(a, b, sigma) # the record's chain, as the d = 1 regression control chain = { "3*(1/20)/2 + 3*(1/2-1/20)": F(3) * F(1, 20) / 2 + F(3) * (F(1, 2) - F(1, 20)), "14/25 + 1/20": F(14, 25) + F(1, 20), "57/40 - 139/100": F(57, 40) - F(139, 100), "407/400 - 1": F(407, 400) - 1, } chain_ok = (chain["3*(1/20)/2 + 3*(1/2-1/20)"] == F(57, 40) and chain["14/25 + 1/20"] == F(61, 100) and chain["57/40 - 139/100"] == F(7, 200) and chain["407/400 - 1"] == F(7, 400)) # --- the channel's ceiling ---------------------------------------------- alpha, alpha_minus_sigma = base["alpha"], base["alpha"] - sigma best_gain = alpha_minus_sigma / 4 # delta capped by saturation best_cross = base["E2"] - best_gain deficit_block = base["E2"] - 1 needed_delta = 4 * deficit_block # delta/4 > deficit d_range_max = F(7, 300) # j_e <= x^(7/300+eps) effective_delta_cap = min(alpha_minus_sigma, d_range_max) out = { "producer": os.path.basename(__file__), "producer_sha256": sha(os.path.abspath(__file__)), "job_id": 1390, "route_id": 28, "depends_on": [624], "input_box": {"delta": "8/25", "nu": "9/20", "a": str(a), "b": str(b), "sigma": str(sigma), "alpha": str(alpha)}, "record_exponents": {k: str(v) for k, v in base.items()}, "regression_d_eq_1": { "chain_57_40_61_100_139_100_407_400_7_200_7_400_reproduces": chain_ok, "values": {k: str(v) for k, v in chain.items()}}, "channel": { "what_the_route_names": "the common divisor d as a fixed inner modulus factor, " "modulus grown by d, pair count unchanged", "only_E2_improves": "E1 and E3 grow by delta/2 and delta with sigma; E2 improves by " "delta/4 while sigma < alpha and by nothing after", "saturation_cap_on_delta": str(alpha_minus_sigma), "best_possible_cross_gain": str(best_gain), "best_possible_cross_exponent": str(best_cross), "deficit_at_the_top_sector": str(deficit_block), "best_case_still_above_one": bool(best_cross > 1), "gain_over_deficit": str(best_gain / deficit_block), "required_delta_for_control": str(needed_delta), "available_delta": str(effective_delta_cap), "required_over_available": str(needed_delta / effective_delta_cap), "d_range_exponent": str(d_range_max), "binding_constraint": ("saturation of min(sigma,alpha), not the d-range: " "1/100 < 7/300" if alpha_minus_sigma < d_range_max else "the d-range"), }, "conclusion": ("Route 28's named channel cannot control the top sector: its ceiling is " "407/400 - 1/400 = 203/200 > 1, and the delta it would need (7/100) is " "seven times the available one (1/100). The verdict is scoped to this " "channel at this sector; it is not a refutation of the Mobius expansion " "as a device, and it says nothing about the other unexploited signs the " "record names."), "deterministic": "exact integers and Fractions only; no clock, randomness or network", } arts = os.path.join(run, "artifacts") os.makedirs(arts, exist_ok=True) jp = os.path.join(arts, "triage1390-ceiling.json") with open(jp, "w", encoding="utf-8", newline="\n") as fh: json.dump(out, fh, indent=1, sort_keys=True, ensure_ascii=False) fh.write("\n") tp = os.path.join(arts, "triage1390-ceiling.txt") lines = ["triage #1390 - route 28, the ceiling of its named channel", ""] lines.append("box a=%s b=%s sigma=%s alpha=%s ; sector (rho,sigma)=(6/25,1/20)" % (a, b, sigma, alpha)) lines.append("(D1) exponents: E1=%s E2=%s E3=%s (record: 161/200, 407/400, 61/100)" % (base["E1"], base["E2"], base["E3"])) lines.append("d = 1 regression control reproduces 57/40, 61/100, 139/100, 407/400, " "7/200, 7/400: %s" % chain_ok) lines.append("") lines.append("delta -> sigma + delta multiplies the inner modulus by d = x^delta.") lines.append(" E2 improves by delta/4 while sigma+delta < alpha, and by 0 after") lines.append(" (saturation at alpha - sigma = %s)" % alpha_minus_sigma) lines.append(" E1 and E3 grow with delta, so the binding exponent is E2") lines.append(" best possible E2 = %s - %s = %s" % (base["E2"], best_gain, best_cross)) lines.append(" best case still above 1: %s (deficit %s)" % (best_cross > 1, deficit_block)) lines.append(" the gain is 1/%s of the deficit needed" % str(1 / (best_gain / deficit_block))) lines.append(" required delta > %s ; available delta <= %s ; short by a factor %s" % (needed_delta, effective_delta_cap, needed_delta / effective_delta_cap)) lines.append("") lines.append("scoped: this prices the modulus-growth channel only, at the top sector.") lines.append("sha256(json) = %s" % sha(jp)) with open(tp, "w", encoding="utf-8", newline="\n") as fh: fh.write("\n".join(lines) + "\n") sys.stdout.write(open(tp, encoding="utf-8").read()) return 0 if chain_ok else 1 if __name__ == "__main__": sys.exit(main(sys.argv[1] if len(sys.argv) > 1 else os.getcwd()))