Download data/lean/OAI/Probability/BinarySweep/FiniteLaws/SampleMoment.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.01 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/BinarySweep/FiniteLaws/SampleMoment.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/BinarySweep/FiniteLaws/SampleMoment.lean
-
curl -L -o SampleMoment.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/BinarySweep/FiniteLaws/SampleMoment.lean
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 | |