Documentation

CslibFrontier.Computability.Communication.Lifting.RareDanger

Dangerous values and density-preserving steps #

A finite family covering all unsafe inputs converts the conditional parity sampling estimates into a bound on the number of unsafe inputs. The intermediate lemmas retain explicit family budgets. The final theorem card_le_two_mul_card_safe_of_discrepancy discharges coverage, integer-order selection, and witness counting: its hypotheses involve only source densities, alphabet and coordinate sizes, the single-block gadget discrepancy, and scalar parameters r, u, and q. It proves that at least half of the speaker's source is safe.

exists_densityStep_of_discrepancy feeds that estimate into the proved simulation step. Its message and query set are chosen before the query answers, and both resulting sources remain nonempty with the prescribed densities for every answer.

These are finite quantitative versions of the dangerous-value mechanism in CFKMP Lemma 3.9 and Section 4.1, using a weaker fourth-power XOR estimate and correspondingly different constants. No asymptotic choice of gadget size or complete protocol-to-decision-tree compiler is asserted.

Main results #

References #

theorem Cslib.Communication.Lifting.card_unsafe_le_of_parityTest_cover {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) (hcover : ∀ x ∈ X, ¬IsSafe g σ F Y x → ∃ (k : κ), t k < (w k).bias g x) :
↑{x ∈ X | ¬IsSafe g σ F Y x}.card ≤ (∑ k : κ, β k) * ↑X.card

A finite family of conditional parity witnesses bounds the number of unsafe inputs.

theorem Cslib.Communication.Lifting.card_le_two_mul_card_safe_of_parityTest_cover {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) (hcover : ∀ x ∈ X, ¬IsSafe g σ F Y x → ∃ (k : κ), t k < (w k).bias g x) (hbudget : ∑ k : κ, β k ≤ 1 / 2) :
↑X.card ≤ 2 * ↑(Finset.filter (IsSafe g σ F Y) X).card

A total conditional-parity tail budget of one half leaves at least half of the speaker's source safe. This is the exact safety-size premise of exists_densityStep.

theorem Cslib.Communication.Lifting.exists_densityStep_of_parityTest_cover {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) (hτ : 0 < τ) (hXne : X.Nonempty) (hYne : Y.Nonempty) (t β : κ → ℝ) (ht : ∀ (k : κ), 0 < t k) (hβ : ∀ (k : κ), 0 < β k) (hbound : ∀ (k : κ), (w k).tailCost g τX τY ≤ t k * β k) (hcover : ∀ x ∈ X, ¬IsSafe g σ F Y x → ∃ (k : κ), t k < (w k).bias g x) (hbudget : ∑ k : κ, β k ≤ 1 / 2) (send : (Fin n → Fin m) → Bool) :
∃ (st : DensityStep n m), st.Valid g τ σ F X Y send

Conditional parity-tail estimates supply a valid density-preserving step when their witness family covers unsafe inputs and has total budget at most one half. The selected message and queried coordinates are chosen before the answers, as recorded by Valid.

structure Cslib.Communication.Lifting.ParityTest.IsEligible {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} (order : Finset (Fin n) → (J : Finset (Fin n)) → (↥J → Fin m) → ℕ) (w : ParityTest F Y) :

Eligible canonical parity tests. The larger output set is existentially quantified, so it is not counted as extra data when the same parity witness can arise from several output sets.

