Buckets:
| import Mathlib | |
| import OAI.Probability.ThorpRouting.Harmonic.ModifiedRoutingMoment | |
| namespace OAI | |
| namespace ThorpNine.Harmonic | |
| namespace Thorp | |
| noncomputable def modifiedReverseCoins (L : ℕ) : (r : ℕ) → ModifiedCoins L r → ModifiedCoins L r | |
| | 0, ω => ((fun u => butterflyPerm L (decodeButterfly L ω.2.1) * (ω.1 u)⁻¹ * | |
| butterflyPerm L (decodeButterfly L ω.2.1)),ω.2) | |
| | r+1, ω => | |
| let z := modifiedStepEquiv L r ω | |
| (modifiedStepEquiv L r).symm | |
| ((modifiedReverseCoins L r z.1.1,modifiedReverseCoins L r z.1.2),(z.2.2,z.2.1)) | |
| lemma modifiedReverseCoins_involutive (L r : ℕ) : | |
| Function.Involutive (modifiedReverseCoins L r) := by | |
| induction r with | |
| | zero => | |
| intro ω | |
| apply Prod.ext | |
| · funext u | |
| simp only [modifiedReverseCoins,mul_inv_rev,inv_inv] | |
| simp [mul_assoc] | |
| · rfl | |
| | succ r ih => | |
| change ∀ ω, modifiedReverseCoins L r (modifiedReverseCoins L r ω) = ω at ih | |
| intro ω | |
| simp only [modifiedReverseCoins,Equiv.apply_symm_apply,ih] | |
| exact (modifiedStepEquiv L r).symm_apply_apply ω | |
| noncomputable def modifiedReverseEquiv (L r : ℕ) : Equiv.Perm (ModifiedCoins L r) where | |
| toFun := modifiedReverseCoins L r | |
| invFun := modifiedReverseCoins L r | |
| left_inv := modifiedReverseCoins_involutive L r | |
| right_inv := modifiedReverseCoins_involutive L r | |
| lemma modifiedPerm_reverse (L r : ℕ) (E : Finset (Card r)) (ω : ModifiedCoins L r) : | |
| modifiedPerm L r E (modifiedReverseCoins L r ω) = (modifiedPerm L r E ω)⁻¹ := by | |
| induction r with | |
| | zero => | |
| rw [modifiedPerm_zero,modifiedPerm_zero] | |
| split_ifs | |
| · simp only [inv_one] | |
| · simp only [modifiedReverseCoins,mul_inv_rev,inv_inv] | |
| simp | |
| | succ r ih => | |
| obtain ⟨z,rfl⟩ := (modifiedStepEquiv L r).symm.surjective ω | |
| rcases z with ⟨⟨ω₀,ω₁⟩,⟨ξ,η⟩⟩ | |
| simp only [modifiedReverseCoins,Equiv.apply_symm_apply,modifiedPerm_step, | |
| mul_inv_rev,pairSwitch_inv,childLift_inv] | |
| rw [mul_assoc] | |
| congr 1 | |
| congr 1 | |
| apply congrArg childLift | |
| funext b | |
| cases b <;> simp only [Bool.false_eq_true,↓reduceIte,ih] | |
| lemma modified_kernel_symmetric (L r : ℕ) (E : Finset (Card r)) | |
| {ι : Type*} [Fintype ι] (e f : ι ↪ Card (L+r)) : | |
| PairRouting.tupleProbability (modifiedPerm L r E) e f = | |
| PairRouting.tupleProbability (modifiedPerm L r E) f e := | |
| PairRouting.tupleProbability_symmetric _ (modifiedReverseEquiv L r) | |
| (modifiedPerm_reverse L r E) e f | |
| end Thorp | |
| namespace Thorp.Specht | |
| open scoped BigOperators Classical | |
| @[simp] lemma card_cell (μ : YoungDiagram) : Fintype.card (Cell μ) = μ.card := by | |
| simp [Cell, YoungDiagram.card] | |
| noncomputable def columnEquiv (μ : YoungDiagram) (j : ℕ) : | |
| {x : Cell μ // col x = j} ≃ Fin (μ.colLen j) where | |
| toFun x := ⟨row x.1, by simpa [x.2] using row_lt_colLen x.1⟩ | |
| invFun i := ⟨⟨(i,j), YoungDiagram.mem_iff_lt_colLen.mpr i.2⟩, rfl⟩ | |
| left_inv x := by apply Subtype.ext; apply Subtype.ext; exact Prod.ext rfl x.2.symm | |
| right_inv i := by rfl | |
| noncomputable def columnValues {μ : YoungDiagram} (f : Cell μ → ℕ) (j : ℕ) : Finset ℕ := | |
| (Finset.univ.filter (fun x => col x = j)).image f | |
| lemma mem_columnValues {μ : YoungDiagram} (f : Cell μ → ℕ) (x : Cell μ) : | |
| f x ∈ columnValues f (col x) := by | |
| classical | |
| exact Finset.mem_image.mpr ⟨x, by simp, rfl⟩ | |
| lemma card_columnValues {μ : YoungDiagram} (f : Cell μ → ℕ) | |
| (hf : ∀ x y, col x = col y → f x = f y → x = y) (j : ℕ) : | |
| (columnValues f j).card = μ.colLen j := by | |
| classical | |
| rw [columnValues, Finset.card_image_iff.mpr] | |
| · rw [← Fintype.card_subtype] | |
| exact Fintype.card_congr (columnEquiv μ j) |>.trans (Fintype.card_fin _) | |
| intro x hx y hy he | |
| exact hf x y ((Finset.mem_filter.mp hx).2.trans (Finset.mem_filter.mp hy).2.symm) he | |
| lemma strictMono_fin_nat_ge {n : ℕ} (f : Fin n → ℕ) (hf : StrictMono f) : | |
| ∀ i, i.val ≤ f i := by | |
| intro i | |
| induction h : i.val using Nat.strong_induction_on generalizing i with | |
| | h n ih => | |
| by_cases hn : n = 0 | |
| · omega | |
| · have hn' : n-1 < i.val := by omega | |
| let j : Fin _ := ⟨n-1, hn'.trans i.isLt⟩ | |
| have hj := ih (n-1) (by omega) j rfl | |
| have hij := hf (show j < i from hn') | |
| dsimp [j] at hj hij | |
| omega | |
| noncomputable def rankCell {μ : YoungDiagram} (f : Cell μ → ℕ) | |
| (hf : ∀ x y, col x = col y → f x = f y → x = y) (x : Cell μ) : Cell μ := | |
| let k := ((columnValues f (col x)).orderIsoOfFin (card_columnValues f hf (col x))).symm | |
| ⟨f x, mem_columnValues f x⟩ | |
| ⟨(k.val,col x), YoungDiagram.mem_iff_lt_colLen.mpr k.isLt⟩ | |
| @[simp] lemma rankCell_col {μ : YoungDiagram} (f : Cell μ → ℕ) | |
| (hf : ∀ x y, col x = col y → f x = f y → x = y) (x : Cell μ) : | |
| col (rankCell f hf x) = col x := rfl | |
| lemma rankCell_orderEmb {μ : YoungDiagram} (f : Cell μ → ℕ) | |
| (hf : ∀ x y, col x = col y → f x = f y → x = y) (x : Cell μ) : | |
| (columnValues f (col x)).orderEmbOfFin (card_columnValues f hf (col x)) | |
| ⟨row (rankCell f hf x), row_lt_colLen (rankCell f hf x)⟩ = f x := by | |
| change ((columnValues f (col x)).orderIsoOfFin (card_columnValues f hf (col x)) | |
| (((columnValues f (col x)).orderIsoOfFin (card_columnValues f hf (col x))).symm | |
| ⟨f x, mem_columnValues f x⟩)).val = f x | |
| simp | |
| lemma rankCell_injective {μ : YoungDiagram} (f : Cell μ → ℕ) | |
| (hf : ∀ x y, col x = col y → f x = f y → x = y) : | |
| Function.Injective (rankCell f hf) := by | |
| intro x y h | |
| have hc : col x = col y := by simpa only [rankCell_col] using congrArg (fun z : Cell μ => col z) h | |
| apply hf x y hc | |
| have hx := rankCell_orderEmb f hf x | |
| have hy := rankCell_orderEmb f hf y | |
| change (columnValues f (col (rankCell f hf x))).orderEmbOfFin | |
| (card_columnValues f hf (col (rankCell f hf x))) | |
| ⟨row (rankCell f hf x), row_lt_colLen (rankCell f hf x)⟩ = f x at hx | |
| rw [h] at hx | |
| exact hx.symm.trans hy | |
| noncomputable def rankPerm {μ : YoungDiagram} (f : Cell μ → ℕ) | |
| (hf : ∀ x y, col x = col y → f x = f y → x = y) : Equiv.Perm (Cell μ) := | |
| Equiv.ofBijective (rankCell f hf) ((Finite.injective_iff_bijective).mp (rankCell_injective f hf)) | |
| lemma rankCell_row_le {μ : YoungDiagram} (f : Cell μ → ℕ) | |
| (hf : ∀ x y, col x = col y → f x = f y → x = y) (x : Cell μ) : | |
| row (rankCell f hf x) ≤ f x := by | |
| rw [←rankCell_orderEmb f hf x] | |
| exact strictMono_fin_nat_ge _ (OrderEmbedding.strictMono _) _ | |
| theorem column_transporter (μ : YoungDiagram) (p : Equiv.Perm (Cell μ)) | |
| (hp : ∀ x y, col x = col y → row (p x) = row (p y) → x = y) : | |
| ∃ c : Equiv.Perm (Cell μ), (∀ x, col (c x) = col x) ∧ | |
| ∀ x, row (c x) = row (p x) := by | |
| classical | |
| let c := rankPerm (fun x => row (p x)) hp | |
| refine ⟨c, fun x => rfl, ?_⟩ | |
| have hle (x : Cell μ) : row (c x) ≤ row (p x) := rankCell_row_le _ hp x | |
| have hsum : ∑ x, row (c x) = ∑ x, row (p x) := by | |
| rw [Equiv.sum_comp, Equiv.sum_comp] | |
| exact fun x => (Finset.sum_eq_sum_iff_of_le (fun x _ => hle x)).mp hsum x (Finset.mem_univ _) | |
| @[simp] lemma tabloidAct_inv {μ : YoungDiagram} (p : Equiv.Perm (Cell μ)) : | |
| tabloidAct p⁻¹ = (tabloidAct p)⁻¹ := by | |
| ext f x | |
| simp [tabloidAct,Equiv.Perm.inv_def] | |
| @[simp] lemma tabloidRep_apply {μ : YoungDiagram} (p : Equiv.Perm (Cell μ)) | |
| (v : Tabloid μ → ℂ) (f : Tabloid μ) : tabloidRep μ p v f = v (tabloidAct p⁻¹ f) := rfl | |
| lemma tabloidRep_delta {μ : YoungDiagram} (p : Equiv.Perm (Cell μ)) (f : Tabloid μ) : | |
| tabloidRep μ p (delta f) = delta (tabloidAct p f) := by | |
| classical | |
| ext g | |
| simp only [tabloidRep_apply,delta,Equiv.Perm.inv_def] | |
| congr 1 | |
| exact propext (Equiv.symm_apply_eq (tabloidAct p)) | |
| @[simp] lemma mem_colGroup {μ : YoungDiagram} (p : Equiv.Perm (Cell μ)) : | |
| p ∈ colGroup μ ↔ ∀ x, col (p x) = col x := Iff.rfl | |
| lemma colGroup_row_stabilizer {μ : YoungDiagram} (c : colGroup μ) | |
| (hc : tabloidAct c (baseTabloid μ) = baseTabloid μ) : (c : Equiv.Perm (Cell μ)) = 1 := by | |
| apply Equiv.ext | |
| intro x | |
| have hr := congrArg (fun f : Tabloid μ => ((f.1 ((c : Equiv.Perm _) x)) : ℕ)) hc | |
| simp only [tabloidAct_apply,Equiv.Perm.inv_def,Equiv.symm_apply_apply,baseTabloid,rowIndex] at hr | |
| apply Subtype.ext | |
| exact Prod.ext hr.symm (c.2 x) | |
| lemma tabloid_column_transporter {μ : YoungDiagram} (f : Tabloid μ) | |
| (hf : ∀ x y, col x = col y → f.1 x = f.1 y → x = y) : | |
| ∃ c : colGroup μ, f = tabloidAct c (baseTabloid μ) := by | |
| obtain ⟨p,hp⟩ := f.2 | |
| have hp' : ∀ x y, col x = col y → row (p x) = row (p y) → x = y := by | |
| intro x y hcol hrow | |
| apply hf x y hcol | |
| rw [hp] | |
| exact Fin.ext hrow | |
| obtain ⟨c,hcol,hrow⟩ := column_transporter μ p hp' | |
| refine ⟨⟨c⁻¹, (colGroup μ).inv_mem hcol⟩, ?_⟩ | |
| apply Subtype.ext | |
| funext x | |
| apply Fin.ext | |
| simp only [tabloidAct_apply,baseTabloid,rowIndex,inv_inv,hp,Function.comp_apply] | |
| exact (hrow x).symm | |
| @[simp] lemma permSign_one {α : Type*} [Fintype α] [DecidableEq α] : | |
| permSign (1 : Equiv.Perm α) = 1 := by simp [permSign] | |
| @[simp] lemma permSign_mul {α : Type*} [Fintype α] [DecidableEq α] (p q : Equiv.Perm α) : | |
| permSign (p*q) = permSign p * permSign q := by simp [permSign] | |
| @[simp] lemma permSign_inv {α : Type*} [Fintype α] [DecidableEq α] (p : Equiv.Perm α) : | |
| permSign p⁻¹ = permSign p := by simp [permSign,Equiv.Perm.inv_def] | |
| lemma permSign_sq {α : Type*} [Fintype α] [DecidableEq α] (p : Equiv.Perm α) : | |
| permSign p * permSign p = 1 := by | |
| calc | |
| permSign p * permSign p = permSign (p*p⁻¹) := by rw [permSign_mul,permSign_inv] | |
| _ = 1 := by simp | |
| @[simp] lemma permSign_swap {α : Type*} [Fintype α] [DecidableEq α] {x y : α} (h : x ≠ y) : | |
| permSign (Equiv.swap x y) = -1 := by simp [permSign, h] | |
| @[simp] lemma conj_permSign {α : Type*} [Fintype α] [DecidableEq α] (p : Equiv.Perm α) : | |
| starRingEnd ℂ (permSign p) = permSign p := by simp [permSign] | |
| variable {α V : Type*} [Fintype α] [DecidableEq α] [AddCommGroup V] [Module ℂ V] | |
| lemma alternator_mul (C : Subgroup (Equiv.Perm α)) | |
| (ρ : Representation ℂ (Equiv.Perm α) V) (c : C) : | |
| alternator C ρ * ρ c = permSign (c : Equiv.Perm α) • alternator C ρ := by | |
| classical | |
| rw [alternator,Finset.sum_mul,Finset.smul_sum] | |
| apply Fintype.sum_equiv (Equiv.mulRight c) | |
| intro a | |
| simp only [smul_mul_assoc,←map_mul,Equiv.coe_mulRight,Subgroup.coe_mul,permSign_mul,smul_smul] | |
| congr 1 | |
| have h := permSign_sq (c : Equiv.Perm α) | |
| calc | |
| permSign (a : Equiv.Perm α) = permSign (a : Equiv.Perm α)*1 := by ring | |
| _ = permSign (a : Equiv.Perm α)*(permSign (c : Equiv.Perm α)*permSign (c : Equiv.Perm α)) := by rw [h] | |
| _ = _ := by ring | |
| lemma mul_alternator (C : Subgroup (Equiv.Perm α)) | |
| (ρ : Representation ℂ (Equiv.Perm α) V) (c : C) : | |
| ρ c * alternator C ρ = permSign (c : Equiv.Perm α) • alternator C ρ := by | |
| classical | |
| rw [alternator,Finset.mul_sum,Finset.smul_sum] | |
| apply Fintype.sum_equiv (Equiv.mulLeft c) | |
| intro a | |
| simp only [mul_smul_comm,←map_mul,Equiv.coe_mulLeft,Subgroup.coe_mul,permSign_mul,smul_smul] | |
| congr 1 | |
| have h := permSign_sq (c : Equiv.Perm α) | |
| calc | |
| permSign (a : Equiv.Perm α) = 1*permSign (a : Equiv.Perm α) := by ring | |
| _ = (permSign (c : Equiv.Perm α)*permSign (c : Equiv.Perm α))*permSign (a : Equiv.Perm α) := by rw [h] | |
| _ = _ := by ring | |
| lemma alternator_apply_action (C : Subgroup (Equiv.Perm α)) | |
| (ρ : Representation ℂ (Equiv.Perm α) V) (c : C) (v : V) : | |
| alternator C ρ (ρ c v) = permSign (c : Equiv.Perm α) • alternator C ρ v := by | |
| exact congrArg (fun T : Module.End ℂ V => T v) (alternator_mul C ρ c) | |
| lemma action_alternator_apply (C : Subgroup (Equiv.Perm α)) | |
| (ρ : Representation ℂ (Equiv.Perm α) V) (c : C) (v : V) : | |
| ρ c (alternator C ρ v) = permSign (c : Equiv.Perm α) • alternator C ρ v := by | |
| exact congrArg (fun T : Module.End ℂ V => T v) (mul_alternator C ρ c) | |
| lemma alternator_eq_zero_of_odd_stabilizer (C : Subgroup (Equiv.Perm α)) | |
| (ρ : Representation ℂ (Equiv.Perm α) V) (c : C) (v : V) | |
| (hc : permSign (c : Equiv.Perm α) = -1) (hv : ρ c v = v) : | |
| alternator C ρ v = 0 := by | |
| have h := alternator_apply_action C ρ c v | |
| rw [hv,hc,neg_one_smul] at h | |
| have h2 : (2:ℂ) • alternator C ρ v = 0 := by | |
| rw [two_smul] | |
| nth_rw 1 [h] | |
| exact neg_add_cancel _ | |
| exact (smul_eq_zero.mp h2).resolve_left (by norm_num) | |
| end Thorp.Specht | |
| namespace Thorp.Specht | |
| open scoped BigOperators Classical | |
| lemma swap_mem_colGroup {μ : YoungDiagram} (x y : Cell μ) (hc : col x = col y) : | |
| Equiv.swap x y ∈ colGroup μ := by | |
| classical | |
| intro z | |
| by_cases hx : z=x | |
| · subst z; simpa using hc.symm | |
| by_cases hy : z=y | |
| · subst z; simpa using hc | |
| simp [Equiv.swap_apply_of_ne_of_ne hx hy] | |
| lemma swap_fixes_tabloid {μ : YoungDiagram} (f : Tabloid μ) (x y : Cell μ) | |
| (hxy : f.1 x = f.1 y) : tabloidAct (Equiv.swap x y) f = f := by | |
| classical | |
| apply Subtype.ext | |
| funext z | |
| simp only [tabloidAct_apply, Equiv.swap_inv] | |
| by_cases hx : z=x | |
| · subst z; simpa using hxy.symm | |
| by_cases hy : z=y | |
| · subst z; simpa using hxy | |
| simp [Equiv.swap_apply_of_ne_of_ne hx hy] | |
| lemma alternator_delta_rank_one {μ : YoungDiagram} (f : Tabloid μ) : | |
| ∃ z : ℂ, alternator (colGroup μ) (tabloidRep μ) (delta f) = z • polytabloid μ := by | |
| classical | |
| by_cases hf : ∀ x y, col x = col y → f.1 x = f.1 y → x = y | |
| · obtain ⟨c,rfl⟩ := tabloid_column_transporter f hf | |
| refine ⟨permSign (c:Equiv.Perm (Cell μ)), ?_⟩ | |
| rw [←tabloidRep_delta] | |
| exact alternator_apply_action _ _ c _ | |
| · push Not at hf | |
| obtain ⟨x,y,hcol,hrow,hne⟩ := hf | |
| refine ⟨0, ?_⟩ | |
| rw [zero_smul] | |
| apply alternator_eq_zero_of_odd_stabilizer _ _ ⟨Equiv.swap x y,swap_mem_colGroup x y hcol⟩ | |
| · exact permSign_swap hne | |
| · rw [tabloidRep_delta,swap_fixes_tabloid f x y hrow] | |
| lemma polytabloid_formula (μ : YoungDiagram) : | |
| polytabloid μ = ∑ c : colGroup μ, permSign (c:Equiv.Perm (Cell μ)) • | |
| delta (tabloidAct c (baseTabloid μ)) := by | |
| classical | |
| simp only [polytabloid,alternator,LinearMap.sum_apply,LinearMap.smul_apply,tabloidRep_delta] | |
| lemma polytabloid_base (μ : YoungDiagram) : polytabloid μ (baseTabloid μ) = 1 := by | |
| classical | |
| rw [polytabloid_formula,Finset.sum_apply] | |
| rw [Finset.sum_eq_single (1 : colGroup μ)] | |
| · simp [delta] | |
| · intro c hc hne | |
| have hn : baseTabloid μ ≠ tabloidAct c (baseTabloid μ) := by | |
| intro h | |
| apply hne | |
| exact Subtype.ext (colGroup_row_stabilizer c h.symm) | |
| simp [Pi.smul_apply,delta,hn] | |
| · simp | |
| lemma polytabloid_ne_zero (μ : YoungDiagram) : polytabloid μ ≠ 0 := by | |
| intro h | |
| have hv := congrArg (fun v : Tabloid μ → ℂ => v (baseTabloid μ)) h | |
| simp [polytabloid_base] at hv | |
| lemma delta_decomposition {μ : YoungDiagram} (v : Tabloid μ → ℂ) : | |
| v = ∑ f : Tabloid μ, v f • delta f := by | |
| classical | |
| funext g | |
| simp only [Finset.sum_apply,Pi.smul_apply,delta,smul_eq_mul,mul_ite,mul_one,mul_zero] | |
| simp | |
| theorem alternator_rank_one (μ : YoungDiagram) (v : Tabloid μ → ℂ) : | |
| ∃ z : ℂ, alternator (colGroup μ) (tabloidRep μ) v = z • polytabloid μ := by | |
| classical | |
| choose z hz using fun f : Tabloid μ => alternator_delta_rank_one f | |
| refine ⟨∑ f, v f * z f, ?_⟩ | |
| conv_lhs => rw [delta_decomposition v] | |
| simp only [map_sum,map_smul,hz,smul_smul,Finset.sum_smul] | |
| lemma alternator_rank_one_exact (μ : YoungDiagram) (v : Tabloid μ → ℂ) : | |
| alternator (colGroup μ) (tabloidRep μ) v = | |
| (alternator (colGroup μ) (tabloidRep μ) v (baseTabloid μ)) • polytabloid μ := by | |
| obtain ⟨z,hz⟩ := alternator_rank_one μ v | |
| rw [hz] | |
| simp only [Pi.smul_apply,polytabloid_base,smul_eq_mul,mul_one] | |
| noncomputable def pairing {μ : YoungDiagram} (v w : Tabloid μ → ℂ) : ℂ := | |
| ∑ f, w f * starRingEnd ℂ (v f) | |
| lemma pairing_delta {μ : YoungDiagram} (f : Tabloid μ) (v : Tabloid μ → ℂ) : | |
| pairing (delta f) v = v f := by | |
| classical | |
| simp [pairing,delta] | |
| lemma pairing_sum_left {μ : YoungDiagram} {ι : Type*} [Fintype ι] | |
| (v : ι → Tabloid μ → ℂ) (w : Tabloid μ → ℂ) : | |
| pairing (∑ i, v i) w = ∑ i, pairing (v i) w := by | |
| simp only [pairing,Finset.sum_apply,map_sum,Finset.mul_sum] | |
| exact Finset.sum_comm | |
| lemma pairing_smul_left {μ : YoungDiagram} (a : ℂ) (v w : Tabloid μ → ℂ) : | |
| pairing (a • v) w = starRingEnd ℂ a * pairing v w := by | |
| simp only [pairing,Pi.smul_apply,smul_eq_mul,map_mul,Finset.mul_sum] | |
| apply Finset.sum_congr rfl | |
| intro f hf | |
| ring | |
| lemma pairing_zero_left {μ : YoungDiagram} (v : Tabloid μ → ℂ) : pairing 0 v = 0 := by | |
| simp [pairing] | |
| lemma pairing_add_left {μ : YoungDiagram} (u v w : Tabloid μ → ℂ) : | |
| pairing (u+v) w = pairing u w + pairing v w := by | |
| simp [pairing,mul_add,Finset.sum_add_distrib] | |
| lemma pairing_self_eq_zero {μ : YoungDiagram} (v : Tabloid μ → ℂ) : | |
| pairing v v = 0 ↔ v = 0 := by | |
| change inner ℂ (WithLp.toLp 2 v : EuclideanSpace ℂ (Tabloid μ)) (WithLp.toLp 2 v) = 0 ↔ v = 0 | |
| rw [inner_self_eq_zero] | |
| constructor | |
| · intro h; exact congrArg WithLp.ofLp h | |
| · intro h; subst v; rfl | |
| lemma pairing_action {μ : YoungDiagram} (p : Equiv.Perm (Cell μ)) (v w : Tabloid μ → ℂ) : | |
| pairing (tabloidRep μ p v) w = pairing v (tabloidRep μ p⁻¹ w) := by | |
| classical | |
| simp only [pairing,tabloidRep_apply,inv_inv] | |
| apply Fintype.sum_equiv (tabloidAct p⁻¹) | |
| intro f | |
| have hcancel : tabloidAct p (tabloidAct p⁻¹ f) = f := by | |
| rw [tabloidAct_inv] | |
| exact (tabloidAct p).apply_symm_apply f | |
| rw [hcancel] | |
| lemma alternator_base_pairing (μ : YoungDiagram) (v : Tabloid μ → ℂ) : | |
| alternator (colGroup μ) (tabloidRep μ) v (baseTabloid μ) = pairing (polytabloid μ) v := by | |
| classical | |
| simp only [polytabloid_formula,pairing_sum_left,pairing_smul_left,conj_permSign,pairing_delta] | |
| simp only [alternator,LinearMap.sum_apply,LinearMap.smul_apply,Finset.sum_apply,Pi.smul_apply, | |
| smul_eq_mul,tabloidRep_apply] | |
| apply Fintype.sum_equiv (Equiv.inv (colGroup μ)) | |
| intro c | |
| simp only [Equiv.inv_apply,Subgroup.coe_inv,permSign_inv] | |
| theorem alternator_pairing (μ : YoungDiagram) (v : Tabloid μ → ℂ) : | |
| alternator (colGroup μ) (tabloidRep μ) v = pairing (polytabloid μ) v • polytabloid μ := by | |
| rw [alternator_rank_one_exact,alternator_base_pairing] | |
| lemma polytabloid_mem_space (μ : YoungDiagram) : polytabloid μ ∈ space μ := by | |
| simpa using orbit_mem_space μ 1 | |
| lemma alternator_mem_invariant (μ : YoungDiagram) (W : Submodule ℂ (Tabloid μ → ℂ)) | |
| (hW : ∀ p v, v ∈ W → tabloidRep μ p v ∈ W) (v : Tabloid μ → ℂ) (hv : v ∈ W) : | |
| alternator (colGroup μ) (tabloidRep μ) v ∈ W := by | |
| classical | |
| simp only [alternator,LinearMap.sum_apply,LinearMap.smul_apply] | |
| exact W.sum_mem (fun c _ => W.smul_mem _ (hW c v hv)) | |
| theorem submodule_theorem (μ : YoungDiagram) (W : Submodule ℂ (Tabloid μ → ℂ)) | |
| (hW : ∀ p v, v ∈ W → tabloidRep μ p v ∈ W) : | |
| space μ ≤ W ∨ ∀ v ∈ W, ∀ w ∈ space μ, pairing w v = 0 := by | |
| classical | |
| by_cases hSW : space μ ≤ W | |
| · exact Or.inl hSW | |
| right | |
| have he : polytabloid μ ∉ W := by | |
| intro he | |
| apply hSW | |
| apply Submodule.span_le.mpr | |
| rintro _ ⟨p,rfl⟩ | |
| exact hW p _ he | |
| have hpair : ∀ v ∈ W, pairing (polytabloid μ) v = 0 := by | |
| intro v hv | |
| by_contra hne | |
| apply he | |
| have hal := alternator_mem_invariant μ W hW v hv | |
| rw [alternator_pairing] at hal | |
| have hh := W.smul_mem (pairing (polytabloid μ) v)⁻¹ hal | |
| simpa only [smul_smul,inv_mul_cancel₀ hne,one_smul] using hh | |
| intro v hv w hw | |
| induction hw using Submodule.span_induction with | |
| | mem w hw => | |
| obtain ⟨p,rfl⟩ := hw | |
| rw [pairing_action] | |
| exact hpair _ (hW p⁻¹ v hv) | |
| | zero => exact pairing_zero_left v | |
| | add u w hu hw ihu ihw => rw [pairing_add_left,ihu,ihw,add_zero] | |
| | smul a w hw ih => rw [pairing_smul_left,ih,mul_zero] | |
| theorem space_simple (μ : YoungDiagram) (W : Submodule ℂ (Tabloid μ → ℂ)) | |
| (hW : ∀ p v, v ∈ W → tabloidRep μ p v ∈ W) (hWS : W ≤ space μ) : | |
| W = ⊥ ∨ W = space μ := by | |
| obtain hSW | horth := submodule_theorem μ W hW | |
| · exact Or.inr (le_antisymm hWS hSW) | |
| · left | |
| apply le_antisymm _ bot_le | |
| intro v hv | |
| exact (pairing_self_eq_zero v).mp (horth v hv v (hWS hv)) | |
| lemma space_ne_bot (μ : YoungDiagram) : space μ ≠ ⊥ := by | |
| intro h | |
| have he := polytabloid_mem_space μ | |
| rw [h,Submodule.mem_bot] at he | |
| exact polytabloid_ne_zero μ he | |
| theorem representation_irreducible (μ : YoungDiagram) : | |
| Representation.IsIrreducible (representation μ) := by | |
| have hnt : (⊥ : Subrepresentation (representation μ)) ≠ ⊤ := by | |
| intro h | |
| have he : (⟨polytabloid μ,polytabloid_mem_space μ⟩ : space μ) ∈ | |
| (⊥ : Subrepresentation (representation μ)) := by rw [h]; trivial | |
| have he' : (⟨polytabloid μ,polytabloid_mem_space μ⟩ : space μ) = 0 := he | |
| exact polytabloid_ne_zero μ (congrArg Subtype.val he') | |
| refine { exists_pair_ne := ⟨⊥,⊤,hnt⟩, eq_bot_or_eq_top := ?_ } | |
| intro U | |
| let W : Submodule ℂ (Tabloid μ → ℂ) := U.toSubmodule.map (space μ).subtype | |
| have hW : ∀ p v, v ∈ W → tabloidRep μ p v ∈ W := by | |
| intro p v hv | |
| obtain ⟨u,hu,rfl⟩ := hv | |
| exact ⟨representation μ p u,U.apply_mem_toSubmodule p hu,rfl⟩ | |
| have hWS : W ≤ space μ := by | |
| intro v hv | |
| obtain ⟨u,hu,rfl⟩ := hv | |
| exact u.2 | |
| obtain hbot | htop := space_simple μ W hW hWS | |
| · left | |
| apply le_antisymm _ bot_le | |
| intro u hu | |
| have hmem : (u : Tabloid μ → ℂ) ∈ W := ⟨u,hu,rfl⟩ | |
| rw [hbot,Submodule.mem_bot] at hmem | |
| change u = 0 | |
| exact Subtype.ext hmem | |
| · right | |
| apply le_antisymm le_top | |
| intro u hu | |
| have hmem : (u : Tabloid μ → ℂ) ∈ W := by rw [htop]; exact u.2 | |
| obtain ⟨v,hv,hvu⟩ := hmem | |
| have heq : v = u := Subtype.ext hvu | |
| exact heq ▸ hv | |
| section Symmetrizer | |
| variable {α V : Type*} [Fintype α] [DecidableEq α] [AddCommGroup V] [Module ℂ V] | |
| noncomputable def symmetrizer (H : Subgroup (Equiv.Perm α)) | |
| (ρ : Representation ℂ (Equiv.Perm α) V) : Module.End ℂ V := | |
| ∑ h : H, ρ h | |
| lemma symmetrizer_mul (H : Subgroup (Equiv.Perm α)) | |
| (ρ : Representation ℂ (Equiv.Perm α) V) (h : H) : | |
| symmetrizer H ρ * ρ h = symmetrizer H ρ := by | |
| rw [symmetrizer,Finset.sum_mul] | |
| exact Fintype.sum_equiv (Equiv.mulRight h) _ _ (fun g => by simp [←map_mul]) | |
| lemma symmetrizer_eq_zero_of_neg (H : Subgroup (Equiv.Perm α)) | |
| (ρ : Representation ℂ (Equiv.Perm α) V) (h : H) (v : V) (hv : ρ h v = -v) : | |
| symmetrizer H ρ v = 0 := by | |
| have hh := congrArg (fun T : Module.End ℂ V => T v) (symmetrizer_mul H ρ h) | |
| change symmetrizer H ρ (ρ h v) = symmetrizer H ρ v at hh | |
| rw [hv,map_neg] at hh | |
| have h2 : (2:ℂ) • symmetrizer H ρ v = 0 := by | |
| rw [two_smul] | |
| nth_rw 1 [←hh] | |
| exact neg_add_cancel _ | |
| exact (smul_eq_zero.mp h2).resolve_left (by norm_num) | |
| noncomputable def fiberGroup {β : Type*} (f : α → β) : Subgroup (Equiv.Perm α) where | |
| carrier := {p | ∀ x, f (p x) = f x} | |
| one_mem' := by intro x; rfl | |
| mul_mem' := by intro p q hp hq x; exact (hp (q x)).trans (hq x) | |
| inv_mem' := by intro p hp x; simpa using (hp (p⁻¹ x)).symm | |
| omit [Fintype α] in | |
| lemma swap_mem_fiberGroup {β : Type*} (f : α → β) (x y : α) (hf : f x = f y) : | |
| Equiv.swap x y ∈ fiberGroup f := by | |
| intro z | |
| by_cases hx : z=x | |
| · subst z; simpa using hf.symm | |
| by_cases hy : z=y | |
| · subst z; simpa using hf | |
| simp [Equiv.swap_apply_of_ne_of_ne hx hy] | |
| end Symmetrizer | |
| lemma swap_polytabloid {μ : YoungDiagram} (x y : Cell μ) (hne : x ≠ y) | |
| (hcol : col x = col y) : | |
| tabloidRep μ (Equiv.swap x y) (polytabloid μ) = -polytabloid μ := by | |
| have h := action_alternator_apply (colGroup μ) (tabloidRep μ) | |
| ⟨Equiv.swap x y,swap_mem_colGroup x y hcol⟩ (delta (baseTabloid μ)) | |
| simpa only [polytabloid,permSign_swap hne,neg_one_smul] using h | |
| theorem tall_column_average_zero (μ : YoungDiagram) {β : Type*} [Fintype β] | |
| (f : Cell μ → β) (j : ℕ) (hj : Fintype.card β < μ.colLen j) | |
| (v : Tabloid μ → ℂ) (hv : v ∈ space μ) : | |
| symmetrizer (fiberGroup f) (tabloidRep μ) v = 0 := by | |
| induction hv using Submodule.span_induction with | |
| | mem v hv => | |
| obtain ⟨p,rfl⟩ := hv | |
| have hcard : Fintype.card β < Fintype.card {x : Cell μ // col x = j} := by | |
| rw [Fintype.card_congr (columnEquiv μ j),Fintype.card_fin] | |
| exact hj | |
| obtain ⟨x,y,hne,hf⟩ := Fintype.exists_ne_map_eq_of_card_lt | |
| (fun x : {x : Cell μ // col x = j} => f (p x.1)) hcard | |
| have hxy : x.1 ≠ y.1 := fun h => hne (Subtype.ext h) | |
| let h : fiberGroup f := ⟨Equiv.swap (p x.1) (p y.1),swap_mem_fiberGroup f _ _ hf⟩ | |
| apply symmetrizer_eq_zero_of_neg _ _ h | |
| change tabloidRep μ (Equiv.swap (p x.1) (p y.1)) | |
| (tabloidRep μ p (polytabloid μ)) = -tabloidRep μ p (polytabloid μ) | |
| rw [←Module.End.mul_apply,←map_mul,←Equiv.mul_swap_eq_swap_mul] | |
| rw [map_mul,Module.End.mul_apply,swap_polytabloid x.1 y.1 hxy (x.2.trans y.2.symm),map_neg] | |
| | zero => exact map_zero _ | |
| | add v w hv hw ihv ihw => simp only [map_add,ihv,ihw,add_zero] | |
| | smul a v hv ih => simp only [map_smul,ih,smul_zero] | |
| noncomputable def rowEquiv (μ : YoungDiagram) (i : ℕ) : | |
| {x : Cell μ // row x = i} ≃ Fin (μ.rowLen i) where | |
| toFun x := ⟨col x.1, by | |
| have h := YoungDiagram.mem_iff_lt_rowLen.mp x.1.2 | |
| change col x.1 < μ.rowLen (row x.1) at h | |
| simpa only [x.2] using h⟩ | |
| invFun j := ⟨⟨(i,j),YoungDiagram.mem_iff_lt_rowLen.mpr j.2⟩,rfl⟩ | |
| left_inv x := by apply Subtype.ext; apply Subtype.ext; exact Prod.ext x.2.symm rfl | |
| right_inv j := rfl | |
| def rowCost (μ : YoungDiagram) : ℕ := ∑ x : Cell μ, row x | |
| lemma eq_of_row_preserving (μ ν : YoungDiagram) (e : Cell μ ≃ Cell ν) | |
| (he : ∀ x, row (e x) = row x) : μ = ν := by | |
| have hlen (i : ℕ) : μ.rowLen i = ν.rowLen i := by | |
| let ei : {x : Cell μ // row x = i} ≃ {x : Cell ν // row x = i} := | |
| { toFun := fun x => ⟨e x.1,(he x.1).trans x.2⟩ | |
| invFun := fun x => ⟨e.symm x.1,by | |
| have h := he (e.symm x.1) | |
| simp only [Equiv.apply_symm_apply] at h | |
| exact h.symm.trans x.2⟩ | |
| left_inv := fun x => by apply Subtype.ext; exact e.symm_apply_apply _ | |
| right_inv := fun x => by apply Subtype.ext; exact e.apply_symm_apply _ } | |
| simpa only [Fintype.card_fin] using Fintype.card_congr | |
| ((rowEquiv μ i).symm.trans (ei.trans (rowEquiv ν i))) | |
| apply YoungDiagram.ext | |
| ext ⟨i,j⟩ | |
| simp only [YoungDiagram.mem_cells,YoungDiagram.mem_iff_lt_rowLen,hlen] | |
| lemma column_injective_rowCost (μ ν : YoungDiagram) (e : Cell μ ≃ Cell ν) | |
| (h : ∀ x y : Cell μ, col x = col y → row (e x) = row (e y) → x = y) : | |
| rowCost μ ≤ rowCost ν ∧ (rowCost μ = rowCost ν → μ = ν) := by | |
| let c := rankPerm (fun x => row (e x)) h | |
| have hle (x : Cell μ) : row (c x) ≤ row (e x) := rankCell_row_le _ h x | |
| have hsumc : ∑ x, row (c x) = rowCost μ := Equiv.sum_comp c _ | |
| have hsume : ∑ x, row (e x) = rowCost ν := Equiv.sum_comp e _ | |
| constructor | |
| · rw [←hsumc,←hsume] | |
| exact Finset.sum_le_sum (fun x _ => hle x) | |
| · intro heq | |
| have he : ∀ x, row (c x) = row (e x) := by | |
| apply fun x => (Finset.sum_eq_sum_iff_of_le (fun x _ => hle x)).mp | |
| (hsumc.trans (heq.trans hsume.symm)) x (Finset.mem_univ _) | |
| apply eq_of_row_preserving μ ν (c.symm.trans e) | |
| intro x | |
| simpa using (he (c.symm x)).symm | |
| lemma swap_relabel {α β : Type*} [DecidableEq α] [DecidableEq β] | |
| (e : α ≃ β) (x y : α) : e.permCongr (Equiv.swap x y) = Equiv.swap (e x) (e y) := by | |
| ext z | |
| simp only [Equiv.permCongr_apply] | |
| exact e.injective.map_swap x y (e.symm z) |>.trans (by simp) | |
| lemma sign_vector_rowCost (μ ν : YoungDiagram) (e : Cell μ ≃ Cell ν) | |
| (v : Tabloid ν → ℂ) (hv : v ≠ 0) | |
| (hs : ∀ c : colGroup μ, | |
| tabloidRep ν (e.permCongr c) v = permSign (c : Equiv.Perm (Cell μ)) • v) : | |
| rowCost μ ≤ rowCost ν ∧ (rowCost μ = rowCost ν → μ = ν) := by | |
| obtain ⟨f,hf⟩ : ∃ f, v f ≠ 0 := by | |
| by_contra h | |
| push Not at h | |
| exact hv (funext h) | |
| obtain ⟨p,hp⟩ := f.2 | |
| apply column_injective_rowCost μ ν (e.trans p) | |
| intro x y hcol hrow | |
| by_contra hne | |
| have hfix : tabloidAct (Equiv.swap (e x) (e y)) f = f := by | |
| apply swap_fixes_tabloid | |
| rw [hp] | |
| exact Fin.ext hrow | |
| have heq := congrArg (fun w : Tabloid ν → ℂ => w f) | |
| (hs ⟨Equiv.swap x y,swap_mem_colGroup x y hcol⟩) | |
| rw [swap_relabel,permSign_swap hne] at heq | |
| simp only [tabloidRep_apply,Equiv.swap_inv,hfix,Pi.smul_apply,neg_one_smul] at heq | |
| apply hf | |
| have h2 : (2:ℂ)*(v f) = 0 := by linear_combination heq | |
| exact (mul_eq_zero.mp h2).resolve_left (by norm_num) | |
| lemma polytabloid_col_action (μ : YoungDiagram) (c : colGroup μ) : | |
| tabloidRep μ c (polytabloid μ) = permSign (c:Equiv.Perm (Cell μ)) • polytabloid μ := | |
| action_alternator_apply _ _ c _ | |
| theorem shapes_eq_of_equivariant_equiv (μ ν : YoungDiagram) (e : Cell μ ≃ Cell ν) | |
| (T : space μ ≃ₗ[ℂ] space ν) | |
| (hT : ∀ p v, T (representation μ p v) = representation ν (e.permCongr p) (T v)) : | |
| μ = ν := by | |
| let u : space μ := ⟨polytabloid μ,polytabloid_mem_space μ⟩ | |
| have hu : u ≠ 0 := fun h => polytabloid_ne_zero μ (congrArg Subtype.val h) | |
| have hTcol (c : colGroup μ) : | |
| tabloidRep ν (e.permCongr c) (T u) = permSign (c:Equiv.Perm (Cell μ)) • (T u : Tabloid ν → ℂ) := by | |
| change (representation ν (e.permCongr c) (T u) : Tabloid ν → ℂ) = _ | |
| rw [←hT] | |
| have hh : representation μ c u = permSign (c:Equiv.Perm (Cell μ)) • u := | |
| Subtype.ext (polytabloid_col_action μ c) | |
| rw [hh,map_smul] | |
| rfl | |
| have hfwd := sign_vector_rowCost μ ν e (T u) | |
| (fun h => hu (T.injective (by apply Subtype.ext; simpa using h))) hTcol | |
| let w : space ν := ⟨polytabloid ν,polytabloid_mem_space ν⟩ | |
| have hw : w ≠ 0 := fun h => polytabloid_ne_zero ν (congrArg Subtype.val h) | |
| have hTi (p : Equiv.Perm (Cell ν)) (v : space ν) : | |
| T.symm (representation ν p v) = representation μ (e.symm.permCongr p) (T.symm v) := by | |
| apply T.injective | |
| rw [T.apply_symm_apply,hT,T.apply_symm_apply] | |
| have hp : e.permCongr (e.symm.permCongr p) = p := by | |
| apply Equiv.ext | |
| intro x | |
| simp [Equiv.permCongr_apply] | |
| rw [hp] | |
| have hTicol (c : colGroup ν) : | |
| tabloidRep μ (e.symm.permCongr c) (T.symm w) = | |
| permSign (c:Equiv.Perm (Cell ν)) • (T.symm w : Tabloid μ → ℂ) := by | |
| change (representation μ (e.symm.permCongr c) (T.symm w) : Tabloid μ → ℂ) = _ | |
| rw [←hTi] | |
| have hh : representation ν c w = permSign (c:Equiv.Perm (Cell ν)) • w := | |
| Subtype.ext (polytabloid_col_action ν c) | |
| rw [hh,map_smul] | |
| rfl | |
| have hbwd := sign_vector_rowCost ν μ e.symm (T.symm w) | |
| (fun h => hw (T.symm.injective (by apply Subtype.ext; simpa using h))) hTicol | |
| exact hfwd.2 (Nat.le_antisymm hfwd.1 hbwd.1) | |
| noncomputable def cellRowsEquiv (μ : YoungDiagram) : | |
| Cell μ ≃ (i : Fin (μ.colLen 0)) × Fin (μ.rowLen i) where | |
| toFun x := ⟨rowIndex x,⟨col x,YoungDiagram.mem_iff_lt_rowLen.mp x.2⟩⟩ | |
| invFun p := ⟨(p.1,p.2),YoungDiagram.mem_iff_lt_rowLen.mpr p.2.2⟩ | |
| left_inv x := by apply Subtype.ext; rfl | |
| right_inv p := by rcases p with ⟨⟨i,hi⟩,⟨j,hj⟩⟩; rfl | |
| lemma card_eq_sum_rowLen (μ : YoungDiagram) : μ.card = ∑ i : Fin (μ.colLen 0), μ.rowLen i := by | |
| rw [←card_cell,Fintype.card_congr (cellRowsEquiv μ),Fintype.card_sigma] | |
| simp only [Fintype.card_fin] | |
| lemma sum_rowLens (μ : YoungDiagram) : μ.rowLens.sum = μ.card := by | |
| rw [card_eq_sum_rowLen,YoungDiagram.rowLens] | |
| rw [Fin.sum_univ_eq_sum_range] | |
| have hh (n : ℕ) : (List.map μ.rowLen (List.range n)).sum = ∑ i ∈ Finset.range n, μ.rowLen i := by | |
| induction n with | |
| | zero => simp | |
| | succ n ih => simp [List.range_succ,List.map_append,Finset.sum_range_succ,ih] | |
| exact hh _ | |
| noncomputable def diagramPartition (μ : YoungDiagram) : Nat.Partition μ.card where | |
| parts := μ.rowLens | |
| parts_pos := fun {i} hi => μ.pos_of_mem_rowLens i (by simpa using hi) | |
| parts_sum := by simp | |
| noncomputable def partitionDiagram {N : ℕ} (p : Nat.Partition N) : YoungDiagram := | |
| YoungDiagram.ofRowLens (p.parts.sort (· ≥ ·)) (Multiset.pairwise_sort _ _).sortedGE | |
| end Thorp.Specht | |
| end ThorpNine.Harmonic | |
| end OAI | |
Xet Storage Details
- Size:
- 32.8 kB
- Xet hash:
- f097e59140aa0b6f031dd3ca5fbe4370752937feadd5d9c0469db5c8a0c4999a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.