Download data/lean/OAI/Probability/BinarySweep/YoungTheory/CoinductionTools.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 7.43 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/BinarySweep/YoungTheory/CoinductionTools.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/BinarySweep/YoungTheory/CoinductionTools.lean
-
curl -L -o CoinductionTools.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/BinarySweep/YoungTheory/CoinductionTools.lean
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 | |