Documentation

CslibFrontier.Logics.Propositional.SemanticDerivation

Feasible interpolation for semantic derivations #

A semantic derivation Krajíček, Definition 4.1 is a sequence of sets of truth assignments in which every set is an initial set or contains the intersection of two earlier ones. Translating each line to its set of models turns a refutation in a sound line-based proof system whose rules have at most two premises, such as resolution or cutting planes, into a semantic derivation of ∅ with the same number of lines.

Split the variables into shared variables X and private variables Y and Z, take initial sets 𝒜 depending only on X ⊕ Y and ℬ depending only on X ⊕ Z, and view them as cylinders on X ⊕ (Y ⊕ Z) (SemanticDerivation.leftCylinder, SemanticDerivation.rightCylinder). Krajíček's interpolation theorem Krajíček, Theorem 5.1 says that if a semantic derivation of ∅ from these cylinders has k lines, each of communication complexity at most t, then a circuit with (k + 2 n) · 2 ^ O(t) gates, where n is the number of shared variables, separates the shared parts of the models of 𝒜 from those of ℬ; in the monotone case the bound is (k + n) · 2 ^ O(t). The bound proved here, (k · 2 ^ (2 t) + 1) · 2 ^ (2 t + 1), does not depend on n and so sharpens the source's (see the implementation notes). The two players, Alice holding a model (u, q) of 𝒜 and Bob a model (v, r) of ℬ, walk backwards through the derivation along lines falsified by the mixed assignment (v, q, r), starting from ∅. Such a walk cannot stop at a derived line, and it cannot reach a ℬ-cylinder, which (v, r) satisfies. So it ends at an 𝒜-cylinder satisfied by (u, q) and falsified by (v, q), where the players find a coordinate i with u i ≠ v i. This is a dag-like protocol for the Karchmer–Wigderson game (Cslib.Communication.DagProtocol), and such protocols give circuits (Cslib.Communication.DagProtocol.Solves.exists_circuit).

Main definitions #

Main results #

Implementation notes #

References #

def Cslib.Logic.PL.IsSemanticDerivation {W : Type u_1} {k : ℕ} (init : Set (Set W)) (D : Fin k → Set W) :

A semantic derivation from the initial sets init Krajíček, Definition 4.1: a sequence of k sets of points in which every set is an initial set, the whole space, or contains the intersection of two earlier sets.

def Cslib.Logic.PL.IsSemanticRefutation {W : Type u_1} {k : ℕ} (init : Set (Set W)) (D : Fin k → Set W) :

A semantic refutation from the initial sets init: a semantic derivation containing the empty set. Its length k is the number of lines.

theorem Cslib.Logic.PL.IsSemanticDerivation.mem_of_forall_mem {W : Type u_1} {k : ℕ} {init : Set (Set W)} {D : Fin k → Set W} (hD : IsSemanticDerivation init D) {w : W} (hw : ∀ S ∈ init, w ∈ S) (j : Fin k) :
w ∈ D j

Soundness of semantic derivations. A point lying in every initial set lies in every line.

theorem Cslib.Logic.PL.IsSemanticRefutation.not_exists_forall_mem {W : Type u_1} {k : ℕ} {init : Set (Set W)} {D : Fin k → Set W} (hD : IsSemanticRefutation init D) :
¬∃ (w : W), ∀ S ∈ init, w ∈ S

A semantic refutation certifies that no point lies in every initial set.

def Cslib.Logic.PL.SemanticDerivation.leftCylinder {X : Type u_2} {Y : Type u_3} {Z : Type u_4} (S : Set (X ⊕ Y → Bool)) :
Set (X ⊕ Y ⊕ Z → Bool)

The cylinder on X ⊕ (Y ⊕ Z) over a set of assignments to X ⊕ Y: the assignments whose restriction to X ⊕ Y lies in S. Krajíček writes Ã.

def Cslib.Logic.PL.SemanticDerivation.rightCylinder {X : Type u_2} {Y : Type u_3} {Z : Type u_4} (S : Set (X ⊕ Z → Bool)) :
Set (X ⊕ Y ⊕ Z → Bool)

The cylinder on X ⊕ (Y ⊕ Z) over a set of assignments to X ⊕ Z: the assignments whose restriction to X ⊕ Z lies in S. Krajíček writes B̃.

