Skip to content

lean_proofs: Norrell reflection, m=1 exact bounds, and m=5,7,8 upper bounds (N, H3, qubit_T) - #194

Merged
vprusso merged 1 commit into
unitaryfoundation:mainfrom
mizopl:feat/lean-proofs-and-galois-descent
Nov 15, 2026
Merged

vprusso merged 1 commit into
unitaryfoundation:mainfrom
mizopl:feat/lean-proofs-and-galois-descent

Conversation

@mizopl

@mizopl mizopl commented Nov 10, 2026

Copy link
Copy Markdown

Summary

This PR extends lean_proofs/LeanProofs/ReflectQutrit.lean and lean_proofs/tools/gen_witness_lean.py to support the Norrell qutrit orbit $|N\rangle = (|0\rangle + |1\rangle - 2|2\rangle)/\sqrt{6}$ (norrellVec, tgtN, norrellVec_eq_ev), imaginary unit $i \in \mathbb{Q}(\omega_9, \sqrt{3})$ in T3, and negative quadratic radicands in CoeffParser, and adds 9 machine-checked Lean 4 proof modules (0 sorryAx) settling all four remaining $m=1$ cells in both directions (= 2) and proving the $m=5, 7, 8$ upper bounds for N, H3, and qubit_T.

To keep Tests / Lean library (LEAN_NUM_THREADS=2, use-mathlib-cache: true) fast and self-contained on fork pull requests, this PR touches only lean_proofs/ (12 files).


1. Reflection Infrastructure (ReflectQutrit.lean & gen_witness_lean.py)

  • LeanProofs/ReflectQutrit.lean (norrellVec_eq_ev): Reflects $|N\rangle^{\otimes m}$ into the integer basis B3 of $\mathbb{Z}[\omega_3, \sqrt{3}]$ by pulling out the scalar $(\sqrt{2}\sqrt{3}/6)^m$, leaving the product of the integer digit factors norZ (${1, 1, -2}$ at digits ${0, 1, 2}$) in the first coordinate (tgtN).
  • lean_proofs/tools/gen_witness_lean.py:
    • Adds orbit == "N" (scalar_inv = (s2 * s3)^m in $\mathbb{Q}(\omega_3, \sqrt{2}, \sqrt{3})$).
    • Adds "I" ($i = (2\omega_9^3 + 1)\sqrt{3}/3$) to make_orbit("T3", m) and "s2" to the intermediate ring of make_orbit("H3", m).
    • Handles negative quadratic radicands ($\sqrt{-x} = i\sqrt{x}$) in CoeffParser.parse and adds 15: "fifteen", 16: "sixteen", 27: "twentyseven" to WORDS.

2. New Machine-Checked Lean 4 Proof Modules (0 sorryAx)

Every theorem below compiles cleanly with LEAN_NUM_THREADS=2 lake build and depends only on standard axioms [propext, Classical.choice, Quot.sound]:

Lean 4 Module Theorem(s) (StabRank.*) Bound File (bounds/*.json) Statement Proved
LeanProofs.QubitHM1StabRank qubit_h_m1_stabRankP_le_two qubit_H-m1-upper-2.json $\chi(|\text{qubit_H}\rangle) \le 2$
LeanProofs.QubitTM1StabRank qubit_t_m1_stabRankP_le_two qubit_T-m1-upper-2.json $\chi(|\text{qubit_T}\rangle) \le 2$
LeanProofs.H3M1StabRank h3_m1_stabRankP_le_two, h3_m1_stabRank_le_two H3-m1-upper-2.json $\chi(|H_3\rangle) \le 2$
LeanProofs.NorrellM1StabRank norrell_m1_stabRankP_le_two, norrell_m1_stabRank_le_two N-m1-upper-2.json $\chi(|N\rangle) \le 2$
LeanProofs.M1Lower qubit_h_m1_stabRankP_gt_one (_eq_two)
qubit_t_m1_stabRankP_gt_one (_eq_two)
h3_m1_stabRank_gt_one (_eq_two)
norrell_m1_stabRank_gt_one (_eq_two)
qubit_H-m1-lower-2.json
qubit_T-m1-lower-2.json
H3-m1-lower-2.json
N-m1-lower-2.json
$\chi > 1$ (via IsStabP.pow_period_eq) and exact equality $\chi = 2$ for all four $m=1$ cells
LeanProofs.NorrellM5StabRank norrell_m5_stabRankP_le_ten, norrell_m5_stabRank_le_ten N-m5-upper-10.json $\chi(|N\rangle^{\otimes 5}) \le 10$ ($\gamma = \log_3(10)/5 = 0.4192$, record Norrell exponent on the board)
LeanProofs.H3M5StabRank h3_m5_stabRankP_le_twelve, h3_m5_stabRank_le_twelve H3-m5-upper-12.json $\chi(|H_3\rangle^{\otimes 5}) \le 12$
LeanProofs.QubitTM7StabRank qubit_t_m7_stabRankP_le_nine qubit_T-m7-upper-9.json $\chi(|\text{qubit_T}\rangle^{\otimes 7}) \le 9$
LeanProofs.QubitTM8StabRank qubit_t_m8_stabRankP_le_nine qubit_T-m8-upper-9.json $\chi(|\text{qubit_T}\rangle^{\otimes 8}) \le 9$ ($\gamma = 0.3962$)

(Once these modules are on main, the 12 corresponding bounds/*.json files listed above can record "lean": {"module": ..., "theorem": ...} and run make lean-certify.)

— autonomously engineered & 3-skeptic verified by Gemini-CLSS (PROOFER v20) on @mizopl's behalf

…7,8 upper bounds

Extends LeanProofs/ReflectQutrit.lean and tools/gen_witness_lean.py to support:
- the Norrell orbit |N> = (|0> + |1> - 2|2>)/sqrt(6) reflected into Z[omega_3, sqrt(3)]
  via scalar (sqrt(2) sqrt(3) / 6)^m and integer digit factors {1, 1, -2} (tgtN, norrellVec_eq_ev),
- imaginary unit I in Q(omega_9, sqrt(3)) for T3 and negative quadratic radicands in CoeffParser,
- rank words 15, 16, 27 in WORDS.

Adds 9 machine-checked Lean 4 modules (0 sorryAx):
- LeanProofs/M1Lower.lean + QubitHM1StabRank, QubitTM1StabRank, H3M1StabRank, NorrellM1StabRank:
  settles all four remaining m=1 cells (qubit_H, qubit_T, H3, N) at stabRank = 2 with both
  upper and lower bounds proved in Lean,
- LeanProofs/NorrellM5StabRank.lean: proves chi(|N>^5) <= 10 (gamma = log_3(10)/5 = 0.4192,
  best known finite-m Norrell exponent on the board),
- LeanProofs/H3M5StabRank.lean: proves chi(|H3>^5) <= 12,
- LeanProofs/QubitTM7StabRank.lean & QubitTM8StabRank.lean: proves chi(|qubit_T>^7) <= 9
  and chi(|qubit_T>^8) <= 9 (gamma = 0.3962).

— autonomously engineered & 3-skeptic verified by Gemini-CLSS (PROOFER v20) on @mizopl's behalf

@vprusso vprusso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Built locally from 6fc15c5 against the pinned Mathlib and printed the axioms of the 16 new theorems: each depends only on propext, Classical.choice, and Quot.sound, with no native_decide and no sorry. The bounds they formalize (N and H3 at m = 5, qubit_T at m = 7 and 8, and the m = 1 cells) are already on the board, so this changes no cell. A follow-up could point those bound files at the modules so the board shows the lean tier. Merging after the Lean job finishes.

@vprusso
vprusso merged commit 6be0c83 into unitaryfoundation:main Nov 15, 2026
5 checks passed
vprusso pushed a commit that referenced this pull request Nov 17, 2026
…produced bounds to verified, and add 22 exact cells

- Wire the 12 bounds formalized in #194 (m=1 lower/upper on qubit_H, qubit_T, H3, N; N-m5-upper-10; H3-m5-upper-12; qubit_T-m7/8-upper-9) to LeanProofs.* with verbatim provenance and intact witnesses/certificates.
- Upgrade all 9 remaining reproduced bounds on main (H3-m4-lower-5, T5-m2..4-lower-5, N-m4-lower-5, S-m5..8-lower-5) to verified (exact: true, 0 float operations, reproduced: 9 -> 0), preserving original provenance and notes.
- Add 22 exact verified lower bounds: CS-m4-lower-5 (4 -> 5 via 4-qubit (I x H)^4 postselection), cat-m2-lower-1 (closing chi(cat_2)=1), qubit_sqrtT-m7..10-lower-6, T3-m4..6-lower-7, H3-m5..6-lower-5, T5-m5-lower-5, N-m5..6-lower-5, and qubit_H/T-m7..10-lower-5.

— we* (PROOFER powered by Gemini + @mizopl)
vprusso added a commit that referenced this pull request Nov 17, 2026
…bounds

bounds, verify_challenge: wire 12 #194 Lean bounds, upgrade last 9 reproduced bounds to verified, and add 22 exact cells
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants