math / data /lean /OAI /Probability /BinarySweep /YoungTheory /CoinductionTools.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
7.43 kB
import Mathlib
namespace OAI
noncomputable section
section
open scoped BigOperators Classical
namespace BinaryCoordinateSweeps.Irrep
open Representation
variable {G H V W : Type*} [Group G] [Group H]
[AddCommMonoid V] [Module β„‚ V] [AddCommMonoid W] [Module β„‚ W]
(Ο† : H β†’* G) (ρ : Representation β„‚ G V) (Οƒ : Representation β„‚ H W)
def toCoind (f : IntertwiningMap (ρ.comp Ο†) Οƒ) : IntertwiningMap ρ (coind Ο† Οƒ) where
toLinearMap := {
toFun := fun v => ⟨fun g => f (ρ g v), by
intro h g
change f (ρ (Ο† h * g) v) = Οƒ h (f (ρ g v))
rw [map_mul,Module.End.mul_apply]
exact IntertwiningMap.isIntertwining _ _ f h (ρ g v)⟩
map_add' := by intro a b; ext g; simp only [map_add]; rfl
map_smul' := by intro c a; ext g; simp only [map_smul]; rfl }
isIntertwining' a := by
ext v g
change f (ρ g (ρ a v)) = f (ρ (g*a) v)
rw [map_mul,Module.End.mul_apply]
def fromCoind (f : IntertwiningMap ρ (coind Ο† Οƒ)) : IntertwiningMap (ρ.comp Ο†) Οƒ where
toLinearMap := {
toFun := fun v => (f v).val 1
map_add' := by intros; simp only [map_add]; rfl
map_smul' := by intros; simp only [map_smul]; rfl }
isIntertwining' h := by
ext v
have he := congrArg (fun u : coindV Ο† Οƒ => u.val 1)
(IntertwiningMap.isIntertwining _ _ f (Ο† h) v)
change (f (ρ (Ο† h) v)).val 1 = Οƒ h ((f v).val 1)
rw [he]
change (f v).val (1*Ο† h) = _
simpa only [one_mul,mul_one] using (f v).property h 1
def coindHomEquiv : IntertwiningMap (ρ.comp Ο†) Οƒ ≃ₗ[β„‚] IntertwiningMap ρ (coind Ο† Οƒ) where
toFun := toCoind Ο† ρ Οƒ
invFun := fromCoind Ο† ρ Οƒ
left_inv f := by ext v; change f (ρ 1 v) = f v; simp
right_inv f := by
ext v g
change (f (ρ g v)).val 1 = (f v).val g
rw [IntertwiningMap.isIntertwining]
change (f v).val (1*g) = _
rw [one_mul]
map_add' a b := by ext v g; rfl
map_smul' c a := by ext v g; rfl
variable [Fintype G] [Fintype H] [Module.Finite β„‚ V] [Module.Finite β„‚ W]
lemma multiplicity_symm (Οƒ : Representation β„‚ G W) :
Module.finrank β„‚ (IntertwiningMap ρ Οƒ) = Module.finrank β„‚ (IntertwiningMap Οƒ ρ) := by
let : AddCommGroup V := Module.addCommMonoidToAddCommGroup β„‚
let : AddCommGroup W := Module.addCommMonoidToAddCommGroup β„‚
let : Invertible (Nat.card G : β„‚) := invertibleOfNonzero (by exact_mod_cast Nat.card_pos.ne')
have h₁ := card_inv_mul_sum_char_mul_char_eq_finrank ρ Οƒ
have hβ‚‚ := card_inv_mul_sum_char_mul_char_eq_finrank Οƒ ρ
have he : βˆ‘ g : G, Οƒ.character g * ρ.character g⁻¹ =
βˆ‘ g : G, ρ.character g * Οƒ.character g⁻¹ := by
rw [← Equiv.sum_comp (Equiv.inv G) (fun g => ρ.character g * Οƒ.character g⁻¹)]
simp only [Equiv.inv_apply,inv_inv,mul_comm]
apply Nat.cast_injective (R := β„‚)
exact h₁.symm.trans ((congrArg (fun z : β„‚ => (Nat.card G : β„‚)⁻¹*z) he).trans hβ‚‚)
def coindEvaluation {I : Type*} (r : I β†’ G) : coindV Ο† Οƒ β†’β‚—[β„‚] (I β†’ W) where
toFun := fun f i => f.val (r i)
map_add' := by intros; rfl
map_smul' := by intros; rfl
omit [Fintype G] [Fintype H] [Module.Finite β„‚ W] in
lemma coindEvaluation_injective {I : Type*} (r : I β†’ G)
(hr : βˆ€ g : G, βˆƒ h : H, βˆƒ i : I, g = Ο† h * r i) :
Function.Injective (coindEvaluation Ο† Οƒ r) := by
intro f a he
apply Subtype.ext
funext g
obtain ⟨h,i,rfl⟩ := hr g
rw [f.property,a.property]
exact congrArg (Οƒ h) (congrFun he i)
omit [Fintype G] [Fintype H] in
lemma coind_finrank_le {I : Type*} [Fintype I] (r : I β†’ G)
(hr : βˆ€ g : G, βˆƒ h : H, βˆƒ i : I, g = Ο† h * r i) :
Module.finrank β„‚ (coindV Ο† Οƒ) ≀ Fintype.card I * Module.finrank β„‚ W := by
let : AddCommGroup W := Module.addCommMonoidToAddCommGroup β„‚
simpa only [Module.finrank_pi_fintype,Finset.sum_const,Finset.card_univ,smul_eq_mul] using
(LinearMap.finrank_le_finrank_of_injective (coindEvaluation_injective Ο† Οƒ r hr))
end BinaryCoordinateSweeps.Irrep
end
open scoped BigOperators Classical
namespace BinaryCoordinateSweeps.Irrep
open Representation Equiv Equiv.Perm
variable {A B X : Type*} [Fintype A] [Fintype B] [Fintype X]
(e : A βŠ• B ≃ X)
def blockPerm : Equiv.Perm A β†’* Equiv.Perm X :=
e.permCongrHom.toMonoidHom.comp ((sumCongrHom A B).comp (MonoidHom.inl _ _))
omit [Fintype A] [Fintype B] [Fintype X] in
lemma blockPerm_inr (a : Equiv.Perm A) (b : B) :
blockPerm e a (e (Sum.inr b)) = e (Sum.inr b) := by
change e (Equiv.sumCongr a (1:Equiv.Perm B) (e.symm (e (Sum.inr b)))) = _
rw [e.symm_apply_apply]
rfl
omit [Fintype X] in
lemma blockPerm_of_fixed (g : Equiv.Perm X) (hg : βˆ€ b, g (e (Sum.inr b)) = e (Sum.inr b)) :
βˆƒ a : Equiv.Perm A, blockPerm e a = g := by
let d := e.symm.permCongr g
have hd (b : B) : d (Sum.inr b) = Sum.inr b := by
change e.symm (g (e (Sum.inr b))) = _
rw [hg,e.symm_apply_apply]
have hh : d ∈ (sumCongrHom A B).range := by
apply mem_sumCongrHom_range_of_perm_mapsTo_inl
apply (perm_mapsTo_inl_iff_mapsTo_inr d).mpr
rintro y ⟨b,rfl⟩
exact ⟨b,(hd b).symm⟩
obtain ⟨⟨a,b⟩,hab⟩ := hh
have hb : b = 1 := by
ext x
have hx := Equiv.congr_fun hab (Sum.inr x)
rw [hd] at hx
exact Sum.inr_injective hx
subst b
refine ⟨a,?_⟩
change e.permCongr ((sumCongrHom A B) (a,1)) = g
have he := congrArg e.permCongr hab
simpa only [d,← Equiv.permCongr_symm,Equiv.apply_symm_apply] using he
def basePlacement : B β†ͺ X := ⟨fun b => e (Sum.inr b), e.injective.comp Sum.inr_injective⟩
omit [Fintype A] [Fintype X] in
lemma placement_extension (x : B β†ͺ X) : βˆƒ g : Equiv.Perm X, βˆ€ b, g (basePlacement e b) = x b :=
Equiv.Perm.exists_extending_pair (basePlacement e) x (basePlacement e).injective x.injective
def placementSection (x : B β†ͺ X) : Equiv.Perm X := (placement_extension e x).choose
omit [Fintype A] [Fintype X] in
lemma placementSection_apply (x : B β†ͺ X) (b : B) :
placementSection e x (basePlacement e b) = x b := (placement_extension e x).choose_spec b
omit [Fintype X] in
lemma placementSection_covers (g : Equiv.Perm X) :
βˆƒ a : Equiv.Perm A, βˆƒ x : B β†ͺ X, g = blockPerm e a * (placementSection e x)⁻¹ := by
let x : B β†ͺ X := (basePlacement e).trans g.symm.toEmbedding
have hx : βˆ€ b, (g*placementSection e x) (e (Sum.inr b)) = e (Sum.inr b) := by
intro b
change g (placementSection e x (basePlacement e b)) = _
rw [placementSection_apply]
exact g.apply_symm_apply _
obtain ⟨a,ha⟩ := blockPerm_of_fixed e (g*placementSection e x) hx
exact ⟨a,x,by rw [ha,mul_inv_cancel_right]⟩
variable {W : Type*} [AddCommMonoid W] [Module β„‚ W] [Module.Finite β„‚ W]
(Οƒ : Representation β„‚ (Equiv.Perm A) W)
theorem placement_coind_finrank :
Module.finrank β„‚ (coindV (blockPerm e) Οƒ) ≀
Fintype.card (B β†ͺ X) * Module.finrank β„‚ W :=
coind_finrank_le (blockPerm e) Οƒ (fun x => (placementSection e x)⁻¹)
(placementSection_covers e)
theorem placement_coind_finrank_pow :
Module.finrank β„‚ (coindV (blockPerm e) Οƒ) ≀
(Fintype.card X)^(Fintype.card B) * Module.finrank β„‚ W := by
apply (placement_coind_finrank e Οƒ).trans
apply Nat.mul_le_mul_right
simpa only [Fintype.card_fun] using
Fintype.card_le_of_injective (fun x : B β†ͺ X => (x : B β†’ X)) DFunLike.coe_injective
end BinaryCoordinateSweeps.Irrep
end
end OAI