Documentation

CslibFrontier.Computability.Communication.Lifting.RatioCounting

Counting canonical parity-test families #

Canonical parity tests with a fixed support inject into partial conditioning assignments. Consequently a support-dependent size bound gives a geometric bound on the entire family, without counting different outer output sets that can produce the same witness.

theorem Cslib.Communication.Lifting.card_parityTest_fiber_le {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} (P : ParityTest F Y → Prop) (hcanonical : ∀ (w : ParityTest F Y), P w → w.IsCanonical) (k : Finset (Fin n) → ℕ) (hsize : ∀ (w : ParityTest F Y), P w → w.conditioned.card ≤ k w.parity) (S : Finset (Fin n)) :

Canonical tests with a fixed parity support have no multiplicity beyond their partial conditioning assignment.

theorem Cslib.Communication.Lifting.sum_parityTest_pow_le_sum_conditioningAssignment {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} (P : ParityTest F Y → Prop) (hcanonical : ∀ (w : ParityTest F Y), P w → w.IsCanonical) (hnonempty : ∀ (w : ParityTest F Y), P w → w.parity.Nonempty) (k : Finset (Fin n) → ℕ) (hsize : ∀ (w : ParityTest F Y), P w → w.conditioned.card ≤ k w.parity) {q : ℝ} (hq : 0 ≤ q) :
∑ w : { w : ParityTest F Y // P w }, q ^ (↑w).parity.card ≤ ∑ S ∈ Finset.univ.powerset with Finset.Nonempty S, ↑(Fintype.card (ConditioningAssignment (Finset.univ \ S) m (k S))) * q ^ S.card

Grouping canonical tests by their parity support bounds the family by partial assignments.

theorem Cslib.Communication.Lifting.sum_parityTest_pow_le_one {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} (P : ParityTest F Y → Prop) (hcanonical : ∀ (w : ParityTest F Y), P w → w.IsCanonical) (hnonempty : ∀ (w : ParityTest F Y), P w → w.parity.Nonempty) (k : Finset (Fin n) → ℕ) (hsize : ∀ (w : ParityTest F Y), P w → w.conditioned.card ≤ k w.parity) (hNm : 1 ≤ n * m) {u q : ℝ} (hu : 0 ≤ u) (hq : 0 ≤ q) (hk : ∀ (S : Finset (Fin n)), S.Nonempty → ↑(n * m) ^ k S ≤ u ^ S.card) (hw : ↑(n + 1) * u * q ≤ 1) (hnw : ↑n * (↑(n + 1) * u * q) ≤ 1 / 2) :
∑ w : { w : ParityTest F Y // P w }, q ^ (↑w).parity.card ≤ 1

A support-dependent bound on conditioning sizes eliminates the explicit finite witness budget from a geometric union bound.

theorem Cslib.Communication.Lifting.conditioningSize_le_div_of_ratio {n r j s : ℕ} (hn : 2 ≤ n) (hr : 0 < r) {d : ℝ} (hd : ↑n ^ (2 * r) ≤ d) (hjs : d ^ j ≤ ↑n ^ (2 * s)) :
j ≤ s / r

A density-ratio gap bounds the number of conditioned coordinates by the parity order divided by the gap's exponent.

theorem Cslib.Communication.Lifting.pow_div_le_pow_of_le_pow {A r s : ℕ} {u : ℝ} (hu : 1 ≤ u) (hA : ↑A ≤ u ^ r) :
↑A ^ (s / r) ≤ u ^ s

A coarse alphabet bound raised to the truncated conditioning size is paid for by a geometric weight on the parity size.