Actual raw frame observations with uniform two-batch decay
Lax342547.RawFrameComparison · concepts/Lax342547/RawFrameComparison.lean · lax-342547
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Independent combined coefficient columns give a comparison for arbitrary separate bounded tests under the actual raw frame law, or under the full self-channel Gram fiber law. The explicit threshold and error constants depend only on the four fixed column counts and not on their Gram entries.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax342547.RawBatchComparison |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Actual raw frame observations with uniform two-batch decay |
| 6 | type: lemma |
| 7 | --- |
| 8 | Independent combined coefficient columns give a comparison for arbitrary |
| 9 | separate bounded tests under the actual raw frame law, or under the full |
| 10 | self-channel Gram fiber law. The explicit threshold and error constants |
| 11 | depend only on the four fixed column counts and not on their Gram entries. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax342547.RawFrameComparison |
| 15 | noncomputable section |
| 16 | open Lax342547.MomentSpace Lax342547.FrameTuples Lax342547.RealCellLaws |
| 17 | open Lax342547.GramOrbitDensity Lax342547.RawFrames |
| 18 | open scoped BigOperators |
| 19 | |
| 20 | def errorBound (n : ℕ) (I J K L : Type) [Fintype I] [Fintype J] [Fintype K] [Fintype L] : ℝ := |
| 21 | (2 : ℝ)^(Fintype.card (Lax342547.CrossGramBasis.Slots I J K L)+2)* |
| 22 | ((((2 : ℝ)^(Fintype.card I*Fintype.card J+2))* |
| 23 | ((2 : ℝ)^(Fintype.card K*Fintype.card L+2))/Real.sqrt ((2 : ℝ)^n))+ |
| 24 | (((2 : ℝ)^(Fintype.card I*Fintype.card J+2))* |
| 25 | ((2 : ℝ)^(Fintype.card K*Fintype.card L+2))* |
| 26 | (((2 : ℝ)^(Fintype.card I+Fintype.card K)+(2 : ℝ)^(Fintype.card J+Fintype.card L))/(2 : ℝ)^n))) |
| 27 | |
| 28 | def scale (I J K L : Type) [Fintype I] [Fintype J] [Fintype K] [Fintype L] : ℝ := |
| 29 | (2 : ℝ)^(Fintype.card (Lax342547.CrossGramBasis.Slots I J K L)+2)* |
| 30 | ((2 : ℝ)^(Fintype.card I*Fintype.card J+2))* |
| 31 | ((2 : ℝ)^(Fintype.card K*Fintype.card L+2))* |
| 32 | (1+((2 : ℝ)^(Fintype.card I+Fintype.card K)+(2 : ℝ)^(Fintype.card J+Fintype.card L))) |
| 33 | |
| 34 | axiom errorBound_half_decay (n : ℕ) (I J K L : Type) |
| 35 | [Fintype I] [Fintype J] [Fintype K] [Fintype L] : |
| 36 | errorBound n I J K L ≤ scale I J K L/Real.sqrt ((2 : ℝ)^n) |
| 37 | |
| 38 | axiom eventually_valid (I J K L : Type) [Fintype I] [Fintype J] [Fintype K] [Fintype L] : |
| 39 | ∃ n₀ : ℕ,∀ n ≥ n₀,Fintype.card I+Fintype.card J+1 ≤ n ∧ |
| 40 | Fintype.card K+Fintype.card L+1 ≤ n ∧ |
| 41 | ((2 : ℝ)^(Fintype.card I*Fintype.card J+2))* |
| 42 | ((2 : ℝ)^(Fintype.card K*Fintype.card L+2))/Real.sqrt ((2 : ℝ)^n) ≤ |
| 43 | 1/(2 : ℝ)^(Fintype.card (Lax342547.CrossGramBasis.Slots I J K L)+1) |
| 44 | |
| 45 | variable {I J K L : Type} [Fintype I] [Fintype J] [Fintype K] [Fintype L] |
| 46 | variable {B H : Type} [Fintype B] [Fintype H] |
| 47 | |
| 48 | axiom primal_test_comparison [DecidableEq I] [DecidableEq J] [DecidableEq K] [DecidableEq L] (n : ℕ) (E : Matrix B B Binary) |
| 49 | [Nonempty (Frame B H (Fin n) E)] |
| 50 | (C₁ : Matrix B I Binary) (D₁ : Matrix B J Binary) |
| 51 | (C₂ : Matrix B K Binary) (D₂ : Matrix B L Binary) |
| 52 | (hC : Function.Injective (Matrix.fromCols C₁ C₂).mulVec) |
| 53 | (hD : Function.Injective (Matrix.fromCols D₁ D₂).mulVec) |
| 54 | (f : (Fin n × (I ⊕ J) → Binary) → ℝ) (g : (Fin n × (K ⊕ L) → Binary) → ℝ) |
| 55 | (hN₁ : Fintype.card I+Fintype.card J+1 ≤ n) |
| 56 | (hN₂ : Fintype.card K+Fintype.card L+1 ≤ n) |
| 57 | (hf : ∀ x,|f x| ≤ 1) (hg : ∀ y,|g y| ≤ 1) |
| 58 | (hsmall : ((2 : ℝ)^(Fintype.card I*Fintype.card J+2))* |
| 59 | ((2 : ℝ)^(Fintype.card K*Fintype.card L+2))/Real.sqrt ((2 : ℝ)^n) ≤ |
| 60 | 1/(2 : ℝ)^(Fintype.card (Lax342547.CrossGramBasis.Slots I J K L)+1)) : |
| 61 | |(∑ F : Frame B H (Fin n) E,weights (PMF.uniformOfFintype _) F* |
| 62 | (f (batchEquiv (F.P*C₁,F.Q*D₁))*g (batchEquiv (F.P*C₂,F.Q*D₂))))- |
| 63 | (∑ F : Frame B H (Fin n) E,weights (PMF.uniformOfFintype _) F*f (batchEquiv (F.P*C₁,F.Q*D₁)))* |
| 64 | (∑ F : Frame B H (Fin n) E,weights (PMF.uniformOfFintype _) F*g (batchEquiv (F.P*C₂,F.Q*D₂)))| ≤ |
| 65 | errorBound n I J K L |
| 66 | |
| 67 | axiom full_test_comparison [DecidableEq I] [DecidableEq J] [DecidableEq K] [DecidableEq L] (n : ℕ) (E : Matrix B B Binary) (S : Matrix H H Binary) |
| 68 | [Nonempty (ChannelFiber (N := Fin n) E S)] |
| 69 | (C₁ : Matrix (B ⊕ H) I Binary) (D₁ : Matrix (B ⊕ H) J Binary) |
| 70 | (C₂ : Matrix (B ⊕ H) K Binary) (D₂ : Matrix (B ⊕ H) L Binary) |
| 71 | (hC : Function.Injective (Matrix.fromCols C₁ C₂).mulVec) |
| 72 | (hD : Function.Injective (Matrix.fromCols D₁ D₂).mulVec) |
| 73 | (f : (Fin n × (I ⊕ J) → Binary) → ℝ) (g : (Fin n × (K ⊕ L) → Binary) → ℝ) |
| 74 | (hN₁ : Fintype.card I+Fintype.card J+1 ≤ n) |
| 75 | (hN₂ : Fintype.card K+Fintype.card L+1 ≤ n) |
| 76 | (hf : ∀ x,|f x| ≤ 1) (hg : ∀ y,|g y| ≤ 1) |
| 77 | (hsmall : ((2 : ℝ)^(Fintype.card I*Fintype.card J+2))* |
| 78 | ((2 : ℝ)^(Fintype.card K*Fintype.card L+2))/Real.sqrt ((2 : ℝ)^n) ≤ |
| 79 | 1/(2 : ℝ)^(Fintype.card (Lax342547.CrossGramBasis.Slots I J K L)+1)) : |
| 80 | |(∑ F : ChannelFiber (N := Fin n) E S,weights (PMF.uniformOfFintype _) F* |
| 81 | (f (batchEquiv ((Lax342547.FrameSymmetry.plus F.val).val*C₁,(Lax342547.FrameSymmetry.minus F.val).val*D₁))*g (batchEquiv ((Lax342547.FrameSymmetry.plus F.val).val*C₂,(Lax342547.FrameSymmetry.minus F.val).val*D₂))))- |
| 82 | (∑ F : ChannelFiber (N := Fin n) E S,weights (PMF.uniformOfFintype _) F*f (batchEquiv ((Lax342547.FrameSymmetry.plus F.val).val*C₁,(Lax342547.FrameSymmetry.minus F.val).val*D₁)))* |
| 83 | (∑ F : ChannelFiber (N := Fin n) E S,weights (PMF.uniformOfFintype _) F*g (batchEquiv ((Lax342547.FrameSymmetry.plus F.val).val*C₂,(Lax342547.FrameSymmetry.minus F.val).val*D₂)))| ≤ |
| 84 | errorBound n I J K L |
| 85 | |
| 86 | end |
| 87 | end Lax342547.RawFrameComparison |
| 88 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments