Functional Semantics for Non-prenex QBF
Igor St´ephan
LERIA, Universit d’Angers, 2 Boulevard Lavoisier, 49045, Angers, Cedex 01, France
Keywords:
QBF, Semantics, Non-prenex.
Abstract:
Quantified Boolean Formulae (or QBF) are suitable to represent finite two-player games. Current techniques
to solve QBF are for prenex QBF and knowledge representation is rarely in this form. We propose in this
article a functional semantics for non-prenex QBF. The proposed formalism is symmetrical for validity and
non-validity and allows to give different interpretations to the quantifiers. With our formalism, the solution of
a non-prenex QBF is consistent with the specification, directly readable by the designer of the QBF and the
locality of the knolewge is preserved.
1 INTRODUCTION
Quantified Boolean Formula (or QBF) is a generaliza-
tion of satisfiability in which propositional symbols
may be universally and existentially quantified. Many
important problems in Artificial Intelligence may be
specified in QBF. The satisfiability problem (SAT) of
propositional logic is nothing more than the validity
problem for QBF constituted of a propositional for-
mula embedded in existential quantifiers associated
with their propositional symbols. Hence, most of the
more recent decision procedures for the validity prob-
lem of QBF are based on the (propositional version
of the) search-based algorithm of Davis, Logemann
and Loveland (DLL) for SAT which is a direct conse-
quence of the semantics of the existential quantifier.
The semantics of QBF is usually presented ei-
ther in its decision form (Stockmeyer, 1977) either
in a functional form but only for prenex QBF es-
sentially thanks to Skolem functions (Kleine B¨uning
et al., 2007; Benedetti, 2005a)
1
which may be ex-
pressed by policies (Coste-Marquis et al., 2006) or
strategies (Bordeaux and Monfroy, 2002).
The QBF semantics presented in its decision form
is very suitable for theoretical problems but does not
allow to extract solutions of the QBF. QBF are also
suitable to represent finite two-player games. The va-
lidity of a QBF ensures to the existential player that
there exists a strategy to win whatever plays the uni-
versal player. But in this case the decision semantics
1
Boolean functions associated to the existentially quan-
tified propositional symbols which depend on the univer-
sally quantified propositional symbols which precede them
is no more sufficient to help the existential player.
The QBF semantics presented in its functional
form is restricted to prenex QBF
2
but this restric-
tion is a major drawback: knowledge representation
is rarely in prenex form. There exists a prenexing pro-
cess which preserves validity but this prenexing pro-
cess has many drawbacks:
It is a non-deterministic process and the chosen
prenexing strategy impacts the time complexity of
the obtained QBF (Egly et al., 2003) (even the
impact may be reduce by so-called dependency
schemes (Lonsing and Biere, 2010)).
The elimination of biconditionals leads to an ex-
ponential growth of the size of the formula (and
of its search space, see (Da Mota et al., 2009)
for a discussion about the translation of Plaisted-
Greenbaum (Plaisted and Greenbaum, 1986) for
QBF).
The loss of locality of the quantified propositional
symbols introduces an increase of the size of the
search space (anyway many systems add ab ini-
tio miniscoping associated to quantifier trees in
order to recover the lost scopes of the quanti-
fiers (Benedetti, 2005b; Giunchiglia et al., 2006)).
The choice of a total order induced by the par-
tial order defined by the quantifiers introduces
new dependencies between existentially quanti-
fied propositional symbols and universally quan-
tified propositional symbols which does not ex-
ist from the QBF designer point of view and are,
hence, interpreted in the solution with difficulty.
2
i.e. nested quantifiers are forbidden
358
Stéphan I..
Functional Semantics for Non-prenex QBF.
DOI: 10.5220/0004760303580365
In Proceedings of the 6th International Conference on Agents and Artificial Intelligence (ICAART-2014), pages 358-365
ISBN: 978-989-758-015-4
Copyright
c
2014 SCITEPRESS (Science and Technology Publications, Lda.)
Parts of a solution may have no meaning at all for
the QBF designer: for example in a two-player
game over a space containing n moves, the height
of the tree representing a winning strategy is nec-
essarily n even in the subtrees where the victory
conditions are fulfilled before the game space is
completely filled
3
.
These different drawbacks lead us to propose new
procedures for QBF with a richer expressivity. But
we face then to two issues:
the lack of a functional semantics for non prenex
QBF and
the lack of techniques to verify the results of those
new procedures.
In this article, we focus on the first issue. In or-
der to explicit our motivations, we need some pre-
liminaries (Section 2) which present some basic el-
ements about propositional logic 2), QBF syntax
2) and decision and functional semantics for QBF
(§ 2). We first present in Section 3 an example which
give a more technical presentation of our issue (§ 3.1)
then our proposition about a non-prenex QBF seman-
tics (§ 3.2).
2 PRELIMINARIES
Propositional Logic. Boolean values are denoted
t (for true) and f (for false) and the set of Boolean
values is denoted BOOL. The set of propositional
symbols is denoted P S . Symbols and stand
for Boolean constants. Symbol stands for conjunc-
tion, for disjunction, ¬ for negation, for impli-
cation, for biconditional. The set of binary oper-
ators {, , , ↔} is denoted O. The set of propo-
sitional formulae PROP is defined inductively as fol-
lows: propositional symbols or constants are elements
of PROP, if F is an element of PROP then ¬F is
also an element of PROP, if F and G are elements of
PROP and an element of O then (F G) is an el-
ement of PROP. A literal is a propositional symbol
or the negation of a propositional symbol. A cube is a
conjunction of literals. A clause is a disjunction of lit-
erals. A valuation v is a function from P S to BOOL
and the set of valuations is denoted VAL
PROP.
The semantics of the propositional formulae uses
the semantics of propositional constants and op-
erators which is defined as usual: To each con-
stant and operator (resp. , , ¬, , , ,
3
In fact, moves after victory are any and rules are not
necessarily respected otherwise victory may be invalidated
after the party is over.
) is associated its semantics as a Boolean func-
tion (resp. i
, i
: BOOL, i
¬
: BOOL BOOL,
i
, i
, i
, i
: BOOL× BOOL BOOL). The se-
mantics of the propositional formulae is defined in-
ductively for any valuation v as follows: v
() =
i
= f, v
() = i
= t, v
(x) = v(x) if x P S ,
v
((F G)) = i
(v
(F), v
(G)) if F, G PROP and
O and v
(¬F) = i
¬
(v
(F)) if F PROP. A
propositional formula F is a tautology if for every val-
uation v, v
(F) = t. A Boolean function f of arity n
(i.e. a function from BOOL
n
to BOOL) is associ-
ated to a propositional formula µ( f) on the proposi-
tional symbols {x
1
, . . . , x
n
} such that v
(µ( f)) = t if
and only if f(v(x
1
), . . . , v(x
n
)) = t for every valuation
v.
Syntax of Quantified Boolean Formulae. Symbol
stands for existential quantifier, stands for uni-
versal quantifier and q stands for any quantifier. The
set QBF of quantified Boolean formulae is defined
inductively as follows: if F is an element of PROP
then it is also an element of QBF, if F is an element
of QBF and x is a propositional symbol then (x F)
and (x F) are elements of QBF, if F is an element
of QBF then ¬F is an element of QBF, if F and G
are elements of QBF and is an element of O then
(F G) is an element of QBF. An occurrence of a
propositional symbol x is free if it does not appeared
into the scope of x or x. A QBF is closed if it con-
tains no free occurrence of propositional symbol. A
substitution is a function from the set of propositional
symbols to the set of formulae. We define a substi-
tution of x by F in G, denoted [x F](G), as the
formula obtained from G by replacing all the occur-
rences of x by F except for the occurrences of x under
the scope of a quantifier associated to x. A binder is a
character string q
1
x
1
. . . q
n
x
n
with x
1
, . . . , x
n
some sep-
arate propositionalsymbols and q
1
, . . . , q
n
some quan-
tifiers. A QBF QM is under prenex form if Q is a
binder and M is a Boolean formula. We define the
function
(.) which inverts the quantifiers and is such
that (
x) = x and (x) = x ; this function is ex-
tended classically to the binder.
Quantified Boolean Formula Semantics. The
QBF semantics [[.]] : VAL
PROP BOOL pre-
sented uses the semantics of the Boolean operators
(and constants) of propositional logic and is defined
inductively by:
FunctionalSemanticsforNon-prenexQBF
359
[[]](v) = i
[[]](v) = i
[[x]](v) = v(x) if x P S
[[(F G)]](v) = i
([[F]](v), [[G]](v))
if F, G QBF and O
[[¬F]](v) = i
¬
([[F]](v)) if F QBF
[[(x F)]](v) =
i
([[F]](v[x := t]), [[F]](v[x := f]))
if F QBF
[[(x F)]](v) =
i
([[F]](v[x := t]), [[F]](v[x := f]))
if F QBF
A closed QBF F is valid if [[F]](v) = t for every
valuation v. For example the QBF abc((a b)
c) is not valid while the QBF cab((a b) c)
is. This example shows that the order of quantifiers is
crucial to decide the validity of a QBF.
As in the propositional case, an equivalence re-
lation denoted is defined for the QBF by F G
if [[F]](v) = [[G]](v) for every valuation v. In con-
nection with the above example, xyF yxF,
xyF yxF, ¬∃xF x¬F and ¬∀xF x¬F
but abc((a b) c) 6≡ cab((a b) c).
The decision semantics of QBF is extended to a
functional semantics of prenex QBF thanks to the
notion of functional valuation: a partial function
sk of the set of propositional symbols to the set of
the Boolean functions is a functional valuation for
a prenex QBF if for every existentially quantified
propositional symbol x there exists a unique pair (x 7→
ˆx) sk such that the Boolean function ˆx has for ar-
ity the number of universally quantified propositional
symbols which precede x in the binder
4
. The set of
functional valuations is denoted VAL
FONC. The
decision semantics of QBF is extended to a func-
tional semantics [[.]] : VAL
PROP× VAL FONC
BOOL for prenex QBF:
[[F]](v, sk) = v
(F) if F PROP
[[(x F)]](v, sk) = [[F]](v[x := ˆx], sk)
if (x 7→ ˆx) sk and F QBF
[[(x F)]](v, sk) =
i
([[F]](v[x := t], sk), [[F]](v[x := f], sk))
if (x 7→ ˆx) 6∈ sk and F QBF
[[(x F)]](v, sk)
= i
([[F]](v[x := t], sk(t)),
[[F]](v[x := f], sk(f)))
if F QBF.
A functional valuation sk is a QBF model for a
prenex closed QBF F if [[F]](v, sk) = t, for any valu-
ation v. A closed prenex QBF is valid if and only if it
admits (at least) a QBF model.
We recall that the decision problem of the satis-
fiability of a Boolean formula (SAT) is NP-complete
4
A functional valuation is a set of Skolem functions.
while the decision problem of the validity of a QBF is
PSPACE-complete (Stockmeyer, 1977).
3 NON-PRENEX QBF
SEMANTICS
The introduction shows that a functional semantics
for non-prenex QBF is useful for QBF designer in or-
der to preserve the expected meaning of quantifiers
and locality of knowledge. In what follows we give a
more technical presentation of our issue on an exam-
ple 3.1), then our proposition about a non-prenex
QBF semantics (§ 3.2).
3.1 Motivations
Let ρ = (t (t ((x φ(x, t)) ¬(y ψ(y, t))))) be a
QBF with φ(x, t) and ψ(y, t) also two QBF.
If we linearize this QBF (minimizing the depen-
dencies), we obtain the following prenex QBF:
ρ ≡ ∀t((t ((x φ(x, t)) ¬(y ψ(y, t))))
(((x
φ(x
, t)) ¬(y
ψ(y
, t))) t))
≡ ∀txy
x
y((t (φ(x, t) ¬ψ(y, t)))
((φ(x
, t) ¬ψ(y
, t)) t))
The designer of the QBF who chooses to model
its problem by ¬(y ψ(y, t)) and not by (y ¬ψ(y, t))
waits for the existentially quantified propositional
symbols x and y Skolem functions with parameter
t. But the propositional symbol y is now univer-
sally quantified and is one of the parameters of the
model associated to ψ(y, t). Moreover, a new existen-
tially quantified propositional symbol y
has appeared
which has no meaning for the designer.
We have developped a QCSP search-based solver
which is validity oriented: validity check QF is
treated unchanged but non validity check QF is
replaced by the equivalent check
Q¬F . If we
look at the execution of a constraint-based validity-
oriented solver, for the check (ρ ) we obtain the
following propagations:
If t is substituted by , then necessarily
((x φ(x, )) ¬(y ψ(y, ))) and then ei-
ther (x φ(x, )) or (y ψ(y, )) .
If t is substituted by , then necessar-
ily ((x φ(x, )) ¬(y ψ(y, ))) and then
(x φ(x, )) and (y ψ(y, )) .
For a validity-oriented solver, (y ψ(y, )) is
treated as (y ¬ψ(y, )) and (x φ(x, ))
is treated as (x ¬φ(x, )) .
A model for a non-prenex QBF will have the fol-
lowing shape (if (y ψ(y, )) ):
ICAART2014-InternationalConferenceonAgentsandArtificialIntelligence
360
t
y
...
{
x
...
y
...
while a semantic certificate
5
for a validity-
oriented solver will have the shape:
: t
: y
...
{
: x
...
: y
...
In the model, the binders are positively inter-
preted, i.e. respecting the modeling, while in the cer-
tificate, the binders are either positively interpreted
( ), as for example for the QBF ρ itself and
(y ψ(y, )), or negatively ( ), as for example for
the QBF (y ψ(y, )) and (x φ(x, )) depending on
whether the QBF is valid or not.
3.2 Functional Semantics for
Non-prenex QBF
To be able to define models for non-prenex QBF, we
need a new definition of QBF allowing easier access
to nested binders.
Definition 1 (QBF). Let D be a set of definition
symbols such that D P S =
/
0. A quantified Boolean
formula (or QBF) is a set of triplets
def := QΣ
(def D, Q a binder, Σ a propositional formula de-
fined on D P S and QΣ a fragment) associated to a
partial order over the definition symbols with a least
element, the definition symbol root, such that
every definition symbol appears only once in the
left-hand side;
the definition symbol root only appears once in the
right-hand side;
any other definition symbol than the root appears
only once in the right-hand side;
every definition symbol in the left-hand side is
smaller than the definition symbol which appears
in the right-hand side;
any binder except the one associated with the root,
is empty.
The function () is such that, for every triplet
def := QΣ of a QBF, def
= QΣ.
5
A certificate is any piece of information that provides
self-supporting evidence of the correctness of an execution.
The four first items define a tree structure while
the last item allows to express easily the semantics.
If someone substitutes the definition symbols (ex-
cept the root) of a QBF in their right-hand sides of
the definitions, a “classical” QBF (i.e. in the meaning
of the preliminary section) is obtained. In what fol-
lows, we makes no distinction between the QBF, its
root and its “classical” definition.
Example 1. We define a QBF with root ψ :
ψ := xyz(¬ψ
0
ω)
ψ
0
:= tw(ψ
0.0
ψ
0.1
)
ψ
0.0
:= uξ
ψ
0.1
:= sγ
with ω = (x y z), ξ = ((u y) ¬t) and γ = ((s
w) t). This QBF is none other, by substitution, than
the “classical” non-prenex QBF:
ψ = xyz(¬∀tw(uξ sγ) ω)
whose representation as a tree is:
xyz
¬
tw
u
ξ
s
γ
ω
To define the semantics of our definition of QBF,
we associate first to the propositional symbols of the
binder Boolean functions; such a function is either
positive if the binder is considered unchanged or neg-
ative if the binder is considered in its reversed polar-
ity: universal quantifiers are existantially interpreted
and reciprocally.
Definition 2 (Local Valuation). A positive local valu-
ation (resp. negative local valuation) of a QBF, whose
root definition has a binder Q, is a partial function
vl from the set of propositional symbols to the set
of Boolean functions such that for every existentially
(resp. universally) quantified propositional symbol x
of the binder Q, there exists a unique pair (x 7→ ˆx) vl
such that the Boolean function ˆx has for arity the
number of universally (resp. existentially) quantified
propositional symbols which precede x in the binder
Q. The set of local valuations is denoted VAL
LOC.
Example 2 (example 1 continued)
The partial function vl
u
= {(u 7→ (7→ t))} is a pos-
itive local valuation for the QBF of root ψ
0.0
,
FunctionalSemanticsforNon-prenexQBF
361
the partial function vl
s
= {(s 7→ (7→ f))} is a neg-
ative local valuation for the QBF of root ψ
0.1
,
the partial function
/
0 is a positive local valuation
for the QBF of root ψ
0.1
,
the partial function vl
w
= {(w 7→ {(t 7→ t), (f 7→
t)})} is a positive local valuation for the QBF of
root ψ
0
,
the partial function vl
y
= {(y 7→ {(t 7→ f), (f 7→
f)})} is a negative local valuation for the QBF
of root ψ,
finally, the partial function {(x 7→ (7→ f)), (z 7→
{(t 7→ f), (f 7→ t)})} is a positive local valuation
for the QBF of root ψ.
A definition symbol def of a triplet def := QΣ, if
it is interpreted positively, has for semantics a defini-
tion valuation which may contain
not only a positive local valuation (i.e. a function
on the combinations over the values for the uni-
versally quantified propositional symbols of the
binder Q) to give a semantics to the existentially
quantified propositional symbols of the binder Q,
but also a semantics to every definition symbol of
the right-hand side thanks to a function which as-
sociates to every combination over the values for
the universally quantified propositional symbols a
definition valuation.
Definition 3 (Definition Valuation and Definition
Boolean Function). A definition valuation of a QBF
is a partial function vd from the set of definition sym-
bols to the set of (p, vl, fbd) constiting of a polar-
ity p {+, }, a local valuation vl and a definition
Boolean function fbd under the following contraint:
for every (d 7→ (p, vl, fbd)) vd if the polarity p is +
then the local valuation vl and the definition Boolean
function fbd are positive for the QBF with root defi-
nition symbol d otherwise the polarity is and the
local valuation and the definition Boolean function
are negative. A definition association is a quadruplet
(d 7→ (p, vl, fbd)). The set of QBF valuations is de-
noted VAL
DEF.
A positive definition Boolean function (resp. neg-
ative) of a QBF, whose root definition has a binder
Q, is a partial Boolean function fbd from the set of
definition valuations such that f bd has for arity the
number of universally (resp. existentially) quantified
propositional symbols of the binder Q. The set of def-
inition Boolean functions is denoted FBD.
Example 3 (example 2 continued)
The quadruplet ad
0.0
= (ψ
0.0
7→ (+, vl
u
,
/
0)) is a
definition association for the QBF of root ψ
0.0
(vl
u
is a positive local valuation);
the quadruplet ad
n
0.1
= (ψ
0.1
7→ (, vl
s
,
/
0)) is a
definition association for the QBF of root ψ
0.1
(vl
s
is negative local valuation);
the quadruplet ad
p
0.0
= (ψ
0.1
7→ (+,
/
0,
/
0)) is a def-
inition association for the QBF of root ψ
0.1
.
Thus, the function vd
0
= {ad
0.0
, ad
n
0.1
} is a definition
valuation.
The partial function
fbd
ψ
0
= {(t 7→ vd
0
), (f 7→ {ad
0.0
})}
is a positive definition Boolean function for the
QBF of root ψ
0
and the quadruplet ad
0
= (ψ
0
7→
(+, vl
w
, fbd
ψ
0
)) is its definition association.
Finally, the partial function
fbd
ψ
= {((t, t) 7→
/
0), ((t, f) 7→ {ad
0
}),
((f, t) 7→ {ad
0
}), ((f, f) 7→
/
0)}
is a negative definition Boolean function for the QBF
of root ψ and the quadruplet (ψ 7→ (+,
/
0, fbd
ψ
)) is its
definition association.
Definition 4 (QBF Valuation). A QBF valuation is
a pair consisting of a propositional valuation and a
definition valuation. The set of QBF valuations is de-
noted VAL
QBF.
Definition 5. The semantics of a QBF F is definied
by a function
[[.]] : VAL
QBF BOOL
associated with two auxiliary functions
[[.]]
+
, [[.]]
:
VAL
PROP× VAL LOC× FBD BOOL
all inductively defined as follows.
for the propositional symbols:
(P S ) [[x]](v, vd) = v(x) if x P S ;
for the propositional logical connectors:
() [[]](v, vd) = f ;
() [[]](v, vd) = t ;
() [[(G H)]](v, vd) = i
([[G]](v, vd), [[H]](v, vd))
if G, H are extended propositional formulas and
{∧, , , , ⊕} ;
(¬) [[¬G]](v, vd) = i
¬
([[G]](v, vd))
if G is an extended propositional formula.
for the definition symbols:
(D
p
) [[d]](v, vd) = [[d
]]
+
(v, vl, fbd) if d D, and
vd(d) = (+, vl, fbd) ;
(D
n
) [[d]](v, vd) = i
¬
([[d
]]
(v, vl, fbd)) if d D, and
vd(d) = (, vl, fbd) ;
ICAART2014-InternationalConferenceonAgentsandArtificialIntelligence
362
for the quantifiers:
(
1
) [[(x G)]]
+
(v, vl, fbd) =
[[G]]
+
(v[x := ˆx], vl, f bd)
if G is an extended propositional formula, x P S
and (x 7→ (7→ ˆx)) vl ;
(
2
) [[(x G)]]
+
(v, vl, fbd) =
i
([[G]]
+
(v[x := t], vl, fbd),
[[G]]
+
(v[x := f], vl, fbd))
if G is an extended propositional formula, x P S
and there is no pair (x 7→ ˆx) vl (ˆx a Boolean func-
tion) ;
(
3
) [[(x G)]]
(v, vl, fbd) =
i
([[G]]
(v[x := t], vl(t), fbd(t)),
[[G]]
(v[x := f], vl(f), fbd(f)))
if G is an extended propositional formula and x
P S .
(
1
) [[(x G)]]
(v, vl, fbd) =
[[G]]
(v[x := ˆx], vl, f bd)
if G is an extended propositional formula, x P S
and (x 7→ (7→ ˆx)) vl ;
(
2
) [[(x G)]]
(v, vl, fbd) =
i
([[G]]
(v[x := t], vl, fbd),
[[G]]
(v[x := f], vl, fbd))
if G is an extended propositional formula, x P S
and there is no pair (x 7→ ˆx) vl (ˆx Boolean func-
tion).
(
3
) [[(x G)]]
+
(v, vl, fbd) =
i
([[G]]
+
(v[x := t], vl(t), fbd(t)),
[[G]]
+
(v[x := f], vl(f), fbd(f)))
if G is an extended propositional formula and x
P S .
(P
p
) [[G]]
+
(v, vl, {(7→ vd)}) = [[G]](v, vd)
if G is an extended propositional formula.
(P
n
) [[G]]
(v, vl, {(7→ vd)}) = i
¬
([[G]](v, vd))
if G is an extended propositional formula.
If we restrict Definition 5 to the rules (), (),
(), (¬) and (P S ) (neglecting the arguments for the
local valuation and the definition Boolean function
and replacing [[.]]
+
by [[.]]), the propositional seman-
tics is obtained. If we add the rules (
2
) and (
3
)
the semantics of decision procedure for non-prenex
QBF is then obtained. The rule (D
p
) interprets the
definition symbol and begins the interpretation of the
binder, of the fragment associated to the symbol, pos-
itively; the rule (P
p
) ends the interpretation of the
binder and evaluates the extended propositional for-
mula of the fragment. The rule (D
n
) interprets the
definition symbol and begins the interpretation of the
binder, of the fragment associated to the symbol, neg-
atively ; the rule (P
n
) ends the interpretation of the
binder and evaluates the extended propositional for-
mula of the fragment ; both combinated for a fragment
QΣ the rules apply the equivalence QΣ ¬
Q¬Σ.
Example 4 (example 3 continued). We show in this
example how the semantics is applied on the fragment
xyz(¬ψ
0
ω) which is negatively interpreted
xyz(¬ψ
0
ω) ¬∀xyz¬(¬ψ
0
ω) (1)
by:
1. the application of the rule (D
n
) which introduces
the first negation, the one before the binder;
2. the elimination of the quantifiers with a reversed
interpretation according to the rules (
3
) and
(
2
),
3. the application of the rule (P
n
) which introduces
the seconde negation, the one after the binder.
Let us compute [[ψ]](
/
0, vd) with vd = {(ψ 7→
(,
/
0, fbd
ψ
))}. Let σ = (¬ψ
0
ω).
[[ψ]](
/
0, {(ψ 7→ (,
/
0, fbd
ψ
))})
D
n
= i
¬
([[ψ
]]
(
/
0,
/
0, fbd
ψ
))
= i
¬
([[xyzσ]]
(
/
0,
/
0, fbd
ψ
))
3
= i
¬
(i
( [[yzσ]]
([x := t],
/
0, fbd
ψ
(t)),
[[yzσ]]
([x := f],
/
0, fbd
ψ
(f))))
The existential quantifier is negatively interpreted.
Let us denote v
x
= [x := t] and let us compute in
details:
[[yzσ]]
(v
z
,
/
0, fbd
ψ
(t))
2
= i
( [[zσ]]
(v
x
[y := t],
/
0, fbd
ψ
(t)),
[[zσ]]
(v
x
[y := f],
/
0, fbd
ψ
(t)))
The universal quantifier is negatively interpreted
and in its definitional version of its semantics (since
the local valuation is empty).
Let us denote v
y
= v
x
[y := t] and let us compute in
details:
[[zσ]]
(v
y
,
/
0, fbd
ψ
(t))
3
= i
( [[σ]]
(v
y
[z := t],
/
0, fbd
ψ
(t, t)),
[[σ]]
(v
y
[z := f],
/
0, fbd
ψ
(t, f)))
Let us denote v
z
= v
y
[z := f], fbd = f bd
ψ
(t, f) and
let us compute in details:
[[σ]]
(v
y
[z := f],
/
0, fbd)
P
n
= i
¬
([[σ]](v
z
, fbd))
= i
¬
(i
([[¬ψ
0
]](v
z
, fbd), [[ω]](v
z
, fbd)))
¬
= i
¬
(i
(i
¬
([[ψ
0
]](v
z
, fbd)), [[ω]](v
z
, fbd)))
By the rule (P
n
), the negative interpretation of
the end of the binder introduces the seconde negation
of (1).
FunctionalSemanticsforNon-prenexQBF
363
Since the formula ω is propositional formula, let
us denote b
ω
= [[ω]](v
z
, fbd) = (v
z
)
(ω).
[[σ]]
(v
y
[z := f],
/
0, fbd)
= i
¬
(i
(i
¬
([[ψ
0
]](v
z
, fbd)), b
ω
))
If we add the rules (
1
) to the rules (), (), (),
(¬), (P S ), (
2
) and (
3
) (ignoring the argument for
the definition Boolean function) then the functional
semantics of prenex QBF is obtained.
Example 5 (example 4 continued). This example
shows the positive interpretation of a binder accord-
ing to rules (D
p
), (
3
), (
1
) and (P
p
) and the inter-
pretation of the existential quantifier in its functional
semantics and not decision one.
We recall that ψ
0
:= tw(ψ
0.0
ψ
0.1
), vl
w
=
{(w 7→ {(t7→ t), (f 7→ t)})}, fbd
ψ
0
= {(t7→ vd
0
), (f 7→
{ad
0.0
})} and vd
0
= {(ψ
0.0
7→ (+, vl
u
,
/
0)), (ψ
0.1
7→
(, vl
s
,
/
0))}.
Let us denote σ
0
= (ψ
0.0
ψ
0.1
) and let us com-
pute in details:
[[ψ
0
]](v
z
, (ψ
0
7→ (+, vl
w
, fbd
ψ
0
)))
(D
p
)
= [[ψ
0
]]
+
(v
z
, vl
w
, fbd
ψ
0
)
= [[twσ
0
]]
+
(v
z
, vl
w
, fbd
ψ
0
)
(
3
)
= i
([[wσ
0
]]
+
(v
z
[t := t], vl
w
(t), fbd
ψ
0
(t)),
[[wσ
0
]]
+
(v
z
[t := f], vl
w
(f), fbd
ψ
0
(f)))
We have vl
w
(t) = {(w 7→ (7→ t))} and let us denote
v
t
= v
z
[t := t]. Let us compute in details:
[[wσ
0
]]
+
(v
t
, vl
w
(t), fbd
ψ
0
(t))
= [[wσ
0
]]
+
(v
t
, {(w 7→ (7→ t))}, fbd
ψ
0
(t))
(
1
)
= [[σ
0
]]
+
(v
t
[w := t], vl
w
(t), fbd
ψ
0
(t))
The existential quantifier is not interpreted with its
decision semantics but the value of the propositional
symbol is obtained from the local valuation.
We have fbd
ψ
0
(t) = {(7→ vd
0
)} and let us denote
v
w
= v
t
[w := t].
[[(ψ
0.0
ψ
0.1
)]]
+
(v
w
, vl
w
(t), {(7→ vd
0
)})
()
= i
( [[ψ
0.0
]]
+
(v
w
, vl
w
(t), {(7→ vd
0
)}),
[[ψ
0.1
]]
+
(v
w
, vl
w
(t), {(7→ vd
0
)}))
(P
p
)
= i
([[ψ
0.0
]](v
w
, vd
0
), [[ψ
0.1
]](v
w
, vd
0
))
The propositional formula of a fragment may
contain many definition symbols and the associated
binders are not necessarily interpreted in the same
manner.
Example 6 (example 5 continued). This example
shows the access to two definition associations and
the application of the rules (D
p
) and (D
n
) to inter-
pret the definition symbol and its associated binder.
We recall that
vd
0
= {(ψ
0.0
7→ (+, vl
u
,
/
0)), (ψ
0.1
7→ (, vl
s
,
/
0))}
Hence vd
0
(ψ
0.0
) = (+, vl
u
,
/
0) and vd
0
(ψ
0.1
) =
(, vl
s
,
/
0). Thus
i
([[ψ
0.0
]](v
w
, vd
0
), [[ψ
0.1
]](v
w
, vd
0
))
(D
p
)&(D
n
)
= i
([[ψ
0.0
]]
+
(v
w
, vl
u
,
/
0),
[[ψ
0.1
]]
(v
w
, vl
s
,
/
0))
We give without proof (but the arguments are clear
from above) soundness and completeness theorems
w.r.t. the decision semantics of the “classical” QBF.
Theorem 1 (Soundness). Let σ be a QBF, v a propo-
sitional valuation and vd definition valuation. If
[[σ]](v, vd) = t then v
(σ) = t.
Theorem 2 (Completeness). Let σ be a QBF and
v a propositional valuation. If v
(σ) = t then there
exists (at least) a definition valuation vd such that
[[σ]](v, vd) = t.
4 CONCLUSIONS
We have proposed in this article a functional seman-
tics for non-prenex quantified Boolean formulas. The
proposed formalism is symmetrical w.r.t. the validity
or the non-validity and allows to associate different
interpretations to quantifiers. In particular, it allows
to follow the choice of the designer of the QBF w.r.t.
the quantifiers. In case of QBF solvers based on a
quantified search algorithm, the extraction of the so-
lution is easy since our functional semantics follows
the inductive structure of the non-prenex QBF. Since
the prenexing process is not applied, dependencies
between propositional symbols are kept and the com-
puted QBF valuation may be directly interpreted by
the designer as a solution of its problem. Moreover,
a QBF valuation representing a winning strategy for
a finite two-player game develops no definition valua-
tion for the propositional symbols beyond the fulfilled
victory conditions.
Our formalism is also enough flexible to allow to
define the notion of certificate for search procedure
for non-prenex QBF. The way the certificate certifies
the soundness of the result is not developped due to
lack of space but is independent of the specifications
of the solver.
This work is implemented in Prolog
6
and is being
implemented for a quantified search algorithm based
6
This work is accessible at the URL: http://www.info.
univ-angers.fr/pub/stephan/Research/Download.html
ICAART2014-InternationalConferenceonAgentsandArtificialIntelligence
364
on the Gecode system
7
and will be available soon. In
our implementation with the Gecode system, if the in-
put format of QBF is “classical”, the internal structure
follows our definition of QBF.
REFERENCES
Benedetti, M. (2005a). Extracting Certificates from Quan-
tified Boolean Formulas. In Proceedings of 9th In-
ternational Joint Conference on Artificial Intelligence
(IJCAI’05), pages 47–53.
Benedetti, M. (2005b). Quantifier trees for QBFs. In Poster
of the 8th International Conference on Theory and Ap-
plications of Satisfiability Testing (SAT’05).
Bordeaux, L. and Monfroy, E. (2002). Beyond NP: Arc-
Consistency for Quantified Constraints. In Proceed-
ings of the 8th International Conference on Principles
and Practice of Constraint Programming (CP’02),
pages 371–386.
Coste-Marquis, S., Fargier, H., Lang, J., Le Berre, D., and
Marquis, P. (2006). Representing Policies for Quan-
tified Boolean Formulae. In Proceedings of the 10th
International Conference on Principles of Knowledge
Representation and Reasoning (KR’06), pages 286–
296.
Da Mota, B., St´ephan, I., and Nicolas, P. (2009). Une nou-
velle strat´egie de mise sous forme pr´enexe pour des
formules bool´eennes quantifi´ees avec bi-implications.
Revue internationale I3 (Information - Interaction -
Intelligence), 9:9–29.
Egly, U., Seidl, M., Tompits, H., Woltran, S., and Zolda, M.
(2003). Comparing Different Prenexing Strategies for
Quantified Boolean Formulas. In Proceedings of the
6th International Conference on Theory and Appli-
cations of Satisfiability Testing (SAT’03), pages 214–
228.
Giunchiglia, E., Narizzano, M., and Tacchella, A. (2006).
Quantifier structure in search based procedures for
QBFs. In Proceedings of the conference on Design,
Automation and Test in Europe (DATE’06), pages
812–817.
Kleine B¨uning, H., Subramani, K., and Zhao, X.
(2007). Boolean Functions as Models for Quantified
Boolean Formulas. Journal of Automated Reasoning,
39(1):49–75.
Lonsing, F. and Biere, A. (2010). Integrating Dependency
Schemes in Search-Based QBF Solvers. In Proceed-
ings of the 13th International Conference on Theory
and Applications of Satisfiability Testing (SAT’10),
pages 158–171.
Plaisted, D. and Greenbaum, S. (1986). A Structure-
Preserving Clause Form Translation. Journal of Sym-
bolic Computation, 2(3):293–304.
Stockmeyer, L. (1977). The polynomial-time hierarchy.
Theoretical Computer Science, 3:1–22.
7
The solver is in fact a QCSP solver with a constraint
approach for QBF solving.
FunctionalSemanticsforNon-prenexQBF
365