theorem Cslib.Communication.Lifting.card_le_two_mul_card_safe_of_eligible_budget {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {X Y : Finset (Fin n → Fin m)} (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) (hσ : 0 ≤ σ) (hXne : X.Nonempty) (hYne : Y.Nonempty) (order : Finset (Fin n) → (J : Finset (Fin n)) → (↥J → Fin m) → ℕ) (horder : ∀ I ⊆ F, ∀ J ⊆ F \ I, J.Nonempty → ∀ (a : ↥J → Fin m), (agreeOn Y J (ParityTest.extendAssignment J a)).Nonempty → 1 ≤ order I J a ∧ 2 * (↑{S : Finset ↥I | S.card < order I J a}.card + 1) * σ ^ J.card * ↑(agreeOn Y J (ParityTest.extendAssignment J a)).card ≤ ↑Y.card) (β : { w : ParityTest F Y // ParityTest.IsEligible order w } → ℝ) (hβ : ∀ (w : { w : ParityTest F Y // ParityTest.IsEligible order w }), 0 < β w) (hcost : ∀ (w : { w : ParityTest F Y // ParityTest.IsEligible order w }), (↑w).tailCost g τX τY ≤ 1 / 2 * (1 / (2 * ↑n)) ^ (↑w).parity.card * β w) (hbudget : ∑ w : { w : ParityTest F Y // ParityTest.IsEligible order w }, β w ≤ 1 / 2) :
↑X.card ≤ 2 * ↑(Finset.filter (IsSafe g σ F Y) X).card

The concrete finite dangerous-values estimate. The canonical eligible family comes from the proved unsafe-to-parity reduction, rather than an assumed covering family. Its integer orders, per-witness discrepancy budgets and total finite budget are all explicit.

theorem Cslib.Communication.Lifting.exists_densityStep_of_eligible_budget {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {X Y : Finset (Fin n → Fin m)} (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) (hτ : 0 < τ) (hσ : 0 ≤ σ) (hXne : X.Nonempty) (hYne : Y.Nonempty) (order : Finset (Fin n) → (J : Finset (Fin n)) → (↥J → Fin m) → ℕ) (horder : ∀ I ⊆ F, ∀ J ⊆ F \ I, J.Nonempty → ∀ (a : ↥J → Fin m), (agreeOn Y J (ParityTest.extendAssignment J a)).Nonempty → 1 ≤ order I J a ∧ 2 * (↑{S : Finset ↥I | S.card < order I J a}.card + 1) * σ ^ J.card * ↑(agreeOn Y J (ParityTest.extendAssignment J a)).card ≤ ↑Y.card) (β : { w : ParityTest F Y // ParityTest.IsEligible order w } → ℝ) (hβ : ∀ (w : { w : ParityTest F Y // ParityTest.IsEligible order w }), 0 < β w) (hcost : ∀ (w : { w : ParityTest F Y // ParityTest.IsEligible order w }), (↑w).tailCost g τX τY ≤ 1 / 2 * (1 / (2 * ↑n)) ^ (↑w).parity.card * β w) (hbudget : ∑ w : { w : ParityTest F Y // ParityTest.IsEligible order w }, β w ≤ 1 / 2) (send : (Fin n → Fin m) → Bool) :
∃ (st : DensityStep n m), st.Valid g τ σ F X Y send

A concrete eligible-parity budget supplies the full pre-answer simulation-step certificate. No separate safety or witness-coverage premise is assumed.

structure Cslib.Communication.Lifting.ParityTest.IsRatioEligible {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {Y : Finset (Fin n → Fin m)} (σ : ℝ) (w : ParityTest F Y) :

Intrinsically eligible tests: canonical nonempty parities whose conditioning ratio can be paid by the parity size. This definition contains no auxiliary output set or integer order.

theorem Cslib.Communication.Lifting.card_le_two_mul_card_safe_of_ratio_budget {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {X Y : Finset (Fin n → Fin m)} (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) (hσ : 0 < σ) (hXne : X.Nonempty) (hYne : Y.Nonempty) (hn : 2 ≤ n) (hgap : 16 * ↑n ^ 2 ≤ τY / σ) (β : { w : ParityTest F Y // ParityTest.IsRatioEligible σ w } → ℝ) (hβ : ∀ (w : { w : ParityTest F Y // ParityTest.IsRatioEligible σ w }), 0 < β w) (hcost : ∀ (w : { w : ParityTest F Y // ParityTest.IsRatioEligible σ w }), (↑w).tailCost g τX τY ≤ 1 / 2 * (1 / (2 * ↑n)) ^ (↑w).parity.card * β w) (hbudget : ∑ w : { w : ParityTest F Y // ParityTest.IsRatioEligible σ w }, β w ≤ 1 / 2) :
↑X.card ≤ 2 * ↑(Finset.filter (IsSafe g σ F Y) X).card

The concrete ratio witness family supplies safety from a finite sum of sampling budgets. Density supplies the required orders and witness coverage, so neither is a separate premise.

theorem Cslib.Communication.Lifting.card_le_two_mul_card_safe_of_discrepancy {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {X Y : Finset (Fin n → Fin m)} (g : Fin m → Fin m → Bool) {τX τY σ u q : ℝ} {r : ℕ} (hX : IsDense τX F X) (hY : IsDense τY F Y) (hτX : 0 < τX) (hτY : 0 < τY) (hσ : 0 < σ) (hXne : X.Nonempty) (hYne : Y.Nonempty) (hn : 2 ≤ n) (hr : 0 < r) (hgap : 16 * ↑n ^ 2 ≤ τY / σ) (hratio : ↑n ^ (2 * r) ≤ τY / σ) (hu : 1 ≤ u) (hsize : ↑(n * m) ≤ u ^ r) (hq : 0 < q) (hweight : ↑n * (↑(n + 1) * u * q) ≤ 1 / 2) (hdisc : 16384 * (↑m ^ 2 * ↑n ^ 2 / (τX * τY)) ^ 4 * discrepancy (Probability.PMF.uniformOfFintype (Fin m × Fin m)) g ≤ (q / (2 * ↑n)) ^ 4) :
↑X.card ≤ 2 * ↑(Finset.filter (IsSafe g σ F Y) X).card

A finite numerical dangerous-values theorem. The hypotheses involve only densities, alphabet and coordinate sizes, single-block discrepancy, and three scalar counting parameters. There is no assumed safety bound, witness cover, integer-order choice, or finite witness sum. The constants reflect the elementary fourth-power XOR bound used in this development.

theorem Cslib.Communication.Lifting.exists_densityStep_of_discrepancy {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {X Y : Finset (Fin n → Fin m)} (g : Fin m → Fin m → Bool) {τX τY σ u q : ℝ} {r : ℕ} (hX : IsDense τX F X) (hY : IsDense τY F Y) (hτX : 0 < τX) (hτY : 0 < τY) (hσ : 0 < σ) (hXne : X.Nonempty) (hYne : Y.Nonempty) (hn : 2 ≤ n) (hr : 0 < r) (hgap : 16 * ↑n ^ 2 ≤ τY / σ) (hratio : ↑n ^ (2 * r) ≤ τY / σ) (hu : 1 ≤ u) (hsize : ↑(n * m) ≤ u ^ r) (hq : 0 < q) (hweight : ↑n * (↑(n + 1) * u * q) ≤ 1 / 2) (hdisc : 16384 * (↑m ^ 2 * ↑n ^ 2 / (τX * τY)) ^ 4 * discrepancy (Probability.PMF.uniformOfFintype (Fin m × Fin m)) g ≤ (q / (2 * ↑n)) ^ 4) (send : (Fin n → Fin m) → Bool) :
∃ (st : DensityStep n m), st.Valid g τY σ F X Y send

Single-block discrepancy and finite numerical density/counting conditions produce a valid simulation step, with no assumed safety or witness estimates. The speaker is restored to the listener's original density while the listener retains density σ, for every query answer.

theorem Cslib.Communication.Lifting.exists_pair_of_discrepancy {n m : ℕ} [NeZero m] {F : Finset (Fin n)} {X Y : Finset (Fin n → Fin m)} (g : Fin m → Fin m → Bool) {τX τY σ u q : ℝ} {r : ℕ} (hX : IsDense τX F X) (hY : IsDense τY F Y) (hτX : 0 < τX) (hτY : 0 < τY) (hσ : 0 < σ) (hXne : X.Nonempty) (hYne : Y.Nonempty) (hn : 2 ≤ n) (hr : 0 < r) (hgap : 16 * ↑n ^ 2 ≤ τY / σ) (hratio : ↑n ^ (2 * r) ≤ τY / σ) (hu : 1 ≤ u) (hsize : ↑(n * m) ≤ u ^ r) (hq : 0 < q) (hweight : ↑n * (↑(n + 1) * u * q) ≤ 1 / 2) (hdisc : 16384 * (↑m ^ 2 * ↑n ^ 2 / (τX * τY)) ^ 4 * discrepancy (Probability.PMF.uniformOfFintype (Fin m × Fin m)) g ≤ (q / (2 * ↑n)) ^ 4) (answer : Fin n → Bool) :
∃ x ∈ X, ∃ y ∈ Y, ∀ i ∈ F, g (x i) (y i) = answer i

Terminal full range under the same numerical conditions as the simulation. A safe speaker value has a nonempty fiber for every assignment on all remaining free coordinates. Thus no separate parity-bound or full-range hypothesis is required at a terminal protocol node.