Documentation

CslibFrontier.Computability.Communication.Nondeterministic.CoverNumber

Cover numbers #

The z-cover number Nondeterministic.coverNumber z R A B of a relation R : X → Y → Bool → Prop on A × B is the least number of rectangles in a z-cover of R on A × B (Nondeterministic.IsCover), or ⊤ if there is none. For a function f : X → Y → Bool, Nondeterministic.coverNumberFun z f A B is the cover number of the relation f x y = b; on all of X × Y this is C^z(f) of Kushilevitz and Nisan, Definition 2.1(4), p. 17, and for z = true it is the rectangle covering bound of the Boolean matrix f [FioriniMassarPokuttaTiwaryDeWolf2015, footnote 2].

Nondeterministic communication complexity is the base-2 logarithm of the cover number, rounded up: ecomplexity z R A B ≤ k exactly when coverNumber z R A B ≤ 2 ^ k (Nondeterministic.ecomplexity_le_iff_coverNumber_le), so ecomplexity z R A B = ⌈log₂ (coverNumber z R A B)⌉ when the cover number is finite (Nondeterministic.ecomplexity_eq_clog_coverNumber). A fooling set bounds the cover number from below by its size (Nondeterministic.card_le_coverNumberFun_of_isFoolingSet), not only its complexity by the logarithm of its size.

Main definitions #

Main results #

References #

noncomputable def Cslib.Communication.Nondeterministic.coverNumber {X : Type u_1} {Y : Type u_2} (z : Bool) (R : X → Y → Bool → Prop) (A : Set X) (B : Set Y) :

The z-cover number of R on A × B: the least number of rectangles in a z-cover of R on A × B, or ⊤ if there is none.

noncomputable def Cslib.Communication.Nondeterministic.coverNumberFun {X : Type u_1} {Y : Type u_2} (z : Bool) (f : X → Y → Bool) (A : Set X) (B : Set Y) :

The z-cover number of f on A × B: coverNumber of the relation f x y = b. For z = true on all of X × Y this is the rectangle covering bound of the Boolean matrix f.

