defcyclic (ρ : RepresentationℂGE) (e : E) : Subrepresentation ρ where
body · 12
lines
toSubmodule :=Submodule.span ℂ (Set.range fun g => ρ g e)
apply_mem_toSubmodule g :=by
intro v hv
induction hv usingSubmodule.span_induction with
| mem v hv =>
obtain ⟨h, rfl⟩ := hv
exact Submodule.subset_span ⟨g * h, by simp⟩
| zero => simp
| add x y hx hy ihx ihy =>
simpa using (Submodule.span ℂ (Set.range fun h => ρ h e)).add_mem ihx ihy
| smul a x hx ih =>
simpa using (Submodule.span ℂ (Set.range fun h => ρ h e)).smul_mem a ih
lemmastarProjection_rep (ρ : RepresentationℂGE)
(hunit : ∀ g x y, ⟪ρ g x, ρ g y⟫_ℂ = ⟪x, y⟫_ℂ)
(U : Subrepresentation ρ) (g : G) (v : E) :
U.toSubmodule.starProjection (ρ g v) = ρ g (U.toSubmodule.starProjection v) :=by
proof · 10
lines
apply U.toSubmodule.eq_starProjection_of_mem_of_inner_eq_zero
· exact U.apply_mem_toSubmodule g (U.toSubmodule.starProjection_apply_mem v)
· intro w hw
have hw' :=U.apply_mem_toSubmodule g⁻¹ hw
havehe : ρ g (ρ g⁻¹ w) = w :=by
rw [←Module.End.mul_apply, ← map_mul, mul_inv_cancel, map_one, Module.End.one_apply]
rw [← map_sub]
conv_lhs => rhs; rw [← he]
rw [hunit]
exact U.toSubmodule.starProjection_inner_eq_zero v _ hw'
theoremsimple_eigen_submodule_alternative (ρ : RepresentationℂGE) (e : E)
(hunit : ∀ g x y, ⟪ρ g x, ρ g y⟫_ℂ = ⟪x, y⟫_ℂ)
(g₀ : G) (c : ℂ) (heig : ρ g₀ e = c • e)
(hsimple : ∀v : E, ρ g₀ v = c • v → v ∈Submodule.span ℂ {e})
(U : Subrepresentation ρ) :
cyclic ρ e ≤U∨∀ u ∈U, ∀ v ∈ cyclic ρ e, ⟪v, u⟫_ℂ = 0:=by
proof · 33
lines
classical
by_cases he : e ∈U
· left
exact Submodule.span_le.mpr (by rintro _ ⟨g, rfl⟩; exact U.apply_mem_toSubmodule g he)
· right
havehp : U.toSubmodule.starProjection e = 0:=byhavehpeig : ρ g₀ (U.toSubmodule.starProjection e) =
c • U.toSubmodule.starProjection e :=by
rw [← starProjection_rep ρ hunit U g₀ e, heig, map_smul]
obtain ⟨a, ha⟩ :=Submodule.mem_span_singleton.mp (hsimple _ hpeig)
by_cases ha0 : a = 0
· simpa [ha0] using ha.symm
· apply False.elim
apply he
have hm :=U.toSubmodule.starProjection_apply_mem e
rw [← ha] at hm
have hh :=U.toSubmodule.smul_mem a⁻¹ hm
change e ∈U.toSubmodule
simpa [smul_smul, ha0] using hh
have heorth (u : E) (hu : u ∈U) : ⟪e, u⟫_ℂ = 0:=byhave hh :=U.toSubmodule.starProjection_inner_eq_zero e u hu
simpa [hp] using hh
intro u hu v hv
have horth (g : G) : ⟪ρ g e, u⟫_ℂ = 0:=byhavehgu : ρ g⁻¹ u ∈U:=U.apply_mem_toSubmodule g⁻¹ hu
have hi := hunit g e (ρ g⁻¹ u)
simpa only [←Module.End.mul_apply, ← map_mul, mul_inv_cancel, map_one,
Module.End.one_apply] using hi.trans (heorth _ hgu)
induction hv usingSubmodule.span_induction with
| mem v hv => obtain ⟨g, rfl⟩ := hv; exact horth g
| zero => simp
| add x y hx hy ihx ihy => simp [ihx, ihy]
| smul a x hx ih => simp [ih]
theoremcyclic_irreducible_of_simple_eigen (ρ : RepresentationℂGE) (e : E) (he : e ≠0)
(hunit : ∀ g x y, ⟪ρ g x, ρ g y⟫_ℂ = ⟪x, y⟫_ℂ)
(g₀ : G) (c : ℂ) (heig : ρ g₀ e = c • e)
(hsimple : ∀v : E, ρ g₀ v = c • v → v ∈Submodule.span ℂ {e}) :
Representation.IsIrreducible (cyclic ρ e).toRepresentation :=by
proof · 30
lines
letS:= cyclic ρ e
leteS : S.toSubmodule := ⟨e, self_mem_cyclic ρ e⟩
haveheS : eS ≠0:=by intro hh; apply he; exact congrArg Subtype.val hh
havehtb : (⊤ : SubrepresentationS.toRepresentation) ≠ ⊥ :=by
intro hh
havehel : eS ∈ (⊤ : SubrepresentationS.toRepresentation) :=by trivial
rw [hh] at hel
exact heS hel
let : Nontrivial (SubrepresentationS.toRepresentation) := ⟨⟨⊤, ⊥, htb⟩⟩
refine ⟨funU=> ?_⟩
letU' : Subrepresentation ρ := {
toSubmodule :=U.toSubmodule.map S.toSubmodule.subtype
apply_mem_toSubmodule :=by
intro g v hv
obtain ⟨u, hu, rfl⟩ := hv
exact ⟨S.toRepresentation g u, U.apply_mem_toSubmodule g hu, rfl⟩ }
rcases simple_eigen_submodule_alternative ρ e hunit g₀ c heig hsimple U'with h | h
· right
apply top_unique
intro u _
obtain ⟨v, hv, heq⟩ := h u.property
havehvu : v = u :=Subtype.ext heq
exact hvu ▸ hv
· left
apply bot_unique
intro u hu
havehum : (u : E) ∈U':= ⟨u, hu, rfl⟩
have hh := h _ hum _ u.property
havehz : (u : E) = 0:= inner_self_eq_zero.mp hh
exact Subtype.ext hz
lemmatensor_star
{ι : Type*} {n : Type*}
[contextInstance135_23 : Fintype ι]
[DecidableEq ι]
[Fintype n]
[DecidableEq n] (a : ι →Matrix n n ℂ) :
tensor (fun i => star (a i)) = star (tensor a) :=by
lemmatensor_mul
{ι : Type*} {n : Type*}
[contextInstance135_23 : Fintype ι]
[contextInstance135_35 : DecidableEq ι]
[contextInstance135_51 : Fintype n]
[DecidableEq n] (a b : ι →Matrix n n ℂ) :
tensor (fun i => a i * b i) = tensor a * tensor b :=by
proof · 5
lines
ext x y
simp only [tensor, Matrix.mul_apply, ←Finset.prod_mul_distrib]
symm
simpa using (Finset.sum_prod_piFinset (ι := ι) Finset.univ
(fun i j => a i (x i) j * b i j (y i)))
ext x y
classical
by_cases h : x = y
· subst y
simp [tensor]
· obtain ⟨i, hi⟩ :=Function.ne_iff.mp h
simp only [tensor, Matrix.one_apply, ite_eq_right h]
apply Finset.prod_eq_zero (Finset.mem_univ i)
simp [hi]
lemmatensor_diagonal
{ι : Type*} {n : Type*}
[contextInstance135_23 : Fintype ι]
[DecidableEq ι]
[Fintype n]
[contextInstance135_63 : DecidableEq n] (a : ι → n →ℂ) :
tensor (fun i =>Matrix.diagonal (a i)) = Matrix.diagonal (fun x =>∏ i, a i (x i)) :=by
proof · 9
lines
ext x y
classical
by_cases h : x = y
· subst y
simp [tensor]
· obtain ⟨i, hi⟩ :=Function.ne_iff.mp h
simp only [tensor, Matrix.diagonal_apply, ite_eq_right h]
apply Finset.prod_eq_zero (Finset.mem_univ i)
simp [hi]
lemmatoEuclideanLin_mul
{ι : Type*} {n : Type*}
[Fintype ι]
[DecidableEq ι]
[contextInstance135_51 : Fintype n]
[contextInstance135_63 : DecidableEq n] (a b : Matrix n n ℂ) :
Matrix.toEuclideanLin (a * b) =
Matrix.toEuclideanLin a * Matrix.toEuclideanLin b :=by
proof · 3
lines
ext v x
change ((a * b) *ᵥ (WithLp.ofLp v)) x = (a *ᵥ (b *ᵥ (WithLp.ofLp v))) x
rw [Matrix.mulVec_mulVec]
lemmatoEuclideanLin_unitary (a : Matrix n n ℂ) (ha : a ∈Matrix.unitaryGroup n ℂ)
(v w : EuclideanSpaceℂ n) :
⟪Matrix.toEuclideanLin a v, Matrix.toEuclideanLin a w⟫_ℂ = ⟪v, w⟫_ℂ:=by
defrep : RepresentationℂG (EuclideanSpaceℂX) where
body · 10
lines
toFun g := {
toFun v :=WithLp.toLp 2 (fun x => v (g⁻¹ • x))
map_add' :=by intro v w; rfl
map_smul' :=by intro a v; rfl }
map_one' :=by ext v x; simp
map_mul' :=by
intro g h
ext v x
change v ((g * h)⁻¹ • x) = v (h⁻¹ • g⁻¹ • x)
simp [mul_smul]
lemmaalternator_translate (ι : H→* G) (χ : H→* ℂ) (a : H)
(v : EuclideanSpaceℂX) :
alternator ι χ (rep (ι a) v) = χ a⁻¹ • alternator ι χ v :=by
proof · 12
lines
rw [alternator_apply, alternator_apply, Finset.smul_sum]
have he :=Equiv.sum_comp (Equiv.mulRight a)
(fun h => χ a⁻¹ • (χ h • (rep (ι h) v : EuclideanSpaceℂX)))
rw [← he]
apply Finset.sum_congr rfl
intro h _
simp only [Equiv.coe_mulRight, smul_smul, map_mul]
rw [show χ a⁻¹ * (χ h * χ a) = χ h bycalc
_ = χ h * (χ a⁻¹ * χ a) :=by ring
_ = χ h :=by rw [← map_mul, inv_mul_cancel, map_one, mul_one]]
simp only [Module.End.mul_apply]
lemmafin_le_strictMono {n : ℕ} (f : Fin n →ℕ) (hf : StrictMono f) (i : Fin n) :
i.val ≤ f i :=by
proof · 11
lines
haveaux : ∀ k (hk : k < n), k ≤ f ⟨k, hk⟩ :=by
intro k
induction k with
| zero => intro hk; exact Nat.zero_le _
| succ k ih =>
intro hk
havehk' : k < n :=by omega
have hl := hf (show (⟨k, hk'⟩ : Fin n) < ⟨k + 1, hk⟩ fromby simp)
have hi := ih hk'
omega
exact aux i.val i.isLt
lemmaeq_of_rowPreserving (DE : YoungDiagram) (e : CellsD ≃ CellsE)
(he : ∀ x, (e x).val.1 = x.val.1) : D = E:=by
proof · 8
lines
have hr (i : ℕ) : D.rowLen i = E.rowLen i :=by
rw [← card_row_subtype D i, ← card_row_subtype E i]
exact Fintype.card_congr (e.subtypeEquiv (fun x =>by rw [he]))
apply YoungDiagram.ext
ext p
obtain ⟨i, j⟩ := p
change (i, j) ∈D↔ (i, j) ∈E
simp only [YoungDiagram.mem_iff_lt_rowLen, hr]
lemmarowRankSum_le (D : YoungDiagram) (r : CellsD→ℕ)
(hinj : ∀x y : CellsD, x.val.2 = y.val.2→ r x = r y → x = y) :
∑x : CellsD, x.val.1≤∑x : CellsD, r x :=by
proof · 3
lines
obtain ⟨σ, -, hσ⟩ := column_sort_le D r hinj
rw [←Equiv.sum_comp σ r]
exact Finset.sum_le_sum fun x _ => hσ x
lemmaaction_site_commute (a : Matrix n n ℂ) (g : Equiv.Perm ι)
(v : EuclideanSpaceℂ (ι → n)) :
TensorRep.action a (PermutationSpace.rep g v) =
PermutationSpace.rep g (TensorRep.action a v) :=by
proof · 9
lines
ext x
change (∑ y, TensorRep.tensor (fun_ : ι => a) x y * v (y ∘ g)) =
∑ y, TensorRep.tensor (fun_ : ι => a) (x ∘ g) y * v y
rw [←Equiv.sum_comp (reindex (n := n) g)
(fun y =>TensorRep.tensor (fun_ : ι => a) (x ∘ g) y * v y)]
apply Finset.sum_congr rfl
intro y _
change _ = TensorRep.tensor (fun_ : ι => a) (x ∘ g) (y ∘ g) * v (y ∘ g)
rw [TensorRep.tensor_reindex]
lemmaalternating_collision (v : TensorSpaceD q) (hv : v ∈ alternating D q)
(x : CellsD→Fin q) (i j : CellsD) (hij : i ≠ j)
(hc : i.val.2 = j.val.2) (hx : x i = x j) : v x = 0:=by
proof · 23
lines
classical
let : DecidableEq (CellsD) :=Classical.decEq _
letg : columnGroup D:= ⟨Equiv.swap i j, by
intro k
by_cases hki : k = i
· subst k; simp [hc]
by_cases hkj : k = j
· subst k; simp [hc]
rw [Equiv.swap_apply_of_ne_of_ne hki hkj]⟩
havehperm : x ∘ (g : Equiv.Perm (CellsD)) = x :=by
funext k
change x (Equiv.swap i j k) = x k
by_cases hki : k = i
· subst k; simp [hx]
by_cases hkj : k = j
· subst k; simp [hx]
rw [Equiv.swap_apply_of_ne_of_ne hki hkj]
have hh := congrArg (funw : TensorSpaceD q => w x) (hv g)
simp only [site_apply, hperm, PiLp.smul_apply, smul_eq_mul] at hh
havehg : complexSign g.val = -1:=by
simpa only [g] using complexSign_swap i j hij
rw [hg, neg_one_mul] at hh
linear_combination (1/2 : ℂ) * hh
lemmaalternating_minimal_weight (v : TensorSpaceD q) (hv : v ∈ alternating D q)
(x : CellsD→Fin q) (hw : ∑ i, (x i).val = ∑i : CellsD, i.val.1) :
v x = v (rowColor D q hq) * highest D q hq x :=by
proof · 28
lines
by_cases hx : v x = 0
· by_cases he : highest D q hq x = 0
· rw [hx, he, mul_zero]
· obtain ⟨σ, hc, hr⟩ := column_sort D (fun i => (x i).val)
(alternating_injective D q (highest D q hq) (highest_mem D q hq) x he) hw
letg : columnGroup D:= ⟨σ, hc⟩
havehcolor : x ∘ σ = rowColor D q hq :=by funext i; exact Fin.ext (hr i)
have hh := congrArg (funw : TensorSpaceD q => w x) (hv g)
simp only [site_apply, PiLp.smul_apply, smul_eq_mul] at hh
change v (x ∘ σ) = complexSign σ * v x at hh
rw [hcolor, hx, mul_zero] at hh
rw [hx, hh, zero_mul]
· obtain ⟨σ, hc, hr⟩ := column_sort D (fun i => (x i).val)
(alternating_injective D q v hv x hx) hw
letg : columnGroup D:= ⟨σ, hc⟩
havehcolor : x ∘ σ = rowColor D q hq :=by funext i; exact Fin.ext (hr i)
have hh := congrArg (funw : TensorSpaceD q => w x) (hv g)
have he := congrArg (funw : TensorSpaceD q => w x) (highest_mem D q hq g)
simp only [site_apply, PiLp.smul_apply, smul_eq_mul] at hh he
change v (x ∘ σ) = complexSign σ * v x at hh
change highest D q hq (x ∘ σ) = complexSign σ * highest D q hq x at he
rw [hcolor] at hh he
rw [highest_base] at he
rw [hh]
calc
v x = v x * 1:= (mul_one _).symm
_ = v x * (complexSign σ * highest D q hq x) :=by rw [← he]
_ = complexSign σ * v x * highest D q hq x :=by ring
lemmadiagonal_single (a : Fin q →ℂ) (b : ι →Fin q) :
TensorRep.action (Matrix.diagonal a) (EuclideanSpace.single b (1 : ℂ)) =
(∏ i, a (b i)) • EuclideanSpace.single b (1 : ℂ) :=by
proof · 6
lines
ext x
rw [TensorRep.action_diagonal]
simp only [PiLp.smul_apply, smul_eq_mul, PiLp.single_apply]
by_cases h : x = b
· subst x; rfl
· simp [h]
lemmaweight_eigen_support (v : TensorSpaceD q)
(hv : TensorRep.rep (weightElement D q) v =
weightRoot D q ^ (∑i : CellsD, i.val.1) • v)
(x : CellsD→Fin q) (hx : v x ≠0) :
∑ i, (x i).val = ∑i : CellsD, i.val.1:=by
proof · 6
lines
have hh := congrArg (funw : TensorSpaceD q => w x) hv
rw [weight_action] at hh
simp only [PiLp.smul_apply, smul_eq_mul] at hh
have hp := mul_right_cancel₀ hx hh
apply (weightRoot_primitive D q).pow_inj (weight_sum_lt D q x) _ hp
exact weight_sum_lt D q (rowColor D q hq)
theoremweight_eigenspace_one_dimensional (v : TensorSpaceD q)
(hv : v ∈ alternating D q)
(heig : TensorRep.rep (weightElement D q) v =
weightRoot D q ^ (∑i : CellsD, i.val.1) • v) :
v = v (rowColor D q hq) • highest D q hq :=by
proof · 11
lines
ext x
change v x = v (rowColor D q hq) * highest D q hq x
by_cases hw : ∑ i, (x i).val = ∑i : CellsD, i.val.1
· exact alternating_minimal_weight D q hq v hv x hw
· havehv0 : v x = 0:=by
by_contra hn
exact hw (weight_eigen_support D q hq v heig x hn)
havehe0 : highest D q hq x = 0:=by
by_contra hn
exact hw (weight_eigen_support D q hq _ (highest_weight_eigen D q hq) x hn)
rw [hv0, he0, mul_zero]
lemmadiagonal_unitary_of_star_mul (a : n →ℂ) (ha : ∀ i, star (a i) * a i = 1) :
Matrix.diagonal a ∈Matrix.unitaryGroup n ℂ:=by
proof · 8
lines
havehd : star (Matrix.diagonal a) = Matrix.diagonal (fun i => star (a i)) :=by
ext i j
by_cases h : i = j
· subst j; simp [Matrix.star_apply]
· simp [Matrix.star_apply, h, Ne.symm h]
rw [Matrix.mem_unitaryGroup_iff', hd, Matrix.diagonal_mul_diagonal]
simp only [ha]
exact Matrix.diagonal_one
lemmaintertwiner_diagonal
(L : EuclideanSpaceℂ (ι → n) →ₗ[ℂ] EuclideanSpaceℂ (κ → n))
(hL : ∀ (g : Matrix.unitaryGroup n ℂ) v, L (rep g v) = rep g (L v))
(a : n →ℂ) (v : EuclideanSpaceℂ (ι → n)) :
L (action (Matrix.diagonal a) v) = action (Matrix.diagonal a) (L v) :=by
proof · 19
lines
have hsingle (x : ι → n) :
L (action (Matrix.diagonal a) (EuclideanSpace.single x (1 : ℂ))) =
action (Matrix.diagonal a) (L (EuclideanSpace.single x (1 : ℂ))) :=by
ext y
rw [diagonal_single, map_smul, action_diagonal]
simp only [PiLp.smul_apply, smul_eq_mul]
by_cases he : ∀ j, content x j = content y j
· rw [product_content a x, product_content a y]
congr 1
exact Finset.prod_congr rfl fun j _ => congrArg (fun k => a j ^ k) (he j)
· push Not at he
obtain ⟨j, hj⟩ := he
rw [intertwiner_content_zero L hL x y j hj, mul_zero, mul_zero]
have hexp := (EuclideanSpace.basisFun (ι → n) ℂ).sum_repr v
simp only [EuclideanSpace.basisFun_repr, EuclideanSpace.basisFun_apply] at hexp
rw [← hexp, map_sum, map_sum, map_sum, map_sum]
apply Finset.sum_congr rfl
intro x _
rw [map_smul, map_smul, map_smul, map_smul, hsingle]
lemmaapply_mem_hermitian (U : Subrepresentation (rep (ι := ι) (n := n)))
(a : Matrix n n ℂ) (ha : a.IsHermitian)
(v : EuclideanSpaceℂ (ι → n)) (hv : v ∈U) : action a v ∈U:=by
proof · 13
lines
letL : EuclideanSpaceℂ (ι → n) →ₗ[ℂ] EuclideanSpaceℂ (ι → n) :=U.toSubmodule.starProjection.toLinearMap
havehu : ∀ (g : Matrix.unitaryGroup n ℂ) (x y : EuclideanSpaceℂ (ι → n)),
⟪rep g x, rep g y⟫_ℂ = ⟪x, y⟫_ℂ:= rep_unitary
havehL : ∀ (g : Matrix.unitaryGroup n ℂ) (w : EuclideanSpaceℂ (ι → n)),
L (rep g w) = rep g (L w) :=by
intro g w
exact starProjection_rep (rep (ι := ι) (n := n)) hu U g w
havehlv : L v = v :=U.toSubmodule.starProjection_eq_self_iff.mpr hv
have hh := intertwiner_hermitian L hL a ha v
rw [hlv] at hh
rw [← hh]
exact U.toSubmodule.starProjection_apply_mem _
lemmaspectral_theorem : A = (changeBasis AhA : Matrix _ _ ℂ) *
Matrix.diagonal (fun i => (values AhA i : ℂ)) * star (changeBasis AhA : Matrix _ _ ℂ) :=by
proof · 9
lines
havehe : A * (changeBasis AhA : Matrix _ _ ℂ) =
(changeBasis AhA : Matrix _ _ ℂ) * Matrix.diagonal (fun i => (values AhA i : ℂ)) :=by
ext i j
rw [Matrix.mul_diagonal]
simpa only [Matrix.mul_apply, changeBasis_apply,
Matrix.toLpLin_apply, Matrix.mulVec, dotProduct, PiLp.smul_apply, smul_eq_mul,
mul_comm] using congrArg (funv : EuclideanSpaceℂ (Fin q) => v i) (eigenvector A hA j)
have hh := congrArg (funB : Matrix (Fin q) (Fin q) ℂ=>B * star (changeBasis AhA : Matrix _ _ ℂ)) he
simpa only [Matrix.mul_assoc, (changeBasis A hA).property.2, Matrix.mul_one] using hh
lemmavalues_nonneg (hpos : A.PosSemidef) (i : Fin q) : 0≤ values A hA i :=by
proof · 4
lines
have hp := (Matrix.isPositive_toEuclideanLin_iff.mpr hpos).inner_nonneg_left (basis A hA i)
rw [eigenvector, inner_smul_left, (basis A hA).inner_eq_one i] at hp
havehp' : (0 : ℂ) ≤ (values AhA i : ℂ) :=by simpa only [Complex.conj_ofReal, mul_one] using hp
exact RCLike.ofReal_nonneg.mp hp'
defimage : Subrepresentation (TensorRep.rep (ι :=CellsD) (n :=Fin q)) where
body · 4
lines
toSubmodule :=LinearMap.range (inclusion D q hq).toLinearMap
apply_mem_toSubmodule :=by
rintro g v ⟨x,rfl⟩
exact ⟨(ordinary D q hq).toRepresentation g x,rfl⟩
(LinearEquiv.ofInjective (inclusion D q hq).toLinearMap (inclusion D q hq).injective).symm.toLinearMap.comp
((TensorRep.action a).comp (inclusion D q hq).toLinearMap |>.codRestrict
(image D q hq).toSubmodule (fun v =>TensorRep.apply_mem_hermitian _ a ha _ (inclusion_image D q hq v)))
@[simp]lemmainclusion_hermitianAction (a : Matrix (Fin q) (Fin q) ℂ) (ha : a.IsHermitian)
(v : CarrierD q hq) :
inclusion D q hq (hermitianAction D q hq a ha v) = TensorRep.action a (inclusion D q hq v) :=by
proof · 2
lines
exact congrArg Subtype.val ((LinearEquiv.ofInjective (inclusion D q hq).toLinearMap
(inclusion D q hq).injective).apply_symm_apply _)
lemmahermitianAction_symmetric (a : Matrix (Fin q) (Fin q) ℂ) (ha : a.IsHermitian) :
LinearMap.IsSymmetric (𝕜:=ℂ) (E:=CarrierD q hq) (hermitianAction D q hq a ha) :=by
proof · 4
lines
intro x y
rw [← (inclusion D q hq).inner_map_map, ← (inclusion D q hq).inner_map_map x,
inclusion_hermitianAction, inclusion_hermitianAction]
exact (Matrix.isSymmetric_toEuclideanLin_iff.mpr (tensor_hermitian D q a ha)) x.val.val y.val.val
lemmaordinary_rep_unitary (g : Matrix.unitaryGroup (Fin q) ℂ) (v w : CarrierD q hq) :
⟪(ordinary D q hq).toRepresentation g v, (ordinary D q hq).toRepresentation g w⟫_ℂ = ⟪v,w⟫_ℂ:=
theoremhermitianAction_norm_bound (a : Matrix (Fin q) (Fin q) ℂ) (ha : a.PosSemidef)
(v : CarrierD q hq) :
‖hermitianAction D q hq a ha.isHermitian v‖ ≤
highestMonomial D q hq (SortedSpectrum.values a ha.isHermitian) * ‖v‖ :=by
proof · 15
lines
rw [← (inclusion D q hq).norm_map (hermitianAction D q hq a ha.isHermitian v),
inclusion_hermitianAction, ← (inclusion D q hq).norm_map v]
let u :=SortedSpectrum.changeBasis a ha.isHermitian
let t :=SortedSpectrum.values a ha.isHermitian
have he :=SortedSpectrum.spectral_theorem a ha.isHermitian
havehin : TensorRep.rep u⁻¹ (inclusion D q hq v) ∈ alternating D q :=
(alternating D q).apply_mem_toSubmodule u⁻¹ v.val.property
have hb := diagonal_norm_bound D q hq t (SortedSpectrum.values_nonneg a ha.isHermitian ha)
(SortedSpectrum.values_antitone a ha.isHermitian) _ hin
change a = (u : Matrix _ _ ℂ) * Matrix.diagonal (fun i => (t i : ℂ)) * (↑(u⁻¹) : Matrix _ _ ℂ) at he
conv_lhs => rw [he]
simp only [map_mul, Module.End.mul_apply]
change ‖TensorRep.rep u (TensorRep.action (Matrix.diagonal _) (TensorRep.rep u⁻¹ _))‖ ≤ _
rw [raw_norm_unitary]
simpa only [raw_norm_unitary] using hb
lemmaeq_sum_slices
{E : Type*} {F : Type*}
[contextInstance1195_23 : NormedAddCommGroupE]
[contextInstance1195_46 : InnerProductSpaceℂE]
[contextInstance1196_2 : NormedAddCommGroupF]
[contextInstance1196_25 : InnerProductSpaceℂF]
[FiniteDimensionalℂE]
[FiniteDimensionalℂF] {ι : Type*} [Fintype ι] (b : Basis ι ℂF) (v : E ⊗[ℂ] F) :
v = ∑ i, rightSlice (b.coord i) v ⊗ₜ[ℂ] b i :=by
proof · 5
lines
induction v usingTensorProduct.inductionOn with
| tmul x y =>
simp only [rightSlice_tmul, TensorProduct.smul_tmul,
←TensorProduct.tmul_sum, Basis.coord_apply, Basis.sum_repr]
| add x y hx hy => simp only [map_add, TensorProduct.add_tmul, Finset.sum_add_distrib, ← hx, ← hy]
lemmarightSlice_ext {v w : E ⊗[ℂ] F}
(h : ∀β : Module.DualℂF, rightSlice β v = rightSlice β w) : v = w :=by
proof · 4
lines
classical
let b :=Module.finBasis ℂF
rw [eq_sum_slices b v, eq_sum_slices b w]
exact Finset.sum_congr rfl fun i _ => congrArg (funx : E=> x ⊗ₜ[ℂ] b i) (h _)
lemmascalar_of_commute (ρ : RepresentationℂGE) [ρ.IsIrreducible]
(A : E→ₗ[ℂ] E) (hA : ∀ g x, A (ρ g x) = ρ g (A x)) :
∃z : ℂ, A = z • LinearMap.id :=by
proof · 6
lines
let f :=A.intertwiningMap_of_isIntertwiningMap ρ ρ hA
obtain ⟨z, hz⟩ :=
(Representation.IsIrreducible.algebraMap_intertwiningMap_bijective_of_isAlgClosed (ρ := ρ)).surjective f
refine ⟨z, ?_⟩
ext x
exact (congrArg (funL : ρ.IntertwiningMap ρ =>L x) hz).symm
lemmaprojection_commute (τ : RepresentationℂGE)
(hτ : ∀ g x y, ⟪τ g x, τ g y⟫_ℂ = ⟪x,y⟫_ℂ)
(U : Subrepresentation τ) (g : G) (v : E) :
U.toSubmodule.starProjection (τ g v) = τ g (U.toSubmodule.starProjection v) :=by
proof · 10
lines
apply U.toSubmodule.eq_starProjection_of_mem_of_inner_eq_zero
· exact U.apply_mem_toSubmodule g (U.toSubmodule.starProjection_apply_mem v)
· intro w hw
have hw' :=U.apply_mem_toSubmodule g⁻¹ hw
havehe : τ g (τ g⁻¹ w) = w :=by
rw [←Module.End.mul_apply, ← map_mul, mul_inv_cancel, map_one, Module.End.one_apply]
rw [← map_sub]
conv_lhs => rhs; rw [← he]
rw [hτ]
exact U.toSubmodule.starProjection_inner_eq_zero v _ hw'
theoremirreducible (ρ : RepresentationℂGE) (σ : RepresentationℂHF)
[ρ.IsIrreducible] [σ.IsIrreducible]
(hρ : ∀ g x y, ⟪ρ g x, ρ g y⟫_ℂ = ⟪x,y⟫_ℂ)
(hσ : ∀ h x y, ⟪σ h x, σ h y⟫_ℂ = ⟪x,y⟫_ℂ) :
(rep ρ σ).IsIrreducible:=by
proof · 36
lines
let : NontrivialE:=IsSimpleModule.nontrivial (MonoidAlgebraℂG) ρ.asModule
let : NontrivialF:=IsSimpleModule.nontrivial (MonoidAlgebraℂH) σ.asModule
obtain ⟨x,hx⟩ := exists_ne (0 : E)
obtain ⟨y,hy⟩ := exists_ne (0 : F)
havehxy : x ⊗ₜ[ℂ] y ≠0:=by
intro h
have:= congrArg norm h
simp only [TensorProduct.norm_tmul, norm_zero] at this
exact (mul_ne_zero (norm_ne_zero_iff.mpr hx) (norm_ne_zero_iff.mpr hy)) this
havehtb : (⊤ : Subrepresentation (rep ρ σ)) ≠ ⊥ :=by
intro h
havehh : x ⊗ₜ[ℂ] y ∈ (⊤ : Subrepresentation (rep ρ σ)) :=by trivial
rw [h] at hh
exact hxy hh
let : Nontrivial (Subrepresentation (rep ρ σ)) := ⟨⟨⊤,⊥,htb⟩⟩
refine ⟨funU=> ?_⟩
letd : (rep ρ σ).IntertwiningMap (rep ρ σ) :=U.toSubmodule.starProjection.toLinearMap.intertwiningMap_of_isIntertwiningMap _ _
(projection_commute _ (unitary ρ σ hρ hσ) U)
obtain ⟨z,hz⟩ := commutant_scalar ρ σ d
have hproj (v : E ⊗[ℂ] F) : U.toSubmodule.starProjection v = z • v :=
congrArg (funf : E ⊗[ℂ] F→ₗ[ℂ] E ⊗[ℂ] F=> f v) hz
by_cases hz0 : z = 0
· left
apply bot_unique
intro v hv
change v = 0have hh := hproj v
rw [U.toSubmodule.starProjection_eq_self_iff.mpr hv, hz0, zero_smul] at hh
exact hh
· right
apply top_unique
intro v _
have hv :=U.toSubmodule.starProjection_apply_mem (z⁻¹ • v)
rw [hproj, smul_smul, mul_inv_cancel₀ hz0, one_smul] at hv
exact hv
lemmarepr_diagonal (a : n →ℂ) (f : F) (y : Y) :
c.repr (D' a f) y = (∏ j, a j ^ v y j) * c.repr f y :=by
proof · 7
lines
classical
calc
c.repr (D' a f) y = c.repr (D' a (∑ k, c.repr f k • c k)) y :=by rw [c.sum_repr]
_ = _ :=by
simp only [map_sum, map_smul, hc,
Basis.repr_self]
simp [Finset.sum_apply, Finsupp.single_apply, mul_comm]
lemmacoefficient_zero
{n : Type*} {X : Type*} {Y : Type*} {E : Type*} {F : Type*}
[contextInstance1400_29 : Fintype n]
[FintypeX]
[contextInstance1400_53 : FintypeY]
[contextInstance1401_2 : AddCommGroupE]
[contextInstance1401_19 : ModuleℂE]
[contextInstance1401_32 : AddCommGroupF]
[contextInstance1401_49 : ModuleℂF]
(b : BasisXℂE) (c : BasisYℂF)
(w : X→ n →ℕ) (v : Y→ n →ℕ)
(D : (n →ℂ) →E→ₗ[ℂ] E) (D' : (n →ℂ) →F→ₗ[ℂ] F)
(hb : ∀ a x, D a (b x) = (∏ j, a j ^ w x j) • b x)
(hc : ∀ a y, D' a (c y) = (∏ j, a j ^ v y j) • c y) (L : E→ₗ[ℂ] F)
(hL : ∀a : n →ℂ, (∀ j, star (a j) * a j = 1) →∀ x, L (D a x) = D' a (L x))
(x : X) (y : Y) (j : n) (hxy : w x j ≠ v y j) :
c.repr (L (b x)) y = 0:=by
proof · 25
lines
classical
letN:= w x j + v y j + 1letz : ℂ:=Complex.exp (2 * Real.pi * Complex.I / N)
havehN : N≠0:=by dsimp [N]; omega
havehz : IsPrimitiveRoot z N:=Complex.isPrimitiveRoot_exp _ hN
havehzn : ‖z‖ = 1:=Complex.norm_eq_one_of_pow_eq_one hz.pow_eq_one hN
havehzu : star z * z = 1:=by
rw [mul_comm, Complex.star_def, Complex.mul_conj, Complex.normSq_eq_norm_sq, hzn]
norm_num
leta : n →ℂ:=fun k =>if k = j then z else1haveha : ∀ k, star (a k) * a k = 1:=by
intro k
dsimp [a]
split_ifs
· exact hzu
· simp
have hh := congrArg (fun f => c.repr f y) (hL a ha (b x))
rw [hb, map_smul, map_smul, Finsupp.smul_apply, smul_eq_mul,
repr_diagonal c v D' hc] at hh
have hprod (u : n →ℕ) : (∏ k, a k ^ u k) = z ^ u j :=by
simp [a]
rw [hprod, hprod] at hh
by_contra hn
exact hxy (hz.pow_inj (by dsimp [N]; omega) (by dsimp [N]; omega)
(mul_right_cancel₀ hn hh))
theoremdiagonal (L : E→ₗ[ℂ] F)
(hL : ∀a : n →ℂ, (∀ j, star (a j) * a j = 1) →∀ x, L (D a x) = D' a (L x))
(a : n →ℂ) : L.comp (D a) = (D' a).comp L:=by
proof · 12
lines
classical
apply b.ext
intro x
apply c.repr.injective
ext y
simp only [LinearMap.comp_apply, hb, map_smul, Finsupp.smul_apply, smul_eq_mul,
repr_diagonal c v D' hc]
by_cases hw : w x = v y
· rw [hw]
· obtain ⟨j,hj⟩ :=Function.ne_iff.mp hw
rw [coefficient_zero b c w v DD' hb hc L hL x y j hj]
simp
toFun a :=Matrix.blockDiagonal (funb : Bool=> cond b a.2 a.1)
map_one' :=by
convert (Matrix.blockDiagonal_one (m :=Fin q) (o :=Bool) (α :=ℂ)) using1
congr 1
funext b
cases b <;> rfl
map_mul' a b :=by
rw [←Matrix.blockDiagonal_mul]
congr 1
funext c
cases c <;> rfl
theoremintertwiner_diagonal
(L : PairRaw (q := q) (ι := ι) (κ := κ) →ₗ[ℂ] Raw (q := q) (τ := τ))
(hL : ∀g : Group q, ∀ v, L (pairRep g v) = rep g (L v))
(a : Spin q →ℂ) (v : PairRaw (q := q) (ι := ι) (κ := κ)) :
L (pairAction (diagPair a) v) = TensorRep.action (Matrix.diagonal a) (L v) :=by
proof · 13
lines
have hh :=TorusNaturality.diagonal (pairBasis (q := q) (ι := ι) (κ := κ)).toBasis
(EuclideanSpace.basisFun (τ →Spin q) ℂ).toBasis pairContent TensorRep.content
(fun a => pairAction (diagPair a)) (fun a =>TensorRep.action (Matrix.diagonal a))
pairBasis_diagonal (fun a x =>by
simpa only [OrthonormalBasis.coe_toBasis, EuclideanSpace.basisFun_apply, TensorRep.product_content] using
(TensorRep.diagonal_single a x)) L (fun a ha v =>byletg : Group q :=
(⟨(diagPair a).1, TensorRep.diagonal_unitary_of_star_mul _ (fun j => ha (j,false))⟩,
⟨(diagPair a).2, TensorRep.diagonal_unitary_of_star_mul _ (fun j => ha (j,true))⟩)
have hh := hL g v
change L (pairAction (diagPair a) v) = TensorRep.action (block (diagPair a)) (L v) at hh
rwa [block_diagPair] at hh) a
exact congrArg (funf : _ →ₗ[ℂ] _ => f v) hh
lemmaadjoint_intertwines (L : E→ₗ[ℂ] F)
(hL : ∀ g x, L (ρ g x) = σ g (L x)) (g : G) (y : F) :
LinearMap.adjoint L (σ g y) = ρ g (LinearMap.adjoint L y) :=by
abbrevrep : Representationℂ (Group q) (Carrier a b q ha hb) :=
body · 3
lines
ExternalTensor.rep (E:=PolynomialCarrier.Carrier a q ha)
(F:=PolynomialCarrier.Carrier b q hb)
(ordinary a q ha).toRepresentation (ordinary b q hb).toRepresentation
instanceirreducible : (rep a b q ha hb).IsIrreducible:=by
body · 3
lines
let:= ordinary_irreducible a q ha
let:= ordinary_irreducible b q hb
exact ExternalTensor.irreducible _ _ (ordinary_rep_unitary a q ha) (ordinary_rep_unitary b q hb)
definclusion : Carrier a b q ha hb →ₗᵢ[ℂ]
PairRaw (q := q) (ι :=Cells a) (κ :=Cells b) :=
body · 2
lines
TensorProduct.mapIsometry (E:=PolynomialCarrier.Carrier a q ha) (F:=PolynomialCarrier.Carrier b q hb)
(PolynomialCarrier.inclusion a q ha) (PolynomialCarrier.inclusion b q hb)
lemmainclusion_equivariant (g : Group q) (v : Carrier a b q ha hb) :
inclusion a b q ha hb (rep a b q ha hb g v) =
pairRep g (inclusion a b q ha hb v) :=by
proof · 3
lines
induction v usingTensorProduct.inductionOn with
| tmul x y => rfl
| add x y hx hy => simp [hx,hy]
lemmarep_unitary (g : Group q) (v w : Carrier a b q ha hb) :
⟪rep a b q ha hb g v,rep a b q ha hb g w⟫_ℂ = ⟪v,w⟫_ℂ:=by
proof · 4
lines
rw [← (inclusion a b q ha hb).inner_map_map,
← (inclusion a b q ha hb).inner_map_map v w,
inclusion_equivariant, inclusion_equivariant]
exact SignedTensor.pairRep_unitary g _ _
lemmainclusion_hermitianAction (A : Mat q ×Mat q) (hA : A.1.IsHermitian) (hB : A.2.IsHermitian)
(v : Carrier a b q ha hb) :
inclusion a b q ha hb (hermitianAction a b q ha hb A hA hB v) =
pairAction A (inclusion a b q ha hb v) :=by
proof · 9
lines
induction v usingTensorProduct.inductionOn with
| tmul x y =>
simp only [inclusion, hermitianAction, TensorProduct.mapIsometry_apply,
TensorProduct.map_tmul, pairAction_tmul]
change PolynomialCarrier.inclusion a q ha (PolynomialCarrier.hermitianAction a q ha A.1 hA x) ⊗ₜ[ℂ]
PolynomialCarrier.inclusion b q hb (PolynomialCarrier.hermitianAction b q hb A.2 hB y) = _
rw [PolynomialCarrier.inclusion_hermitianAction, PolynomialCarrier.inclusion_hermitianAction]
rfl
| add x y hx hy => simp [hx,hy]
theoremintertwiner_hermitian
(L : (rep a b q ha hb).IntertwiningMap (SignedTensor.rep (q := q) (τ := τ)))
(A : Mat q ×Mat q) (hA : A.1.IsHermitian) (hB : A.2.IsHermitian)
(v : Carrier a b q ha hb) :
L (hermitianAction a b q ha hb A hA hB v) = TensorRep.action (block A) (L v) :=by
proof · 14
lines
letJ:= inclusion a b q ha hb
letL':=L.toLinearMap.comp (LinearMap.adjoint J.toLinearMap)
have hequiv (g : Group q) (x : PairRaw (q := q) (ι :=Cells a) (κ :=Cells b)) :
L' (pairRep g x) = SignedTensor.rep g (L' x) :=by
dsimp [L']
rw [UnitaryNaturality.adjoint_intertwines (rep a b q ha hb) pairRep
(rep_unitary a b q ha hb) SignedTensor.pairRep_unitary J.toLinearMap
(inclusion_equivariant a b q ha hb), L.isIntertwining]
have h :=SignedTensor.intertwiner_hermitian L' hequiv A hA hB (J v)
have hj (x : Carrier a b q ha hb) : L' (J x) = L x :=by
dsimp [L']
rw [UnitaryNaturality.adjoint_isometry]
rw [← inclusion_hermitianAction a b q ha hb A hA hB v, hj, hj] at h
exact h
lemmacontinuous_action (v : EuclideanSpaceℂ (ι → n)) :
Continuous (funA : Matrix n n ℂ=> action A v) :=by
proof · 4
lines
change Continuous (funA : Matrix n n ℂ=>WithLp.toLp 2 (funx : ι → n =>∑ y, (∏ i, A (x i) (y i)) * v y))
apply (PiLp.continuous_toLp 2 (fun_ : ι → n =>ℂ)).comp
fun_prop
lemmatensor_posSemidef (a : ι →Matrix n n ℂ) (ha : ∀ i, (a i).PosSemidef) :
(tensor a).PosSemidef:=by
proof · 10
lines
letr : ι →Matrix n n ℂ:=fun i =>CFC.sqrt (a i)
havehe : tensor a = star (tensor r) * tensor r :=by
rw [← tensor_star, ← tensor_mul]
congr 1
funext i
dsimp [r]
rw [(IsSelfAdjoint.of_nonneg (CFC.sqrt_nonneg (a i))).star_eq,
CFC.sqrt_mul_sqrt_self (a i) (ha i).nonneg]
rw [he]
exact Matrix.posSemidef_conjTranspose_mul_self _
lemmahermitianAction_positive (a : Matrix (Fin q) (Fin q) ℂ) (ha : a.PosSemidef) :
LinearMap.IsPositive (𝕜:=ℂ) (E:=CarrierD q hq) (hermitianAction D q hq a ha.isHermitian) :=by
proof · 4
lines
refine ⟨hermitianAction_symmetric D q hq a ha.isHermitian, ?_⟩
intro x
rw [← (inclusion D q hq).inner_map_map, inclusion_hermitianAction]
exact (TensorRep.action_positive a ha).2 (inclusion D q hq x)
lemmainclusion_linear_hermitianAction (A : Matrix (Fin q) (Fin q) ℂ) (hA : A.IsHermitian)
(v : CarrierD q hq) :
(inclusion D q hq).toLinearMap (hermitianAction D q hq A hA v) =
TensorRep.action A ((inclusion D q hq).toLinearMap v) :=
lemmasum_rowLen_eq_card : ∑j : Fin q, D.rowLen j = Fintype.card (CellsD) :=by
proof · 3
lines
have h :=Finset.sum_fiberwise Finset.univ (rowColor D q hq) (fun_ : CellsD=> (1 : ℕ))
simp only [Finset.sum_const, nsmul_eq_mul, mul_one, card_rowColor, Finset.card_univ] at h
exact_mod_cast h
let a :=CFC.sqrt Alet b :=CFC.sqrt Bhaveha : star a = a := (IsSelfAdjoint.of_nonneg (CFC.sqrt_nonneg A)).star_eq
havehb : star b = b := (IsSelfAdjoint.of_nonneg (CFC.sqrt_nonneg B)).star_eq
havehstar : star (TensorProduct.mapL a b) = TensorProduct.mapL a b :=by
change ContinuousLinearMap.adjoint (TensorProduct.mapL a b) = _
rw [TensorProduct.adjoint_mapL]
change TensorProduct.mapL (star a) (star b) = _
rw [ha,hb]
havehe : star (TensorProduct.mapL a b) * TensorProduct.mapL a b = TensorProduct.mapL AB:=by
rw [hstar, ←TensorProduct.mapL_mul]
dsimp [a,b]
rw [CFC.sqrt_mul_sqrt_self A hA, CFC.sqrt_mul_sqrt_self B hB]
rw [← he]
exact star_mul_self_nonneg _
haveha : 0≤A.toContinuousLinearMap :=
(ContinuousLinearMap.nonneg_iff_isPositive).mpr hA
havehb : 0≤B.toContinuousLinearMap :=
(ContinuousLinearMap.nonneg_iff_isPositive).mpr hB
have h := (ContinuousLinearMap.nonneg_iff_isPositive).mp (mapL_nonneg _ _ ha hb)
change ((TensorProduct.mapL A.toContinuousLinearMap B.toContinuousLinearMap).toLinearMap).IsPositive at h
simpa only [TensorProduct.toLinearMap_mapL, LinearMap.coe_toContinuousLinearMap] using h
lemmamap_norm_bound (A : E→ₗ[ℂ] E) (B : F→ₗ[ℂ] F)
(a b : ℝ) (ha : 0≤ a) (hb : 0≤ b)
(hA : ∀ x, ‖A x‖ ≤ a * ‖x‖) (hB : ∀ y, ‖B y‖ ≤ b * ‖y‖)
(v : E ⊗[ℂ] F) : ‖TensorProduct.map AB v‖ ≤ (a*b)*‖v‖ :=by
proof · 10
lines
haveha' : ‖A.toContinuousLinearMap‖ ≤ a :=ContinuousLinearMap.opNorm_le_bound _ ha hA
havehb' : ‖B.toContinuousLinearMap‖ ≤ b :=ContinuousLinearMap.opNorm_le_bound _ hb hB
calc
‖TensorProduct.map AB v‖ ≤ ‖TensorProduct.mapL A.toContinuousLinearMap B.toContinuousLinearMap‖ * ‖v‖ :=by simpa only [TensorProduct.mapL_apply, LinearMap.coe_toContinuousLinearMap] using
(ContinuousLinearMap.le_opNorm (TensorProduct.mapL A.toContinuousLinearMap B.toContinuousLinearMap) v)
_ ≤ (a*b)*‖v‖ := mul_le_mul_of_nonneg_right
((TensorProduct.norm_mapL_le _ _).trans (mul_le_mul ha' hb' (norm_nonneg _) ha)) (norm_nonneg _)
theoremprod_pow_le (n : ι →ℕ) (t : ι →ℝ) (ht : ∀ i, 0≤ t i)
(hsum : ∑ i, t i ≤1) :
∏ i, t i ^ n i ≤Real.exp (-entropy n) :=by
proof · 23
lines
classical
letp : ℕ:=∑ i, n i
by_cases hp : p = 0
· havehn : ∀ i, n i = 0:=by
intro i
have hle :=Finset.single_le_sum (fun j (_ : j ∈Finset.univ) =>Nat.zero_le (n j)) (Finset.mem_univ i)
change n i ≤ p at hle
omega
simp [entropy, hn]
havehp' : 0 < p :=Nat.pos_of_ne_zero hp
calc∏ i, t i ^ n i ≤∏ i, Real.exp ((n i : ℝ) * Real.log ((n i : ℝ) / p) + p * t i - n i) :=Finset.prod_le_prod₀ (fun i _ => pow_nonneg (ht i) _) (fun i _ => power_le_exponential _ p hp' _ (ht i))
_ = Real.exp (∑ i, ((n i : ℝ) * Real.log ((n i : ℝ) / p) + p * t i - n i)) :=
(Real.exp_sum _ _).symm
_ ≤Real.exp (-entropy n) :=by
apply Real.exp_le_exp.mpr
simp only [Finset.sum_sub_distrib, Finset.sum_add_distrib, ←Finset.mul_sum]
rw [sum_log_ratio n p hp' rfl]
havehn : ∑ i, (n i : ℝ) = p :=by simp [p]
rw [hn]
have h := mul_le_mul_of_nonneg_left hsum (Nat.cast_nonneg p : (0 : ℝ) ≤ p)
nlinarith
lemmaeigenvalues_nonneg (A : E→ₗ[ℂ] E) (hA : A.IsPositive)
(i : Fin (Module.finrank ℂE)) : 0≤ hA.isSymmetric.eigenvalues rfl i :=by
proof · 4
lines
have h := hA.inner_nonneg_right (hA.isSymmetric.eigenvectorBasis rfl i)
rw [hA.isSymmetric.apply_eigenvectorBasis rfl i, inner_smul_right,
(hA.isSymmetric.eigenvectorBasis rfl).inner_eq_one] at h
simpa only [mul_one, RCLike.ofReal_nonneg] using h
theoremeigenvalue_le_trace (A : E→ₗ[ℂ] E) (hA : A.IsPositive)
(v : E) (hv : v ≠0) (t : ℝ) (he : A v = (t : ℂ) • v) :
t ≤ (LinearMap.trace ℂEA).re :=by
proof · 17
lines
classical
let b := hA.isSymmetric.eigenvectorBasis rfl
havehcoord : ∃ i, b.repr v i ≠0:=by
by_contra! hh
apply hv
apply b.repr.injective
ext i
simpa using hh i
obtain ⟨i,hi⟩ := hcoord
have h := congrArg (funx : E=> b.repr x i) he
rw [hA.isSymmetric.eigenvectorBasis_apply_self_apply, map_smul, PiLp.smul_apply,
smul_eq_mul] at h
haveht : hA.isSymmetric.eigenvalues rfl i = t :=by
exact Complex.ofReal_injective (mul_right_cancel₀ hi h)
change t ≤RCLike.re (LinearMap.trace ℂEA)
rw [hA.isSymmetric.re_trace_eq_sum_eigenvalues rfl, ← ht]
exact Finset.single_le_sum (fun j _ => eigenvalues_nonneg A hA j) (Finset.mem_univ i)
toSubmodule :=Submodule.span ℂ (Set.range fun z : ρ.IntertwiningMap σ ×E=> z.1 z.2)
apply_mem_toSubmodule :=by
intro g v hv
induction hv usingSubmodule.span_induction with
| mem v hv =>
obtain ⟨⟨f,x⟩,rfl⟩ := hv
apply Submodule.subset_span
refine ⟨⟨f,ρ g x⟩, ?_⟩
exact Representation.IntertwiningMap.isIntertwining ρ σ f g x
| 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
lemmaendomorphism_mem (d : σ.IntertwiningMap σ) (v : F) (hv : v ∈ space ρ σ) :
d v ∈ space ρ σ :=by
proof · 7
lines
induction hv usingSubmodule.span_induction with
| mem v hv =>
obtain ⟨⟨f,x⟩,rfl⟩ := hv
exact map_mem ρ σ (d.comp f) x
| zero => simp only [map_zero]; exact (space ρ σ).toSubmodule.zero_mem
| add x y hx hy ihx ihy => rw [map_add]; exact (space ρ σ).toSubmodule.add_mem ihx ihy
| smul a x hx ih => rw [map_smul]; exact (space ρ σ).toSubmodule.smul_mem a ih
lemmanatural_mem (a : E→ₗ[ℂ] E) (A : F→ₗ[ℂ] F)
(h : ∀f : ρ.IntertwiningMap σ, ∀ x, A (f x) = f (a x))
(v : F) (hv : v ∈ space ρ σ) : A v ∈ space ρ σ :=by
proof · 8
lines
induction hv usingSubmodule.span_induction with
| mem v hv =>
obtain ⟨⟨f,x⟩,rfl⟩ := hv
rw [h]
exact map_mem ρ σ f _
| zero => simp only [map_zero]; exact (space ρ σ).toSubmodule.zero_mem
| add x y hx hy ihx ihy => rw [map_add]; exact (space ρ σ).toSubmodule.add_mem ihx ihy
| smul z x hx ih => rw [map_smul]; exact (space ρ σ).toSubmodule.smul_mem z ih
lemmascalar_on_space
{G : Type*}
[contextInstance2131_21 : GroupG]
{E : Type*} {F : Type*}
[contextInstance2132_23 : NormedAddCommGroupE]
[contextInstance2132_46 : InnerProductSpaceℂE]
[contextInstance2133_2 : NormedAddCommGroupF]
[contextInstance2133_25 : InnerProductSpaceℂF]
[FiniteDimensionalℂE]
[FiniteDimensionalℂF]
(ρ : RepresentationℂGE) (σ : RepresentationℂGF) (A : F→ₗ[ℂ] F) (c : ℂ)
(h : ∀f : ρ.IntertwiningMap σ, ∀ x, A (f x) = c • f x)
(v : F) (hv : v ∈ space ρ σ) : A v = c • v :=by
proof · 5
lines
induction hv usingSubmodule.span_induction with
| mem v hv => obtain ⟨⟨f,x⟩,rfl⟩ := hv; exact h f x
| zero => simp
| add x y hx hy ihx ihy => simp [ihx, ihy, smul_add]
| smul z x hx ih => simp [ih, smul_comm c z]
lemmaexists_nonzero_adjoint (v : F) (hv : v ∈ space ρ σ) (hv0 : v ≠0) :
∃f : ρ.IntertwiningMap σ, LinearMap.adjoint f.toLinearMap v ≠0:=by
proof · 12
lines
by_contra! hn
have horth (w : F) (hw : w ∈ space ρ σ) : ⟪w,v⟫_ℂ = 0:=by
induction hw usingSubmodule.span_induction with
| mem w hw =>
obtain ⟨⟨f,x⟩,rfl⟩ := hw
change ⟪f.toLinearMap x,v⟫_ℂ = 0
rw [←LinearMap.adjoint_inner_right, hn]
simp
| zero => simp
| add x y hx hy ihx ihy => simp [ihx, ihy]
| smul z x hx ih => simp [ih]
exact hv0 (inner_self_eq_zero.mp (horth v hv))
lemmahermitianAction_positive (A : Mat q ×Mat q) (hA : A.1.PosSemidef) (hB : A.2.PosSemidef) :
LinearMap.IsPositive (𝕜:=ℂ) (E:=Carrier a b q ha hb)
(hermitianAction a b q ha hb A hA.isHermitian hB.isHermitian) :=
proof · 4
lines
TensorPositive.map_positive (E:=PolynomialCarrier.Carrier a q ha)
(F:=PolynomialCarrier.Carrier b q hb) _ _
(PolynomialCarrier.hermitianAction_positive a q ha A.1 hA)
(PolynomialCarrier.hermitianAction_positive b q hb A.2 hB)
lemmahermitianAction_norm_bound (A : Mat q ×Mat q) (hA : A.1.PosSemidef) (hB : A.2.PosSemidef)
(v : Carrier a b q ha hb) :
‖hermitianAction a b q ha hb A hA.isHermitian hB.isHermitian v‖ ≤
(PolynomialCarrier.highestMonomial a q ha (SortedSpectrum.values A.1 hA.isHermitian) *
PolynomialCarrier.highestMonomial b q hb (SortedSpectrum.values A.2 hB.isHermitian)) * ‖v‖ :=by
proof · 6
lines
apply TensorPositive.map_norm_bound (E:=PolynomialCarrier.Carrier a q ha)
(F:=PolynomialCarrier.Carrier b q hb)
· exact Finset.prod_nonneg (fun i _ =>SortedSpectrum.values_nonneg A.1 hA.isHermitian hA _)
· exact Finset.prod_nonneg (fun i _ =>SortedSpectrum.values_nonneg A.2 hB.isHermitian hB _)
· exact PolynomialCarrier.hermitianAction_norm_bound a q ha A.1 hA
· exact PolynomialCarrier.hermitianAction_norm_bound b q hb A.2 hB
lemmasum_parts : ∑ i, parts a b q i = Fintype.card (Cells a) + Fintype.card (Cells b) :=by
proof · 3
lines
rw [Fintype.sum_sum_type]
change (∑i : Fin q, a.rowLen i) + (∑i : Fin q, b.rowLen i) = _
rw [PolynomialCarrier.sum_rowLen_eq_card a q ha, PolynomialCarrier.sum_rowLen_eq_card b q hb]
lemmaentropy_eq_source : entropy a b q =
(Fintype.card (Cells a) + Fintype.card (Cells b) : ℕ) *
Real.log (Fintype.card (Cells a) + Fintype.card (Cells b) : ℕ) -
(∑i : Fin q, (a.rowLen i : ℝ) * Real.log (a.rowLen i)) -
(∑i : Fin q, (b.rowLen i : ℝ) * Real.log (b.rowLen i)) :=by
proof · 4
lines
unfold entropy EntropyMonomial.entropy
rw [sum_parts a b q ha hb, Fintype.sum_sum_type]
simp only [parts, Sum.elim_inl, Sum.elim_inr]
ring
lemmahermitianAction_density_bound (A : Mat q ×Mat q) (hA : IsEvenDensityA)
(v : Carrier a b q ha hb) :
‖hermitianAction a b q ha hb A hA.1.isHermitian hA.2.1.isHermitian v‖ ≤Real.exp (-entropy a b q) * ‖v‖ :=by
proof · 20
lines
apply (hermitianAction_norm_bound a b q ha hb A hA.1 hA.2.1 v).trans
apply mul_le_mul_of_nonneg_right _ (norm_nonneg _)
rw [PolynomialCarrier.highestMonomial_eq_rowLen, PolynomialCarrier.highestMonomial_eq_rowLen]
lett : Fin q ⊕ Fin q →ℝ:=Sum.elim
(SortedSpectrum.values A.1 hA.1.isHermitian) (SortedSpectrum.values A.2 hA.2.1.isHermitian)
have ht (i) : 0≤ t i :=by
cases i with
| inl i => exact SortedSpectrum.values_nonneg A.1 hA.1.isHermitian hA.1 i
| inr i => exact SortedSpectrum.values_nonneg A.2 hA.2.1.isHermitian hA.2.1 i
havehs : ∑ i, t i = 1:=by
rw [Fintype.sum_sum_type]
have he1 :=SortedSpectrum.trace_eq_sum A.1 hA.1.isHermitian
have he2 :=SortedSpectrum.trace_eq_sum A.2 hA.2.1.isHermitian
haveh : (∑ i, (SortedSpectrum.values A.1 hA.1.isHermitian i : ℂ)) +
(∑ i, (SortedSpectrum.values A.2 hA.2.1.isHermitian i : ℂ)) = 1:=
(congrArg₂ (· + ·) he1.symm he2.symm).trans hA.2.2have hh := congrArg Complex.re h
simpa only [t, Sum.elim_inl, Sum.elim_inr, Complex.add_re, Complex.re_sum, Complex.ofReal_re, Complex.one_re] using hh
have h :=EntropyMonomial.prod_pow_le (parts a b q) t ht hs.le
simpa only [Fintype.prod_sum_type, parts, t, entropy, Sum.elim_inl, Sum.elim_inr] using h
lemmaexists_optimal (n : ι →ℕ) : ∃t : ι →ℝ,
(∀ i, 0≤ t i) ∧ (∑ i, t i = 1) ∧ (∏ i, t i ^ n i = Real.exp (-entropy n)) :=by
proof · 18
lines
classical
let p :=∑ i, n i
by_cases hp : p = 0
· havehn : ∀ i, n i = 0:=by
intro i
have h :=Finset.single_le_sum (fun j (_ : j ∈Finset.univ) =>Nat.zero_le (n j)) (Finset.mem_univ i)
change n i ≤ p at h
omega
let i₀ :=Classical.choice (inferInstance : Nonempty ι)
refine ⟨fun i =>if i = i₀ then1else0, ?_, ?_, ?_⟩
· intro i; dsimp only; split_ifs <;> norm_num
· simp
· simp [hn, entropy]
· refine ⟨fun i => (n i : ℝ) / p, fun i => div_nonneg (Nat.cast_nonneg _) (Nat.cast_nonneg _), ?_, ?_⟩
· rw [←Finset.sum_div]
havehe : ∑ i, (n i : ℝ) = p :=by simp [p]
rw [he, div_self (by exact_mod_cast hp)]
· exact optimal_prod n p (Nat.pos_of_ne_zero hp) rfl
lemmadensity_on_space (A : Mat q ×Mat q) (hA : IsEvenDensityA)
(v : Raw (q := q) (τ := τ))
(hv : v ∈Isotypic.space (rep a b q ha hb) (SignedTensor.rep (q := q) (τ := τ))) :
‖TensorRep.action (block A) v‖ ≤Real.exp (-entropy a b q) * ‖v‖ :=by
proof · 9
lines
exact Isotypic.norm_bound (E:=Carrier a b q ha hb) (F:=Raw (q := q) (τ := τ))
(rep a b q ha hb) (SignedTensor.rep (q := q) (τ := τ))
(hermitianAction a b q ha hb A hA.1.isHermitian hA.2.1.isHermitian)
(TensorRep.action (block A))
(hermitianAction_positive a b q ha hb A hA.1 hA.2.1).isSymmetric
(TensorRep.action_positive (block A) (block_posSemidef A hA.1 hA.2.1)).isSymmetric
(funL x => (intertwiner_hermitian a b q ha hb LA hA.1.isHermitian hA.2.1.isHermitian x).symm)
(Real.exp (-entropy a b q)) (Real.exp_pos _).le
(hermitianAction_density_bound a b q ha hb A hA) v hv
lemmaprojected_density_bound (A : Mat q ×Mat q) (hA : IsEvenDensityA)
(v : Raw (q := q) (τ := τ)) :
‖TensorRep.action (block A) (typeProjection a b q ha hb v)‖ ≤Real.exp (-entropy a b q) * ‖v‖ :=by
proof · 5
lines
exact (density_on_space a b q ha hb A hA _
(Isotypic.projection_mem (rep a b q ha hb) (SignedTensor.rep (q := q) (τ := τ)) v)).trans
(mul_le_mul_of_nonneg_left
(Isotypic.projection_norm_apply_le (rep a b q ha hb) (SignedTensor.rep (q := q) (τ := τ)) v)
(Real.exp_pos _).le)
theoremglobal_density_upper (A : Mat q ×Mat q) (hA : IsEvenDensityA) :
‖LinearMap.toContinuousLinearMap (TensorRep.action (ι := τ) (block A)) *
typeProjection (τ := τ) a b q ha hb‖ ≤Real.exp (-entropy a b q) :=by
proof · 3
lines
apply ContinuousLinearMap.opNorm_le_bound _ (Real.exp_pos _).le
intro v
exact projected_density_bound a b q ha hb A hA v
lemmahighestVector_ne_zero : highestVector a b q ha hb ≠0:=by
proof · 6
lines
intro h
have hn := congrArg norm h
rw [highestVector, TensorProduct.norm_tmul (E:=PolynomialCarrier.Carrier a q ha)
(F:=PolynomialCarrier.Carrier b q hb), norm_zero] at hn
exact (mul_ne_zero (norm_ne_zero_iff.mpr (PolynomialCarrier.highestVector_ne_zero a q ha))
(norm_ne_zero_iff.mpr (PolynomialCarrier.highestVector_ne_zero b q hb))) hn
lemmahighestVector_diagonal (t : Fin q ⊕ Fin q →ℝ) :
hermitianAction a b q ha hb
(Matrix.diagonal (fun i => (t (.inl i) : ℂ)), Matrix.diagonal (fun i => (t (.inr i) : ℂ)))
(Matrix.isHermitian_diagonal_iff.mpr (fun i =>by simp [IsSelfAdjoint]))
(Matrix.isHermitian_diagonal_iff.mpr (fun i =>by simp [IsSelfAdjoint]))
(highestVector a b q ha hb) =
((∏ i, t i ^ parts a b q i : ℝ) : ℂ) • highestVector a b q ha hb :=by
lemmaexists_density_trace_lower [Nonempty (Fin q)] : ∃ (A : Mat q ×Mat q) (hA : IsEvenDensityA),
Real.exp (-entropy a b q) ≤
(LinearMap.trace ℂ (Carrier a b q ha hb)
(hermitianAction a b q ha hb A hA.1.isHermitian hA.2.1.isHermitian)).re :=by
proof · 15
lines
obtain ⟨t,ht,hs,he⟩ :=EntropyMonomial.exists_optimal (parts a b q)
letA : Mat q ×Mat q :=
(Matrix.diagonal (fun i => (t (.inl i) : ℂ)), Matrix.diagonal (fun i => (t (.inr i) : ℂ)))
havehA : IsEvenDensityA:=by
refine ⟨Matrix.PosSemidef.diagonal (fun i =>by simpa using ht (.inl i)),
Matrix.PosSemidef.diagonal (fun i =>by simpa using ht (.inr i)), ?_⟩
simp only [A, Matrix.trace_diagonal]
have hh := congrArg Complex.ofReal hs
simpa only [Fintype.sum_sum_type, Complex.ofReal_add, Complex.ofReal_sum, Complex.ofReal_one] using hh
refine ⟨A,hA,?_⟩
apply PositiveTrace.eigenvalue_le_trace _ (hermitianAction_positive a b q ha hb A hA.1 hA.2.1)
(highestVector a b q ha hb) (highestVector_ne_zero a b q ha hb)
have h := highestVector_diagonal a b q ha hb t
rw [he] at h
exact h
lemmaborder_factor {n : ℕ} (a : ℂ) (ha : a ≠0) (b c : Fin n →ℂ) (LU : Mat n) :
border 10 (fun i => c i / a) L * border a b 0U =
border a b c (L * U + (Matrix.of fun i j => c i / a * b j)) :=by
lemmalower_border {n : ℕ} (c : Fin n →ℂ) (L : Mat n) (hL : LowerUnipotentL) :
LowerUnipotent (border 10 c L) :=by
proof · 12
lines
constructor
· intro i j hij
change i < j at hij
induction i usingFin.cases <;> induction j usingFin.cases
· simp at hij
· rfl
· simp at hij
· exact hL.1 (by simpa using hij)
· intro i
refine Fin.cases ?_ (fun i => ?_) i
· rfl
· exact hL.2 i
lemmaborder_mem_bigCell {n : ℕ} (a : ℂ) (ha : a ≠0) (b c : Fin n →ℂ) (S : Mat n)
(hS : S∈ bigCell n) :
border a b c (S + (Matrix.of fun i j => c i / a * b j)) ∈ bigCell (n+1) :=by
proof · 3
lines
obtain ⟨L,U,hL,hU,rfl⟩ := hS
exact ⟨border 10 (fun i => c i / a) L, border a b 0U,
lower_border _ _ hL, upper_border _ _ _ hU, (border_factor a ha b c LU).symm⟩
induction n with
| zero =>
intro A
apply subset_closure
refine ⟨1,1,?_,?_,?_⟩
· refine ⟨?_,?_⟩ <;> intro i <;> exact Fin.elim0 i
· intro i; exact Fin.elim0 i
· exact Subsingleton.elim _ _
| succ n ih =>have hpivot (a : ℂ) (ha : a ≠0) (b c : Fin n →ℂ) (D : Mat n) :
border a b c D∈ closure (bigCell (n+1)) :=byletX : Mat n :=fun i j => c i / a * b j
havehf : Continuous (funS : Mat n => border a b c (S + X)) :=
continuous_border continuous_const continuous_const continuous_const
(continuous_id.add continuous_const)
have hh := map_mem_closure hf (ih (D-X))
(funS hS => border_mem_bigCell a ha b c S hS)
change border a b c (D - X + X) ∈ closure (bigCell (n+1)) at hh
simpa only [sub_add_cancel] using hh
intro Aletb : Fin n →ℂ:=fun j =>A0 j.succ
letc : Fin n →ℂ:=fun i =>A i.succ 0letD : Mat n :=fun i j =>A i.succ j.succ
havehf : Continuous (funa : ℂ=> border a b c D) :=
continuous_border continuous_id continuous_const continuous_const continuous_const
have hh := map_mem_closure hf ((dense_compl_singleton (0 : ℂ)) (A00))
(fun a ha => hpivot a (by simpa using ha) b c D)
simpa only [closure_closure, b, c, D, border_eq] using hh
lemmaaction_mem_alternating (A : Matrix (Fin q) (Fin q) ℂ)
(v : TensorSpaceD q) (hv : v ∈ alternating D q) :
TensorRep.action A v ∈ alternating D q :=by
proof · 2
lines
intro g
rw [← action_site_commute, hv g, map_smul]
lemmaupper_weight_support (U : Matrix (Fin q) (Fin q) ℂ) (hU : U.IsUpperTriangular)
(x : CellsD→Fin q) (hx : TensorRep.action U (highest D q hq) x ≠0) :
∑ i, (x i).val = ∑i : CellsD, i.val.1:=by
proof · 13
lines
have hl := rowRankSum_le D (fun i => (x i).val)
(alternating_injective D q _ (action_mem_alternating D q U _ (highest_mem D q hq)) x hx)
apply le_antisymm _ hl
change (∑ y, (∏ i, U (x i) (y i)) * highest D q hq y) ≠0 at hx
obtain ⟨y, -, hy⟩ :=Finset.exists_ne_zero_of_sum_ne_zero hx
havehyv : highest D q hq y ≠0:= (mul_ne_zero_iff.mp hy).2havehp : ∀ i, x i ≤ y i :=by
intro i
by_contra hi
havehz : U (x i) (y i) = 0:= hU (lt_of_not_ge hi)
exact (mul_ne_zero_iff.mp hy).1 (Finset.prod_eq_zero (Finset.mem_univ i) hz)
rw [← weight_eigen_support D q hq _ (highest_weight_eigen D q hq) y hyv]
exact Finset.sum_le_sum fun i _ => hp i
lemmaupper_highest (U : Matrix (Fin q) (Fin q) ℂ) (hU : U.IsUpperTriangular) :
TensorRep.action U (highest D q hq) =
(TensorRep.action U (highest D q hq) (rowColor D q hq)) • highest D q hq :=by
proof · 12
lines
ext x
change _ = _ * highest D q hq x
by_cases hw : ∑ i, (x i).val = ∑i : CellsD, i.val.1
· exact alternating_minimal_weight D q hq _
(action_mem_alternating D q U _ (highest_mem D q hq)) x hw
· havehv0 : TensorRep.action U (highest D q hq) x = 0:=by
by_contra hn
exact hw (upper_weight_support D q hq U hU x hn)
havehe0 : highest D q hq x = 0:=by
by_contra hn
exact hw (weight_eigen_support D q hq _ (highest_weight_eigen D q hq) x hn)
rw [hv0, he0, mul_zero]
lemmaeval_lowerCoordinate (L : Matrix (Fin q) (Fin q) ℂ) (hL : DenseLU.LowerUnipotentL)
(x : CellsD→Fin q) :
aeval (lowerParameters q L) (lowerCoordinate D q hq x) =
TensorRep.action L (highest D q hq) x :=by
proof · 7
lines
simp only [lowerCoordinate, map_sum, map_mul, map_prod, eval_lowerEntry q L hL]
change (∑y : CellsD→Fin q, (∏ i, L (x i) (y i)) *
aeval (lowerParameters q L) (C (highest D q hq y))) =
∑y : CellsD→Fin q, (∏ i, L (x i) (y i)) * highest D q hq y
apply Finset.sum_congr rfl
intro y _
simp
letP:= lowerCoordinateBounded D q hq
letS:=LinearMap.range (PolyDimension.valueTranspose (Fintype.card (CellsD)) P)
have hL (L : Matrix (Fin q) (Fin q) ℂ) (hL : DenseLU.LowerUnipotentL) :
TensorRep.action L (highest D q hq) ∈S:=byhave hh :=PolyDimension.value_mem_range (Fintype.card (CellsD)) P (lowerParameters q L)
havehe : WithLp.toLp 2 (fun x => aeval (lowerParameters q L) (P x).val) =
TensorRep.action L (highest D q hq) :=by
ext x; exact eval_lowerCoordinate D q hq L hL x
rw [he] at hh
exact hh
letinc : (ordinary D q hq).toSubmodule →ₗ[ℂ] TensorSpaceD q :=
(alternating D q).toSubmodule.subtype.comp (ordinary D q hq).toSubmodule.subtype
have hcarrier (v : (alternating D q).toSubmodule)
(hv : v ∈ (ordinary D q hq).toSubmodule) : (v : TensorSpaceD q) ∈S:=by
change v ∈Submodule.span ℂ (Set.range fun g =>
(alternating D q).toRepresentation g
(⟨highest D q hq, highest_mem D q hq⟩ : (alternating D q).toSubmodule)) at hv
induction hv usingSubmodule.span_induction with
| mem v hv =>
obtain ⟨g,rfl⟩ := hv
exact action_highest_mem_of_lower D q hq S hL g.val
| zero => exact S.zero_mem
| add x y hx hy ihx ihy => exact S.add_mem ihx ihy
| smul a x hx ih => exact S.smul_mem a ih
have hinc (v : (ordinary D q hq).toSubmodule) : inc v ∈S:= hcarrier v.val v.property
letf : (ordinary D q hq).toSubmodule →ₗ[ℂ] S:=LinearMap.codRestrict S inc hinc
havehf : Function.Injective f :=by
intro x y he
apply Subtype.ext
apply Subtype.ext
exact congrArg (funv : S=> v.val) he
have hh :=LinearMap.finrank_le_finrank_of_injective hf
exact hh.trans (by
simpa only [PolyDimension.card_lowerIndex] usingPolyDimension.finrank_value_range (Fintype.card (CellsD)) P)
lemmatwirl_commute (ρ : G→* A) (hρ : Continuous ρ) (a : A) (g : G) :
Commute (ρ g) (twirl ρ a) :=by
proof · 9
lines
have hi := integrable_conjugate ρ hρ a
havehinv : (ρ g⁻¹) * ρ g = 1:=by rw [← map_mul, inv_mul_cancel, map_one]
havehe : ρ g * twirl ρ a * ρ g⁻¹ = twirl ρ a :=by
rw [twirl, ← integral_const_mul_of_integrable hi]
rw [← integral_mul_const_of_integrable (hi.const_mul _)]
simp_rw [← conjugate_mul]
exact integral_mul_left_eq_self _ g
have hc := congrArg (funx : A=> x * ρ g) he
simpa only [Commute, SemiconjBy, mul_assoc, hinv, mul_one] using hc
apply isCompact_iff_compactSpace.mp
apply (isCompact_closedBall (0 : Matrix n n ℂ) 1).of_isClosed_subset isClosed_unitary
intro a ha
rw [Metric.mem_closedBall, dist_zero_right]
exact (CStarRing.norm_coe_unitary (⟨a, ha⟩ : unitary (Matrix n n ℂ))).le
lemmatwirl_natural (ρ : RepresentationℂGE) (σ : RepresentationℂGF)
(hρ : Continuous (continuousAction ρ)) (hσ : Continuous (continuousAction σ))
(a : E→L[ℂ] E) (A : F→L[ℂ] F) (L : ρ.IntertwiningMap σ)
(hnat : ∀ x, A (L x) = L (a x)) (x : E) :
twirl (continuousAction σ) A (L x) = L (twirl (continuousAction ρ) a x) :=by
proof · 9
lines
have hi := integrable_conjugate (continuousAction ρ) hρ a
have hI := integrable_conjugate (continuousAction σ) hσ A
rw [twirl, ContinuousLinearMap.integral_apply hI, twirl, ContinuousLinearMap.integral_apply hi]
change _ = L.toLinearMap.toContinuousLinearMap (∫ g, conjugate (continuousAction ρ) a g x ∂compactHaar)
rw [←ContinuousLinearMap.integral_comp_comm _ (hi.apply_continuousLinearMap x)]
apply integral_congr_ae
filter_upwards [] with g
change σ g (A (σ g⁻¹ (L x))) = L (ρ g (a (ρ g⁻¹ x)))
rw [←L.isIntertwining, hnat, L.isIntertwining]
lemmascalar_projection_le (TP : A) (hT : 0≤T) (hP : IsStarProjectionP)
(c : ℝ) (he : T * P = c • P) : c • P≤T:=by
proof · 10
lines
have hstar := congrArg star he
havehpT : P * T = c • P:=by
simpa only [star_mul, hP.isSelfAdjoint.star_eq, (IsSelfAdjoint.of_nonneg hT).star_eq,
star_smul, star_trivial] using hstar
havehc : Commute (1-P) T:=by
dsimp [Commute,SemiconjBy]
rw [sub_mul,mul_sub,one_mul,mul_one,hpT,he]
have hn := hc.mul_nonneg (sub_nonneg.mpr hP.le_one) hT
rw [sub_mul,one_mul,hpT] at hn
exact sub_nonneg.mp hn
classical
let : CompactSpace s := isCompact_iff_compactSpace.mp hs
letC (k : ℕ) := (Convexity.StdSimplexℝ (Fin k)) × (Fin k → s)
let f (k : ℕ) (v : C k) : E:=∑ i, v.1.weights i • (v.2 i).val
have hf (k : ℕ) : Continuous (f k) :=by
change Continuous (funv : (Convexity.StdSimplexℝ (Fin k)) × (Fin k → s) =>∑ i, v.1.weights i • (v.2 i).val)
apply continuous_finsetSum
intro i hi
exact ((Convexity.StdSimplex.continuous_weights_apply ℝ i).comp continuous_fst).smul
(continuous_subtype_val.comp ((continuous_apply i).comp continuous_snd))
havehc : IsCompact (⋃ k : Fin (Module.finrank ℝE + 2), Set.range (f k.val)) :=
isCompact_iUnion (fun k => isCompact_range (hf k.val))
convert hc using1
ext x
constructor
· intro hx
let t :=Caratheodory.minCardFinsetOfMemConvexHull hx
haveht : (t : SetE) ⊆ s :=Caratheodory.minCardFinsetOfMemConvexHull_subseteq hx
havehm : x ∈ convexHull ℝ (t : SetE) :=Caratheodory.mem_minCardFinsetOfMemConvexHull hx
havehi : AffineIndependentℝ ((↑) : t →E) :=Caratheodory.affineIndependent_minCardFinsetOfMemConvexHull hx
havehn : Fintype.card t ≤Module.finrank ℝE + 1:=
hi.card_le_finrank_succ.trans (Nat.add_le_add_right (Submodule.finrank_le _) 1)
letk : Fin (Module.finrank ℝE + 2) := ⟨Fintype.card t, by omega⟩
let e := (Fintype.equivFin t).symm
obtain ⟨w,hw,hws,hxw⟩ :=Finset.mem_convexHull'.mp hm
letz : Fin k.val → s :=fun i => ⟨(e i).val, ht (e i).property⟩
havehsum : ∑i : Fin k.val, w (e i).val = 1:=by
rw [show (∑i : Fin k.val, w (e i).val) = ∑j : t, w j.val from
e.sum_comp (funj : t => w j.val)]
simpa only [Finset.sum_coe_sort] using hws
letv : C k.val := (⟨Finsupp.equivFunOnFinite.symm (fun i => w (e i).val),
fun i =>by simpa using hw _ (e i).property,
by simpa [Finsupp.sum_fintype] using hsum⟩, z)
apply Set.mem_iUnion.mpr
refine ⟨k,v,?_⟩
simp only [f, v, z, Finsupp.coe_equivFunOnFinite_symm]
rw [show (∑i : Fin k.val, w (e i).val • (e i).val) = ∑j : t, w j.val • j.val from
e.sum_comp (funj : t => w j.val • j.val)]
exact (Finset.sum_coe_sort t (funj : E=> w j • j)).trans hxw
· intro hx
obtain ⟨k,v,rfl⟩ :=Set.mem_iUnion.mp hx
exact mem_convexHull_of_exists_fintype (fun i => v.1.weights i) (fun i => (v.2 i).val)
v.1.weights_nonneg v.1.total_of_fintype (fun i => (v.2 i).property) rfl
lemmatwirl_finite_mixture (ρ : RepresentationℂGE)
(hρ : Continuous (continuousAction ρ)) (a : E→L[ℂ] E) :
∃ (ι : Type) (_ : Fintype ι) (w : ι →ℝ) (g : ι →G),
(∀ i, 0≤ w i) ∧ (∑ i, w i = 1) ∧
twirl (continuousAction ρ) a = ∑ i, w i • conjugate (continuousAction ρ) a (g i) :=by
proof · 15
lines
let f := conjugate (continuousAction ρ) a
havehf : Continuous f := continuous_conjugate _ hρ a
havehc : IsCompact (Set.range f) := isCompact_range hf
havehm : twirl (continuousAction ρ) a ∈ convexHull ℝ (Set.range f) :=
(convex_convexHull ℝ _).integral_mem (CompactMixture.convexHull_compact hc).isClosed
(Filter.Eventually.of_forall fun g => subset_convexHull ℝ _ (Set.mem_range_self g))
(integrable_conjugate _ hρ a)
obtain ⟨ι,hι,w,z,hw,hs,hz,he⟩ := mem_convexHull_iff_exists_fintype.mp hm
let:= hι
choose g hg using hz
refine ⟨ι,hι,w,g,hw,hs,?_⟩
rw [← he]
apply Finset.sum_congr rfl
intro i _
rw [← hg i]
lemmadimension_eq : dimension a b q ha hb =
Module.finrank ℂ (PolynomialCarrier.Carrier a q ha) *
Module.finrank ℂ (PolynomialCarrier.Carrier b q hb) :=
lemmatwirl_lower (A : Mat q ×Mat q) (hA : IsEvenDensityA) :
((LinearMap.trace ℂ (Carrier a b q ha hb)
(hermitianAction a b q ha hb A hA.1.isHermitian hA.2.1.isHermitian)).re /
(dimension a b q ha hb : ℝ)) • typeProjection (τ := τ) a b q ha hb ≤
twirl (continuousAction (SignedTensor.rep (q := q) (τ := τ)))
(LinearMap.toContinuousLinearMap (TensorRep.action (block A))) :=by
proof · 10
lines
exact isotypic_twirl_lower (E:=Carrier a b q ha hb) (F:=Raw (q := q) (τ := τ))
(rep a b q ha hb) SignedTensor.rep
(continuous_rep a b q ha hb) SignedTensor.continuous_rep SignedTensor.rep_unitary
(LinearMap.toContinuousLinearMap (hermitianAction a b q ha hb A hA.1.isHermitian hA.2.1.isHermitian))
(LinearMap.toContinuousLinearMap (TensorRep.action (block A)))
((ContinuousLinearMap.nonneg_iff_isPositive).mpr
(hermitianAction_positive a b q ha hb A hA.1 hA.2.1))
((ContinuousLinearMap.nonneg_iff_isPositive).mpr
(TensorRep.action_positive (block A) (block_posSemidef A hA.1 hA.2.1)))
(funL x => (intertwiner_hermitian a b q ha hb LA hA.1.isHermitian hA.2.1.isHermitian x).symm)
lemmainverse_mono (a b : EuclideanSpaceℂ n →L[ℂ] EuclideanSpaceℂ n) (h : a ≤ b) :
(Matrix.toEuclideanCLM (n := n) (𝕜:=ℂ)).symm a ≤ (Matrix.toEuclideanCLM (n := n) (𝕜:=ℂ)).symm b :=by
theoremexists_density_mixture :
∃ (ι : Type) (_ : Fintype ι) (w : ι →ℝ) (R : ι →Mat q ×Mat q),
(∀ i, 0≤ w i) ∧ (∑ i, w i = 1) ∧ (∀ i, IsEvenDensity (R i)) ∧
typeProjection (τ := τ) a b q ha hb ≤
(Real.exp (entropy a b q) * (dimension a b q ha hb : ℝ)) •
∑ i, w i • LinearMap.toContinuousLinearMap (TensorRep.action (block (R i))) :=by
proof · 13
lines
obtain ⟨A,hA,htr⟩ := exists_density_trace_lower a b q ha hb
obtain ⟨ι,hι,w,g,hw,hs,he⟩ := twirl_finite_mixture
(SignedTensor.rep (q := q) (τ := τ)) SignedTensor.continuous_rep
(LinearMap.toContinuousLinearMap (TensorRep.action (block A)))
let:= hι
refine ⟨ι,hι,w,fun i => conjugateDensity (g i) A,hw,hs,
fun i => conjugateDensity_isEvenDensity (g i) A hA,?_⟩
have hh := twirl_lower (τ := τ) a b q ha hb A hA
have hbound :=ProjectionOrder.rescale_trace_lower _ _
(projection_isStarProjection (τ := τ) a b q ha hb).nonneg (entropy a b q)
_ (dimension a b q ha hb : ℝ) (by exact_mod_cast dimension_pos a b q ha hb) htr hh
rw [he] at hbound
simpa only [tensor_conjugateDensity] using hbound
lemmamatrixProjection_isStarProjection : IsStarProjection (matrixProjection (τ := τ) a b q ha hb) :=by
proof · 10
lines
have hp := projection_isStarProjection (τ := τ) a b q ha hb
constructor
· change matrixProjection a b q ha hb * matrixProjection a b q ha hb = _
unfold matrixProjection
rw [← map_mul, hp.isIdempotentElem.eq]
· change star (matrixProjection a b q ha hb) = _
unfold matrixProjection
have hs := (Matrix.toEuclideanCLM (n := τ →Spin q) (𝕜:=ℂ)).symm.map_star'
(typeProjection a b q ha hb)
exact hs.symm.trans (congrArg (Matrix.toEuclideanCLM (n := τ →Spin q) (𝕜:=ℂ)).symm hp.isSelfAdjoint.star_eq)
lemmamatrix_density_upper (A : Mat q ×Mat q) (hA : IsEvenDensityA) :
‖TensorRep.tensor (fun_ : τ => block A) * matrixProjection a b q ha hb‖ ≤Real.exp (-entropy a b q) :=by
proof · 3
lines
have h := global_density_upper (τ := τ) a b q ha hb A hA
rw [←MatrixBridge.inverse_norm] at h
simpa only [map_mul, inverse_action, matrixProjection] using h
lemmadensity_projection_commute (A : Mat q ×Mat q) (hA : IsEvenDensityA) :
Commute (LinearMap.toContinuousLinearMap (TensorRep.action (ι := τ) (block A)))
(typeProjection a b q ha hb) :=by
proof · 10
lines
change _ * _ = _ * _
apply ContinuousLinearMap.ext
intro v
exact (Isotypic.projection_commute_natural (E:=Carrier a b q ha hb) (F:=Raw (q := q) (τ := τ))
(rep a b q ha hb) SignedTensor.rep
(hermitianAction a b q ha hb A hA.1.isHermitian hA.2.1.isHermitian)
(TensorRep.action (block A))
(TensorRep.action_positive (block A) (block_posSemidef A hA.1 hA.2.1)).isSymmetric
(funL x => (intertwiner_hermitian a b q ha hb LA hA.1.isHermitian hA.2.1.isHermitian x).symm)
v).symm
lemmamatrix_density_commute (A : Mat q ×Mat q) (hA : IsEvenDensityA) :
Commute (TensorRep.tensor (fun_ : τ => block A)) (matrixProjection a b q ha hb) :=by
proof · 3
lines
have h := (density_projection_commute (τ := τ) a b q ha hb A hA).map
(Matrix.toEuclideanCLM (n := τ →Spin q) (𝕜:=ℂ)).symm
simpa only [inverse_action, matrixProjection] using h
theoremexists_matrix_density_mixture :
∃ (ι : Type) (_ : Fintype ι) (w : ι →ℝ) (R : ι →Mat q ×Mat q),
(∀ i, 0≤ w i) ∧ (∑ i, w i = 1) ∧ (∀ i, IsEvenDensity (R i)) ∧
matrixProjection (τ := τ) a b q ha hb ≤
(Real.exp (entropy a b q) * (dimension a b q ha hb : ℝ)) •
∑ i, w i • TensorRep.tensor (fun_ : τ => block (R i)) :=by
proof · 5
lines
obtain ⟨ι,hι,w,R,hw,hs,hR,hdom⟩ := exists_density_mixture (τ := τ) a b q ha hb
let:= hι
refine ⟨ι,hι,w,R,hw,hs,hR,?_⟩
have h :=MatrixBridge.inverse_mono _ _ hdom
simpa only [MatrixBridge.inverse_real_smul, map_sum, inverse_action, matrixProjection] using h
lemmasupport_isStarProjection (a : Mat n) : IsStarProjection (support a) :=by
proof · 8
lines
refine ⟨?_, support_selfAdjoint a⟩
change support a * support a = support a
rw [support, ← cfc_mul _ _ _ (Matrix.finite_real_spectrum (A:= a) |>.continuousOn _)
(Matrix.finite_real_spectrum (A:= a) |>.continuousOn _)]
apply cfc_congr
intro x _
dsimp only
split_ifs <;> norm_num
lemmaroot_mul_support_of_le_smul (a b : Mat n) (ha : 0≤ a) (hb : 0≤ b)
(c : ℝ) (hba : b ≤ c • a) : root b * support a = root b :=by
proof · 20
lines
let e :=1 - support a
havehe : IsStarProjection e := (support_isStarProjection a).one_sub
havehae : a * e = 0:=by
dsimp [e]
rw [mul_sub, mul_one, mul_support a ha, sub_self]
havehupper : star e * b * e ≤0:=byhave hc := star_left_conjugate_le_conjugate hba e
simpa only [mul_smul_comm, smul_mul_assoc, mul_assoc, hae, mul_zero, smul_zero] using hc
havehzero : star e * b * e = 0:=
le_antisymm hupper (star_left_conjugate_nonneg hb e)
havehrootzero : star (root b * e) * (root b * e) = 0:=by
rw [star_mul, (root_selfAdjoint b).star_eq]
calc
(star e * root b) * (root b * e) = star e * (root b * root b) * e :=by
simp only [mul_assoc]
_ = 0:=by rw [root_mul_self b hb, hzero]
have h := (CStarRing.star_mul_self_eq_zero_iff _).mp hrootzero
dsimp [e] at h
rw [mul_sub, mul_one] at h
exact (sub_eq_zero.mp h).symm
lemmainvRoot_mul_self_mul_invRoot (a : Mat n) (ha : 0≤ a) :
invRoot a * a * invRoot a = support a :=by
proof · 8
lines
havehc : Commute (invRoot a) a := invRoot_commute (Commute.refl a)
havehr : Commute (root a) (invRoot a) := root_commute hc.symm
calc
invRoot a * a * invRoot a = invRoot a * (root a * root a) * invRoot a :=
congrArg (fun x => invRoot a * x * invRoot a) (root_mul_self a ha).symm
_ = (invRoot a * root a) * (root a * invRoot a) :=by simp only [mul_assoc]
_ = support a * support a :=by rw [hr.eq, invRoot_mul_root a ha]
_ = support a := (support_isStarProjection a).isIdempotentElem.eq
lemmacell_trace_identity (a b c : Mat n) (ha : 0≤ a) (hc : 0≤ c) :
(star (root a * invRoot b * root c) * (root a * invRoot b * root c)).trace =
(invRoot b * a * invRoot b * c).trace :=by
proof · 11
lines
havehe : star (root a * invRoot b * root c) * (root a * invRoot b * root c) =
root c * (invRoot b * a * invRoot b) * root c :=by
simp only [star_mul, (root_selfAdjoint a).star_eq,
(root_selfAdjoint c).star_eq, (invRoot_selfAdjoint b).star_eq]
calc
root c * (invRoot b * root a) * (root a * invRoot b * root c) =
root c * (invRoot b * (root a * root a) * invRoot b) * root c :=by
simp only [mul_assoc]
_ = _ :=by rw [root_mul_self a ha]
rw [he, Matrix.trace_mul_comm (root c * (invRoot b * a * invRoot b)) (root c)]
rw [← mul_assoc, root_mul_self c hc, Matrix.trace_mul_comm c]
lemmare_trace_projection_mul_le (q b : Mat n) (hq : IsStarProjection q) (hb : 0≤ b) :
(q * b).trace.re ≤ b.trace.re :=by
proof · 5
lines
have h := re_trace_mono (star_left_conjugate_le_conjugate hq.le_one (root b))
rw [mul_one, (root_selfAdjoint b).star_eq, root_mul_self b hb] at h
rw [Matrix.trace_mul_comm (root b * q) (root b), ← mul_assoc,
root_mul_self b hb, Matrix.trace_mul_comm b q] at h
exact h
lemmatensor_mul
{ι : Type*} {n : Type*}
[contextInstance3707_23 : Fintype ι]
[contextInstance3707_35 : DecidableEq ι]
[contextInstance3707_51 : Fintype n]
[DecidableEq n] (a b : ι →Mat n) :
tensor (fun i => a i * b i) = tensor a * tensor b :=by
proof · 5
lines
ext x y
simp only [tensor, Matrix.mul_apply, ←Finset.prod_mul_distrib]
symm
simpa using (Finset.sum_prod_piFinset (ι := ι) Finset.univ
(fun i j => a i (x i) j * b i j (y i)))
ext x y
classical
by_cases h : x = y
· subst y
simp [tensor]
· havehxy : ∃ i, x i ≠ y i :=Function.ne_iff.mp h
obtain ⟨i, hi⟩ := hxy
simp only [tensor, Matrix.one_apply, ite_eq_right h]
apply Finset.prod_eq_zero (Finset.mem_univ i)
simp [hi]
lemmatensor_norm_sq_le_re_trace_product (a : ι →Mat n) :
‖tensor a‖ ^ 2≤∏ i, (star (a i) * a i).trace.re :=by
proof · 8
lines
have hreal (i : ι) : (star (a i) * a i).trace = ((star (a i) * a i).trace.re : ℂ) :=Complex.eq_re_of_ofReal_le (r :=0)
(by exact (Matrix.nonneg_iff_posSemidef.mp (star_mul_self_nonneg _)).trace_nonneg)
calc
_ ≤ (∏ i, (star (a i) * a i).trace).re := tensor_norm_sq_le_trace_product a
_ = (∏ i, ((star (a i) * a i).trace.re : ℂ)).re :=
congrArg Complex.re (Finset.prod_congr rfl fun i _ => hreal i)
_ = _ :=by rw [←Complex.ofReal_prod, Complex.ofReal_re]
lemmatensor_cell_norm_sq_le_product (a b c : ι →Mat n)
(ha : ∀ i, 0≤ a i) (hc : ∀ i, 0≤ c i) :
‖tensor (fun i => root (a i) * invRoot (b i) * root (c i))‖ ^ 2≤∏ i, (invRoot (b i) * a i * invRoot (b i) * c i).trace.re :=by
proof · 2
lines
have h := tensor_norm_sq_le_re_trace_product (fun i => root (a i) * invRoot (b i) * root (c i))
simpa only [cell_trace_identity _ _ _ (ha _) (hc _)] using h
theoremmissingCellProduct {ι : Type*} [Fintype ι]
(m : ℕ) (b : ι →ℕ) (hb : ∀ i, b i ≤ m) :
missingCellProductFactor m b ≤Real.exp (∑ i, (b i : ℝ)) :=by
proof · 6
lines
unfold missingCellProductFactor
calc∏ i, missingCellFactor m (b i) ≤∏ i, Real.exp (b i : ℝ) :=Finset.prod_le_prod₀ (fun i _ => missingCellFactor_nonneg m (b i))
(fun i _ => missingCellFactor_le_exp m (b i) (hb i))
_ = Real.exp (∑ i, (b i : ℝ)) := (Real.exp_sum _ _).symm
lemmaretained_factor_eq_missingCellFactor (W : Finset (R×C)) (i : R) :
((Fintype.card C : ℝ) / (occupiedRow W i).card) ^ (occupiedRow W i).card =
missingCellFactor (Fintype.card C) (missingInRow W i) :=by
proof · 7
lines
have hc := occupiedRow_card_le W i
unfold missingInRow missingCellFactor
rw [Nat.sub_sub_self hc]
split_ifs with h
· rfl
· havehk : (occupiedRow W i).card = 0:=by omega
simp [hk]
lemmaprod_occupiedRow
{ι : Type*}
[Fintype ι]
[DecidableEq ι]
{R : Type*} {C : Type*}
[contextInstance3877_23 : FintypeR]
[contextInstance3877_35 : DecidableEqR]
[contextInstance3877_51 : FintypeC]
[contextInstance3877_63 : DecidableEqC] (W : Finset (R×C)) (z : R→C→ℝ) :
(∏ i, ∏ j ∈ occupiedRow W i, z i j) = ∏ x ∈W, z x.1 x.2:=by
proof · 6
lines
simp only [occupiedRow, Finset.prod_filter]
rw [←Finset.prod_product (f :=funx : R×C=>if x ∈Wthen z x.1 x.2else1)]
simp only [Finset.univ_product_univ, ←Finset.prod_filter]
congr 1
ext x
simp
lemmaboard_product_le (W : Finset (R×C)) (z : R→C→ℝ)
(hz : ∀ i j, 0≤ z i j) (hs : ∀ i, ∑ j, z i j ≤Fintype.card C) :
(∏ x ∈W, z x.1 x.2) ≤
missingCellProductFactor (Fintype.card C) (missingInRow W) :=by
proof · 8
lines
rw [← prod_occupiedRow (ι :=R) W z]
unfold missingCellProductFactor
apply Finset.prod_le_prod₀
· intro i _
exact Finset.prod_nonneg fun j _ => hz i j
· intro i _
rw [← retained_factor_eq_missingCellFactor]
exact retained_product_le (occupiedRow W i) (z i) (hz i) (hs i)
theoremnormalized_board_bound (W : Finset (R×C))
(r : C→Density n) (s : R→Density n) :
‖tensor (funw : W=> root (r w.val.2).matrix *
invRoot (average r) * root (s w.val.1).matrix)‖ ^ 2≤
missingCellProductFactor (Fintype.card C) (missingInRow W) :=by
proof · 12
lines
letz : R→C→ℝ:=fun i j =>
(invRoot (average r) * (r j).matrix * invRoot (average r) * (s i).matrix).trace.re
havehz : ∀ i j, 0≤ z i j :=fun i j =>
(Complex.nonneg_iff.mp (cell_trace_nonneg _ _ _ (r j).nonneg (s i).nonneg)).1havehs : ∀ i, ∑ j, z i j ≤Fintype.card C:=fun i => support_cell_trace_sum r (s i)
calc
_ ≤∏w : W, z w.val.1 w.val.2:=
tensor_cell_norm_sq_le_product _ _ _ (fun w => (r w.val.2).nonneg)
(fun w => (s w.val.1).nonneg)
_ = ∏ w ∈W, z w.1 w.2:=
(Finset.prod_subtype W (by intro w; rfl) (fun w => z w.1 w.2)).symm
_ ≤ _ := board_product_le W z hz hs
lemmatensor_star
{ι : Type*}
[contextInstance4012_21 : Fintype ι]
[DecidableEq ι]
{ν : ι →Type*}
[∀ i, Fintype (ν i)]
[∀ i, DecidableEq (ν i)] (A : ∀ i, Mat (ν i)) : tensor (fun i => star (A i)) = star (tensor A) :=by
ext x y
classical
by_cases h : x = y
· subst y; simp [tensor]
· obtain ⟨i,hi⟩ :=Function.ne_iff.mp h
simp only [tensor, Matrix.one_apply, ite_eq_right h]
apply Finset.prod_eq_zero (Finset.mem_univ i)
simp [hi]
lemmatensor_nonneg (A : ∀ i, Mat (ν i)) (hA : ∀ i, 0≤A i) : 0≤ tensor A:=by
proof · 8
lines
havehe : tensor A = star (tensor (fun i =>CFC.sqrt (A i))) * tensor (fun i =>CFC.sqrt (A i)) :=by
rw [← tensor_star, ← tensor_mul]
congr 1
funext i
rw [(IsSelfAdjoint.of_nonneg (CFC.sqrt_nonneg (A i))).star_eq,
CFC.sqrt_mul_sqrt_self (A i) (hA i)]
rw [he]
exact star_mul_self_nonneg _
lemmatensor_smul
{ι : Type*}
[contextInstance4012_21 : Fintype ι]
[DecidableEq ι]
{ν : ι →Type*}
[∀ i, Fintype (ν i)]
[∀ i, DecidableEq (ν i)] (w : ι →ℝ) (A : ∀ i, Mat (ν i)) :
tensor (fun i => w i • A i) = (∏ i, w i) • tensor A:=by
proof · 5
lines
ext x y
simp only [tensor, Matrix.smul_apply, RCLike.real_smul_eq_coe_smul (K:=ℂ), smul_eq_mul,
Finset.prod_mul_distrib]
change (∏ i, (w i : ℂ)) * _ = ((∏ i, w i : ℝ) : ℂ) * _
rw [Complex.ofReal_prod]
lemmatensor_sum_smul {κ : ι →Type*} [∀ i, Fintype (κ i)]
(w : ∀ i, κ i →ℝ) (A : ∀ i, κ i →Mat (ν i)) :
tensor (fun i =>∑ k, w i k • A i k) =
∑f : ∀ i, κ i, (∏ i, w i (f i)) • tensor (fun i =>A i (f i)) :=by
lemmatensor_mono (AB : ∀ i, Mat (ν i)) (hA : ∀ i, 0≤A i) (hAB : ∀ i, A i ≤B i) :
tensor A≤ tensor B:=by
proof · 12
lines
letM (i : ι) (b : Bool) : Mat (ν i) :=if b thenB i - A i elseA i
have he (i : ι) : (∑b : Bool, M i b) = B i :=by
simp [M]
have hm (i : ι) (b : Bool) : 0≤M i b :=by
cases b
· exact hA i
· exact sub_nonneg.mpr (hAB i)
rw [showB = (fun i =>∑b : Bool, M i b) by funext i; exact (he i).symm, tensor_sum]
have h :=Finset.single_le_sum (s := (Finset.univ : Finset (ι →Bool)))
(f :=fun f => tensor (fun i =>M i (f i)))
(fun f _ => tensor_nonneg _ (fun i => hm i (f i))) (Finset.mem_univ (fun _ =>false))
exact h
lemmatensor_mono (AB : ∀ j, Mat (Fiber f j → n)) (hA : ∀ j, 0≤A j) (hAB : ∀ j, A j ≤B j) :
tensor f A≤ tensor f B:=by
proof · 3
lines
have he :=DependentTensor.tensor_mono AB hA hAB
have hn := (Matrix.nonneg_iff_posSemidef.mp (sub_nonneg.mpr he)).submatrix (splitEquiv f) |>.nonneg
exact sub_nonneg.mp hn
lemmatensor_projection (P : ∀ j, Mat (Fiber f j → n)) (hP : ∀ j, IsStarProjection (P j)) :
IsStarProjection (tensor f P) :=by
proof · 11
lines
constructor
· change tensor f P * tensor f P = tensor f P
rw [← tensor_mul]
congr 1
funext j
exact (hP j).isIdempotentElem.eq
· change star (tensor f P) = tensor f P
rw [← tensor_star]
congr 1
funext j
exact (hP j).isSelfAdjoint.star_eq
lemmatensor_sum_smul {κ : J→Type*} [∀ j, Fintype (κ j)]
(w : ∀ j, κ j →ℝ) (A : ∀ j, κ j →Mat (Fiber f j → n)) :
tensor f (fun j =>∑ k, w j k • A j k) =
∑k : ∀ j, κ j, (∏ j, w j (k j)) • tensor f (fun j =>A j (k j)) :=by
proof · 4
lines
ext x y
change DependentTensor.tensor (fun j =>∑ k, w j k • A j k) _ _ = _
rw [DependentTensor.tensor_sum_smul]
simp only [Matrix.sum_apply, Matrix.smul_apply, tensor]
lemmatensor_root (A : ι →Mat n) (hA : ∀ i, 0≤A i) :
tensor (fun i => root (A i)) = root (tensor A) :=by
proof · 3
lines
apply (CFC.mul_self_eq_mul_self_iff _ _
(tensor_nonneg _ (fun i => root_nonneg (A i))) (root_nonneg _)).mp
rw [tensor_root_square A hA, root_mul_self _ (tensor_nonneg A hA)]
lemmatensor_invRoot_mul_root (A : ι →Mat n) (hA : ∀ i, 0≤A i) :
tensor (fun i => invRoot (A i)) * tensor (fun i => root (A i)) =
tensor (fun i => support (A i)) :=by
lemmatensor_root_mul_support_of_le_smul (AB : ι →Mat n)
(hA : ∀ i, 0≤A i) (hB : ∀ i, 0≤B i)
(c : ℝ) (hAB : ∀ i, A i ≤ c • B i) :
tensor (fun i => root (A i)) * tensor (fun i => support (B i)) =
tensor (fun i => root (A i)) :=by
proof · 4
lines
rw [← tensor_mul]
congr 1
funext i
exact root_mul_support_of_le_smul _ _ (hB i) (hA i) c (hAB i)
lemmasum_occupiedRow_card (W : Finset (R×C)) :
∑ i, (occupiedRow W i).card = W.card :=by
proof · 8
lines
have he (i : R) : (occupiedRow W i).card = ∑j : C, if (i,j) ∈Wthen1else0:=by
simp only [occupiedRow, Finset.card_eq_sum_ones, Finset.sum_filter]
simp only [he]
rw [←Finset.sum_product (f :=funx : R×C=>if x ∈Wthen (1 : ℕ) else0)]
simp only [Finset.univ_product_univ, ←Finset.sum_filter]
havehe : (Finset.univ.filter fun x : R×C=> x ∈W) = W:=by ext x; simp
rw [he]
simp
lemmasum_missingInRow (W : Finset (R×C)) :
∑ i, missingInRow W i = Fintype.card R * Fintype.card C - W.card :=by
proof · 6
lines
havehe : (∑ i, missingInRow W i) + W.card = Fintype.card R * Fintype.card C:=by
rw [← sum_occupiedRow_card W, ←Finset.sum_add_distrib]
have hi (i : R) : missingInRow W i + (occupiedRow W i).card = Fintype.card C:=Nat.sub_add_cancel (occupiedRow_card_le W i)
simp [hi]
omega
lemmaboardPhi_le_exp_holes (W : Finset (R×C)) :
missingCellProductFactor (Fintype.card C) (missingInRow W) ≤Real.exp (Fintype.card R * Fintype.card C - W.card : ℕ) :=by
proof · 5
lines
have h := missingCellProduct (Fintype.card C) (missingInRow W) (missingInRow_le W)
havehs : (∑ i, (missingInRow Wi : ℝ)) =
(Fintype.card R * Fintype.card C - W.card : ℕ) :=by
exact_mod_cast sum_missingInRow W
rwa [hs] at h
havehs : ∑ i, SignedCarrier.parts D.even D.odd q i = 0:=
(SignedCarrier.sum_parts D.even D.odd q D.even_height D.odd_height).trans hD
havehi : ∀ i, SignedCarrier.parts D.even D.odd q i = 0:=by
intro i
have h :=Finset.single_le_sum (s :=Finset.univ)
(fun j _ =>Nat.zero_le (SignedCarrier.parts D.even D.odd q j)) (Finset.mem_univ i)
rw [hs] at h
exact Nat.eq_zero_of_le_zero h
simp [entropy, SignedCarrier.entropy, EntropyMonomial.entropy, hi]
theoremdensity_mixture (f : τ →J) (D : J→TypeLabel q) :
∃ (ι : Type u) (_ : Fintype ι) (w : ι →ℝ) (R : ι →J→EvenDensity q),
(∀ i, 0≤ w i) ∧ (∑ i, w i = Real.exp (entropy D) * (dimension D : ℝ)) ∧
projection f D≤∑ i, w i • TensorMatrix.tensor (funt : τ => (R i (f t)).matrix) :=by
proof · 36
lines
classical
choose κ hκ w R hw hs hdom using (funj : J=> (D j).density_mixture (τ :=Fiber f j))
let : ∀ j, Fintype (κ j) := hκ
let c (j : J) : ℝ:=Real.exp (D j).entropy * (D j).dimension
let z (j : J) (i : κ j) : ℝ:= c j * w j i
have hz (j : J) (i : κ j) : 0≤ z j i :=
mul_nonneg (mul_nonneg (Real.exp_pos _).le (Nat.cast_nonneg _)) (hw j i)
have hsum (j : J) : ∑ i, z j i = c j :=by
simp only [z, ←Finset.mul_sum, hs, mul_one]
have hlocal (j : J) : (D j).projection (Fiber f j) ≤∑ i, z j i • TensorMatrix.tensor (fun_ : Fiber f j => (R j i).matrix) :=by
simpa only [z, c, Finset.smul_sum, smul_smul] using hdom j
refine ⟨(∀ j, κ j), inferInstance, (fun i =>∏ j, z j (i j)),
(fun i j =>R j (i j)), (fun i =>Finset.prod_nonneg fun j _ => hz j (i j)), ?_, ?_⟩
· rw [←Fintype.prod_sum]
simp only [hsum, c, Finset.prod_mul_distrib]
rw [←Real.exp_sum]
simp only [entropy, dimension, Nat.cast_prod]
· have h :=BlockTensor.tensor_mono f _ _
(fun j => ((D j).projection_isStarProjection (Fiber f j)).nonneg) hlocal
rw [BlockTensor.tensor_sum_smul] at h
have he (i : ∀ j, κ j) : BlockTensor.tensor f
(fun j =>TensorMatrix.tensor (fun_ : Fiber f j => (R j (i j)).matrix)) =
TensorMatrix.tensor (funt : τ => (R (f t) (i (f t))).matrix) :=by
ext x y
change (∏j : J, ∏t : Fiber f j, (R j (i j)).matrix (x t.val) (y t.val)) =
∏t : τ, (R (f t) (i (f t))).matrix (x t) (y t)
calc
_ = ∏j : J, ∏t : Fiber f j, (R (f t.val) (i (f t.val))).matrix (x t.val) (y t.val) :=by
apply Finset.prod_congr rfl
intro j hj
apply Finset.prod_congr rfl
intro t ht
rw [t.property]
_ = _ :=BlockTensor.prod_fibers f (fun t => (R (f t) (i (f t))).matrix (x t) (y t))
simpa only [he, projection] using h