Buckets:
| import Mathlib | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators ComplexConjugate InnerProductSpace Matrix TensorProduct | |
| open scoped Matrix.Norms.L2Operator MatrixOrder ComplexOrder | |
| namespace SpinAngle.Specht | |
| variable {G : Type*} [Group G] | |
| variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] | |
| def cyclic (ρ : Representation ℂ G E) (e : E) : Subrepresentation ρ where | |
| toSubmodule := Submodule.span ℂ (Set.range fun g => ρ g e) | |
| apply_mem_toSubmodule g := by | |
| intro v hv | |
| induction hv using Submodule.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 | |
| end SpinAngle.Specht | |
| namespace SpinAngle.TensorRep | |
| variable {ι n : Type*} [Fintype ι] [DecidableEq ι] [Fintype n] [DecidableEq n] | |
| def tensor (a : ι → Matrix n n ℂ) : Matrix (ι → n) (ι → n) ℂ := | |
| fun x y => ∏ i, a i (x i) (y i) | |
| lemma tensor_mul | |
| {ι : Type*} {n : Type*} | |
| [Fintype ι] | |
| [DecidableEq ι] | |
| [Fintype n] | |
| [DecidableEq n] (a b : ι → Matrix n n ℂ) : | |
| tensor (fun i => a i * b i) = tensor a * tensor b := by | |
| 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))) | |
| lemma tensor_one | |
| {ι : Type*} {n : Type*} | |
| [Fintype ι] | |
| [DecidableEq ι] | |
| [Fintype n] | |
| [DecidableEq n] : tensor (fun _ : ι => (1 : Matrix n n ℂ)) = 1 := 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] | |
| lemma toEuclideanLin_mul | |
| {ι : Type*} {n : Type*} | |
| [Fintype ι] | |
| [DecidableEq ι] | |
| [Fintype n] | |
| [DecidableEq n] (a b : Matrix n n ℂ) : | |
| Matrix.toEuclideanLin (a * b) = | |
| Matrix.toEuclideanLin a * Matrix.toEuclideanLin b := by | |
| ext v x | |
| change ((a * b) *ᵥ (WithLp.ofLp v)) x = (a *ᵥ (b *ᵥ (WithLp.ofLp v))) x | |
| rw [Matrix.mulVec_mulVec] | |
| lemma toEuclideanLin_one | |
| {ι : Type*} {n : Type*} | |
| [Fintype ι] | |
| [DecidableEq ι] | |
| [Fintype n] | |
| [DecidableEq n] : Matrix.toEuclideanLin (1 : Matrix n n ℂ) = 1 := by | |
| ext v x | |
| change ((1 : Matrix n n ℂ) *ᵥ (WithLp.ofLp v)) x = v x | |
| simp | |
| def action : Matrix n n ℂ →* Module.End ℂ (EuclideanSpace ℂ (ι → n)) where | |
| toFun a := Matrix.toEuclideanLin (tensor (fun _ : ι => a)) | |
| map_one' := by rw [tensor_one, toEuclideanLin_one (ι := ι)] | |
| map_mul' a b := by rw [tensor_mul, toEuclideanLin_mul (ι := ι)] | |
| def rep : Representation ℂ (Matrix.unitaryGroup n ℂ) (EuclideanSpace ℂ (ι → n)) := | |
| action.comp (Matrix.unitaryGroup n ℂ).subtype | |
| lemma tensor_reindex | |
| {ι : Type*} {n : Type*} | |
| [Fintype ι] | |
| [DecidableEq ι] | |
| [Fintype n] | |
| [DecidableEq n] (a : Matrix n n ℂ) (σ : Equiv.Perm ι) (x y : ι → n) : | |
| tensor (fun _ : ι => a) (x ∘ σ) (y ∘ σ) = tensor (fun _ : ι => a) x y := by | |
| exact Equiv.prod_comp σ (fun i => a (x i) (y i)) | |
| end SpinAngle.TensorRep | |
| namespace SpinAngle.Specht | |
| open scoped Classical | |
| variable {G : Type*} [Group G] | |
| namespace PermutationSpace | |
| open scoped Classical | |
| variable {X : Type*} [Fintype X] [MulAction G X] | |
| def rep : Representation ℂ G (EuclideanSpace ℂ X) where | |
| 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] | |
| variable {H : Type*} [Group H] [Fintype H] | |
| def alternator (ι : H →* G) (χ : H →* ℂ) : Module.End ℂ (EuclideanSpace ℂ X) := | |
| ∑ h, χ h • rep (ι h) | |
| omit [Fintype X] in | |
| lemma alternator_apply (ι : H →* G) (χ : H →* ℂ) (v : EuclideanSpace ℂ X) : | |
| alternator ι χ v = ∑ h, χ h • rep (ι h) v := by | |
| simp [alternator, LinearMap.sum_apply] | |
| lemma rep_alternator | |
| {G : Type*} {H : Type*} {X : Type*} | |
| [Group G] | |
| [Group H] | |
| [Fintype H] | |
| [Fintype X] | |
| [MulAction G X] (ι : H →* G) (χ : H →* ℂ) (a : H) | |
| (v : EuclideanSpace ℂ X) : | |
| rep (ι a) (alternator ι χ v) = χ a⁻¹ • alternator ι χ v := by | |
| rw [alternator_apply, map_sum, Finset.smul_sum] | |
| have he := Equiv.sum_comp (Equiv.mulLeft a) | |
| (fun h => χ a⁻¹ • (χ h • (rep (ι h) v : EuclideanSpace ℂ X))) | |
| rw [← he] | |
| apply Finset.sum_congr rfl | |
| intro h _ | |
| simp only [Equiv.coe_mulLeft, smul_smul, map_mul, map_smul] | |
| rw [show χ a⁻¹ * (χ a * χ h) = χ h by | |
| rw [← mul_assoc, ← map_mul, inv_mul_cancel, map_one, one_mul]] | |
| rfl | |
| end PermutationSpace | |
| variable {α : Type*} [Fintype α] | |
| def complexSign : Equiv.Perm α →* ℂ where | |
| toFun g := ((Equiv.Perm.sign g : ℤˣ) : ℤ) | |
| map_one' := by simp | |
| map_mul' := by intro g h; simp | |
| @[simp] lemma complexSign_inv (g : Equiv.Perm α) : complexSign g⁻¹ = complexSign g := by | |
| simp [complexSign] | |
| end SpinAngle.Specht | |
| namespace SpinAngle.Young | |
| abbrev Cells (D : YoungDiagram) := {p : ℕ × ℕ // p ∈ D.cells} | |
| end SpinAngle.Young | |
| namespace SpinAngle.PolynomialCarrier | |
| open scoped Classical Matrix | |
| open SpinAngle.Specht SpinAngle.Young | |
| variable {ι n : Type*} [Fintype ι] [DecidableEq ι] [Fintype n] [DecidableEq n] | |
| instance coloringAction : MulAction (Equiv.Perm ι) (ι → n) where | |
| smul g x := x ∘ g.symm | |
| one_smul _ := rfl | |
| mul_smul _ _ _ := rfl | |
| def reindex (g : Equiv.Perm ι) : (ι → n) ≃ (ι → n) where | |
| toFun x := x ∘ g | |
| invFun x := x ∘ g.symm | |
| left_inv x := by funext i; simp | |
| right_inv x := by funext i; simp | |
| lemma action_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 | |
| 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] | |
| def columnGroup (D : YoungDiagram) : Subgroup (Equiv.Perm (Cells D)) where | |
| carrier := {g | ∀ x, (g x).val.2 = x.val.2} | |
| one_mem' := fun _ => rfl | |
| mul_mem' := by intro g h hg hh x; exact (hg (h x)).trans (hh x) | |
| inv_mem' := by | |
| intro g hg x | |
| simpa using (hg (g⁻¹ x)).symm | |
| variable (D : YoungDiagram) (q : ℕ) | |
| abbrev TensorSpace := EuclideanSpace ℂ (Cells D → Fin q) | |
| def alternating : Subrepresentation (TensorRep.rep (ι := Cells D) (n := Fin q)) where | |
| toSubmodule := { | |
| carrier := {v | ∀ g : columnGroup D, | |
| PermutationSpace.rep (g : Equiv.Perm (Cells D)) v = complexSign g.val • v} | |
| zero_mem' := by intro g; simp | |
| add_mem' := by intro x y hx hy g; simp [map_add, hx g, hy g, smul_add] | |
| smul_mem' := by intro c x hx g; simp [map_smul, hx g, smul_comm c] } | |
| apply_mem_toSubmodule a := by | |
| intro v hv g | |
| change PermutationSpace.rep g.val (TensorRep.action (a : Matrix (Fin q) (Fin q) ℂ) v) = _ | |
| rw [← action_site_commute, hv g, map_smul] | |
| rfl | |
| variable (hq : D.colLen 0 ≤ q) | |
| def rowColor : Cells D → Fin q := fun x => ⟨x.val.1, by | |
| have hm := D.up_left_mem le_rfl (Nat.zero_le x.val.2) x.property | |
| have hl := YoungDiagram.mem_iff_lt_colLen.mp hm | |
| exact lt_of_lt_of_le hl hq⟩ | |
| def highest : TensorSpace D q := by | |
| classical | |
| exact PermutationSpace.alternator (columnGroup D).subtype | |
| (complexSign.comp (columnGroup D).subtype) | |
| (EuclideanSpace.single (rowColor D q hq) (1 : ℂ)) | |
| lemma highest_mem : highest D q hq ∈ alternating D q := by | |
| classical | |
| intro g | |
| change PermutationSpace.rep g.val (PermutationSpace.alternator _ _ _) = _ | |
| have hh := PermutationSpace.rep_alternator (columnGroup D).subtype | |
| (complexSign.comp (columnGroup D).subtype) g (EuclideanSpace.single (rowColor D q hq) (1 : ℂ)) | |
| change PermutationSpace.rep g.val (highest D q hq) = complexSign (g.val⁻¹) • highest D q hq at hh | |
| rw [complexSign_inv] at hh | |
| exact hh | |
| def ordinary : Subrepresentation (alternating D q).toRepresentation := | |
| cyclic (alternating D q).toRepresentation | |
| (⟨highest D q hq, highest_mem D q hq⟩ : (alternating D q).toSubmodule) | |
| abbrev Carrier : Type := (ordinary D q hq).toSubmodule | |
| instance carrierInner : InnerProductSpace ℂ (Carrier D q hq) := | |
| .innerProductSpace ℂ (alternating D q).toSubmodule _ _ inferInstance | |
| (ordinary D q hq).toSubmodule | |
| end SpinAngle.PolynomialCarrier | |
| namespace SpinAngle.ExternalTensor | |
| open Module | |
| variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] | |
| [NormedAddCommGroup F] [InnerProductSpace ℂ F] | |
| [FiniteDimensional ℂ E] [FiniteDimensional ℂ F] | |
| variable {G H : Type*} [Group G] [Group H] | |
| def rep (ρ : Representation ℂ G E) (σ : Representation ℂ H F) : | |
| Representation ℂ (G × H) (E ⊗[ℂ] F) := | |
| Representation.tprod (ρ.comp (MonoidHom.fst G H)) (σ.comp (MonoidHom.snd G H)) | |
| end SpinAngle.ExternalTensor | |
| namespace SpinAngle.SignedTensor | |
| open scoped Classical Matrix TensorProduct InnerProductSpace | |
| open Module | |
| variable {q : ℕ} | |
| abbrev Spin (q : ℕ) := Fin q × Bool | |
| abbrev Mat (q : ℕ) := Matrix (Fin q) (Fin q) ℂ | |
| abbrev Group (q : ℕ) := Matrix.unitaryGroup (Fin q) ℂ × Matrix.unitaryGroup (Fin q) ℂ | |
| def block : (Mat q × Mat q) →* Matrix (Spin q) (Spin q) ℂ where | |
| toFun a := Matrix.blockDiagonal (fun b : Bool => cond b a.2 a.1) | |
| map_one' := by | |
| convert (Matrix.blockDiagonal_one (m := Fin q) (o := Bool) (α := ℂ)) using 1 | |
| congr 1 | |
| funext b | |
| cases b <;> rfl | |
| map_mul' a b := by | |
| rw [← Matrix.blockDiagonal_mul] | |
| congr 1 | |
| funext c | |
| cases c <;> rfl | |
| lemma block_star (a : Mat q × Mat q) : block (star a) = star (block a) := by | |
| change Matrix.blockDiagonal (fun b : Bool => cond b (star a.2) (star a.1)) = (Matrix.blockDiagonal (fun b : Bool => cond b a.2 a.1))ᴴ | |
| rw [Matrix.blockDiagonal_conjTranspose] | |
| congr 1 | |
| funext b | |
| cases b <;> rfl | |
| def blockGroup : Group q →* Matrix.unitaryGroup (Spin q) ℂ where | |
| toFun g := ⟨block (g.1.val,g.2.val), by | |
| rw [Matrix.mem_unitaryGroup_iff', ← block_star, ← map_mul] | |
| have he : star (g.1.val,g.2.val) * (g.1.val,g.2.val) = 1 := | |
| Prod.ext g.1.property.1 g.2.property.1 | |
| rw [he, map_one]⟩ | |
| map_one' := by | |
| apply Subtype.ext | |
| change block (1 : Mat q × Mat q) = 1 | |
| exact block.map_one | |
| map_mul' g h := by | |
| apply Subtype.ext | |
| change block ((g.1.val,g.2.val) * (h.1.val,h.2.val)) = | |
| block (g.1.val,g.2.val) * block (h.1.val,h.2.val) | |
| exact block.map_mul _ _ | |
| variable {ι κ τ : Type*} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] | |
| [Fintype τ] [DecidableEq τ] | |
| abbrev Raw := EuclideanSpace ℂ (τ → Spin q) | |
| def rep : Representation ℂ (Group q) (Raw (q := q) (τ := τ)) := | |
| (TensorRep.rep (ι := τ)).comp blockGroup | |
| end SpinAngle.SignedTensor | |
| namespace SpinAngle.EntropyMonomial | |
| variable {ι : Type*} [Fintype ι] | |
| def entropy (n : ι → ℕ) : ℝ := | |
| (∑ i, n i : ℕ) * Real.log (∑ i, n i : ℕ) - ∑ i, (n i : ℝ) * Real.log (n i) | |
| end SpinAngle.EntropyMonomial | |
| namespace SpinAngle.Isotypic | |
| variable {G : Type*} [Group G] | |
| variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℂ E] | |
| [NormedAddCommGroup F] [InnerProductSpace ℂ F] | |
| [FiniteDimensional ℂ E] [FiniteDimensional ℂ F] | |
| variable (ρ : Representation ℂ G E) (σ : Representation ℂ G F) | |
| def space : Subrepresentation σ where | |
| toSubmodule := Submodule.span ℂ (Set.range fun z : ρ.IntertwiningMap σ × E => z.1 z.2) | |
| apply_mem_toSubmodule := by | |
| intro g v hv | |
| induction hv using Submodule.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] using Submodule.add_mem _ ihx ihy | |
| | smul a x hx ih => simpa only [map_smul] using Submodule.smul_mem _ a ih | |
| def projection : F →L[ℂ] F := (space ρ σ).toSubmodule.starProjection | |
| end SpinAngle.Isotypic | |
| namespace SpinAngle.SignedCarrier | |
| open scoped Classical TensorProduct InnerProductSpace | |
| open SpinAngle.Young SpinAngle.Specht PolynomialCarrier Module SignedTensor | |
| variable (a b : YoungDiagram) (q : ℕ) (ha : a.colLen 0 ≤ q) (hb : b.colLen 0 ≤ q) | |
| abbrev Carrier := PolynomialCarrier.Carrier a q ha ⊗[ℂ] PolynomialCarrier.Carrier b q hb | |
| instance carrierNormed : NormedAddCommGroup (Carrier a b q ha hb) := | |
| TensorProduct.instNormedAddCommGroup (𝕜 := ℂ) | |
| (E := PolynomialCarrier.Carrier a q ha) (F := PolynomialCarrier.Carrier b q hb) | |
| instance carrierInner : InnerProductSpace ℂ (Carrier a b q ha hb) := | |
| TensorProduct.instInnerProductSpace (𝕜 := ℂ) | |
| (E := PolynomialCarrier.Carrier a q ha) (F := PolynomialCarrier.Carrier b q hb) | |
| instance carrierFinite : FiniteDimensional ℂ (Carrier a b q ha hb) := | |
| inferInstanceAs (FiniteDimensional ℂ (PolynomialCarrier.Carrier a q ha ⊗[ℂ] PolynomialCarrier.Carrier b q hb)) | |
| abbrev rep : Representation ℂ (Group q) (Carrier a b q ha hb) := | |
| ExternalTensor.rep (E := PolynomialCarrier.Carrier a q ha) | |
| (F := PolynomialCarrier.Carrier b q hb) | |
| (ordinary a q ha).toRepresentation (ordinary b q hb).toRepresentation | |
| def parts : Fin q ⊕ Fin q → ℕ := Sum.elim (fun i => a.rowLen i) (fun i => b.rowLen i) | |
| def entropy : ℝ := EntropyMonomial.entropy (parts a b q) | |
| def dimension : ℕ := Module.finrank ℂ (Carrier a b q ha hb) | |
| variable {τ : Type*} [Fintype τ] [DecidableEq τ] | |
| abbrev typeProjection : Raw (q := q) (τ := τ) →L[ℂ] Raw (q := q) (τ := τ) := | |
| Isotypic.projection (rep a b q ha hb) SignedTensor.rep | |
| def matrixProjection : Matrix (τ → Spin q) (τ → Spin q) ℂ := | |
| (Matrix.toEuclideanCLM (n := τ → Spin q) (𝕜 := ℂ)).symm (typeProjection a b q ha hb) | |
| end SpinAngle.SignedCarrier | |
| namespace SpinAngle | |
| def missingCellFactor (m b : ℕ) : ℝ := | |
| if b < m then ((m : ℝ) / (m - b : ℕ)) ^ (m - b) else 1 | |
| def missingCellProductFactor {ι : Type*} [Fintype ι] (m : ℕ) (b : ι → ℕ) : ℝ := | |
| ∏ i, missingCellFactor m (b i) | |
| universe u_2 u_3 | |
| variable {R : Type u_2} {C : Type u_3} | |
| [Fintype R] [DecidableEq R] [Fintype C] [DecidableEq C] | |
| def occupiedRow (W : Finset (R × C)) (i : R) : Finset C := | |
| Finset.univ.filter (fun j => (i, j) ∈ W) | |
| def missingInRow (W : Finset (R × C)) (i : R) : ℕ := | |
| Fintype.card C - (occupiedRow W i).card | |
| end SpinAngle | |
| namespace SpinAngle.DependentTensor | |
| variable {ι : Type*} [Fintype ι] [DecidableEq ι] | |
| variable {ν : ι → Type*} [∀ i, Fintype (ν i)] [∀ i, DecidableEq (ν i)] | |
| abbrev Mat (n : Type*) := Matrix n n ℂ | |
| def tensor (A : ∀ i, Mat (ν i)) : Mat (∀ i, ν i) := fun x y => ∏ i, A i (x i) (y i) | |
| end SpinAngle.DependentTensor | |
| namespace SpinAngle.BlockTensor | |
| open DependentTensor | |
| variable {τ J n : Type*} [Fintype τ] [DecidableEq τ] [Fintype J] [DecidableEq J] | |
| [Fintype n] [DecidableEq n] | |
| variable (f : τ → J) | |
| abbrev Fiber (j : J) := {i : τ // f i = j} | |
| def splitEquiv : (τ → n) ≃ (∀ j : J, Fiber f j → n) where | |
| toFun x j i := x i.val | |
| invFun y i := y (f i) ⟨i,rfl⟩ | |
| left_inv x := rfl | |
| right_inv y := by | |
| funext j i | |
| rcases i with ⟨i,hi⟩ | |
| subst j | |
| rfl | |
| def tensor (A : ∀ j, Mat (Fiber f j → n)) : Mat (τ → n) := | |
| fun x y => DependentTensor.tensor A (splitEquiv f x) (splitEquiv f y) | |
| end SpinAngle.BlockTensor | |
| namespace SpinAngle.MatrixAnalysis | |
| variable {n : Type*} [Fintype n] [DecidableEq n] | |
| abbrev Mat (n : Type*) := Matrix n n ℂ | |
| end SpinAngle.MatrixAnalysis | |
| namespace SpinAngle | |
| open SpinAngle.Young | |
| structure TypeLabel (q : ℕ) where | |
| even : YoungDiagram | |
| odd : YoungDiagram | |
| even_height : even.colLen 0 ≤ q | |
| odd_height : odd.colLen 0 ≤ q | |
| namespace TypeLabel | |
| variable {q : ℕ} | |
| def size (D : TypeLabel q) : ℕ := Fintype.card (Cells D.even) + Fintype.card (Cells D.odd) | |
| def entropy (D : TypeLabel q) : ℝ := SignedCarrier.entropy D.even D.odd q | |
| def dimension (D : TypeLabel q) : ℕ := SignedCarrier.dimension D.even D.odd q D.even_height D.odd_height | |
| def projection (D : TypeLabel q) (τ : Type*) [Fintype τ] [DecidableEq τ] : | |
| Matrix (τ → SignedTensor.Spin q) (τ → SignedTensor.Spin q) ℂ := | |
| SignedCarrier.matrixProjection D.even D.odd q D.even_height D.odd_height | |
| end TypeLabel | |
| namespace TypeBlocks | |
| universe u | |
| open MatrixAnalysis | |
| variable {q : ℕ} | |
| variable {τ : Type*} {J : Type u} [Fintype τ] [DecidableEq τ] [Fintype J] [DecidableEq J] | |
| abbrev Fiber (f : τ → J) (j : J) := BlockTensor.Fiber f j | |
| def projection (f : τ → J) (D : J → TypeLabel q) : Mat (τ → SignedTensor.Spin q) := | |
| BlockTensor.tensor f (fun j => (D j).projection (Fiber f j)) | |
| def entropy (D : J → TypeLabel q) : ℝ := ∑ j, (D j).entropy | |
| def dimension (D : J → TypeLabel q) : ℕ := ∏ j, (D j).dimension | |
| end TypeBlocks | |
| end SpinAngle | |
| namespace SpinAngle.TypeAngle | |
| open scoped BigOperators Matrix.Norms.L2Operator MatrixOrder ComplexOrder | |
| variable {q : ℕ} [Nonempty (Fin q)] | |
| variable {R C : Type*} | |
| variable [Fintype R] [DecidableEq R] [Fintype C] [DecidableEq C] | |
| def row (W : Finset (R × C)) (w : W) : R := w.val.1 | |
| def column (W : Finset (R × C)) (w : W) : C := w.val.2 | |
| def phi (W : Finset (R × C)) : ℝ := | |
| missingCellProductFactor (Fintype.card C) (missingInRow W) | |
| theorem one_sided_type_angle (W : Finset (R × C)) | |
| (D : TypeLabel q) (H : C → TypeLabel q) (K : R → TypeLabel q) | |
| (hD : D.size = W.card) | |
| (hH : ∀ j, (H j).size = Fintype.card (TypeBlocks.Fiber (column W) j)) | |
| (hK : ∀ i, (K i).size = Fintype.card (TypeBlocks.Fiber (row W) i)) : | |
| (‖TypeBlocks.projection (column W) H * TypeBlocks.projection (row W) K * D.projection W‖ ^ 2 ≤ | |
| min 1 (Real.exp (TypeBlocks.entropy H + TypeBlocks.entropy K - D.entropy) * | |
| (TypeBlocks.dimension H : ℝ) * (TypeBlocks.dimension K : ℝ) * phi W)) ∧ | |
| (min 1 (Real.exp (TypeBlocks.entropy H + TypeBlocks.entropy K - D.entropy) * | |
| (TypeBlocks.dimension H : ℝ) * (TypeBlocks.dimension K : ℝ) * phi W) ≤ | |
| min 1 (Real.exp (TypeBlocks.entropy H + TypeBlocks.entropy K - D.entropy + | |
| (Fintype.card R * Fintype.card C - W.card : ℕ)) * | |
| (TypeBlocks.dimension H : ℝ) * (TypeBlocks.dimension K : ℝ))) ∧ | |
| TypeBlocks.dimension H * TypeBlocks.dimension K ≤ | |
| (W.card + 1) ^ ((Fintype.card R + Fintype.card C) * q * (q - 1)) := by | |
| sorry | |
| end SpinAngle.TypeAngle | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 19.1 kB
- Xet hash:
- 23b478d31ee298ecc4a054775f418533266048b13cdb656aa75836705bb6663f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.