Download data/lean/OAI/Probability/BinarySweep/Representations/IsotypicDensity.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.58 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/BinarySweep/Representations/IsotypicDensity.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/BinarySweep/Representations/IsotypicDensity.lean
-
curl -L -o IsotypicDensity.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/BinarySweep/Representations/IsotypicDensity.lean
5.58 kB
| import Mathlib | |
| import OAI.Probability.BinarySweep.TensorBounds.SignedCommutant | |
| import OAI.Probability.BinarySweep.MatrixBounds.MatrixProjection | |
| import OAI.Probability.BinarySweep.TensorBounds.SignedPinching | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators Classical ComplexOrder | |
| open Equiv Equiv.Perm Matrix Representation | |
| namespace BinaryCoordinateSweeps.Signed | |
| open Density Irrep | |
| variable {A : Type*} [Fintype A] [DecidableEq A] {n : β} | |
| omit [DecidableEq A] in | |
| lemma coeff_actHilbert (p : A β Bool) (g : Equiv.Perm (Fin n)) (v : TensorSpace A n) : | |
| coeffEquiv A n (actHilbert p g v) = act p g (coeffEquiv A n v) := rfl | |
| omit [DecidableEq A] in | |
| lemma coeff_symm_act (p : A β Bool) (g : Equiv.Perm (Fin n)) (v : (Fin n β A) β β) : | |
| (coeffEquiv A n).symm (act p g v) = actHilbert p g ((coeffEquiv A n).symm v) := rfl | |
| def projectionIntertwiner (p : A β Bool) (S : Submodule β ((Fin n β A) β β)) | |
| (hS : β g, S.map (act p g) = S) : | |
| IntertwiningMap (tensorRep p n) (tensorRep p n) where | |
| toLinearMap := (coeffEquiv A n).conj (hilbertSubspace S).starProjection.toLinearMap | |
| isIntertwining' g := by | |
| apply LinearMap.ext | |
| intro v | |
| change coeffEquiv A n ((hilbertSubspace S).starProjection ((coeffEquiv A n).symm (act p g v))) = | |
| act p g (coeffEquiv A n ((hilbertSubspace S).starProjection ((coeffEquiv A n).symm v))) | |
| rw [coeff_symm_act, β coeff_actHilbert] | |
| congr 1 | |
| exact (projectionMatrix_commutes (hilbertSubspace S) (actionIsometry p g) | |
| (hilbertSubspace_map p S hS g) ((coeffEquiv A n).symm v)).symm | |
| lemma projectionMatrix_invariant (p : A β Bool) (S : Submodule β ((Fin n β A) β β)) | |
| (hS : β g, S.map (act p g) = S) : | |
| Invariant p (projectionMatrix (hilbertSubspace S)) := by | |
| have h := intertwiner_matrix_invariant p (projectionIntertwiner p S hS) | |
| change Invariant p (LinearMap.toMatrix' ((coeffEquiv A n).conj | |
| (hilbertSubspace S).starProjection.toLinearMap)) at h | |
| rw [show coeffEquiv A n = WithLp.linearEquiv 2 β ((Fin n β A) β β) from rfl, | |
| projectionMatrix_coeff] at h | |
| exact h | |
| variable {V : Type*} [AddCommGroup V] [Module β V] [FiniteDimensional β V] | |
| def isotypicProjection (p : A β Bool) (Ο : Representation β (Equiv.Perm (Fin n)) V) : | |
| Matrix (Fin n β A) (Fin n β A) β := | |
| projectionMatrix (hilbertSubspace (isotypicSpan Ο (tensorRep p n))) | |
| omit [FiniteDimensional β V] in | |
| lemma isotypicProjection_psd (p : A β Bool) (Ο : Representation β (Equiv.Perm (Fin n)) V) : | |
| (isotypicProjection p Ο).PosSemidef := projectionMatrix_psd _ | |
| omit [FiniteDimensional β V] in | |
| lemma isotypicProjection_invariant (p : A β Bool) | |
| (Ο : Representation β (Equiv.Perm (Fin n)) V) : Invariant p (isotypicProjection p Ο) := by | |
| apply projectionMatrix_invariant | |
| exact isotypicSpan_map Ο (tensorRep p n) | |
| omit [FiniteDimensional β V] in | |
| lemma isotypicProjection_trace (p : A β Bool) | |
| (Ο : Representation β (Equiv.Perm (Fin n)) V) : | |
| (isotypicProjection p Ο).trace = | |
| (Module.finrank β (isotypicSpan Ο (tensorRep p n)) : β) := by | |
| rw [isotypicProjection, projectionMatrix_trace, hilbertSubspace_finrank] | |
| lemma isotypicSpan_rank_bound (p : A β Bool) | |
| (Ο : Representation β (Equiv.Perm (Fin n)) V) [Ο.IsIrreducible] : | |
| Module.finrank β (isotypicSpan Ο (tensorRep p n)) β€ | |
| Module.finrank β V * (n+1)^((Fintype.card A)^2) := by | |
| exact (isotypicSpan_finrank Ο (tensorRep p n)).trans (Nat.mul_le_mul_left _ | |
| ((multiplicity_le_commutant Ο (tensorRep p n)).trans (tensor_commutant_finrank p n))) | |
| theorem isotypic_density_domination (n : β) (hn : 0 < n) (p : A β Bool) | |
| (Ο : Representation β (Equiv.Perm (Fin n)) V) [Ο.IsIrreducible] : | |
| (((Module.finrank β V : β) * (n+1 : β)^(2*(Fintype.card A)^2)) β’ | |
| (β c : WordType (MatchedPair p) n, β t : MatchedPair p β ZMod (n+1), | |
| matrixTensorPower n (reducedPhaseDensity n (matchedEmbedding p) c t)) - | |
| isotypicProjection p Ο).PosSemidef := by | |
| let Q := β c : WordType (MatchedPair p) n, β t : MatchedPair p β ZMod (n+1), | |
| matrixTensorPower n (reducedPhaseDensity n (matchedEmbedding p) c t) | |
| have hQ : Q.PosSemidef := by | |
| apply Matrix.posSemidef_sum | |
| intro c _ | |
| apply Matrix.posSemidef_sum | |
| intro t _ | |
| rw [reducedPhaseDensity, β tensor_gram] | |
| exact gram_psd _ | |
| have hd := signed_psd_postselection n hn p (isotypicProjection p Ο) | |
| (isotypicProjection_psd p Ο) (isotypicProjection_invariant p Ο) | |
| rw [isotypicProjection_trace] at hd | |
| simp only [Nat.cast_add, Nat.cast_one] at hd | |
| have hr : (Module.finrank β (isotypicSpan Ο (tensorRep p n)) : β) β€ | |
| (Module.finrank β V : β) * (n+1 : β)^((Fintype.card A)^2) := by | |
| exact_mod_cast isotypicSpan_rank_bound p Ο | |
| have hc : (0 : β) β€ (n+1 : β)^((Fintype.card A)^2) := by positivity | |
| have hh := hQ.smul (mul_nonneg hc (sub_nonneg.mpr hr)) | |
| have he : (n+1 : β)^((Fintype.card A)^2) * | |
| ((Module.finrank β V : β) * (n+1 : β)^((Fintype.card A)^2) - | |
| (Module.finrank β (isotypicSpan Ο (tensorRep p n)) : β)) + | |
| (n+1 : β)^((Fintype.card A)^2) * | |
| (Module.finrank β (isotypicSpan Ο (tensorRep p n)) : β) = | |
| (Module.finrank β V : β) * (n+1 : β)^(2*(Fintype.card A)^2) := by | |
| rw [two_mul, pow_add] | |
| ring | |
| have hi := hh.add hd | |
| change (_ β’ Q + (_ β’ Q - isotypicProjection p Ο)).PosSemidef at hi | |
| rw [β add_sub_assoc, β add_smul, he] at hi | |
| exact hi | |
| end BinaryCoordinateSweeps.Signed | |
| end | |
| end OAI | |