Documentation

CslibFrontier.Computability.Communication.Lifting.DangerousProbability

Probabilities of conditional parity witnesses #

A ParityTest specifies disjoint parity and conditioning coordinates and a supported value of the conditioning coordinates. Density on their union controls every atom of the conditional source. The row-sampling bound then bounds the probability that the conditional parity is biased. A finite family of tests is handled by the existing outer-measure union bound.

The actual conditioning-slice size remains in every estimate. This is the finite-witness step of CFKMP Proposition 3.15, before counting eligible witnesses and choosing exponential parameters. Neither the eligibility argument nor the asymptotic rare-dangerous-values theorem is asserted.

structure Cslib.Communication.Lifting.ParityTest {n m : ℕ} (F : Finset (Fin n)) (Y : Finset (Fin n → Fin m)) :

A supported conditional parity test on disjoint coordinate sets.

  • parity : Finset (Fin n)

    Coordinates whose gadget outputs are XORed.

  • conditioned : Finset (Fin n)

    Coordinates fixed before the parity is evaluated.

  • assignment : Fin n → Fin m

    Values fixed on the conditioning coordinates.

  • parity_subset : self.parity ⊆ F

    Parity coordinates are free.

  • conditioned_subset : self.conditioned ⊆ F

    Conditioning coordinates are free.

  • disjoint : Disjoint self.conditioned self.parity

    No coordinate is both conditioned and tested.

  • supported : (agreeOn Y self.conditioned self.assignment).Nonempty

    The conditioning event has positive probability.

Instances For
    @[instance_reducible]
    noncomputable instance Cslib.Communication.Lifting.instFintypeParityTest {n m : ℕ} {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} :

    There are finitely many conditional parity tests; their proof fields carry no data.

    noncomputable def Cslib.Communication.Lifting.ParityTest.bias {n m : ℕ} {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} (w : ParityTest F Y) (g : Fin m → Fin m → Bool) (x : Fin n → Fin m) :

    Absolute bias of the conditional gadget parity for the supplied speaker input.

    noncomputable def Cslib.Communication.Lifting.ParityTest.tailCost {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 : ℝ) :

    The explicit first-moment cost of a conditional parity test. The slice denominator records its true probability, including any excess entropy of the conditioning value.

    theorem Cslib.Communication.Lifting.ParityTest.tailCost_fourth_pow_le {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 : ℝ) :
    w.tailCost g τX τY ^ 4 ≤ 16 * ((τX ^ w.parity.card)⁻¹ * (↑Y.card / (↑(agreeOn Y w.conditioned w.assignment).card * τY ^ (w.parity.card + w.conditioned.card))) * (↑m ^ w.parity.card * ↑m ^ w.parity.card)) ^ 4 * (4 * discrepancy (Probability.PMF.uniformOfFintype (Fin m × Fin m)) g) ^ w.parity.card

    The single-block discrepancy controls the fourth power of the tail cost. This is the place where the weaker elementary XOR estimate enters the dangerous-values calculation.

    theorem Cslib.Communication.Lifting.ParityTest.probability_bias_lt {n m : ℕ} {F : Finset (Fin n)} {X Y : Finset (Fin n → Fin m)} [NeZero m] (w : ParityTest F Y) (g : Fin m → Fin m → Bool) {τX τY t β : ℝ} (hX : IsDense τX F X) (hY : IsDense τY F Y) (hτX : 0 < τX) (hτY : 0 < τY) (hXne : X.Nonempty) (ht : 0 < t) (hβ : 0 < β) (hbound : w.tailCost g τX τY ≤ t * β) :

    A fixed conditional parity test has a strict sampling tail. Density is used jointly on parity and conditioning coordinates, so conditioning costs its probability only once.

    theorem Cslib.Communication.Lifting.probability_exists_parityTest_le {n m : ℕ} {κ : Type u_1} [Fintype κ] [NeZero m] {F : Finset (Fin n)} {X Y : Finset (Fin n → Fin m)} (w : κ → ParityTest F Y) (g : Fin m → Fin m → Bool) {τX τY : ℝ} (hX : IsDense τX F X) (hY : IsDense τY F Y) (hτX : 0 < τX) (hτY : 0 < τY) (hXne : X.Nonempty) (t β : κ → ℝ) (ht : ∀ (k : κ), 0 < t k) (hβ : ∀ (k : κ), 0 < β k) (hbound : ∀ (k : κ), (w k).tailCost g τX τY ≤ t k * β k) :
    ((Probability.PMF.uniformOfFinset X hXne).toOuterMeasure {x : Fin n → Fin m | ∃ (k : κ), t k < (w k).bias g x}).toReal ≤ ∑ k : κ, β k

    The probability that any test in a finite family is biased is bounded by the sum of the individual tail budgets. The family can be restricted to eligible witnesses before applying this theorem; no count of impossible or zero-probability conditioning values is needed.