Documentation

CslibFrontier.Computability.Communication.Lifting.RatioProbability

Tail estimates for ratio-eligible parity witnesses #

The intrinsic slice-ratio bound removes the conditioning assignment's excess entropy from the sampling estimate. Density then restricts the size of the conditioning set relative to the parity set. These are explicit algebraic inputs to the counting part of the dangerous-values argument.

theorem Cslib.Communication.Lifting.ParityTest.conditional_atomCap_le_of_ratio {n m : ℕ} {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} (w : ParityTest F Y) {τY σ : ℝ} (hτY : 0 < τY) (hσ : 0 ≤ σ) (hστ : σ ≤ τY) (hratio : ↑Y.card ≤ ↑n ^ (2 * w.parity.card) * σ ^ w.conditioned.card * ↑(agreeOn Y w.conditioned w.assignment).card) :
↑Y.card / (↑(agreeOn Y w.conditioned w.assignment).card * τY ^ (w.parity.card + w.conditioned.card)) ≤ ↑n ^ (2 * w.parity.card) / τY ^ w.parity.card

Under the slice-ratio bound, conditioning has at most a quadratic ambient-cardinality factor per parity coordinate. The actual slice probability has been eliminated.

theorem Cslib.Communication.Lifting.ParityTest.tailCost_le_of_ratio {n m : ℕ} {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} [NeZero m] (w : ParityTest F Y) (g : Fin m → Fin m → Bool) {τX τY σ : ℝ} (hτX : 0 < τX) (hτY : 0 < τY) (hσ : 0 ≤ σ) (hστ : σ ≤ τY) (hratio : ↑Y.card ≤ ↑n ^ (2 * w.parity.card) * σ ^ w.conditioned.card * ↑(agreeOn Y w.conditioned w.assignment).card) :
w.tailCost g τX τY ≤ 2 * (↑m ^ 2 * ↑n ^ 2 / (τX * τY)) ^ w.parity.card * discrepancy (Probability.PMF.uniformOfFintype ((↥w.parity → Fin m) × (↥w.parity → Fin m))) fun (x y : ↥w.parity → Fin m) => ∑ i : ↥w.parity, g (x i) (y i)

Ratio eligibility bounds the parity-test sampling cost by the XOR discrepancy with an explicit per-coordinate amplification.

theorem Cslib.Communication.Lifting.ParityTest.tailCost_fourth_pow_le_of_ratio {n m : ℕ} {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} [NeZero m] (w : ParityTest F Y) (g : Fin m → Fin m → Bool) {τX τY σ : ℝ} (hτX : 0 < τX) (hτY : 0 < τY) (hσ : 0 ≤ σ) (hστ : σ ≤ τY) (hratio : ↑Y.card ≤ ↑n ^ (2 * w.parity.card) * σ ^ w.conditioned.card * ↑(agreeOn Y w.conditioned w.assignment).card) :
w.tailCost g τX τY ^ 4 ≤ 16 * ((↑m ^ 2 * ↑n ^ 2 / (τX * τY)) ^ 4 * (4 * discrepancy (Probability.PMF.uniformOfFintype (Fin m × Fin m)) g)) ^ w.parity.card

The intrinsic ratio estimate combined with the elementary XOR bound uses only the single-block gadget discrepancy.

theorem Cslib.Communication.Lifting.ParityTest.tailCost_le_geometric_budget_of_ratio {n m : ℕ} {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} [NeZero m] (w : ParityTest F Y) (g : Fin m → Fin m → Bool) {τX τY σ q : ℝ} (hτX : 0 < τX) (hτY : 0 < τY) (hσ : 0 ≤ σ) (hστ : σ ≤ τY) (hq : 0 < q) (hn : 1 ≤ n) (hS : w.parity.Nonempty) (hratio : ↑Y.card ≤ ↑n ^ (2 * w.parity.card) * σ ^ w.conditioned.card * ↑(agreeOn Y w.conditioned w.assignment).card) (hdisc : 16384 * (↑m ^ 2 * ↑n ^ 2 / (τX * τY)) ^ 4 * discrepancy (Probability.PMF.uniformOfFintype (Fin m × Fin m)) g ≤ (q / (2 * ↑n)) ^ 4) :
w.tailCost g τX τY ≤ 1 / 2 * (1 / (2 * ↑n)) ^ w.parity.card * (1 / 2 * q ^ w.parity.card)

A single explicit gadget-discrepancy inequality supplies a geometric tail budget of q^|S|/2 at the ambient witness threshold. The factor 16384 includes the fourth-power XOR loss and the two one-half factors in the threshold and budget.

theorem Cslib.Communication.Lifting.ParityTest.ratio_card_le_of_conditioned_eq_empty {n m : ℕ} {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} (w : ParityTest F Y) (hn : 1 ≤ n) (σ : ℝ) (hJ : w.conditioned = ∅) :
↑Y.card ≤ ↑n ^ (2 * w.parity.card) * σ ^ w.conditioned.card * ↑(agreeOn Y w.conditioned w.assignment).card

Unconditional tests automatically satisfy the intrinsic slice-ratio condition.

theorem Cslib.Communication.Lifting.ParityTest.density_ratio_pow_le {n m : ℕ} {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} (w : ParityTest F Y) {τY σ : ℝ} (hY : IsDense τY F Y) (hσ : 0 < σ) (hratio : ↑Y.card ≤ ↑n ^ (2 * w.parity.card) * σ ^ w.conditioned.card * ↑(agreeOn Y w.conditioned w.assignment).card) :
(τY / σ) ^ w.conditioned.card ≤ ↑n ^ (2 * w.parity.card)

Density and ratio eligibility force the conditioning set to be small compared with the parity set. This inequality is ready for the canonical-assignment counting bound.