Download data/lean/OAI/Probability/BinarySweep/Conditional/PlacementCycleMoment.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.44 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/BinarySweep/Conditional/PlacementCycleMoment.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/BinarySweep/Conditional/PlacementCycleMoment.lean
-
curl -L -o PlacementCycleMoment.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/BinarySweep/Conditional/PlacementCycleMoment.lean
3.44 kB
| import Mathlib | |
| import OAI.Probability.BinarySweep.Conditional.AugmentedBlock | |
| import OAI.Probability.BinarySweep.MatrixBounds.HilbertBlockTrace | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators Classical | |
| namespace BinaryCoordinateSweeps | |
| open Irrep Representation | |
| variable {b h k : β} {bits : Fin b β β} (H : PathFamily bits h) | |
| {A W : Type*} [Fintype A] [NormedAddCommGroup W] [InnerProductSpace β W] | |
| [FiniteDimensional β W] (e : A β Fin k β FreeSlot H 0) | |
| (Ο : Representation β (Equiv.Perm A) W) | |
| abbrev inducedPlacementAverage (z : β) := | |
| groupAverage (coindHilbertRep (blockPerm e) Ο | |
| (fun x => (placementSection e x)β»ΒΉ) (placement_cosets_bijective e)) | |
| (fun a => (conditionalGroupLaw H z a:β)) | |
| def placementFiberMoment (z : β) (q : β) (x y : Placement H k 0) : β := | |
| if hp : 0<placementKernel H z x y then | |
| let g := realizePlacement H z x (placementIdentification H k y) hp | |
| evenMoment q (groupAverage (augmentedRepresentation H x g e Ο) | |
| (fun a => (conditionalGroupLaw (augmentByChoice H x g) z a:β))) | |
| else 0 | |
| lemma realizedOutputIndex (z : β) (x y : Placement H k 0) | |
| (hp : 0<placementKernel H z x y) : | |
| augmentedOutputIndex H x (realizePlacement H z x (placementIdentification H k y) hp)=y := by | |
| apply (placementIdentification H k).injective | |
| rw [βplacementBijection_index] | |
| exact realizePlacement_spec H z x (placementIdentification H k y) hp | |
| lemma inducedPlacementBlock_root {z : β} (hz : 0β€z) (hz1 : z<1) | |
| (hΟ : β g v, βΟ g vβ=βvβ) {q : β} (hq : 0<q) | |
| (x y : Placement H k 0) : | |
| evenMoment q (hilbertBlock (inducedPlacementAverage H e Ο z) y x)^(((2*q:β):β)β»ΒΉ) = | |
| placementKernel H z x y * (placementFiberMoment H e Ο z q x y)^(((2*q:β):β)β»ΒΉ) := by | |
| by_cases hp : 0<placementKernel H z x y | |
| Β· unfold placementFiberMoment | |
| rw [dite_eq_left hp] | |
| have he := placementBlock_moment_root H e Ο hz hz1 hΟ hq x | |
| (realizePlacement H z x (placementIdentification H k y) hp) | |
| rw [realizedOutputIndex H z x y hp] at he | |
| exact he | |
| Β· have he : placementKernel H z x y=0 := | |
| le_antisymm (le_of_not_gt hp) (placementKernel_nonneg H hz hz1 x y) | |
| rw [he,zero_mul,placementBlock_zero H e Ο hz hz1 x y he] | |
| have hq0 : qβ 0 := hq.ne' | |
| simp [evenMoment,hq0] | |
| theorem induced_placement_cycle_bound {z : β} (hz : 0β€z) (hz1 : z<1) | |
| (hΟ : β g v, βΟ g vβ=βvβ) {q : β} (hq : 0<q) : | |
| evenMoment q (inducedPlacementAverage H e Ο z) β€ | |
| βx : Fin (2*q) β Placement H k 0, | |
| (βj, placementEdge H z (decide (j.val%2β 0)) (x j) (x (finRotate (2*q) j))) * | |
| βj, (if j.val%2=0 then | |
| placementFiberMoment H e Ο z q (x j) (x (finRotate (2*q) j)) | |
| else placementFiberMoment H e Ο z q (x (finRotate (2*q) j)) (x j))^(((2*q:β):β)β»ΒΉ) := by | |
| refine (evenMoment_blocks_le hq (inducedPlacementAverage H e Ο z)).trans_eq ?_ | |
| apply Finset.sum_congr rfl | |
| intro x _ | |
| rw [βFinset.prod_mul_distrib] | |
| apply Finset.prod_congr rfl | |
| intro j _ | |
| by_cases he : j.val%2=0 | |
| Β· simp only [placementEdge,decide_eq_true_eq,ne_eq,he,not_true_eq_false,ite_false,ite_true] | |
| exact inducedPlacementBlock_root H e Ο hz hz1 hΟ hq _ _ | |
| Β· simp only [placementEdge,decide_eq_true_eq,ne_eq,he,not_false_eq_true,ite_true,ite_false] | |
| exact inducedPlacementBlock_root H e Ο hz hz1 hΟ hq _ _ | |
| end BinaryCoordinateSweeps | |
| end | |
| end OAI | |