# Copyright 2026 Alessio Mattoccia # SPDX-License-Identifier: Apache-2.0 """Independent PT-013 replay. Run with the Python standard library.""" from collections import defaultdict from hashlib import sha256 from itertools import combinations_with_replacement from math import gcd from pathlib import Path import json EMBEDDED_RESULTS = r"""{ "schema": 1, "id": "PT-013", "title": "Sharp charge bounds for a one-scalar chiral U(1) sector", "status": "analytic_result_with_independent_finite_check", "bibliographic_priority": "under_review", "author": "Alessio Mattoccia", "domain": "One isolated U(1), eight left-handed Weyl fermions, Standard Model singlets.", "assumptions": [ "Nonzero integer charges with gcd 1 and no opposite pair. Repetitions are permitted.", "The linear and cubic local anomaly sums vanish.", "One complex scalar of positive integer charge h and nonzero vacuum expectation value.", "Only renormalizable Yukawa masses are included, with independent allowed couplings.", "Nonzero symmetric mass entries require q_i + q_j = ±h." ], "analytic_regimes": { "odd": { "h_from": 9, "offset": 7, "differences": [ [ 1, 7 ], [ 5, 5 ] ] }, "even": { "h_from": 12, "offset": 10, "differences": [ [ 0, 10 ], [ 6, 8 ] ] } }, "finite_cases": [ { "h": 1, "minimum_max_abs_charge": 8, "charges": [ -7, -7, -5, -2, 3, 4, 6, 8 ], "differences": [ [ 5, 15 ], [ 9, 13 ] ], "pairs": [ [ -2, 3 ], [ -7, 8 ], [ -5, 4 ], [ -7, 6 ] ], "rank": 8, "determinant": 1 }, { "h": 2, "minimum_max_abs_charge": 6, "charges": [ -5, -4, -4, 1, 1, 2, 3, 6 ], "differences": [ [ 0, 10 ], [ 6, 8 ] ], "pairs": [ [ 1, 1 ], [ -4, 6 ], [ -4, 2 ], [ -5, 3 ] ], "rank": 8, "determinant": 1 }, { "h": 3, "minimum_max_abs_charge": 8, "charges": [ -7, -5, -5, 1, 2, 2, 4, 8 ], "differences": [ [ 1, 13 ], [ 7, 11 ] ], "pairs": [ [ 1, 2 ], [ -5, 8 ], [ -5, 2 ], [ -7, 4 ] ], "rank": 8, "determinant": 1 }, { "h": 4, "minimum_max_abs_charge": 7, "charges": [ -6, -5, -3, 1, 2, 2, 2, 7 ], "differences": [ [ 0, 10 ], [ 6, 8 ] ], "pairs": [ [ 2, 2 ], [ -3, 7 ], [ -5, 1 ], [ -6, 2 ] ], "rank": 8, "determinant": 1 }, { "h": 5, "minimum_max_abs_charge": 8, "charges": [ -7, -6, -3, 1, 1, 2, 4, 8 ], "differences": [ [ 3, 11 ], [ 7, 9 ] ], "pairs": [ [ 1, 4 ], [ -3, 8 ], [ -6, 1 ], [ -7, 2 ] ], "rank": 8, "determinant": 1 }, { "h": 6, "minimum_max_abs_charge": 11, "charges": [ -10, -7, -5, 1, 2, 4, 4, 11 ], "differences": [ [ 2, 16 ], [ 8, 14 ] ], "pairs": [ [ 2, 4 ], [ -5, 11 ], [ -7, 1 ], [ -10, 4 ] ], "rank": 8, "determinant": 1 }, { "h": 7, "minimum_max_abs_charge": 11, "charges": [ -10, -8, -4, 1, 1, 3, 6, 11 ], "differences": [ [ 5, 15 ], [ 9, 13 ] ], "pairs": [ [ 1, 6 ], [ -4, 11 ], [ -8, 1 ], [ -10, 3 ] ], "rank": 8, "determinant": 1 }, { "h": 8, "minimum_max_abs_charge": 13, "charges": [ -11, -10, -5, 2, 2, 3, 6, 13 ], "differences": [ [ 4, 18 ], [ 12, 14 ] ], "pairs": [ [ 2, 6 ], [ -5, 13 ], [ -10, 2 ], [ -11, 3 ] ], "rank": 8, "determinant": 1 }, { "h": 9, "minimum_max_abs_charge": 8, "charges": [ -7, -7, -2, -2, 1, 4, 5, 8 ], "differences": [ [ 1, 7 ], [ 5, 5 ] ], "pairs": [ [ 4, 5 ], [ 1, 8 ], [ -7, -2 ], [ -7, -2 ] ], "rank": 8, "determinant": 1 }, { "h": 10, "minimum_max_abs_charge": 13, "charges": [ -12, -9, -3, -1, 2, 4, 6, 13 ], "differences": [ [ 2, 16 ], [ 8, 14 ] ], "pairs": [ [ 4, 6 ], [ -3, 13 ], [ -9, -1 ], [ -12, 2 ] ], "rank": 8, "determinant": 1 }, { "h": 11, "minimum_max_abs_charge": 9, "charges": [ -8, -8, -3, -3, 2, 5, 6, 9 ], "differences": [ [ 1, 7 ], [ 5, 5 ] ], "pairs": [ [ 5, 6 ], [ 2, 9 ], [ -8, -3 ], [ -8, -3 ] ], "rank": 8, "determinant": 1 }, { "h": 12, "minimum_max_abs_charge": 11, "charges": [ -10, -9, -3, -2, 1, 6, 6, 11 ], "differences": [ [ 0, 10 ], [ 6, 8 ] ], "pairs": [ [ 6, 6 ], [ 1, 11 ], [ -9, -3 ], [ -10, -2 ] ], "rank": 8, "determinant": 1 } ], "verification": { "construction": "Equal norms of two disjoint two-square representations and four off-diagonal pairs.", "independent": "Complete direct search of eight charges with |q_i| <= 13 for h=1 through 12. Quartet meet-in-the-middle and supported determinant terms.", "scope": "Analytic pairing lemma and parity bounds, with exact replay for the finite table." }, "references": [ { "authors": "Costa, Dobrescu, Fox (2019)", "title": "General Solution to the U(1) Anomaly Equations", "url": "https://doi.org/10.1103/PhysRevLett.123.151601" }, { "authors": "Berryman, de Gouvêa, Hernández, Kelly (2016)", "title": "Imperfect Mirrors of the Standard Model", "url": "https://doi.org/10.1103/PhysRevD.94.035009" }, { "authors": "Bernal, Calle, Restrepo (2021)", "title": "Anomaly-free Abelian gauge symmetries with Dirac scotogenic models", "url": "https://doi.org/10.1103/PhysRevD.103.095032" }, { "authors": "Tsai, Lee, Takahashi (2026)", "title": "Arithmetic Symmetry in Ideal Prouhet-Tarry-Escott Solutions", "url": "https://arxiv.org/abs/2606.07735" } ] } """ RESULTS_SHA256 = "2b6f8aa7a77be6de5565f165329a3100da1cb9f283665786d6a1a4199b4d6dcb" def require(condition, message): if not condition: raise ValueError(message) def anomaly_free_spectra(bound): """Enumerate sorted multisets by joining complementary quartet sums.""" domain = [q for q in range(-bound, bound + 1) if q] index = defaultdict(list) for quartet in combinations_with_replacement(domain, 4): if any(-q in quartet for q in quartet): continue signature = sum(quartet), sum(q**3 for q in quartet) index[signature].append(quartet) for (linear, cubic), quartets in index.items(): complements = index.get((-linear, -cubic), ()) for left in quartets: for right in complements: if left[-1] > right[0] or any(-q in right for q in left): continue charges = left + right if gcd(*charges) == 1: yield charges def has_determinant_term(charges, h): """Search the actual support, independently of charge pairings.""" masks = {0} for left in charges: choices = [1 << j for j, right in enumerate(charges) if abs(left + right) == h] masks = {used | choice for used in masks for choice in choices if not used & choice} if not masks: return False return True def verify_witness(case): h, charges, pairs = case["h"], case["charges"], case["pairs"] require(len(charges) == 8 and 0 not in charges, "Eight nonzero charges") require(gcd(*charges) == 1 and all(-q not in charges for q in charges), "Chirality and gcd") require(sum(charges) == sum(q**3 for q in charges) == 0, "Linear and cubic anomalies") require(sorted(q for pair in pairs for q in pair) == charges, "Four pairs use every field") require(sorted(map(sum, pairs)) == [-h, -h, h, h], "Allowed couplings") # Four blocks (0 1; 1 0) give four transpositions, with determinant 1. require(case["determinant"] == (-1) ** len(pairs) == 1 and case["rank"] == 8, "Mass certificate") require(max(map(abs, charges)) == case["minimum_max_abs_charge"], "Height") def verify_regimes(regimes): """Check the finite arithmetic step in the analytic lower bound.""" for parity, key in enumerate(("even", "odd")): regime = regimes[key] offset = regime["offset"] smaller = [a * a + b * b for a, b in combinations_with_replacement(range(parity, offset, 2), 2)] require(len(smaller) == len(set(smaller)), "No smaller equal norm") plus, minus = regime["differences"] require(plus != minus and max(plus + minus) == offset, "Equality at the claimed offset") require(all(d % 2 == parity for d in plus + minus), "Correct parity") require(sum(d * d for d in plus) == sum(d * d for d in minus), "Equal norm") def main(): require(sha256(EMBEDDED_RESULTS.encode()).hexdigest() == RESULTS_SHA256, "Embedded data digest") sidecar = Path(__file__).resolve().with_name("PT-013_RESULTS.json") if sidecar.is_file(): require(sha256(sidecar.read_bytes()).hexdigest() == RESULTS_SHA256, "Downloaded data digest") data = json.loads(EMBEDDED_RESULTS) cases = data["finite_cases"] require([case["h"] for case in cases] == list(range(1, 13)), "Coverage of the finite table") require(max(case["minimum_max_abs_charge"] for case in cases) == 13, "Witness search bound") for case in cases: verify_witness(case) verify_regimes(data["analytic_regimes"]) minima = {h: 14 for h in range(1, 13)} count = 0 for charges in anomaly_free_spectra(13): count += 1 bound = max(map(abs, charges)) for h, current in minima.items(): if bound < current and has_determinant_term(charges, h): minima[h] = bound require(list(minima.values()) == [case["minimum_max_abs_charge"] for case in cases], "Independent minima") print(f"PASS PT-013 {count} primitive chiral anomaly-free multisets checked in |q_i| <= 13") print("PASS PT-013 Q_min(1..12) =", list(minima.values())) print("PASS PT-013 four allowed pairs at each minimum; all witness determinants are 1") print("PASS PT-013 odd/even arithmetic bounds checked") if __name__ == "__main__": main()