theorem Cslib.Communication.Nondeterministic.IsCover.of_embedding {X : Type u_1} {Y : Type u_2} {R : X → Y → Bool → Prop} {z : Bool} {A : Set X} {B : Set Y} {κ : Type u_3} {κ' : Type u_4} {C : κ → Set X × Set Y} (hC : IsCover z R A B C) (e : κ ↪ κ') :
IsCover z R A B (Function.extend (⇑e) C fun (x : κ') => (∅, ∅))

A cover can be reindexed along an embedding of index types, using empty rectangles for the new indices.

theorem Cslib.Communication.Nondeterministic.IsCover.coverNumber_le {X : Type u_1} {Y : Type u_2} {R : X → Y → Bool → Prop} {z : Bool} {A : Set X} {B : Set Y} {κ : Type u_3} [Fintype κ] {C : κ → Set X × Set Y} (hC : IsCover z R A B C) :
coverNumber z R A B ≤ ↑(Fintype.card κ)

A cover by rectangles indexed by a finite type κ bounds the cover number by |κ|.

theorem Cslib.Communication.Nondeterministic.le_coverNumber_iff {X : Type u_1} {Y : Type u_2} {R : X → Y → Bool → Prop} {z : Bool} {A : Set X} {B : Set Y} {c : ℕ∞} :
c ≤ coverNumber z R A B ↔ ∀ (r : ℕ) (C : Fin r → Set X × Set Y), IsCover z R A B C → c ≤ ↑r

Lower bounds on the cover number are lower bounds on the size of every cover.

theorem Cslib.Communication.Nondeterministic.coverNumber_le_iff {X : Type u_1} {Y : Type u_2} {R : X → Y → Bool → Prop} {z : Bool} {A : Set X} {B : Set Y} {r : ℕ} :
coverNumber z R A B ≤ ↑r ↔ ∃ (C : Fin r → Set X × Set Y), IsCover z R A B C

R has z-cover number at most r exactly when it has a z-cover by r rectangles.

theorem Cslib.Communication.Nondeterministic.hasCover_iff_coverNumber_le {X : Type u_1} {Y : Type u_2} {R : X → Y → Bool → Prop} {z : Bool} {A : Set X} {B : Set Y} {k : ℕ} :
HasCover z R A B k ↔ coverNumber z R A B ≤ ↑(2 ^ k)

A cover by 2 ^ k rectangles indexed by k-bit guesses is a cover by at most 2 ^ k rectangles.

theorem Cslib.Communication.Nondeterministic.ecomplexity_le_iff_coverNumber_le {X : Type u_1} {Y : Type u_2} {R : X → Y → Bool → Prop} {z : Bool} {A : Set X} {B : Set Y} {k : ℕ} :
ecomplexity z R A B ≤ ↑k ↔ coverNumber z R A B ≤ ↑(2 ^ k)

Nondeterministic complexity is at most k exactly when the cover number is at most 2 ^ k.

theorem Cslib.Communication.Nondeterministic.ecomplexity_le_clog {X : Type u_1} {Y : Type u_2} {R : X → Y → Bool → Prop} {z : Bool} {A : Set X} {B : Set Y} {r : ℕ} (h : coverNumber z R A B ≤ ↑r) :
ecomplexity z R A B ≤ ↑(Nat.clog 2 r)

A cover by at most r rectangles bounds the nondeterministic complexity by ⌈log₂ r⌉.

theorem Cslib.Communication.Nondeterministic.ecomplexity_eq_clog_coverNumber {X : Type u_1} {Y : Type u_2} {R : X → Y → Bool → Prop} {z : Bool} {A : Set X} {B : Set Y} {r : ℕ} (h : coverNumber z R A B = ↑r) :
ecomplexity z R A B = ↑(Nat.clog 2 r)

Nondeterministic complexity is ⌈log₂⌉ of the cover number, when the cover number is finite.

theorem Cslib.Communication.Nondeterministic.ecomplexity_eq_top_iff_coverNumber_eq_top {X : Type u_1} {Y : Type u_2} {R : X → Y → Bool → Prop} {z : Bool} {A : Set X} {B : Set Y} :
ecomplexity z R A B = ⊤ ↔ coverNumber z R A B = ⊤

The nondeterministic complexity is infinite exactly when the cover number is.

theorem Cslib.Communication.Nondeterministic.IsCover.coverNumberFun_le {X : Type u_1} {Y : Type u_2} {f : X → Y → Bool} {z : Bool} {A : Set X} {B : Set Y} {κ : Type u_3} [Fintype κ] {C : κ → Set X × Set Y} (hC : IsCover z (fun (x : X) (y : Y) (b : Bool) => f x y = b) A B C) :

IsCover.coverNumber_le for functions.

theorem Cslib.Communication.Nondeterministic.le_coverNumberFun_iff {X : Type u_1} {Y : Type u_2} {f : X → Y → Bool} {z : Bool} {A : Set X} {B : Set Y} {c : ℕ∞} :
c ≤ coverNumberFun z f A B ↔ ∀ (r : ℕ) (C : Fin r → Set X × Set Y), IsCover z (fun (x : X) (y : Y) (b : Bool) => f x y = b) A B C → c ≤ ↑r

le_coverNumber_iff for functions.

theorem Cslib.Communication.Nondeterministic.coverNumberFun_le_iff {X : Type u_1} {Y : Type u_2} {f : X → Y → Bool} {z : Bool} {A : Set X} {B : Set Y} {r : ℕ} :
coverNumberFun z f A B ≤ ↑r ↔ ∃ (C : Fin r → Set X × Set Y), IsCover z (fun (x : X) (y : Y) (b : Bool) => f x y = b) A B C

coverNumber_le_iff for functions.

theorem Cslib.Communication.Nondeterministic.card_le_coverNumberFun_of_isFoolingSet {X : Type u_1} {Y : Type u_2} {f : X → Y → Bool} {z : Bool} {A : Set X} {B : Set Y} {S : Finset (X × Y)} (hS : IsFoolingSet f z S) (hSAB : ∀ q ∈ S, q.1 ∈ A ∧ q.2 ∈ B) :
↑S.card ≤ coverNumberFun z f A B

The fooling-set bound on cover numbers. A fooling set for f with value z inside A × B has at most as many pairs as a z-cover of f on A × B has rectangles.