Documentation

CslibFrontier.Computability.Complexity.FineGrained.PPSZ.Defs

PPSZ with w-implication: definitions #

The PPSZ algorithm of Paturi, Pudlák, Saks and Zane processes the variables of a CNF formula in a uniformly random order, like PPZ (Cslib.Complexity.PPZ.round). A variable is set to a value when that value is w-implied: some subformula of at most w clauses, together with the values already chosen, forces it. Otherwise the variable is set uniformly at random. This is PPSZ with w-implication Hertli, Definition 3 Scheder, Algorithm 1; the analysis of Paturi, Pudlák, Saks, Zane uses nothing about its bounded resolution beyond this property Scheder, p. 3. Hertli calls this s-implication: his s is our w, a number of clauses. It is unrelated to the s of Paturi, Pudlák, Saks, Zane, whose s-bounded resolution only considers clauses of at most s literals.

PPZ and PPSZ are both rounds with values proposed by an oracle (Cslib.Complexity.PPZ.roundWith): PPZ asks for unit clauses, PPSZ for w-implied values (implied).

Main definitions #

References #

def Cslib.Complexity.PPSZ.WImplied {n : ℕ} (φ : Logic.PL.CNF (Fin n)) (w : ℕ) (τ : Fin n → Option Bool) (x : Fin n) (b : Bool) :

w-implication. Under the partial assignment τ, the literal x = b is implied by a subformula of φ with at most w clauses: every total assignment extending τ that satisfies the subformula sets x to b.

Instances For
    noncomputable def Cslib.Complexity.PPSZ.implied {n : ℕ} (φ : Logic.PL.CNF (Fin n)) (w : ℕ) (τ : Fin n → Option Bool) (x : Fin n) :

    The value w-implied on x under τ, if any (true is preferred if both are implied, which happens only when no extension of τ satisfies φ).

    @[instance_reducible]
    noncomputable instance Cslib.Complexity.PPSZ.instDecidableWImplied {n : ℕ} (φ : Logic.PL.CNF (Fin n)) (w : ℕ) (τ : Fin n → Option Bool) (x : Fin n) (b : Bool) :
    Decidable (WImplied φ w τ x b)

    WImplied is decidable, classically, as in implied.

    noncomputable def Cslib.Complexity.PPSZ.step {n : ℕ} (φ : Logic.PL.CNF (Fin n)) (w : ℕ) (τ : Fin n → Option Bool) (x : Fin n) :

    One step of PPSZ on x: the implied value if there is one, and a uniform bit otherwise.

    noncomputable def Cslib.Complexity.PPSZ.run {n : ℕ} (φ : Logic.PL.CNF (Fin n)) (w : ℕ) (π : Equiv.Perm (Fin n)) :
    ℕ → PMF (Fin n → Option Bool)

    The first i steps of a PPSZ round in the order π: the variable π j is processed at step j. This is the run of PPZ (Cslib.Complexity.PPZ.runWith) with w-implication in place of unit clauses.

    noncomputable def Cslib.Complexity.PPSZ.round {n : ℕ} (φ : Logic.PL.CNF (Fin n)) (w : ℕ) :
    PMF (Fin n → Option Bool)

    One round of PPSZ with w-implication: process all variables in a uniformly random order.