math / data /lean /OAI /LinearAlgebra /MatrixFields /Construction /CompleteWordPair.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.15 kB
import Mathlib
namespace OAI
namespace MatrixAllFields
open scoped BigOperators Topology Polynomial
namespace MatrixMultiplication.PermutationMatching
variable {C : Type*} {P X Y : C β†’ Type*}
structure CompleteWordPair (P X Y : C β†’ Type*) where
left : βˆ€ c, P c β†’ X c
right : βˆ€ c, P c β†’ Y c
abbrev HalfClassPermutations (P : C β†’ Type*) :=
(βˆ€ c, Equiv.Perm (P c)) Γ— (βˆ€ c, Equiv.Perm (P c))
instance completeWordPairMulAction :
MulAction (HalfClassPermutations P) (CompleteWordPair P X Y) where
smul g w :=
{ left := fun c i => w.left c ((g.1 c).symm i)
right := fun c i => w.right c ((g.2 c).symm i) }
one_smul w := by cases w; rfl
mul_smul g h w := rfl
@[simp] theorem smul_completeWordPair_left (g : HalfClassPermutations P)
(w : CompleteWordPair P X Y) (c : C) (i : P c) :
(g β€’ w).left c i = w.left c ((g.1 c).symm i) := rfl
@[simp] theorem smul_completeWordPair_right (g : HalfClassPermutations P)
(w : CompleteWordPair P X Y) (c : C) (i : P c) :
(g β€’ w).right c i = w.right c ((g.2 c).symm i) := rfl
end MatrixMultiplication.PermutationMatching
end MatrixAllFields
end OAI