def Cslib.Logic.PL.SemanticDerivation.initSets {X : Type u_2} {Y : Type u_3} {Z : Type u_4} (𝒜 : Set (Set (X ⊕ Y → Bool))) (ℬ : Set (Set (X ⊕ Z → Bool))) :
Set (Set (X ⊕ Y ⊕ Z → Bool))

The initial sets of a semantic refutation of 𝒜 ∪ ℬ: the cylinders over the sets in 𝒜 and those over the sets in ℬ.

theorem Cslib.Logic.PL.SemanticDerivation.mem_leftCylinder {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {S : Set (X ⊕ Y → Bool)} {a : X → Bool} {y : Y → Bool} {z : Z → Bool} :
theorem Cslib.Logic.PL.SemanticDerivation.mem_rightCylinder {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {S : Set (X ⊕ Z → Bool)} {a : X → Bool} {y : Y → Bool} {z : Z → Bool} :
def Cslib.Logic.PL.SemanticDerivation.Models {X : Type u_2} {Y : Type u_3} (𝒮 : Set (Set (X ⊕ Y → Bool))) :
Set ((X → Bool) × (Y → Bool))

The models of a family of sets of assignments to X ⊕ Y, as pairs of assignments to X and to Y: those lying in every set of the family.

def Cslib.Logic.PL.SemanticDerivation.MemLeft {X : Type u_2} {Y : Type u_3} {Z : Type u_4} (D : Set (X ⊕ Y ⊕ Z → Bool)) (a : (X → Bool) × (Y → Bool)) (b : (X → Bool) × (Z → Bool)) :

Alice, holding a = (u, q), and Bob, holding b = (v, r): the assignment (u, q, r) lies in D. This is task 1 of Krajíček, Definition 4.3.

def Cslib.Logic.PL.SemanticDerivation.MemRight {X : Type u_2} {Y : Type u_3} {Z : Type u_4} (D : Set (X ⊕ Y ⊕ Z → Bool)) (a : (X → Bool) × (Y → Bool)) (b : (X → Bool) × (Z → Bool)) :

Alice, holding a = (u, q), and Bob, holding b = (v, r): the assignment (v, q, r) lies in D. This is task 2 of Krajíček, Definition 4.3.

def Cslib.Logic.PL.SemanticDerivation.Decides {α : Type u_5} {β : Type u_6} (P : α → β → Prop) (a : α) (b : β) (z : Bool) :

The relation solved by a protocol whose Boolean output decides P.

def Cslib.Logic.PL.SemanticDerivation.Search {X : Type u_2} {Y : Type u_3} {Z : Type u_4} (S : Set (X ⊕ Y → Bool)) (R : (X → Bool) → (X → Bool) → X → Prop) (a : (X → Bool) × (Y → Bool)) (b : (X → Bool) × (Z → Bool)) (o : Option X) :

The search problem at an initial set S of 𝒜: if (u, q) lies in S and (v, q) does not, the answer is a coordinate i with R u v i, such as u i ≠ v i (DiffersAt) or u i = 1 ∧ v i = 0 (ExceedsAt). Answers are optional, and none is allowed when the promise fails.

theorem Cslib.Logic.PL.IsSemanticRefutation.exists_dagProtocol {k : ℕ} {X : Type u_2} {Y : Type u_3} {Z : Type u_4} {𝒜 : Set (Set (X ⊕ Y → Bool))} {ℬ : Set (Set (X ⊕ Z → Bool))} {D : Fin k → Set (X ⊕ Y ⊕ Z → Bool)} {t : ℕ} {R : (X → Bool) → (X → Bool) → X → Prop} (hD : IsSemanticRefutation (SemanticDerivation.initSets 𝒜 ℬ) D) (hmem : ∀ (j : Fin k), Communication.Protocol.ecomplexity (SemanticDerivation.Decides (SemanticDerivation.MemRight (D j))) (SemanticDerivation.Models 𝒜) (SemanticDerivation.Models ℬ) ≤ ↑t) (hsearch : ∀ (j : Fin k), ∀ S ∈ 𝒜, SemanticDerivation.leftCylinder S = D j → Communication.Protocol.ecomplexity (SemanticDerivation.Search S R) (SemanticDerivation.Models 𝒜) (SemanticDerivation.Models ℬ) ≤ ↑t) :
∃ (P : Communication.DagProtocol (X → Bool) (X → Bool) X k), P.depth ≤ 2 * t ∧ P.Solves R {u : X → Bool | ∃ (q : Y → Bool), (u, q) ∈ SemanticDerivation.Models 𝒜} {v : X → Bool | ∃ (r : Z → Bool), (v, r) ∈ SemanticDerivation.Models ℬ}

The protocol of Krajíček's interpolation theorem Krajíček, Theorem 5.1. Let D be a semantic refutation with k lines of the cylinders over 𝒜 and ℬ. Suppose that on models (u, q) of 𝒜 and (v, r) of ℬ, deciding whether (v, q, r) lies in a line takes at most t bits, and at every line that is the cylinder over some S ∈ 𝒜, finding a coordinate i with R u v i when (u, q) ∈ S and (v, q) ∉ S takes at most t bits. Then a dag-like protocol with k inner nodes and communication at most 2 t solves R on the shared parts of the models.

Interpolation for semantic refutations. Under the hypotheses of IsSemanticRefutation.exists_dagProtocol for DiffersAt, a circuit with at most (k · 2 ^ (2 t) + 1) · 2 ^ (2 t + 1) gates is true on the shared part of every model of 𝒜 and false on the shared part of every model of ℬ.

Monotone interpolation for semantic refutations. Under the hypotheses of IsSemanticRefutation.exists_dagProtocol for ExceedsAt, a monotone circuit with at most (k · 2 ^ (2 t) + 1) · 2 ^ (2 t + 1) gates is true on the shared part of every model of 𝒜 and false on the shared part of every model of ℬ.

theorem Cslib.Logic.PL.IsSemanticRefutation.lt_of_forall_lt_size {k : ℕ} {Y : Type u_3} {Z : Type u_4} {t n L : ℕ} {𝒜 : Set (Set (Fin n ⊕ Y → Bool))} {ℬ : Set (Set (Fin n ⊕ Z → Bool))} {D : Fin k → Set (Fin n ⊕ Y ⊕ Z → Bool)} (hD : IsSemanticRefutation (SemanticDerivation.initSets 𝒜 ℬ) D) (hmem : ∀ (j : Fin k), Communication.Protocol.ecomplexity (SemanticDerivation.Decides (SemanticDerivation.MemRight (D j))) (SemanticDerivation.Models 𝒜) (SemanticDerivation.Models ℬ) ≤ ↑t) (hsearch : ∀ (j : Fin k), ∀ S ∈ 𝒜, SemanticDerivation.leftCylinder S = D j → Communication.Protocol.ecomplexity (SemanticDerivation.Search S Communication.ExceedsAt) (SemanticDerivation.Models 𝒜) (SemanticDerivation.Models ℬ) ≤ ↑t) (hL : ∀ (C : Circuits.Circuit Circuits.Monotone.signature n 1), (∀ (u : Fin n → Bool) (q : Y → Bool), (u, q) ∈ SemanticDerivation.Models 𝒜 → C.eval Circuits.Monotone.interpretation u 0 = true) → (∀ (v : Fin n → Bool) (r : Z → Bool), (v, r) ∈ SemanticDerivation.Models ℬ → C.eval Circuits.Monotone.interpretation v 0 = false) → L < C.size) :
L < (k * 2 ^ (2 * t) + 1) * 2 ^ (2 * t + 1)

Lower bounds on the number of lines from monotone circuit lower bounds. If every monotone circuit that is true on the shared parts of the models of 𝒜 and false on those of ℬ has more than L gates, then a semantic refutation with k lines satisfying the hypotheses of IsSemanticRefutation.exists_monotone_circuit has L < (k · 2 ^ (2 t) + 1) · 2 ^ (2 t + 1).

Krajíček's communication complexity of a set of assignments #

noncomputable def Cslib.Logic.PL.SemanticDerivation.commComplexity {X : Type u_2} {Y : Type u_3} {Z : Type u_4} (D : Set (X ⊕ Y ⊕ Z → Bool)) :

The communication complexity CC(D) of a set of assignments to X ⊕ (Y ⊕ Z) Krajíček, Definition 4.3: the largest number of bits that Alice, holding (u, q), and Bob, holding (v, r), need in the worst case to decide whether (u, q, r) ∈ D (task 1), to decide whether (v, q, r) ∈ D (task 2), and to find i with u i ≠ v i when exactly one of them lies in D (task 3).

noncomputable def Cslib.Logic.PL.SemanticDerivation.monotoneCommComplexity {X : Type u_2} {Y : Type u_3} {Z : Type u_4} (D : Set (X ⊕ Y ⊕ Z → Bool)) :

The monotone communication complexity MCC_U(D) of a set of assignments Krajíček, Definition 4.3: the larger of CC(D) and the number of bits needed, when (u, q, r) ∈ D and (v, q, r) ∉ D, to either find i with u i = 1 and v i = 0 (answer some i) or learn that (u', q, r) ∉ D for some u' ≥ u (answer none) (task 4).

theorem Cslib.Logic.PL.IsSemanticRefutation.exists_circuit_of_commComplexity_le {k : ℕ} {Y : Type u_3} {Z : Type u_4} {t n : ℕ} {𝒜 : Set (Set (Fin n ⊕ Y → Bool))} {ℬ : Set (Set (Fin n ⊕ Z → Bool))} {D : Fin k → Set (Fin n ⊕ Y ⊕ Z → Bool)} (hD : IsSemanticRefutation (SemanticDerivation.initSets 𝒜 ℬ) D) (hcc : ∀ (j : Fin k), SemanticDerivation.commComplexity (D j) ≤ ↑t) :
∃ (C : Circuits.Circuit Circuits.Boolean.signature n 1), C.size ≤ (k * 2 ^ (2 * t) + 1) * 2 ^ (2 * t + 1) ∧ (∀ (u : Fin n → Bool) (q : Y → Bool), (u, q) ∈ SemanticDerivation.Models 𝒜 → C.eval Circuits.Boolean.interpretation u 0 = true) ∧ ∀ (v : Fin n → Bool) (r : Z → Bool), (v, r) ∈ SemanticDerivation.Models ℬ → C.eval Circuits.Boolean.interpretation v 0 = false

Krajíček's interpolation theorem for semantic derivations Krajíček, Theorem 5.1. If a semantic refutation of the cylinders over 𝒜 and ℬ has k lines, each of communication complexity at most t, then (sharpening the bound (k + 2 n) · 2 ^ O(t) of Theorem 5.1) a circuit with at most (k · 2 ^ (2 t) + 1) · 2 ^ (2 t + 1) gates is true on the shared part of every model of 𝒜 and false on the shared part of every model of ℬ.

theorem Cslib.Logic.PL.IsSemanticRefutation.exists_monotone_circuit_of_monotoneCommComplexity_le {k : ℕ} {Y : Type u_3} {Z : Type u_4} {t n : ℕ} {𝒜 : Set (Set (Fin n ⊕ Y → Bool))} {ℬ : Set (Set (Fin n ⊕ Z → Bool))} {D : Fin k → Set (Fin n ⊕ Y ⊕ Z → Bool)} (hD : IsSemanticRefutation (SemanticDerivation.initSets 𝒜 ℬ) D) (hmono : ∀ (u u' : Fin n → Bool) (q : Y → Bool), (u, q) ∈ SemanticDerivation.Models 𝒜 → u ≤ u' → (u', q) ∈ SemanticDerivation.Models 𝒜) (hmcc : ∀ (j : Fin k), SemanticDerivation.monotoneCommComplexity (D j) ≤ ↑t) :
∃ (C : Circuits.Circuit Circuits.Monotone.signature n 1), C.size ≤ (k * 2 ^ (2 * t) + 1) * 2 ^ (2 * t + 1) ∧ (∀ (u : Fin n → Bool) (q : Y → Bool), (u, q) ∈ SemanticDerivation.Models 𝒜 → C.eval Circuits.Monotone.interpretation u 0 = true) ∧ ∀ (v : Fin n → Bool) (r : Z → Bool), (v, r) ∈ SemanticDerivation.Models ℬ → C.eval Circuits.Monotone.interpretation v 0 = false

Krajíček's monotone interpolation theorem for semantic derivations Krajíček, Theorem 5.1. Suppose that the models of 𝒜 are upward closed in the shared variables: if (u, q) is a model and u ≤ u', then so is (u', q). If a semantic refutation of the cylinders over 𝒜 and ℬ has k lines, each of monotone communication complexity MCC_U at most t, then (sharpening the bound (k + n) · 2 ^ O(t) of Theorem 5.1) a monotone circuit with at most (k · 2 ^ (2 t) + 1) · 2 ^ (2 t + 1) gates is true on the shared part of every model of 𝒜 and false on the shared part of every model of ℬ.