Spectral Geometry of Nonlocal Stabilizer Entropy and Two-Qudit Magic: Machine-Checked All-$N$ Bounds, Fano-7 Duality, Rank-2 Majorization, and Cubic-Trace Pareto Frontiers
- Author: Alexander S. Donahue (
Independent Researcher, Spokane, WA, USA) — ORCID0009-0006-8168-9648 - Interactive Observatory & Blueprint:
https://0thernes.github.io/nonlocal-magic-spectral-frontier/ - White Paper (Frozen PDF):
dist/Donahue_2026_nonlocal_magic_spectral_frontier.pdf(clean-room arXiv tarballdist/arxiv_submission.tar.gz) - Anchor Literature (2026 arXiv): Piotr Sierant, Spectral geometry of nonlocal stabilizer entropy (arXiv:2609.13106); Marco Knipfer, Alexander Roman, Katia Matcheva, and Konstantin T. Matchev, Analytical Landscape of Maximal Magic for Two-Qutrit States and Beyond (arXiv:2607.07197).
Proof scope. The rank-ratio witness, the conditional d = 8 scalar identity and the cubic-trace arithmetic have different physical interpretations. The scope correction states the remaining operator, Hilbert-space and differential arguments.
Run-generated output from python paper/scripts/generate_figures.py: diagonal additive gap $\log_2(r^4/N_4(r))$ vs. Lean 4 ($K_4 = 7/3$, $1.22239$ bits), exact Rust ($K_4 = 2.2992$, $1.2011320$ bits), Lean record lower bound ($r = 179{,}844{,}069$, $1.2010915$ bits), and Jacobsthal ($85/37$) bounds (A05).
| Pillar | Verified Result | Epistemic Tag | Formal / Computational Receipt |
|---|---|---|---|
| I — All-$N$ Universal Gap | Tightens Sierant Theorem 3 (3 · B20(r, s) ≤ 7 · N_CB(n; r, s) c₁ ≤ log₂(7/3) ≈ 1.2223924 bits (AG(3,2) 56-basis matroid elimination, exact zero-loss j = 1 decoupling (D₁ = 0), Myhill–Nerode minimal backward automata (6 / 12 / 21 / 44 states), and asymmetric-$D$ half-open dyadic trees (D = (0, 2, 1), 170 / 793 / 1,084 / 3,927 leaves). |
[LEAN-6K] |
Pillar1_UniversalGap.lean, PalomarSolution.lean
|
| I — Exact Frontier & Record Barrier | Zero-dependency Rust verifier tightens the all-$N$ upper bound to K4 = 22992/10000 = 2.2992 (c₁ ≤ 1.2011320 bits, 40,740 leaves). Zero-axiom Lean 4 proofs establish exact Jacobsthal closed forms (85/37), r = 43 (N4 = 1,487,389), and the record lower bound r = 179,844,069 (N4 = 455,008,928,643,454,880,630,089,019,579,769, log₂ K* ≥ 1.2010915 bits), trapping 40.5 micro-bits. |
[EXACT-COMP] / [LEAN-6K]
|
native/rust/, Pillar1_Theory.lean
|
| II — Schmidt Rank-7 Fano Gap | Certifies all 210/210 degree-4 monomials of the 119-row Fano-7 polytope LP with exact denominator-12 integer duals (640 non-zero entries), proves the universal weighted operator-reduction theorem (thm_fano7_operator_reduction), strict necessity of pair5 and blossom6, the mHat = 2q under the two operator-derived hypotheses, and the exact even-$d$ sign dichotomy (d = 8 vs d ≥ 16). Operator lift for |
[LEAN-6K] / [OPEN]
|
Pillar2_Rank7Fano.lean, native/cpp/
|
| III — Rank-2 All-$\alpha$ & Kronecker Majorization | Proves exact all-16 Pauli majorization, kernel-checked powerConvex (H-002: an explicit 3-kink concavity counterexample ([5,5,4,2,2,2], |
[LEAN-6K] / [OPEN]
|
Pillar3_Rank2Majorization.lean, AdversarialTests.lean
|
| IV — Prime-Power & Composite Cubic-Trace MUBs | Constructs $ | \Psi_{\mathrm{cubic}}(\mathbb{F}q,\nu)\rangle = \frac{1}{q}\sum{x_0,x_1\in\mathbb{F}_q} \chi(x_0^3 + 3\nu x_0 x_1^2) | x_0,x_1\rangle$ over every prime power +0.6535 nats at |
Honest Scope & Mega-Atlas Disclosure: This work retires 0 / 1,900 historical grand problems in the Millennium/Erdős/Hilbert Mega-Atlas (see
docs/mega-atlas-crosswalk.md). Every result above addresses active 2026 quantum-information research problems with explicit epistemic tagging (CLAIMS.md,LIMITATIONS.md).
Every exported theorem across Solution.lean (23), PalomarSolution.lean (20), and NonVacuity.lean (10) compiles under zero-Mathlib Lean 4.35.0 with lake build --wfail (zero warnings, zero sorry, zero admit, zero native_decide, zero _native), passes leanchecker --fresh, and passes Lean 4.35.0's bubblewrap-sandboxed six-kernel paranoid check (Lean default, Lean paranoid, lean4lean, nanoda, con-leche, con-ron) plus CI tamper-rejection verification. Verbatim #print axioms output (checked byte-for-byte against results/lean_axioms.txt by scripts/check_readme_axioms.py in CI):
'NonlocalMagic.Solution.t1_universal_gap_log2_seven_thirds' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Solution.t1_universal_gap_log2_three' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Solution.t1a_universal_gap_two_bits' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Solution.t1b_ag32_matroid_reduction' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Solution.t1c_canonical_subfunction_bounds' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Solution.t1d_jacobsthal_closed_forms' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Solution.t1e_super_jacobsthal_r43' depends on axioms: [propext]
'NonlocalMagic.Solution.t1f_h003_exact_f123_separation' depends on axioms: [propext]
'NonlocalMagic.Solution.t1g_exact_j1_decoupling_and_record_lb' depends on axioms: [propext,
Classical.choice,
Quot.sound]
'NonlocalMagic.Solution.t2_fano7_all_210_duals_soundness' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Solution.t2a_pair5_blossom6_strict_necessity' depends on axioms: [propext]
'NonlocalMagic.Solution.t2b_d8_quasispin_pair5_closure' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Solution.t2c_fano7_operator_reduction_and_d8_dichotomy' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Solution.t3_two_qubit_bloch_pair_bound' depends on axioms: [propext]
'NonlocalMagic.Solution.t3a_karamata_convex_majorization' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Solution.t3b_two_qubit_all_16_and_h002' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Solution.t3c_multi_copy_kronecker_karamata' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Solution.t4_cubic_hessian_nondegenerate' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Solution.t4a_two_qudit_exact_purity' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Solution.t4b_two_qudit_cubic_schmidt_spectrum' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Solution.t4c_pillar4_boundary_sharpness' depends on axioms: [propext]
'NonlocalMagic.Solution.t4d_prime_power_cubic_and_stationarity' depends on axioms: [propext,
Classical.choice,
Quot.sound]
'NonlocalMagic.Solution.prove_all_four_pillars' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Palomar.p1_universal_gap_c1_le_log2_7_3' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Palomar.p1_universal_gap_c1_le_log2_3' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Palomar.p1_universal_gap_c1_le_2bits' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Palomar.p1_ag32_matroid_reduction' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Palomar.p1_exact_j1_decoupling' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Palomar.p1_jacobsthal_closed_forms' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Palomar.p1_super_jacobsthal_r43' does not depend on any axioms
'NonlocalMagic.Palomar.p1_super_jacobsthal_r179844069' does not depend on any axioms
'NonlocalMagic.Palomar.p2_fano7_rank7_duality' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Palomar.p2_d8_quasispin_pair5_closure' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Palomar.p2_d8_quasispin_sign_dichotomy' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Palomar.p3_two_qubit_bloch_pair_bound' depends on axioms: [propext]
'NonlocalMagic.Palomar.p3_karamata_convex_majorization' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Palomar.p3_kronecker_karamata_majorization' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Palomar.p3_h002_concavity_counterexample' does not depend on any axioms
'NonlocalMagic.Palomar.p4_cubic_hessian_nondegenerate' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Palomar.p4_two_qudit_exact_purity' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Palomar.p4_cubic_schmidt_column_orthogonality' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.Palomar.p4_cubic_schmidt_exact_purity' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.Palomar.p4_prime_power_dominance_and_stationarity' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.NonVacuity.pillar1_nonvacuous_witness' depends on axioms: [propext, Classical.choice, Quot.sound]
'NonlocalMagic.NonVacuity.pillar2_nonvacuous_witness' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.NonVacuity.pillar2_nontrivial_nonvacuous_witness' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.NonVacuity.pillar2_d8_closure_nonvacuous' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.NonVacuity.pillar2_operator_reduction_nonvacuous' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.NonVacuity.pillar3_orth3_nonvacuous' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.NonVacuity.pillar3_kronecker_nonvacuous' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.NonVacuity.pillar4_p5_nonvacuous' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.NonVacuity.pillar4_p7_nonvacuous' depends on axioms: [propext, Quot.sound]
'NonlocalMagic.NonVacuity.pillar4_f25_nonvacuous' depends on axioms: [propext, Classical.choice, Quot.sound]
-
Python Exact Oracle + 80-digit
mpmath+ Brute-Force Reference (python/nonlocal_magic/,reference/naive_oracle.py): Cross-checked across 1,000 seeded random inputs against literal nested-loop brute-force definitions (0/1,000mismatches), 1,000-example Hypothesis suites per core module, exact 624-shift$\mathbb{F}_{25}$ check, and an 8/8 (100% killed) source-code mutation suite. -
Rust 1.94 zero-dependency engine (
native/rust/):#![forbid(unsafe_code)], liveK4 = 7/3(3,927leaves) andK4 = 2.2992(40,740leaves) + exactr = 179,844,069record + exhaustive 624-shift$\mathbb{F}_{25}$ verifier +$r \le 2^{20}$ sweep + 1,000-case FNV-1a parity digest. -
ISO C11 (
-Wall -Wextra -Wpedantic -Wconversion -Werror) + ASan/UBSan + 100k Fuzz + CBMC (native/c/): Independent exact verifier + 1,000-case parity digest +cppcheck(0 warnings) + CBMC bounded model checking (native/c/cbmc_harness.c). -
x86-64 NASM Assembly (
native/asm/): Hand-written Win64 & SysV ELF64 in-place WHT kernels. -
Zig 0.17.0 (
native/zig/): Compile-safeu128verifier + 1,000-case FNV-1a parity digest. -
C++20 Quasispin & Plücker Engine (
native/cpp/):$\bigwedge^5 \mathbb{C}^8$ CAR/Plücker verifier +-O0vs-O3numerical stability check in CI. -
Eshkol Dual-Number Automatic Differentiation (
eshkol/src/*.esk): DoS-capped forward-mode AD evaluator (mypy --strict, Hypothesis 1,000-case Leibniz/chain rules). -
Pinned QGTL + QRNG (MIT) (
quantum/qgtl_qrng_driver.c,third_party/): Seeded Provost–Vallee Fubini–Study & Berry curvature check. -
Pinned Moonlab 1.2.1 WASM (MIT) (
quantum/moonlab_pauli_check.mjs,third_party/): Live WebAssembly 2-qubit circuit simulation.
# 1. Run 30-second Python quickstart demo across all 4 pillars python examples/quickstart_demo.py # 2. Run the full test suite (Hypothesis 1k, brute-force oracle, 8/8 mutation, golden, B03-B21) pytest -v tests/test_all.py # 3. Verify Lean 4.35.0 proofs, axioms (53/53 + README verbatim parity), and leanchecker cd lean && lake build --wfail && lake env lean VerifyAxioms.lean && lake env leanchecker --fresh PalomarSolution cd .. && python scripts/check_readme_axioms.py
See REPLICATION.md for full reproduction of all 9 engines, CBMC, the 10-seed pre-registered empirical study (PREREGISTRATION.md), Tectonic PDF compilation, clean-room arXiv tarball testing, and RFC 3161 / OpenTimestamps cryptographic verification.
from nonlocal_magic import ( b20_exact, n_cb_auto, n4_rec, verify_pillar4_f25_exact, verify_pillar4_prime_exact, ) # Happy path — Pillar I & Pillar IV exact verification r, s = [13, 19, 23, 29], [17, 21, 27, 31] assert b20_exact(r, s) == 96577 and n_cb_auto(r, s) == 71227 assert n4_rec(179844069) == 455008928643454880630089019579769 assert verify_pillar4_prime_exact(5, 2)["schmidt_rank"] == 3 assert verify_pillar4_f25_exact()["schmidt_rank"] == 13 # Failure path — boundary sharpness & quadratic residue rejection for bad_p, bad_nu in [(3, 2), (7, 2)]: # p=3 annihilates Hessian; 2 = 3^2 (mod 7) is a square! try: verify_pillar4_prime_exact(bad_p, bad_nu) except ValueError as exc: print(f"Expected rejection for (p={bad_p}, nu={bad_nu}): {exc}")
Additional runnable walkthroughs live in examples/quickstart_demo.py.
| Scope Item | What Is Proved / Verified | What Remains Open / Out of Scope |
|---|---|---|
| Pillar I Universal Constant |
[LEAN-6K], D=(0,2,1), 3,927 leaves, [EXACT-COMP] Rust, 40,740 leaves, |
Residual [OPEN]); .olean. |
| Pillar II Rank-7 Operator Lift | Complete 210-monomial Fano-7 LP duality + weighted operator-reduction theorem + strict necessity + [LEAN-6K]). |
Operator-level pair5 & blossom6 inequalities for general [OPEN]). |
| Pillar III Multi-Block Rank 2 | Exact powerConvex (LinOrdField ([LEAN-6K]); H-002 obstruction for entangled [LEAN-6K]). |
All-$\alpha$ majorization for entangled [OPEN]). |
| Pillar IV Two-Qudit Optimality | Exact Hessian non-degeneracy, purity, [LEAN-6K] / [PAPER-PROOF]). |
Global optimality over all [OPEN]). |
| Zero-Mathlib Complex Bridge | The discrete, ordered-field and finite-field identities used in the stationary-point argument are kernel-checked in zero-Mathlib Lean 4.35.0. | Complex additive characters paper/main.tex ([PAPER-PROOF]) and checked to 80 digits in mpmath ([NUMERICAL]). |
Full analysis in LIMITATIONS.md.
Status: Active (v2.0.0, published 2026-11-27).
INDEX.md— Complete file-by-file repository index and Table of ContentsCLAIMS.md·LIMITATIONS.md·DEVIATIONS.md·ERRATA.md·PREREGISTRATION.mdHARDENING_LOG.md·docs/reviews/·docs/reviews/ten_pass_review.mddocs/statement-fidelity.md·docs/literature-search.md·docs/architecture.md·docs/verification.md·docs/security-scan.md·docs/threat-model.md·docs/run-log.mdCITATION.cff·THIRD_PARTY_NOTICES.md·SECURITY.md
- Code, Lean proofs, scripts, native engines: Apache-2.0
- White paper, figures, documentation, datasets: CC-BY-4.0
- Pinned upstream quantum libraries (
third_party/): MIT (full attributions inTHIRD_PARTY_NOTICES.md)