#!/usr/bin/env python3 """ The Neon Decet — Unified Live Verification Runner & Atlas Topology Auditor ========================================================================== Zero-dependency Python 3 verifier for the 10-Volume, 51-Chamber Neon Decet: 1. Verifies the 51-chamber registry & 28-bridge cross-volume constellation graph (uniqueness, completeness, connectivity across all 10 volumes, valid routes). 2. Fetches all 10 live volume verifier scripts from GitLab Pages, computes exact byte lengths and SHA-256 receipts, executes every suite locally, and confirms 10/10 volumes pass with 0 failures. Usage: python3 verify_decet.py # Run topology audit + all 10 live verifiers python3 verify_decet.py --topology # Audit only the 51-chamber/28-bridge atlas graph python3 verify_decet.py --vol I X # Run topology audit + selected volumes (I..X) """ import argparse import collections import hashlib import os import re import subprocess import sys import tempfile import time import urllib.request VOLUMES = [ { "num": "I", "title": "The Neon Mirror Room", "url": "https://the-neon-mirror-room-bd81b1.gitlab.io/", "verifier": "verify_mirrors.py", "chambers": [ ("I.1", "penrose", "Penrose Unilluminable Room"), ("I.2", "caustics", "Coffee-Cup Caustics & Rainbow"), ("I.3", "poncelet", "Integrable Ellipse & Poncelet Porism"), ("I.4", "mushroom", "Bunimovich Mushroom Billiard"), ("I.5", "tokarsky", "Tokarsky 24-Gon & Mirror Unfolding"), ("I.6", "hyperbolic", "Hyperbolic Coxeter Kaleidoscope"), ], }, { "num": "II", "title": "The Neon Wave Atelier", "url": "https://the-neon-wave-atelier-4b7d80.gitlab.io/", "verifier": "verify_waves.py", "chambers": [ ("II.1", "chladni", "Chladni Singing Plates"), ("II.2", "wavetank", "Live 2D Mirror Wave Tank"), ("II.3", "causticwave", "Airy Fold & Pearcey Cusp Caustics"), ("II.4", "quantum", "Quantum Cavities & Courant Domains"), ("II.5", "sphere", "3D Singing Spherical Harmonics"), ], }, { "num": "III", "title": "The Neon Hopf Observatory", "url": "https://the-neon-hopf-observatory-dbb6f5.gitlab.io/", "verifier": "verify_hopf.py", "chambers": [ ("III.1", "hopf", "Hopf Fibration S³ → S² & Villarceau Tori"), ("III.2", "knots", "Torus Knots, Borromean & Fáry–Milnor"), ("III.3", "polytopes", "4D Polychora & 600-Cell Hopf Decagons"), ("III.4", "minimal", "Minimal Surfaces & Bonnet Morph"), ("III.5", "holonomy", "Parallel Transport & Gauss–Bonnet"), ], }, { "num": "IV", "title": "The Neon Crystal Atelier", "url": "https://the-neon-crystal-atelier-711051.gitlab.io/", "verifier": "verify_crystals.py", "chambers": [ ("IV.1", "wallpaper", "Wallpaper Symmetry Loom (All 17 Groups)"), ("IV.2", "quasicrystal", "Cut-and-Project Quasicrystals & Bragg"), ("IV.3", "einstein", "Einstein Hat & Chiral Spectre Monotiles"), ("IV.4", "tpms", "Triply Periodic Nodal Labyrinths"), ("IV.5", "packing", "Optimal Packings, D₄ & 8D E₈"), ], }, { "num": "V", "title": "The Neon Celestial & Dynamical Atelier", "url": "https://the-neon-celestial-atelier-aaa637.gitlab.io/", "verifier": "verify_dynamics.py", "chambers": [ ("V.1", "threebody", "Three-Body Choreographies & Lagrange"), ("V.2", "pendulum", "Double Pendulum & Chaos Flip Fractal"), ("V.3", "kuramoto", "Kuramoto Coupled Oscillators"), ("V.4", "conformal", "Conformal Joukowsky Aerodynamics"), ("V.5", "zeta", "Analytic Phase Portraits & Riemann Zeta"), ], }, { "num": "VI", "title": "The Neon Quantum & Statistical Pavilion", "url": "https://the-neon-quantum-pavilion-a5c516.gitlab.io/", "verifier": "verify_quantum.py", "chambers": [ ("VI.1", "arctic", "Aztec Diamond Arctic Circle & EKLP"), ("VI.2", "rmt", "Random Matrix Theory & Odlyzko Zeros"), ("VI.3", "ising", "2D Ising Ferromagnet & Onsager T_c"), ("VI.4", "schrodinger", "2D Split-Operator FFT Schrödinger"), ("VI.5", "sandpile", "Abelian Sandpile Identity Mandala"), ], }, { "num": "VII", "title": "The Neon Arithmetic & Fractal Sanctuary", "url": "https://the-neon-arithmetic-sanctuary-b89c4c.gitlab.io/", "verifier": "verify_arithmetic.py", "chambers": [ ("VII.1", "modular", "Modular Group PSL(2,ℤ) & Klein j"), ("VII.2", "elliptic", "Elliptic Curves E(ℝ), E(𝔽_p) & Hasse"), ("VII.3", "ford", "Ford Circles & Apollonian Gaskets"), ("VII.4", "gaussian", "Gaussian Primes, Moat & Ulam Spirals"), ("VII.5", "julia", "Mandelbrot–Julia & Feigenbaum Chaos"), ], }, { "num": "VIII", "title": "The Neon Kinematics, Origami & Topology Atelier", "url": "https://the-neon-kinematics-origami-atelier-dbd32b.gitlab.io/", "verifier": "verify_kinematics.py", "chambers": [ ("VIII.1", "linkages", "Peaucellier–Lipkin & Mechanical Linkages"), ("VIII.2", "origami", "Rigid 3D Miura-ori & Kawasaki–Maekawa"), ("VIII.3", "orbiforms", "Constant-Width Orbiforms & Kakeya Deltoid"), ("VIII.4", "nonorientable", "Möbius Scissor Cuts, Klein & Boy's ℝP²"), ("VIII.5", "spectral", "Spectral Graph Theory & Kirchhoff Trees"), ], }, { "num": "IX", "title": "The Neon Geodesic, Sound & Variational Conservatory", "url": "https://the-neon-variational-conservatory-36f86e.gitlab.io/", "verifier": "verify_variational.py", "chambers": [ ("IX.1", "geodesics", "Clairaut Geodesics & Jacobi Conjugates"), ("IX.2", "brachistochrone", "Brachistochrone, Snell & Tautochrone"), ("IX.3", "tonnetz", "Euler Tonnetz & Microtonal EDO Pitch"), ("IX.4", "transport", "Optimal Transport & Bures–Wasserstein"), ("IX.5", "voronoi", "Voronoi–Delaunay & Lloyd Relaxation"), ], }, { "num": "X", "title": "The Neon Information, Codes & Automata Vault", "url": "https://the-neon-information-vault-ce8813.gitlab.io/", "verifier": "verify_information.py", "chambers": [ ("X.1", "hamming", "Hamming (7,4) & SECDED (8,4) Codes"), ("X.2", "shannon", "Shannon Entropy, Huffman & Arithmetic"), ("X.3", "automata", "Elementary Cellular Automata & Life"), ("X.4", "markov", "Markov Chains, Perron–Frobenius & PageRank"), ("X.5", "cryptography", "Diffie–Hellman, RSA & Shamir (k,n)"), ], }, ] # 28 cross-volume mathematical bridges matching app.js BRIDGES = [ ("I.1", "II.2", "light", "Penrose Ray Darkness ↔ Finite-λ Wave Diffraction"), ("I.2", "II.3", "light", "Geometric Caustic Envelope ↔ Airy–Pearcey Wave Catastrophe"), ("I.3", "IX.1", "light", "Billiard Focal Conservation ↔ Clairaut Surface Geodesics"), ("I.2", "IX.2", "light", "Snell's Optical Refraction ↔ Brachistochrone Cycloid Law"), ("I.6", "III.5", "light", "Hyperbolic Curvature K=−1 ↔ Pseudosphere Gauss–Bonnet Holonomy"), ("II.1", "II.4", "spectra", "Helmholtz Nodal Lines ↔ Courant Nodal Domain Bound"), ("II.5", "VIII.5", "spectra", "Laplace–Beltrami Harmonics ↔ Discrete Graph Laplacian Fiedler"), ("II.2", "VI.4", "spectra", "Classical Leapfrog Wave Tank ↔ Unitary Split-Operator Schrödinger"), ("V.5", "VI.2", "spectra", "Riemann Zeta Critical Zeros ↔ GUE Montgomery–Odlyzko Spacings"), ("VIII.5", "X.4", "spectra", "Laplacian Spectral Gap ↔ Markov Perron–Frobenius Mixing"), ("I.6", "VII.1", "symmetry", "Hyperbolic Coxeter Tessellation ↔ Modular PSL(2,ℤ) Domain"), ("III.1", "III.3", "symmetry", "Continuous Hopf S³ Fibers ↔ 600-Cell 12 Discrete Hopf Decagons"), ("III.3", "IV.5", "symmetry", "Self-Dual 24-Cell D₄ ↔ Optimal 4D D₄ & 8D E₈ Sphere Packings"), ("IV.1", "IV.2", "symmetry", "Crystallographic Restriction ↔ 5/8/12-Fold Bragg Quasicrystals"), ("IV.3", "IX.5", "symmetry", "Aperiodic Monotile Tessellation ↔ Voronoi–Delaunay Dual Cells"), ("III.2", "VIII.4", "symmetry", "Gauss Linking Integral ↔ Möbius 1/3- & 1/2-Cut Ribbon Linking"), ("IV.4", "III.4", "symmetry", "Triply Periodic Minimal Surfaces ↔ Bonnet Catenoid–Helicoid Morph"), ("I.4", "V.2", "chaos", "Mixed Chaotic Mushroom Billiard ↔ Double Pendulum Flip Fractal"), ("V.1", "V.3", "chaos", "Symplectic N-Body Choreography ↔ Kuramoto Collective Phase Lock"), ("V.4", "III.4", "chaos", "Holomorphic Aerodynamic Flow ↔ Weierstrass Minimal Surfaces"), ("VI.3", "VII.5", "chaos", "Onsager Critical Universality ↔ Feigenbaum Period-Doubling Chaos"), ("IX.4", "IX.5", "chaos", "Wasserstein Optimal Transport ↔ Centroidal Voronoi Lloyd Energy"), ("I.5", "VII.4", "discrete", "2D Lattice Parity Obstruction ↔ Gaussian Prime Moat Percolation"), ("VI.1", "VI.5", "discrete", "Kasteleyn Domino Determinant ↔ Kirchhoff Sandpile Matrix-Tree"), ("VI.5", "VIII.5", "discrete", "Sandpile Recurrent Order det(Δ) ↔ Kirchhoff Spanning Tree Count τ(G)"), ("VII.3", "IX.3", "discrete", "Hurwitz Continued Fractions ↔ Tonnetz EDO Convergents of log₂(3/2)"), ("VII.2", "X.5", "discrete", "Finite-Field Group Law E(𝔽_p) ↔ Modular Cryptography & Shamir F_97"), ("X.1", "X.2", "discrete", "Perfect Sphere-Packing Codes ↔ Shannon Entropy & Kraft Prefix Bound"), ("VIII.1", "VIII.2", "discrete", "Circle-Inversion Straight Linkages ↔ Rigid Miura-ori Kinematics"), ("X.3", "VI.5", "discrete", "Cellular Automata Self-Organization ↔ Critical Sandpile Avalanches"), ("VIII.3", "I.2", "light", "Steiner Deltoid & Support Evolutes ↔ Optical Caustic Envelopes"), ("X.2", "VI.3", "spectra", "Shannon Information Entropy ↔ Boltzmann–Gibbs Ising Phase Entropy"), ("IV.5", "VII.1", "symmetry", "8D E₈ Theta Series Θ_E₈(τ) ≡ Modular Eisenstein E₄(τ)"), ("IV.1", "I.6", "symmetry", "17 Flat Euclidean Wallpapers ↔ Hyperbolic Coxeter Orbifolds"), ("IV.2", "VI.4", "spectra", "Quasicrystal Bragg Diffraction ↔ 2D Quantum Momentum-Space FFT"), ] def audit_topology(): print("=" * 74) print("THE NEON DECET — GRAND CONSTELLATION ATLAS TOPOLOGY & REGISTRY AUDIT") print("=" * 74) chamber_map = {} url_set = set() for v in VOLUMES: assert v["url"].startswith("https://") and v["url"].endswith("/"), f"Bad URL {v['url']}" assert v["url"] not in url_set, f"Duplicate volume URL {v['url']}" url_set.add(v["url"]) for cid, slug, name in v["chambers"]: assert cid not in chamber_map, f"Duplicate chamber id {cid}" assert re.fullmatch(r"[a-z]+", slug), f"Invalid slug {slug}" chamber_map[cid] = (v["num"], slug, name) assert len(VOLUMES) == 10, f"Expected 10 volumes, got {len(VOLUMES)}" assert len(chamber_map) == 51, f"Expected 51 chambers, got {len(chamber_map)}" assert len(BRIDGES) == 35, f"Expected 35 bridges, got {len(BRIDGES)}" # Check bridge endpoints & build volume-level graph vol_adj = collections.defaultdict(set) cross_count = 0 edge_pairs = set() for a, b, theme, label in BRIDGES: assert a in chamber_map, f"Unknown bridge source {a}" assert b in chamber_map, f"Unknown bridge target {b}" assert a != b, f"Self-loop bridge {a}" pair = tuple(sorted((a, b))) assert pair not in edge_pairs, f"Duplicate bridge {pair}" edge_pairs.add(pair) va, vb = chamber_map[a][0], chamber_map[b][0] if va != vb: cross_count += 1 vol_adj[va].add(vb) vol_adj[vb].add(va) # BFS connectivity on the 10-volume meta-graph start = VOLUMES[0]["num"] visited = {start} q = collections.deque([start]) while q: cur = q.popleft() for nxt in vol_adj[cur]: if nxt not in visited: visited.add(nxt) q.append(nxt) assert len(visited) == 10, f"Volume bridge graph disconnected: reached {len(visited)}/10" min_deg = min(len(vol_adj[v["num"]]) for v in VOLUMES) assert min_deg >= 3, f"Minimum cross-volume degree too low: {min_deg}" print(f" [PASS] Registry integrity: 10 Volumes · 51 Chambers · 51 unique #hash routes") print(f" [PASS] Bridge graph: {len(BRIDGES)} unique bridges ({cross_count} cross-volume), 0 duplicates") print(f" [PASS] Connectivity: 10/10 volumes connected (min cross-volume degree = {min_deg})") return True def run_live_verifiers(selected_vols): print("\n" + "=" * 74) print("LIVE GITLAB PAGES VERIFICATION SWEEP (ALL PUBLISHED NEON VOLUMES)") print("=" * 74) results = [] total_chambers = 0 total_bytes = 0 t_all = time.time() with tempfile.TemporaryDirectory(prefix="neon_decet_") as tmpdir: for v in VOLUMES: if selected_vols and v["num"] not in selected_vols: continue script_url = v["url"] + v["verifier"] t0 = time.time() req = urllib.request.Request( script_url, headers={"User-Agent": "Neon-Decet-Unified-Verifier/1.0"}, ) with urllib.request.urlopen(req, timeout=30) as resp: status = resp.status raw = resp.read() assert status == 200, f"HTTP {status} for {script_url}" sha = hashlib.sha256(raw).hexdigest() local_path = os.path.join(tmpdir, f"vol_{v['num']}_{v['verifier']}") with open(local_path, "wb") as fh: fh.write(raw) proc = subprocess.run( [sys.executable, local_path], capture_output=True, text=True, timeout=120, ) dt = time.time() - t0 out = (proc.stdout or "") + "\n" + (proc.stderr or "") passed = proc.returncode == 0 # Extract concise highlight line from verifier output lines = [ln.strip() for ln in out.splitlines() if ln.strip()] summary_line = lines[-1] if lines else "(no output)" for ln in reversed(lines): if any(k in ln.upper() for k in ("PASSED", "ALL ", "TOTAL:", "CERTIFIED", "VERIFIED")): summary_line = ln break if len(summary_line) > 54: summary_line = summary_line[:51] + "..." status_tag = "PASS" if passed else "FAIL" print( f" [{status_tag}] Vol {v['num']:>4} | {len(v['chambers'])} ch | " f"{len(raw):>6} B | sha256:{sha[:12]} | {dt:4.2f}s | {summary_line}" ) if not passed: print(f" STDERR/STDOUT tail:\n" + "\n".join(" " + l for l in lines[-12:])) results.append((v["num"], passed, len(v["chambers"]), len(raw), sha)) total_chambers += len(v["chambers"]) total_bytes += len(raw) elapsed = time.time() - t_all n_pass = sum(1 for r in results if r[1]) n_fail = len(results) - n_pass print("-" * 74) print( f"DECET CERTIFICATION: {n_pass}/{len(results)} VOLUMES · " f"{total_chambers} CHAMBERS · {total_bytes:,} BYTES · " f"{elapsed:.2f}s · {n_fail} FAILURES" ) print("=" * 74) return n_fail == 0 def main(): parser = argparse.ArgumentParser(description="Verify The Neon Decet Atlas & all 10 live volumes.") parser.add_argument("--topology", action="store_true", help="Run only the 51-chamber/30-bridge topology audit.") parser.add_argument("--vol", nargs="+", help="Run only specific volume Roman numerals (e.g. --vol I IX X).") args = parser.parse_args() audit_topology() if args.topology: sys.exit(0) selected = set(v.upper() for v in args.vol) if args.vol else None ok = run_live_verifiers(selected) sys.exit(0 if ok else 1) if __name__ == "__main__": main()