Affine-slice comparison for every actual atom flavor
Lax342547.FlavorAffineSlices · concepts/Lax342547/FlavorAffineSlices.lean · lax-342547
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Lemma 9.4 uses independent uniform affine coefficients on exactly the actual retained coordinates of the chosen flavor. The free projection is exactly uniform for generic, shared-only and every pure flavor. Conditioning on all prescribed component Grams has the explicit beta^-2 cost, with no cost for setting excluded flavor coordinates to zero. Arbitrary bounded common tests of the actual primal image arrays satisfy the checked variance budget.
Concept map
Evidence
This concept declares 4 statements. Each proof establishes one of them relative to its assumptions.
1 conditioned_pair_failure proven
2 flavor_slice_variance proven
3 free_pair_uniform proven
4 nominal_pair_failure proven
Lean source view on GitHub
| 1 | import Lax342547.AffineSliceVariance |
| 2 | import Lax342547.Atoms |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Affine-slice comparison for every actual atom flavor |
| 7 | type: lemma |
| 8 | --- |
| 9 | Lemma 9.4 uses independent uniform affine coefficients on exactly the actual |
| 10 | retained coordinates of the chosen flavor. The free projection is exactly |
| 11 | uniform for generic, shared-only and every pure flavor. Conditioning on all |
| 12 | prescribed component Grams has the explicit beta^-2 cost, with no cost for |
| 13 | setting excluded flavor coordinates to zero. Arbitrary bounded common tests |
| 14 | of the actual primal image arrays satisfy the checked variance budget. |
| 15 | -/ |
| 16 | |
| 17 | namespace Lax342547.FlavorAffineSlices |
| 18 | noncomputable section |
| 19 | open Lax342547.MomentSpace Lax342547.Atoms Lax342547.TagGeometry Lax342547.ConcreteGeometry |
| 20 | open Lax342547.AffineSliceIndependence Lax342547.RetainedImages Lax342547.RealCellLaws |
| 21 | open Lax342547.RawFrames Lax342547.FrameTuples Lax342547.GramOrbitDensity Lax342547.RelativeEntropy |
| 22 | open Lax342547.AffineSliceVariance |
| 23 | open scoped BigOperators ENNReal |
| 24 | |
| 25 | abbrev Coefficients {k : ℕ} (n : ℕ) (l : Tag k) (f : Flavor k) (D : Type) := |
| 26 | Matrix {i : Base k n // i ∈ retained (k := k) (n := n) l f} (Option D) Binary |
| 27 | |
| 28 | noncomputable instance {k n : ℕ} (l : Tag k) (f : Flavor k) (D : Type) [Fintype D] : |
| 29 | Fintype (Coefficients n l f D) := Fintype.ofFinite _ |
| 30 | |
| 31 | noncomputable def value {k n : ℕ} {l : Tag k} {f : Flavor k} {D : Type} |
| 32 | (V : Coefficients n l f D) : Matrix (Base k n) (Option D) Binary := |
| 33 | fun i j => parameterValue (fun a => V a j) i |
| 34 | |
| 35 | def freeIndex {k n : ℕ} (l : Tag k) (f : Flavor k) (i : Fin n) : |
| 36 | {a : Base k n // a ∈ retained (k := k) (n := n) l f} := |
| 37 | ⟨free i,by |
| 38 | cases f with |
| 39 | | generic => trivial |
| 40 | | sharedOnly => trivial |
| 41 | | pure blocks => change (2 : Fin 3) ≠ 0; decide⟩ |
| 42 | |
| 43 | def freePairMap {k n : ℕ} {l : Tag k} {f : Flavor k} {D : Type} : |
| 44 | (Coefficients n l f D × Coefficients n l f D) →ₗ[Binary] |
| 45 | (Matrix (Fin n) (Option D) Binary × Matrix (Fin n) (Option D) Binary) where |
| 46 | toFun V := (fun i j => V.1 (freeIndex l f i) j,fun i j => V.2 (freeIndex l f i) j) |
| 47 | map_add' _ _ := rfl |
| 48 | map_smul' _ _ := rfl |
| 49 | |
| 50 | axiom free_pair_uniform {k n : ℕ} (l : Tag k) (f : Flavor k) {D : Type} |
| 51 | [Fintype D] [DecidableEq D] : |
| 52 | (PMF.uniformOfFintype (Coefficients n l f D × Coefficients n l f D)).map freePairMap = |
| 53 | PMF.uniformOfFintype (Matrix (Fin n) (Option D) Binary × Matrix (Fin n) (Option D) Binary) |
| 54 | |
| 55 | axiom nominal_pair_failure {k n b degree : ℕ} (l : Tag k) (f : Flavor k) |
| 56 | {D : Type} [Fintype D] [DecidableEq D] (s : Fin b → Binary) : |
| 57 | (PMF.uniformOfFintype (Coefficients n l f D × Coefficients n l f D)).toOuterMeasure |
| 58 | {V | ¬ Function.Injective (fun uv : (Option D → Binary) × (Option D → Binary) => |
| 59 | (pointColumns (degree := degree) s (value V.1)).mulVec uv.1+ |
| 60 | (pointColumns (degree := degree) s (value V.2)).mulVec uv.2)} ≤ |
| 61 | (2 : ℝ≥0∞)^(2*Fintype.card D+1)/(2 : ℝ≥0∞)^n |
| 62 | |
| 63 | axiom conditioned_pair_failure {k n b degree : ℕ} (l : Tag k) (f : Flavor k) |
| 64 | {D : Type} [Fintype D] [DecidableEq D] (s : Fin b → Binary) |
| 65 | (C : Coefficients n l f D → Prop) (β : ℝ) (hβ : 0 < β) |
| 66 | (hC : β ≤ cellMass (weights (PMF.uniformOfFintype (Coefficients n l f D))) C) : |
| 67 | cellMass (fun V : Coefficients n l f D × Coefficients n l f D => |
| 68 | conditionalLaw (weights (PMF.uniformOfFintype _)) C V.1* |
| 69 | conditionalLaw (weights (PMF.uniformOfFintype _)) C V.2) |
| 70 | (fun V => ¬ Function.Injective (fun uv : (Option D → Binary) × (Option D → Binary) => |
| 71 | (pointColumns (degree := degree) s (value V.1)).mulVec uv.1+ |
| 72 | (pointColumns (degree := degree) s (value V.2)).mulVec uv.2)) ≤ |
| 73 | ((2 : ℝ)^(2*Fintype.card D+1)/(2 : ℝ)^n)/β^2 |
| 74 | |
| 75 | axiom flavor_slice_variance {S H D : Type} [Fintype S] [DecidableEq S] |
| 76 | [Fintype H] [Fintype D] [DecidableEq D] {k n b degree : ℕ} |
| 77 | (l : Tag k) (f : Flavor k) |
| 78 | (N : ℕ) (sel : Fin b → Binary) |
| 79 | (E : S → Matrix (Coordinate k n b degree) (Coordinate k n b degree) Binary) |
| 80 | (G : S → Matrix (Option D) (Option D) Binary) |
| 81 | [∀ i,Nonempty (Frame (Coordinate k n b degree) H (Fin N) (E i))] |
| 82 | [∀ i,Nonempty (Orbit (Fin N) (G i))] |
| 83 | (β : ℝ) (hβ : 0 < β) |
| 84 | (hGram : β ≤ cellMass (weights (PMF.uniformOfFintype (Coefficients n l f D))) |
| 85 | (fun V : Coefficients n l f D => GramEvent sel E G (value V))) |
| 86 | (test : (S → (Fin N × (Option D ⊕ Option D) → Binary)) → ℝ) (htest : ∀ z,|test z| ≤ 1) |
| 87 | (hN : Fintype.card (Option D)+Fintype.card (Option D)+1 ≤ N) |
| 88 | (hsmall : ((2 : ℝ)^(Fintype.card (Option D)*Fintype.card (Option D)+2))* |
| 89 | ((2 : ℝ)^(Fintype.card (Option D)*Fintype.card (Option D)+2))/Real.sqrt ((2 : ℝ)^N) ≤ |
| 90 | 1/(2 : ℝ)^(Fintype.card (Lax342547.CrossGramBasis.Slots (Option D) (Option D) (Option D) (Option D))+1)) : |
| 91 | (∑ o : ∀ i,Frame (Coordinate k n b degree) H (Fin N) (E i),weights (PMF.uniformOfFintype _) o* |
| 92 | ((∑ V : Coefficients n l f D, |
| 93 | conditionalLaw (weights (PMF.uniformOfFintype _)) (fun V : Coefficients n l f D => GramEvent sel E G (value V)) V* |
| 94 | test (fun i => batchEquiv ((o i).P*pointColumns (k := k) (n := n) (b := b) (degree := degree) sel (value V),(o i).Q*pointColumns (k := k) (n := n) (b := b) (degree := degree) sel (value V))))- |
| 95 | referenceMean N G test)^2) ≤ |
| 96 | (Fintype.card S : ℝ)*Lax342547.RawFrameComparison.errorBound N (Option D) (Option D) (Option D) (Option D)+ |
| 97 | 4*(((2 : ℝ)^(2*Fintype.card D+1)/(2 : ℝ)^n)/β^2) |
| 98 | |
| 99 | end |
| 100 | end Lax342547.FlavorAffineSlices |
| 101 |
Used by
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments