math / data /lean /OAI /Probability /BinarySweep /FiniteLaws /SampleMoment.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.01 kB
import Mathlib
import OAI.Probability.BinarySweep.Representations.IsotypicProjectionMoment
import OAI.Probability.BinarySweep.FiniteLaws.LinearEvenMoment
import OAI.Probability.BinarySweep.FiniteLaws.IndependentPush
namespace OAI
noncomputable section
open scoped BigOperators Classical
namespace BinaryCoordinateSweeps
open Irrep Representation TraceHolder Density
lemma matrixMoment_linear {I : Type*} [Fintype I] [DecidableEq I]
(q : β„•) (M : Matrix I I β„‚) : matrixMoment q M=evenMoment q M.toEuclideanLin := by
unfold matrixMoment evenMoment
rw [← trace_toEuclideanLinear]
simp only [euclidean_pow,Matrix.toLpLin_mul_same,←Module.End.mul_eq_comp,
Matrix.star_eq_conjTranspose,Matrix.toEuclideanLin_conjTranspose_eq_adjoint]
namespace Signed
variable {A X : Type*} [Fintype A] [DecidableEq A] [Fintype X] {N : β„•}
{V : Type*} [NormedAddCommGroup V] [InnerProductSpace β„‚ V] [FiniteDimensional β„‚ V]
def sampleMatrix (p : A β†’ Bool) (w : X β†’ β„‚) (f : X β†’ Equiv.Perm (Fin N)) :=
βˆ‘x, w x β€’ actionMatrix p (f x)
lemma sampleMatrix_linear (p : A β†’ Bool) (w : X β†’ β„‚) (f : X β†’ Equiv.Perm (Fin N)) :
(sampleMatrix p w f).toEuclideanLin=βˆ‘x, w x β€’ hilbertTensorRep p N (f x) := by
simp only [sampleMatrix,map_sum,map_smul,actionMatrix_linear]
lemma sampleMatrix_average (p : A β†’ Bool) (w : X β†’ β„‚) (f : X β†’ Equiv.Perm (Fin N)) :
sampleMatrix p w f=signedAverage p (finitePush w f) := by
exact (finitePush_expectation w f (actionMatrix p)).symm
omit [FiniteDimensional β„‚ V] in
lemma sampleMatrix_commute (p : A β†’ Bool)
(ρ : Representation β„‚ (Equiv.Perm (Fin N)) V) (w : X β†’ β„‚) (f : X β†’ Equiv.Perm (Fin N)) :
isotypicProjection p ρ*sampleMatrix p w f=sampleMatrix p w f*isotypicProjection p ρ := by
rw [sampleMatrix_average]; exact isotypicProjection_commutes_average p ρ _
lemma sample_projected_moment (p : A β†’ Bool)
(ρ : Representation β„‚ (Equiv.Perm (Fin N)) V) [ρ.IsIrreducible]
(hρ : βˆ€g v, ‖ρ g vβ€–=β€–vβ€–) (w : X β†’ β„‚) (f : X β†’ Equiv.Perm (Fin N)) {q : β„•} (hq : 0<q) :
matrixMoment q (isotypicProjection p ρ*sampleMatrix p w f)=
(Module.finrank β„‚ (IntertwiningMap ρ (hilbertTensorRep p N)):ℝ)*
evenMoment q (βˆ‘x, w x β€’ ρ (f x)) := by
rw [sampleMatrix_average,local_projected_moment p ρ hρ _ hq]
rw [groupAverage,finitePush_expectation]
lemma sampleMoment_le_projected (p : A β†’ Bool)
(ρ : Representation β„‚ (Equiv.Perm (Fin N)) V) [ρ.IsIrreducible]
(hρ : βˆ€g v, ‖ρ g vβ€–=β€–vβ€–)
(hocc : 0<Module.finrank β„‚ (IntertwiningMap ρ (hilbertTensorRep p N)))
(w : X β†’ β„‚) (f : X β†’ Equiv.Perm (Fin N)) {q : β„•} (hq : 0<q) :
evenMoment q (βˆ‘x, w x β€’ ρ (f x))≀
matrixMoment q (isotypicProjection p ρ*sampleMatrix p w f) := by
rw [sample_projected_moment p ρ hρ w f hq]
exact le_mul_of_one_le_left (evenMoment_nonneg _ _) (by exact_mod_cast hocc)
end Signed
end BinaryCoordinateSweeps
end
end OAI