#!/usr/bin/env python3 # -*- coding: utf-8 -*- """The emptiness test, generalised over the open nodes of the dependency graph. THE TECHNIQUE. The only result in this run that has been CATEGORICAL rather than marginal came from asking, of a class the corpus quantifies over, whether an exact algebraic constraint makes the class EMPTY: return #786 excluded the diagonal and the R=0 class from the class where the (D1) deficit lives (the 7/400 deficit is then carried entirely by the incoherent part, so no absolute-value argument that feeds on the coherent part can reach it), and route 39's lambda(p) = -1 for every prime puts every twin pair in one of the four cells. So for each OPEN node the question is: name the exact class in which the deficit lives, name an exact algebraic constraint available on that class, and decide whether the class is EMPTY. The deliverable is the table. Where the emptiness claim is exactly checkable, this file checks it and prints the verdict; where it is not, the table says so rather than dressing a heuristic as a proof. Verdict vocabulary (kept distinct on purpose): EMPTY-PROVED -- an exact constraint provably removes the whole class (or the sub-class that carries the deficit) SINGLETON -- the constraint leaves exactly one inhabitant (up to the stated range) CELL-RESTRICT -- the constraint removes some cells but the deficit survives in the rest NON-EMPTY -- the class is known infinite, or demonstrably inhabited NO-CLASS -- the deficit is infinitude or coverage, not inhabitation: emptiness cannot be the test at all TESTABLE -- emptiness would be decisive and is a finite counting question, not a new estimate Usage: python emptiness-table.py [--x 1000000] """ import argparse import json import math import sys from fractions import Fraction sys.stdout.reconfigure(encoding='utf-8') # ---------------------------------------------------------------- exact checks def check_lambda_cell(N): """EXACT: every twin pair has (lambda(n), lambda(n+2)) = (-1,-1); the other three cells are empty. lambda(p) = -1 for every prime, so both members of a twin pair carry -1. This is route 39's restriction, and it is a cell-emptiness statement, not an estimate. """ sieve = bytearray([1]) * (N + 1) sieve[0:2] = b'\x00\x00' for p in range(2, math.isqrt(N) + 1): if sieve[p]: sieve[p * p::p] = bytes(len(range(p * p, N + 1, p))) lam = [0] * (N + 1) for n in range(2, N + 1): lam[n] = 1 for p in range(2, N + 1): if sieve[p]: for m in range(p, N + 1, p): lam[m] = -lam[m] cells = {} pairs = 0 for n in range(2, N - 1): if sieve[n] and sieve[n + 2]: pairs += 1 cells[(lam[n], lam[n + 2])] = cells.get((lam[n], lam[n + 2]), 0) + 1 return {"N": N, "twin_pairs_below": pairs, "cells_occupied": {str(k): v for k, v in cells.items()}, "other_three_cells_empty": set(cells) == {(-1, -1)}} def check_balanced_divisor(L): """EXACT: (l1,l2)=1 with l1=l2 forces l1=l2=1 -- the balanced sub-class is a singleton. This is the coprimality constraint behind the corpus's own 'squarefree + balanced divisor' language (Pascadi Example 1.3's economy case), used here as an emptiness statement about the (l1,l2) class of the composite modulus c = q*l1*l2*j_e. """ bad = [(a, b) for a in range(1, L + 1) for b in range(1, L + 1) if math.gcd(a, b) == 1 and a == b and not (a == 1 and b == 1)] return {"L": L, "violations": bad, "balanced_class_is_singleton": not bad} def check_D1_exclusions(): """EXACT: the two sub-classes excluded from the (D1) deficit class, as exponent inequalities. Restated from return #786, whose derivation is the content: the diagonal (u1=u2 iff e1=e2) has j = e1 ~ x^(9/20) against the class ceiling x^(7/300); the R=0 class needs l_i <= 2A with l_i > N/j, hence j > N/(2A) = x^(11/25)/2, again against x^(7/300). Here only the resulting exponent comparisons are checked exactly, so that the table carries no rounded number. """ ceiling = Fraction(7, 300) diag = Fraction(9, 20) zero = Fraction(11, 25) return {"ceiling_exponent": str(ceiling), "diagonal_exponent": str(diag), "diagonal_excluded": diag > ceiling, "R0_exponent": str(zero), "R0_excluded": zero > ceiling, "diagonal_gap": str(diag - ceiling), "R0_gap": str(zero - ceiling)} def check_Dy_boundary(x, ys): """EXACT: e with e*y >= x has an empty interval (a_e = x), so those terms vanish identically.""" out = [] for y in ys: Q = x // y out.append({"x": x, "y": y, "e_with_e_times_y_at_least_x": [e for e in range(1, Q + 1) if e * y >= x]}) return out # ---------------------------------------------------------------- the table def table(): return [ {"node": "TPC", "class_where_deficit_lives": "{n : n and n+2 both prime}, required infinite", "constraint": "parity (n odd)", "verdict": "NO-CLASS", "why": "the deficit is INFINITUDE, not inhabitation; any constraint emptying the class " "would prove the target, so emptiness is not the test here"}, {"node": "ZONE-WEAK", "class_where_deficit_lives": "primes p whose tile T_p has its first twin slot at or above p'^2 - 2", "constraint": "lambda(p) = -1 for every prime (route 39)", "verdict": "CELL-RESTRICT", "why": "the restriction removes three of four cells but the deficit lives in the surviving " "one; a 4 -> 1 reduction, not an emptiness"}, {"node": "GAP-INF", "class_where_deficit_lives": "{q : G2(q) > (log q)^(2-delta)}", "constraint": "none exact available", "verdict": "NON-EMPTY", "why": "the class is known INFINITE (Iwaniec's lower bound for the Jacobsthal function at " "primorial-type moduli), so no emptiness; the deficit is quantitative"}, {"node": "MARGIN-SHRINK", "class_where_deficit_lives": "dyadic x with C2 x + E_dagger(x) < c0 x/(log x)^K, over the actual coefficient classes", "constraint": "inside the D1 sector, small gcd forces R != 0 and excludes the diagonal " "(return #786)", "verdict": "EMPTY-PROVED (sub-class)", "why": "the coherent (zero-frequency) sub-class of the deficit class is EMPTY, so the " "deficit must be carried by the strictly incoherent part: absolute-value arguments " "that exploit the coherent part cannot reach it. This is the sharpest emptiness " "result in the corpus and it is why 7/400 sits where it sits."}, {"node": "BOX-CONTROL", "class_where_deficit_lives": "parameter tuples (coefficient class, box, band, endpoint, twist) outside the witness box", "constraint": "gcd conditions defining the box", "verdict": "NO-CLASS", "why": "emptiness here is a COVERING question and belongs to COMPLEMENT below; asked " "node-locally there is nothing to empty"}, {"node": "X-SMALL", "class_where_deficit_lives": "X_small > C x^(36/25-eta) on the native orientation", "constraint": "lambda(p) = -1 for every prime; the four-cell split", "verdict": "CELL-RESTRICT (3 of 4 cells empty)", "why": "exactly checked below: every twin pair lies in the (-1,-1) cell, so three cells are " "empty and the obligation is a single-cell obligation. Route 39's own window " "(4.8, 8] closed by rational certificate in return #782, adding zero to the count."}, {"node": "D1-BLOCK", "class_where_deficit_lives": "{j_e <= x^(7/300+eps), R != 0} -- the class where the saving 7/200 is needed", "constraint": "coprimality/divisor-progression: diagonal excluded, R=0 excluded", "verdict": "EMPTY-PROVED (sub-class)", "why": "the coherent part of THAT class is empty (return #786). The deficit therefore " "lives where no coherent term exists -- which is exactly the class the corpus cannot " "bound in absolute value."}, {"node": "D1-SMALL-GCD", "class_where_deficit_lives": "the remaining small-gcd range j_e <= x^(7/300) not paid by j_e^(-3/2)", "constraint": "same as D1-BLOCK", "verdict": "EMPTY-PROVED (sub-class)", "why": "same argument, same emptiness: the small-gcd class contains no diagonal and no R=0"}, {"node": "ROUTE48-RANGE-INPUT", "class_where_deficit_lives": "the (l1,l2) pair of c = q*l1*l2*j_e outside the range coverage", "constraint": "(l1,l2) = 1", "verdict": "SINGLETON (balanced sub-class)", "why": "l1 = l2 with coprimality forces l1 = l2 = 1: the balanced sub-class has exactly one " "inhabitant, so the whole balanced case is the single pair (1,1) -- the corpus's own " "'squarefree + balanced divisor' economy case is a singleton, not a range"}, {"node": "UNBALANCED-BAND", "class_where_deficit_lives": "the unbalanced band, where the nu-mass falls outside the critical scale " "(1 - F = pi^-2 sqrt(n/L^2))", "constraint": "none exact available", "verdict": "NON-EMPTY", "why": "the balanced class is the complement of the deficit; emptiness of the balanced " "class would make the deficit everything, which is the worst case, not a save"}, {"node": "COMPLEMENT", "class_where_deficit_lives": "everything the regional estimates do not reach, at O_H(x/log^H x)", "constraint": "the box definitions themselves", "verdict": "TESTABLE", "why": "THE one node where emptiness would be decisive and is a finite counting question: " "the complement is empty IFF the union of the controlled boxes covers the range. " "That is membership/counting arithmetic, not a new estimate, and the corpus records " "the complement as irreplaceable without recording whether the boxes cover. HIGHEST " "PAYOFF EMPTINESS TARGET IN THE GRAPH."}, {"node": "B-MARGIN", "class_where_deficit_lives": "the class where B >= -(C2-c0)x + o(x) is at risk", "constraint": "small gcd excludes the diagonal and R=0 (return #786)", "verdict": "EMPTY-PROVED (sub-class)", "why": "same emptiness -- and now the object itself is known to be a labelling artefact " "(return #787): the node is mis-posed before the emptiness even matters"}, {"node": "CENTERED-MARGIN", "class_where_deficit_lives": "{x : D_y(x) < -(4/25)x}, for the fixed auxiliary cut y = ceil(x^(12/25))", "constraint": "e ranges over ODD SQUAREFREE moduli only; the moving cut a_e = max(x/2, ey) " "makes the interval (a_e, x] empty whenever e*y >= x", "verdict": "BOUNDARY-EMPTY + SUPPORT-RESTRICT", "why": "exactly checked below: boundary terms vanish identically, and the odd-squarefree " "restriction removes 1 - (1/3)(6/pi^2) ~ 0.80 of the moduli. The deficit CLASS " "itself is non-empty -- but measured this window, its object is NOT a labelling " "artefact, unlike B (see the report)."}, {"node": "COND-INPUTS", "class_where_deficit_lives": "the configurations where the conditional input of whichever published route fails " "(an exceptional zero, or the corresponding distribution failure)", "constraint": "Landau-Page: at most ONE exceptional character per modulus range, and its " "zero is simple", "verdict": "SINGLETON", "why": "the failure class of the conditional input is a singleton up to the range, by " "published and classical theory -- a genuine emptiness-flavoured constraint that no " "route in the corpus uses: the whole class of failures is one character"}, ] def main(): ap = argparse.ArgumentParser() ap.add_argument('--x', type=int, default=1000000) a = ap.parse_args() checks = { "lambda_cell": check_lambda_cell(a.x), "balanced_divisor": check_balanced_divisor(200), "D1_exclusions": check_D1_exclusions(), "Dy_boundary": check_Dy_boundary(256, [15, 20, 32]), } rows = table() verdicts = {} for r in rows: verdicts[r["verdict"]] = verdicts.get(r["verdict"], 0) + 1 print(json.dumps({"checks": checks, "verdict_counts": verdicts, "table": rows}, indent=1, ensure_ascii=False)) return 0 if __name__ == '__main__': sys.exit(main())