Composition of partial swaps is again a partial swap
ProvedIntMul.Kappa.R8.Bit.Oppbank.pswQ_mulComposition of partial swaps
Let be a natural number and let be rational matrices. Write for the partial swap attached to a parameter , namely the block matrix
acting on the doubled frame (the precise Lean representative is this block matrix, reindexed by the standard equivalence ).
The composition of two partial swaps is again a partial swap, with parameter equal to the Brauer–Weyl (or Temperley–Lieb) combination of the two factors:
This identity is the rational-matrix form of edge composition in the flag-basis network: it is what lets a stage frame be transported along a move whose edge projector is a difference . The statement is over and does not depend on the densified code bound or on the packs and .
Formalization Note. The constant is pswQ from the published Defs4 pack, submitted in the R8 FormalOK environment as IntMul.Kappa.R8.Bit.Oppbank.pswQ_mul. No QHNet or QHNetRec import.
import Definitions.Def_IntMul_Kappa_R6_Defs4 import Mathlib set_option autoImplicit false set_option relaxedAutoImplicit false
namespace IntMul.Kappa.R8.Bit.Oppbank
open IntMul.Kappa.R6.Bit.NB
open Matrix
/-- Composition of partial swaps is the partial swap of the Brauer–Weyl combination. -/
theorem pswQ_mul {m : ℕ} (p p' : Matrix (Fin m) (Fin m) ℚ) :
pswQ p * pswQ p' = pswQ (p + p' - 2 * (p * p')) := by sorry
end IntMul.Kappa.R8.Bit.Oppbank