Documentation

CslibFrontier.Computability.Communication.Lifting.Dangerous

Safe values and conditioning on gadget outputs #

For an arbitrary Boolean gadget, gadgetFiber restricts Bob's finite input set to a specified output on selected coordinates. IsSafe is the complement of the dangerous-value condition of [Chattopadhyay, Filmus, Koroth, Meir and Pitassi, Definition 3.8] [CFK+21], for a nonempty set with its uniform distribution. The multiplicative density parameter σ represents 2^((δY - ε)b). Nonemptiness and the initial density of Bob's set are separate hypotheses, rather than part of this predicate.

The Bayes certificate retains the exact cardinality of a conditioned coordinate slice. Thus a rare slice is not silently assigned the probability of a uniform slice. This is the finite-set, multiplicative form of the step in the source's Claim 3.12. This module does not prove that unsafe values are rare; that is the separate main dangerous-values lemma.

Main definitions #

Main results #

def Cslib.Communication.Lifting.gadgetFiber {n m : ℕ} (g : Fin m → Fin m → Bool) (Y : Finset (Fin n → Fin m)) (I : Finset (Fin n)) (x : Fin n → Fin m) (β : Fin n → Bool) :
Finset (Fin n → Fin m)

Bob's inputs in Y giving output β on I when Alice's input is x. Only the values of x and β on I are used.

@[simp]
theorem Cslib.Communication.Lifting.mem_gadgetFiber {n m : ℕ} {g : Fin m → Fin m → Bool} {Y : Finset (Fin n → Fin m)} {I : Finset (Fin n)} {x y : Fin n → Fin m} {β : Fin n → Bool} :
y ∈ gadgetFiber g Y I x β ↔ y ∈ Y ∧ ∀ i ∈ I, g (x i) (y i) = β i

Membership in the gadget-output fiber.

@[simp]
theorem Cslib.Communication.Lifting.gadgetFiber_empty {n m : ℕ} (g : Fin m → Fin m → Bool) (Y : Finset (Fin n → Fin m)) (x : Fin n → Fin m) (β : Fin n → Bool) :
gadgetFiber g Y ∅ x β = Y

Conditioning on no gadget coordinates leaves the input set unchanged.

theorem Cslib.Communication.Lifting.gadgetFiber_subset {n m : ℕ} (g : Fin m → Fin m → Bool) (Y : Finset (Fin n → Fin m)) (I : Finset (Fin n)) (x : Fin n → Fin m) (β : Fin n → Bool) :
gadgetFiber g Y I x β ⊆ Y

Every gadget-output fiber is a subset of the original set.

theorem Cslib.Communication.Lifting.gadgetFiber_congr_left {n m : ℕ} (g : Fin m → Fin m → Bool) (Y : Finset (Fin n → Fin m)) (I : Finset (Fin n)) {x x' : Fin n → Fin m} (hx : ∀ i ∈ I, x i = x' i) (β : Fin n → Bool) :
gadgetFiber g Y I x β = gadgetFiber g Y I x' β

Changing Alice's coordinates outside I does not change Bob's output fiber.

theorem Cslib.Communication.Lifting.agreeOn_gadgetFiber {n m : ℕ} (g : Fin m → Fin m → Bool) (Y : Finset (Fin n → Fin m)) (I J : Finset (Fin n)) (x α : Fin n → Fin m) (β : Fin n → Bool) :
agreeOn (gadgetFiber g Y I x β) J α = gadgetFiber g (agreeOn Y J α) I x β

Coordinate conditioning and gadget-output conditioning commute. No disjointness assumption is required for this set identity.

structure Cslib.Communication.Lifting.IsSafe {n m : ℕ} (g : Fin m → Fin m → Bool) (σ : ℝ) (F : Finset (Fin n)) (Y : Finset (Fin n → Fin m)) (x : Fin n → Fin m) :

An Alice value is safe for Bob's uniform finite source if every queried output fiber has probability at least 2^(-|I|-1) and retains density σ on the unqueried free coordinates. For nonempty Y, this is exactly the complement of CFKMP Definition 3.8, with the original density parameter converted to the multiplicative convention of IsDense.

theorem Cslib.Communication.Lifting.IsSafe.congr_left {n m : ℕ} {g : Fin m → Fin m → Bool} {σ : ℝ} {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} {x x' : Fin n → Fin m} (h : IsSafe g σ F Y x) (hx : ∀ i ∈ F, x i = x' i) :
IsSafe g σ F Y x'

Safety only depends on the free coordinates of Alice's input.

theorem Cslib.Communication.Lifting.IsSafe.fiber_nonempty {n m : ℕ} {g : Fin m → Fin m → Bool} {σ : ℝ} {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} {x : Fin n → Fin m} (h : IsSafe g σ F Y x) (hY : Y.Nonempty) {I : Finset (Fin n)} (hI : I ⊆ F) (β : Fin n → Bool) :
(gadgetFiber g Y I x β).Nonempty

Safe conditioning of a nonempty source has a nonempty fiber for every output.

theorem Cslib.Communication.Lifting.exists_bayes_card_certificate {n m : ℕ} {g : Fin m → Fin m → Bool} {σ : ℝ} {F I : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} {x : Fin n → Fin m} {β : Fin n → Bool} (hleak : ↑Y.card ≤ 2 ^ (I.card + 1) * ↑(gadgetFiber g Y I x β).card) (hfail : ¬IsDense σ (F \ I) (gadgetFiber g Y I x β)) :
∃ (J : Finset (Fin n)) (α : Fin n → Fin m), J ⊆ F \ I ∧ J.Nonempty ∧ Disjoint I J ∧ (gadgetFiber g (agreeOn Y J α) I x β).Nonempty ∧ ↑Y.card < 2 ^ (I.card + 1) * ↑(gadgetFiber g (agreeOn Y J α) I x β).card * σ ^ J.card

The cardinality Bayes certificate (CFKMP Claim 3.12). If a nonleaking fiber fails residual density, some disjoint coordinate slice has abnormally many inputs in that fiber. The strict inequality keeps the actual slice size implicit; the next theorem makes it explicit.

theorem Cslib.Communication.Lifting.exists_bayes_frequency_certificate {n m : ℕ} {g : Fin m → Fin m → Bool} {σ : ℝ} {F I : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} {x : Fin n → Fin m} {β : Fin n → Bool} (hσ : 0 < σ) (hleak : ↑Y.card ≤ 2 ^ (I.card + 1) * ↑(gadgetFiber g Y I x β).card) (hfail : ¬IsDense σ (F \ I) (gadgetFiber g Y I x β)) :
∃ (J : Finset (Fin n)) (α : Fin n → Fin m), J ⊆ F \ I ∧ J.Nonempty ∧ Disjoint I J ∧ (agreeOn Y J α).Nonempty ∧ ↑Y.card / ↑(agreeOn Y J α).card / (2 ^ (I.card + 1) * σ ^ J.card) < ↑(gadgetFiber g (agreeOn Y J α) I x β).card / ↑(agreeOn Y J α).card

The same Bayes certificate as a conditional frequency. Its threshold retains #Y / #(agreeOn Y J α), rather than replacing a possibly rare coordinate slice by a uniform one.