The partial swap of zero is the identity frame
ProvedIntMul.Kappa.R8.Bit.Oppbank.pswQ_zerobitnbformalokintmulkappapswqr8
The rational partial-swap frame of the zero matrix is the identity.
For a square rational matrix of size , the partial swap is the block matrix
reindexed by the standard sum-equivalence . Substituting yields the identity on each diagonal block and zero off the diagonal, hence
Together with and multiplicativity of , this is the evaluation of a stage-one label at a low-code wire: the corresponding frame reduces to the identity.
Formalization Note. Packaged for the R8 frame-algebra chain (lab1_low / ). The proof uses only the published pswQ of Defs4 and does not import QHNet or QHNetRec.
Preamble
import Definitions.Def_IntMul_Kappa_R6_Defs4 import Mathlib set_option autoImplicit false set_option relaxedAutoImplicit false
Formal statement
namespace IntMul.Kappa.R8.Bit.Oppbank
open IntMul.Kappa.R6.Bit.NB
open Matrix
/-- The partial swap of the zero matrix is the identity frame. -/
theorem pswQ_zero {m : ℕ} : pswQ (0 : Matrix (Fin m) (Fin m) ℚ) = 1 := by sorry
end IntMul.Kappa.R8.Bit.Oppbank
Source
IntMul Kappa R8 Bit Oppbank FormalOK: pswQ 0 = 1, used for lab1 at the low code (with Pc_low and redM).