Cartesian word selections extract a matrix block of the selected cardinalities
Provedmme_paired_matrix_cartesian_word_projection_extractionmatrix-multiplicationtensor-restriction
Let be a field and be natural numbers. Take the tensor product of the th powers of the two cyclic orientations of the matrix multiplication tensor . Select arbitrary sets of labels in their respective third-coordinate word bases. Retain exactly the paired basis vectors indexed by . The projected tensor restricts to . This includes empty selections and .
Preamble
import Theorems.Thm_mme_paired_oriented_matrix_power_word_basis_maps import Theorems.Thm_mme_MMObj_rectangle_mask_cardinality_restriction import Definitions.Def_mme_kron_pow_word_reindex import Mathlib.LinearAlgebra.StdBasis open MME MME.DWZComponentRestriction PiTensorProduct Module TensorProduct BigOperators universe u v set_option autoImplicit false
Formal statement
theorem mme_paired_matrix_cartesian_word_projection_extraction
{K : Type u} [Field K] (q N : ℕ)
(keepX : PowIndex (ULift.{u} (Fin 1 × Fin q)) N → Prop)
(keepY : PowIndex (ULift.{u} (Fin q × Fin 1)) N → Prop)
[DecidablePred keepX] [DecidablePred keepY] :
let U := TensorObj.permObj (cyclicPerm.trans cyclicPerm) (MMObj K 1 q 1)
let V := TensorObj.permObj cyclicPerm (MMObj K 1 q 1)
let c := (Pi.basisFun K (Fin 1 × Fin q)).reindex Equiv.ulift.symm
let e := (Pi.basisFun K (Fin q × Fin 1)).reindex Equiv.ulift.symm
let B := (kronPowModeBasis U 2 c N).tensorProduct (kronPowModeBasis V 2 e N)
let source := (U.kronPow N).kron (V.kronPow N)
let P : ∀ i, source.V i →ₗ[K] source.V i :=
Function.update (fun _ ↦ LinearMap.id) 2
(B.constr K (fun w ↦ if keepX w.1 ∧ keepY w.2 then B w else 0))
TensorObj.Restrict
(MMObj K (Fintype.card {x // keepX x}) 1 (Fintype.card {y // keepY y}))
{ source with t := PiTensorProduct.map P source.t } := by sorrySource
Composition of word-basis-preserving matrix flattening with a rectangular coordinate restriction.