The stage-one word is well-formed on (QHNetRec)
ProvedIntMul.Kappa.R8.Bit.Oppbank.W1F_WFw_recThe stage-one instruction word of the total-decoder opp-bank network is well-formed on the local domain .
Fix the QHNetRec local layout, with . Write for the stage-one word (the concatenation of the mix, scatter, inject, copy, GREC-block, target-copy, and sweep segments). Each local instruction comprises a target code, a list of touched wires , and a list of XOR pairs . The claim is that every such instruction is well-formed on :
The first conjunct is the already-proved wire bound : every local wire mentioned by (in the touch list or as an XOR endpoint) is strictly less than . The second conjunct is by construction of the instruction builders. Every non-sweep segment is assembled by the constructor , which sets the XOR list equal to and the touch list equal to the flattened endpoints of , so both endpoints of every pair automatically lie among the touched wires. Sweep instructions carry an empty XOR list, so the second conjunct holds vacuously. The argument proceeds by splitting along its concatenations and applying this observation to each segment.
This is precisely the well-formedness hypothesis required by the already-proved lemma on the domain . It does not assert that labels are identically , nor does it include a code-bound or certificate (those belong to /).
Formalization Note. This is a QHNetRec fact (d127abea-7380-4a49-9c5c-c2103f068243). The proof imports only the published theorem net0O2_W1F_wires_lt_NL_rec (5baf9cfc) together with QHNetRec and Defs4; it does not import the old QHNet, and it is not the (false) constant-label claim.
import Definitions.Def_IntMul_Kappa_R6_Defs4 import Definitions.Def_IntMul_Kappa_R8_Data_BitOppbankQHNetRec import Mathlib set_option autoImplicit false set_option relaxedAutoImplicit false set_option maxRecDepth 100000
namespace IntMul.Kappa.R8.Bit.Oppbank
open IntMul.Kappa.R8.Bit.Oppbank.NB
open IntMul.Kappa.R8.Bit.Oppbank (NL)
/-- The stage-one word `W1F` is well-formed on the domain `(· < NL)` (QHNetRec):
every touched local wire is `< NL`, and every XOR pair lies among those wires. -/
theorem W1F_WFw_rec :
∀ i ∈ W1F,
(∀ w ∈ i.2.1, w < NL) ∧ ∀ p ∈ i.2.2, p.1 ∈ i.2.1 ∧ p.2 ∈ i.2.1 := by sorry
end IntMul.Kappa.R8.Bit.Oppbank