defwordRep (n d : ℕ) : Representationℂ (Equiv.Perm (Fin n)) (WordSpace n d) where
body · 6
lines
toFun g :=
{ toFun :=fun f a => f (a ∘ g)
map_add' :=by intros; rfl
map_smul' :=by intros; rfl }
map_one' :=by ext f a; rfl
map_mul' g h :=by ext f a; rfl
defcyclic {G : Type uG} {V : Type uV} [GroupG] [AddCommGroupV] [ModuleℂV]
(ρ : RepresentationℂGV) (v : V) : Subrepresentation ρ where
body · 13
lines
toSubmodule :=Submodule.span ℂ (Set.range fun g : G=> ρ g v)
apply_mem_toSubmodule g :=by
intro x hx
induction hx usingSubmodule.span_induction with
| mem x hx =>
obtain ⟨h, rfl⟩ := hx
apply Submodule.subset_span
exact ⟨g * h, by simp only [map_mul, Module.End.mul_apply]⟩
| zero => simp
| add x y hx hy ihx ihy =>
simpa only [map_add] usingSubmodule.add_mem _ ihx ihy
| smul a x hx ih =>
simpa only [map_smul] usingSubmodule.smul_mem _ a ih
cells := ((Finset.range m) ×ˢ (Finset.range m)).filter (fun x => x.1 + x.2 < m)
isLowerSet :=by
intro x y hxy hy
simp only [Finset.mem_coe, Finset.mem_filter, Finset.mem_product,
Finset.mem_range] at hy ⊢
exact ⟨⟨lt_of_le_of_lt hxy.1 hy.1.1, lt_of_le_of_lt hxy.2 hy.1.2⟩,
lt_of_le_of_lt (Nat.add_le_add hxy.1 hxy.2) hy.2⟩