Documentation

CslibFrontier.Logics.Propositional.QBF.Assignment

Word assignments to Boolean-formula variables #

QBF.updates assigns a word of truth values along a list of variables, in order. Later occurrences override earlier occurrences. Distinct variables read back the assigned word.

def Cslib.Logic.PL.QBF.updates {V : Type u_1} [DecidableEq V] (σ : V → Bool) :
List V → List Bool → V → Bool

An assignment updated at a list of variables, in order, by a list of values.

theorem Cslib.Logic.PL.QBF.updates_of_notMem {V : Type u_1} [DecidableEq V] {σ : V → Bool} {vs : List V} {x : V} (hx : x ∉ vs) (bs : List Bool) :
updates σ vs bs x = σ x

Updating other variables does not change the value of a variable.

theorem Cslib.Logic.PL.QBF.map_updates {V : Type u_1} [DecidableEq V] {σ : V → Bool} {vs : List V} (hvs : vs.Nodup) {bs : List Bool} (hlen : bs.length = vs.length) :
List.map (updates σ vs bs) vs = bs

Updating distinct variables by as many values sets them to these values.