<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Domenico Cantone[</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Polynomial-Time Satis ability Tests for Boolean Fragments of Set Theory?</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Dept. of Mathematics and Computer Science, University of Catania</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Dept. of Mathematics and Geosciences, University of Trieste</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Scuola Superiore di Catania, University of Catania</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>0000</year>
      </pub-date>
      <volume>0002</volume>
      <abstract>
        <p>We recently undertook an investigation aimed at identifying small fragments of set theory (which in most cases are sublanguages of Multi-Level Syllogistic) endowed with polynomial-time satis ability decision tests, potentially useful for automated proof veri cation. Leaving out of consideration the membership relator 2 for the time being, in this note we provide a complete taxonomy of the polynomial and the NP-complete fragments involving, besides variables intended to range over the von Neumann set-universe, the Boolean operators [; \; n, the Boolean relators ; 6 ; =; 6=, and the predicates ` = ?' and `Disj( ; )', meaning `the argument set is empty' and `the arguments are disjoint sets', along with their opposites ` 6= ?' and `:Disj( ; )'.</p>
      </abstract>
      <kwd-group>
        <kwd>Satis ability problem</kwd>
        <kwd>Computable set theory</kwd>
        <kwd>Boolean set theory</kwd>
        <kwd>Proof veri cation</kwd>
        <kwd>NP-completeness</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>The decision problem for fragments of set theory, namely the problem of
establishing algorithmically for any formula ' in a given fragment whether or not ' is
valid in the von Neumann universe of sets, has been thoroughly investigated over
the last four decades within the eld of Computable Set Theory. Research has
mainly focused on the equivalent satis ability problem, namely the problem of
establishing in an e ective manner, for any formula in a given fragment, whether
an assignment of sets to its free variables exists that makes the formula true.</p>
      <p>The initial goal (back in 1979) envisaged an automated proof veri er based
on set theory, within which it would become possible to carry out an extensive
formalization of classical mathematics. The inferential kernel of such a proof
assistant should have embodied decision procedures intended to capture the
`obvious' (deduction steps). Very soon, and long before the proof veri er came into
? We gratefully acknowledge support from \Universita degli Studi di Catania, Piano
della Ricerca 2016/2018 Linea di intervento 2" and from the INdAM-GNCS 2019
research project \Logic Programming for early detection of pancreatic cancer".
existence, the initial goal sparked a foundational quest aimed at drawing the
precise frontier between the decidable and the undecidable in set theory (and
also in other important mathematical theories). This inspired much of the
subsequent work. Several extensions of the progenitor fragments MLS and MLSS of
set theory were proved to have a solvable satis ability problem, which led to a
substantial body of results, partly comprised in the monographs [3,5,16,15,8].</p>
      <p>
        We recall that MLS (an acronym for Multi-Level Syllogistic, see [10]) copes
with propositional combinations of literals of the form
x = y [ z;
x = y \ z;
x = y n z;
x 2 y;
(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )
to these constructs, MLSS adds the singleton operator f g .4 Unfortunately, as
shown in [4], the satis ability problem for either MLS or MLSS is NP-complete,
even if restricted to conjunctions of at literals of type (
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) plus negative literals
of type x 2= y. All extensions of MLS will hence have, in their turn, an NP-hard
satis ability problem (in fact, even hyperexponential in some cases; see [1,6,7]).
Notwithstanding, the decision algorithm for an enriched variant of MLSS,
implemented along the guidelines of [9], has come to play a key role among the
inference mechanisms available in the proof-checker tnaNova, aka Ref [16]. In
view of the pervasiveness of that mechanism in actual uses of tnaNova (as
discussed, e.g., in [14, Sect. 3] and in [15, Sect. 5:3:1]), it will pay o to
circumvent whenever possible the poor performances occasionally originating from the
full-strength decision algorithm.
      </p>
      <p>This is why we recently undertook an investigation aimed at identifying useful
`small' fragments of set theory (which in most cases are subfragments of MLS)
endowed with polynomial-time decision tests.</p>
      <p>In this note we report on results focused, for the time being, on fragments that
exclude the membership relator 2.5 We provide a complete taxonomy of the
polynomial and the NP-complete fragments involving, besides set variables intended
to range over the von Neumann universe of all sets (see below), the Boolean
operators [; \; n and relators ; 6 ; =; 6=, and the predicates (both a rmed and
negated) ` = ?' and `Disj( ; )', expressing respectively that a speci ed set is
empty and that two speci ed sets are disjoint.</p>
      <p>The paper is organized as follows: Sect. 1 introduces the syntax and
semantics of a language in which several hundreds of decidable fragments will be
framed in this note; a subsection of it de nes `expressibility', a notion which
4 Note that, thanks to the following equivalences, 6= and 2= are available in MLS and
2 is eliminable from MLSS:
x 6= y $ 9 w ( x 2 w ^ y 2= w ) ;
y 2= w $ 9 v ( y 2 v ^ w \ v = v n v ) ;
x 2 w $ fxg \ w = fxg :</p>
      <p>Also note that by adding Cartesian square literals x = y y and cardinality literals
jxj = jyj, jxj 6= jyj to MLS, one makes the satis ability problem undecidable [2].
5 Some preliminary results involving the membership relator 2 will also be reviewed
in Appendix B.
eases the systematic assessment of the complexities of the satis ability decision
tests. A complexity-based classi cation of the fragments under consideration is
highlighted in Sect. 2. The paper terminates with a conclusion and some hints
for future research, and with two appendices containing, respectively, the proofs
of three lemmas on expressibility matters, and a brief overview of the complexity
taxonomy for a small fragment involving the membership relator.
1</p>
    </sec>
    <sec id="sec-2">
      <title>Boolean set theory</title>
      <p>This section introduces an interpreted language regarding sets, whose acronym
BST stands for `Boolean set theory'. The constructs of BST are borrowed from
the algebraic theory of Boolean rings (see [12]), but its variables are meant to
range over a universe of nested (as opposed to ` at') sets. We dub BST a `theory'
simply to emphasize that it has a decidable satis ability problem. Below we will
browse a wide range of subproblems of the satis ability problem referring to the
whole of BST, and will assess the algorithmic complexity of those subproblems.</p>
      <p>We postpone to future reports the treatment of 2, the membership relation.
Adding 2 to BST does not disrupt its decidability and truly calls for nested sets.
1.1</p>
      <sec id="sec-2-1">
        <title>Syntax</title>
        <p>The fragments of set theory investigated within the project we are reporting
about are parts, syntactically delimited, of a speci c quanti er-free language</p>
        <p>BST := BST([; \; n; =?; 6=?; Disj; :Disj; ; 6 ; =; 6=):
This is the collection of all conjunctions of literals of the types
s = ?;
s
t;
s 6= ?;
s 6 t;</p>
        <p>Disj(s; t);
s = t;
:Disj(s; t);
s 6= t;
where s and t stand for terms assembled from a denumerably in nite supply of set
variables x; y; z; : : : by means of the Boolean set operators: union [, intersection
\, and set di erence n.</p>
        <p>More generally, we shall denote by BST(op1; : : : ; pred1; : : :) the subtheory of
BST involving only the set operators op1; : : : (drawn from the set f[; \; ng) and
the predicate symbols pred1; : : : (drawn from f=?; 6=?; Disj; :Disj; ; 6 ; =; 6=g).
1.2</p>
      </sec>
      <sec id="sec-2-2">
        <title>Semantics</title>
        <p>For any BST-conjunction ', we shall denote by Vars(') the collection of set
variables occurring in '; Vars( ) is de ned likewise, for any BST-term .</p>
        <p>A set assignment M is any function sending a collection of set variables V
(called the domain of M and denoted dom(M )) into the von Neumann universe
V of well-founded sets. We recall that the von Neumann universe (see [13, pp.95{
102]), aka von Neumann cumulative hierarchy, is built up in stages as the union
V := [ 2On V of the levels V := [ &lt; P(V ), with ranging over the class
On of all ordinal numbers, where P( ) is the powerset operator.</p>
        <p>Natural designation rules attach recursively a value to every term of BST
such that Vars( ) dom(M ), for any set assignment M ; here is how:
M (s [ t) := M s [ M t;</p>
        <p>M (s \ t) := M s \ M t;
and</p>
        <p>M (s n t) := M s n M t:</p>
        <sec id="sec-2-2-1">
          <title>We also put</title>
          <p>M (s = ?) :=
(true if M s = ;
false otherwise,</p>
          <p>M (Disj(s; t)) :=
(true if M s \ M t = ;
false otherwise,
M (s 6= ?) := :M (s = ?)</p>
          <p>M (:Disj(s; t)) := :M (Disj(s; t))
for all literals s = ?, s 6= ?, Disj(s; t), and :Disj(s; t) of BST (and similarly for
the literals of BST of the remaining types s t, s 6 t, s = t, and s 6= t), and
then, recursively,</p>
          <p>M (' ^</p>
          <p>) := M ' ^ M
when '; are BST-conjunctions, Vars(') dom(M ), and Vars( ) dom(M ).</p>
          <p>Given a conjunction ' and a set assignment M such that Vars(') dom(M ),
we say that M satis es ', and write M j= ', if M ' = true. When M satis es
', we also say that M is a model of '.</p>
          <p>A conjunction ' is said to be satis able if it has some model, else unsatis able.</p>
          <p>BST is a sublanguage of MLS, which has an NP-complete satis ability
problem [4]; since, in their turn, the fragments of set theory which we shall examine
are included in BST, their satis ability problems belong to NP.
1.3</p>
        </sec>
      </sec>
      <sec id="sec-2-3">
        <title>Expressibility</title>
        <p>The technique of reduction has been our main tool in the construction of the
complexity taxonomy of BST-fragments, which will be presented at length in
Sect. 2.</p>
        <p>In our case, reductions have been mostly based on the standard notion of
`context-free' expressibility:</p>
      </sec>
      <sec id="sec-2-4">
        <title>De nition 1 (Expressibility). A formula</title>
        <p>T of BST, if there exists a T -conjunction
(x) is expressible in a fragment
(x; y) such that</p>
        <p>We also devised a more general notion of `context-sensitive' expressibility,
also characterized by its complexity. We named it O(f )-expressibility, where
f : N ! N is any mapping intended to bound the complexity of the underlying
rewriting procedure.</p>
        <p>
          De nition 2 (O(f )-expressibility). Let T be a fragment of BST and f : N !
N a given mapping. A formula (x) is O(f )-expressible in T if there exists a
mapping
from T into T such that the following conditions are satis ed:
(a) the mapping (
          <xref ref-type="bibr" rid="ref2">2</xref>
          ) can be computed in O(f )-time,
(b) if '(y) ^ (9z) '(x; y; z) is satis able, so is '(y) ^
(c) j= '(y) ^ (x) ! (9z) '(x; y; z).
(x),
        </p>
        <p>
          It turns out that standard expressibility is a special case of O(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )-expressibility.
This is stated in the following lemma, whose simple proof is provided in
Appendix A.
        </p>
        <p>
          Lemma 1. If a formula
also O(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )-expressible in T .
        </p>
        <p>(x) is expressible in a fragment T of BST, then it is</p>
        <p>Various expressibility and inexpressibility results are collected in the following
lemma proved in Appendix A.</p>
        <p>Lemma 2. (a) x = y n z is expressible in BST([; Disj; =);
(b) x = y \ z and x = y [ z are expressible in BST(n; =);
(c) x = y is expressible in BST( );
(d) x y is expressible both in BST([; =) and in BST(\; =);
(e) x * y is expressible both in BST([; 6=) and in BST(\; 6=);
(f ) x 6= ? is expressible in BST( ; 6=), and therefore in BST([; =; 6=); moreover,
x 6= ? is expressible in BST(*), in BST(6=; Disj), in BST(=?; 6=), and in
BST(:Disj);
(g) x = ? is expressible in BST(Disj);
(h) Disj(x; y) is expressible both in BST(\; =?) and in BST(n; =), and
:Disj(x; y) is expressible both in BST(\; 6=?) and in BST( ; 6=?);
(i) :Disj(x; y) (i.e., x \ y 6= ?) is expressible in BST( ; 6=), and therefore
expressible in BST([; =; 6=);
(j) x = ? is not expressible in BST([; \; =; 6=);
(k) x = y n z is not expressible in BST([; \; =; 6=).</p>
        <p>The following lemma, whose proof can be found in Appendix A, allows us to
infer that the literal x = ? is O(n)-expressible in BST([; =; 6=).
Lemma 3. The mapping '(y) 7! '(y; x) from BST([; =; 6=) into itself, where
x is any set variable (possibly in ') and
'(y; x) :=</p>
        <p>^
z2Vars(')
z [ x = z;
enjoys the properties
- if '(y) ^ '(y; x) is satis able, so is '(y) ^ x = ?, and
- j= '(y) ^ x = ? ! '(y; x).</p>
        <p>Hence, the literal x = ? is O(n)-expressible by
'(y; x) in BST([; =; 6=).
? ?
*
?
?</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Complexity taxonomy of the fragments of BST</title>
      <p>Of a fragment of BST, we say that it is NP-complete if it has an NP-complete
satis ability problem (see [11]). Likewise, we say that it is polynomial if its
satis ability problem has polynomial complexity.</p>
      <p>The number of distinct fragments of BST is equal to 23 (28 1) = 2040, of
which 1278 are NP-complete and the remaining 762 are polynomial. The
complexity of any fragment of BST can be e ciently identi ed once the minimal
NP-complete fragments (namely the NP-complete fragments of BST that do not
strictly contain any NP-complete fragment of BST) and the maximal polynomial
fragments (namely the polynomial fragments of BST that are not strictly
contained in any polynomial fragment of BST) have been singled out. Indeed, any
BST-fragment either is contained in some maximal polynomial BST-fragment or
contains some minimal NP-complete fragment.
rst block: the NP-completeness of the fragments BST(n; *), BST(n; :Disj),
and BST(n; 6=?) in the rst block of Table 1 can be obtained by much the
same technique used to reduce 3SAT to BST(n; 6=);
second block: the NP-completeness of the fragment BST([; \; *) can be
achieved by much the same technique used to reduce 3SAT to BST([; \; 6=);
third block: the NP-completeness of the fragments BST([; \; Disj; :Disj),
BST([; \; =?; :Disj), and BST([; \; 6=?; Disj) can be obtained by much the
same technique used to reduce 3SAT to BST([; \; =?; 6=?); and
fourth block: the NP-completeness of the fragment BST([; =; 6=?; Disj) can be
shown by much the same reduction technique used for BST([; =; Disj; :Disj).
Finally, by resorting to some of the expressibility results listed in Lemma 2, it
can readily be proved that:
- BST([; =; Disj; :Disj) can be reduced in linear time</p>
      <p>to BST([; ; Disj; :Disj), by Lemma 2(c),
- BST([; =; 6=?; Disj) can be reduced in linear time
to BST([; =; 6=; Disj), by Lemma 2(f),
to BST([; =; *; Disj), by Lemma 2(f),
to BST([; ; 6=?; Disj), by Lemma 2(c),
to BST([; ; 6=; Disj), by Lemma 2(c)(f),
to BST([; ; *; Disj), by Lemma 2(c)(f).
2.2</p>
      <sec id="sec-3-1">
        <title>Maximal polynomial fragments of BST</title>
        <p>Two of the maximal polynomial fragments of BST, namely</p>
        <p>BST([; \; n; =?; Disj; ; =)
and</p>
        <p>
          BST([; \; =; 6=?; :Disj; )
are trivial as they contain only satis able conjunctions, thereby admitting a O(
          <xref ref-type="bibr" rid="ref1">1</xref>
          )
satis ability test.
        </p>
        <p>Notice that the rst fragment comprises all the positive relators and the
complete suite of Boolean operators. It is immediate to check that each of its
Since</p>
        <sec id="sec-3-1-1">
          <title>In addition, since</title>
          <p>conjunctions ' is satis ed by the null set assignment M; over Vars('), where
M x = ; for each x 2 Vars(').</p>
          <p>;</p>
          <p>Concerning the second fragment, it can easily be veri ed that each of its
conjunctions is satis ed by any constant nonnull set assignment Ma over
Vars( ), where a is a nonempty set and Max = a for every x 2 Vars( ).</p>
          <p>Next, we provided O(n3) satis ability
BST([; Disj; :Disj; 6=) and BST([; =; 6=), and a
for the fragment BST(\; =?; =; 6=).
tests for the fragments</p>
          <p>O(n4) satis ability test
- j= x * y
- j= x = ?
! x [ y 6= y (cf. Lemma 2(e)) and
! Disj(x; x) (cf. Lemma 2(f),(g)),
the O(n3) satis ability test for BST([; Disj; :Disj; 6=) yields a O(n3) satis ability
test for BST([; =?; 6=?; Disj; :Disj; *; 6=).</p>
          <p>- x 6= ? is expressible in BST(=?; 6=) (cf. Lemma 2(f)),
- Disj(x; y) and :Disj(x; y) are expressible in BST(\; = ?; 6=</p>
          <p>Lemma 2(h)), and
- x y and x * y are expressible in BST(\; =?; 6=?) (cf. Lemma 2(d),(e)),
?) (cf.
it follows that the O(n4) satis ability test for BST(\; =?; =; 6=) yields a O(n4)
satis ability test for the fragment BST(\; =?; 6=?; Disj; :Disj; ; *; =; 6=).</p>
          <p>Finally, since
- x = ? is O(n)-expressible in BST([; =; 6=) (cf. Lemma 3),
- x 6= ? is expressible in BST(=?; 6=) (cf. Lemma 2(f)),
- x y is expressible in BST([; =),
- x * y is expressible in BST([; 6=), and
- :Disj(x; y) is expressible in BST(6=?; ),
the O(n3) satis ability test for BST([; =; 6=) yields a O(n3) satis ability test for
the fragment BST([; =?; 6=?; :Disj; ; *; =; 6=).</p>
        </sec>
        <sec id="sec-3-1-2">
          <title>It can be checked that:</title>
          <p>(A) none of the fragments listed in Table 1 is strictly contained in another
fragment in the same table, and
(B) for every fragment T of BST, there is a fragment in Table 1 that either
contains T or is contained in T .</p>
          <p>Properties (A) and (B) imply that the 18 NP-complete fragments in Table 1 are
indeed minimally NP-complete and, symmetrically, the 5 polynomial fragments
in Table 1 are maximally polynomial.
While there is a limited interest in further investigating the non-minimal
NPcomplete fragments of BST, this is not the case for the non-maximal polynomial
fragments, as the latter can admit decision tests more e cient than any of the
maximal polynomial fragments extending them.</p>
          <p>We brie y report here some preliminary results obtained so far in this
direction (see Table 2). In particular, we devised:
- a linear-time decision test for the fragment BST([; Disj; 6=), which readily
generalizes, by Lemma 2(e),(f),(g), to a linear-time satis ability test for the
extended fragment BST([; =?; 6=?; Disj; *; 6=);
- a cubic algorithm for the fragment BST(\; = ?; 6=), which yields, by
Lemma 2(f),(h), a cubic satis ability test for the extended fragment
BST(\; =?; 6=?; Disj; 6=).</p>
          <p>For space reasons, we limit ourselves to present only a linear-time satis ability
test for the fragment BST([; Disj; 6=).</p>
          <p>For convenience, we shall represent terms of the form x1 [ [ xh as
[fx1; : : : ; xhg. Thus, for a set assignment M and a nite nonempty collection
of set variables L Vars('), we shall have M ([L) = [M L = Sx2L M x.</p>
          <p>Towards a linear satis ability test for BST([; Disj; 6=), let ' be a satis able
BST([; Disj; 6=)-conjunction of the form
p q
^ ^
[Li 6= [Ri ^</p>
          <p>Disj([Lj ; [Rj );
i=1 j=p+1
where the Lh's and the Rh's are nonempty collections of set variables, and let
M be a set assignment over Vars(') satisfying '.</p>
          <p>Preliminarily, we observe that, for each x 2 Sjq=p+1([Lj \ [Rj ), M x
M ([Lj ) \ M ([Rj ) holds for some j 2 fp + 1; : : : ; qg. Hence, since the conjunct
Disj([Lj ; [Rj ) occurs in ', we have M ([Lj ) \ M ([Rj ) = ;, which in turn
yields M x = ;.</p>
          <p>
            Next, for each conjunct of type [Li 6= [Ri in ', if any, we have M ([Li) 6=
M ([Ri), i.e., M ([Li) [ M ([Ri) n M ([Li) \ M ([Ri) 6= ;, and a fortiori
M ([Li) [ M ([Ri) 6= ;. Thus, there is an x 2 [Li [ [Ri such that M x 6= ;,
and therefore the preceding observaton implies ([Li [ [Ri) n Sjq=p+1([Lj \
[Rj ) 6= ;. Summarizing, we have shown that, by assuming the satis ability of
', then the following condition is ful lled:
(
            <xref ref-type="bibr" rid="ref3">3</xref>
            )
          </p>
          <p>Sq
(C1) ([Li [ [Ri) n j=p+1([Lj \ [Rj ) 6= ;, for every i = 1; : : : ; p.</p>
          <p>
            Conversely, let ' be a BST([; Disj; 6=)-conjunction of the form (
            <xref ref-type="bibr" rid="ref3">3</xref>
            ) for which
the condition (C1) is true, and let x1; : : : ; xk be the distinct variables in Vars(')n
Sjq=p+1([Lj \ [Rj ). Consider any assignment M over Vars(') such that
- M := ;, for each x 2 Sq
          </p>
          <p>j=p+1([Lj \ [Rj ), and
- M x1; : : : ; M xk are nonempty pairwise disjoint sets.</p>
          <p>
            Then, it is not hard to check that M satis es '. Thus, we have proved the
following lemma, which readily yields a satis ability test for BST([; Disj; 6=).
Lemma 4. Let ' be a BST([; Disj; 6=)-conjunction of the form (
            <xref ref-type="bibr" rid="ref3">3</xref>
            ). Then ' is
satis able if and only if condition (C1) holds.
          </p>
          <p>Concerning the complexity of the satis ability test implicit in Lemma 4, we
observe that condition (C1) can be tested in O(j'j) time, since
- the set Sjq=p+1([Lj \ [Rj ) can be computed in O Pjq=p+1(jLj j + jRj j) =</p>
          <p>O(j'j) time;
- the set ([Li [[Ri)nSjq=p+1([Lj \[Rj ) can be computed in O(jLij+jRij)
time and tested for emptiness in constant time, for each i = 1m; : : : ; p, for
an overall O Pip=1(jLij + jRij + 1) = O(j'j) time.</p>
        </sec>
        <sec id="sec-3-1-3">
          <title>Hence, we have:</title>
          <p>Lemma 5. The satis ability problem for BST([; Disj; 6=)-conjunctions can be
solved in linear time.
3</p>
        </sec>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>Conclusion and future work</title>
      <p>We highlighted some preliminary results of an investigation aimed at
identifying small fragments of set theory endowed with polynomial-time satis ability
decision tests, potentially useful for automated proof veri cation. In this
initial phase, we mainly focused on `Boolean Set Theory', namely the fragment of
quanti er-free formulae of set theory involving variables, the Boolean set
operators [; \; n, the Boolean relators ; 6 ; =; 6=, and the predicates ` = ?' and
`Disj( ; )', along with their opposites.</p>
      <p>
        Future work will concentrate on the analysis of the sub-maximal polynomial
fragments of BST, so as to obtain a ner complexity taxonomy of the collection
of all BST fragments, and also on enriching the endowment of set operators
and relators of BST. We also plan to further deepen the study of membership
fragments of the types presented in Appendix B and, ultimately, to explore the
cases in which relators correlated to membership and Boolean set predicates are
allowed simultaneously.
Proof of Lemma 1. Let (x) be any formula expressible in T , and let (x; z)
be a T -conjunction such that
! (9z) (x; z) :
(
        <xref ref-type="bibr" rid="ref4">4</xref>
        )
Consider the mapping
from T into T , where z is any tuple of distinct set variables. Plainly, the mapping
(
        <xref ref-type="bibr" rid="ref5">5</xref>
        ) can be computed in O(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )-time. In addition, by (
        <xref ref-type="bibr" rid="ref4">4</xref>
        ), we have
j= '(y) ^ (x)
!
'(y) ^ (9z) (x; z) :
Hence, in particular, the formulae '(y) ^ (x) and '(y) ^ (9z) (x; z) are
equisatis able, and we also have
j= '(y) ^ (x)
! (9z) (x; z):
Thus, conditions (b) and (c) of De nition 2 are also satis ed, proving that the
formula (x) is O(
        <xref ref-type="bibr" rid="ref1">1</xref>
        )-expressible in T .
(so that (9y) ?(x; y), and therefore ?(x; y), is satis able).
      </p>
      <p>Let M be any set assignment such that M j= ?(x; y), and set M 0z := M z [
C, for every z 2 Vars( ?), where C is any nonempty set that is disjoint from
M z, for every z 2 Vars( ?) (namely, such that C \ [M (Vars( ?)) = ;).
Then, for y1; : : : ; yn 2 Vars( ?), we have:</p>
      <p>M 0(y1 [ : : : [ yn) = M 0y1 [ : : : [ M 0yn
and</p>
      <sec id="sec-4-1">
        <title>Therefore:</title>
        <p>M 0(y1 \ : : : \ yn) = M 0y1 \ : : : \ M 0yn
= (M y1 [ C) [ : : : [ (M yn [ C)
= (M y1 [ : : : [ M yn) [ C
= M (y1 [ : : : [ yn) [ C
= (M y1 [ C) \ : : : \ (M yn [ C)
= (M y1 \ : : : \ M yn) [ C
= M (y1 \ : : : \ yn) [ C:
(j1) if the literal y1 [ : : : [ yn = z1 [ : : : [ zm is in
?, then</p>
        <p>M 0(y1 [ : : : [ yn) = M (y1 [ : : : [ yn) [ C
(j2) if the literal y1 \ : : : \ yn = z1 \ : : : \ zm is in
?, then
M 0(y1 \ : : : \ yn) = M (y1 \ : : : \ yn) [ C
= M (z1 [ : : : [ zm) [ C = M 0(z1 [ : : : [ zm);
= M (z1 \ : : : \ zm) [ C = M 0(z1 \ : : : \ zm);
(j3) if the literal y 6= z is in</p>
        <p>?, then we have
M 0y = M y [ C;</p>
        <p>M 0z = M z [ C;
and</p>
        <p>M y 6= M z:</p>
        <p>Since C is disjoint from M y and M z, then M 0y 6= M 0z.</p>
        <p>From (j1), (j2), and (j3), it follows that M 0 j= ?, so that we have also
M 0 j= (9y) ?.</p>
        <p>
          In addition, we have M 0x = M x [ C 6= ;. Thus, M 0 6j= (9y) ? !
x = ?, contradicting (
          <xref ref-type="bibr" rid="ref6">6</xref>
          ), hence showing that x = ? is not expressible
in BST([; \; =; 6=).
(k) If x = y n z were expressible in BST([; \; =; 6=), then there would exist a
conjunction (x; y; z; w) in BST([; \; =; 6=) such that
j= x = y n z
! (9w) (x; y; z; w):
(
          <xref ref-type="bibr" rid="ref7">7</xref>
          )
        </p>
      </sec>
      <sec id="sec-4-2">
        <title>From (7), we have</title>
        <p>j= x = y n y</p>
        <p>! (9w) (x; y; y; w):
j= x = y n y ! (9w) (x;y;y;w)
=) j= x = ? ! (9w) (x;y;y;w)
=) j= (8y) x = ? ! (9w) (x;y;y;w)
=) j= (8y) (9w) (x;y;y;w) ! x = ?</p>
        <p>^ x = ? ! (9w) (x;y;y;w)
=) j= (8y)((9w) (x;y;y;w) ! x = ?)</p>
        <p>^ (8y) x = ? ! (9w) (x;y;y;w)
=) j= (8y):(9w) (x;y;y;w) _ x = ?</p>
        <p>^ x = ? ! (8y)(9w) (x;y;y;w)
=) j= :(9w)(9y) (x;y;y;w) _ x = ?</p>
        <p>^ x = ? ! (9w)(9y) (x;y;y;w)
=) j= (9w)(9y) (x;y;y;w) ! x = ?</p>
        <p>^ x = ? ! (9w)(9y) (x;y;y;w)
=) j= x = ? ! (9w)(9y) (x;y;y;w);
then</p>
        <p>j= x = ? ! (9w)(9y) (x;y;y;w);
i.e., x = ? would be expressible in BST([;\;=;6=), contradicting (j). Thus,
x = y n z is not expressible in BST([;\;=;6=).</p>
        <p>j= ' ^ ^ z [ x = z:</p>
        <p>z2Vars(')
Then ' has a model M such that Mx = ;.</p>
        <p>We state without proof the following model-theoretic property for the
fragment BST([;=;6=).</p>
        <p>Proposition 1. Let ' be a satis able conjunction of BST([;=;6=) and x any
variable such that
'(y;x) := ^ z [ x = z:</p>
        <p>z2Vars(')
Plainly, j= x = ? ! Vz2Vars(') z [ x = z. Hence, a fortiori,
Proof of Lemma 3. Let ' 7! '(y;x) be the mapping from BST([;=;6=) into
itself where
j= ('(y) ^ x = ?) ! ^ z [ x = z;
z2Vars(')</p>
        <p>B</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Complexity taxonomy for small fragments in presence of the membership relation</title>
      <p>In this appendix we present a quick overview of the complexity taxonomy for
the fragment Th([; \; n; 2; 2=), which from now on we refer to as MST, acronym
for membership set theory.</p>
      <p>The number of distinct fragments of MST is 24, of which 10 are NP-complete
and 14 are polynomial. Much as for BST, the complexity of any fragment of
MST can be e ciently determined once the minimal NP-complete fragments
and the maximal polynomial fragments have been singled out. Table 3 shows
the minimal NP-complete and the maximal polynomial fragments of MST.</p>
      <p>
        ?
? ? ?
The maximal polynomial fragment MST([; \; n; 2=) is trivial as it contains
only satis able conjunctions, thereby admitting a O(
        <xref ref-type="bibr" rid="ref1">1</xref>
        ) satis ability test.
      </p>
      <p>Indeed, every MST([; \; n; 2=)-conjunction ' is satis ed by the null set
assignment M;, sending each x 2 Vars(') to ;.</p>
      <p>We provided a O(n) satis ability test for the fragment MST([; 2). Then
we managed to translate any MST([; 2; 2=)-conjunction into an equisatis able
MST([; 2)-conjunction in O(n) time, which resulted in a O(n) satis ability test
for MST([; 2; 2=).</p>
      <p>We also provided a O(n2)-time satis ability test for the fragment MST(\; 2),
which was extended into a satis ability test for the fragment MST(\; 2; 2=) that
retains the same complexity.</p>
      <p>Finally, the fragments MST([; \; 2) and MST(n; 2) were proved to be
NPcomplete. We remark that using the axiom of regularity was necessary to prove
the NP-completeness of the former fragment, while regularity was not needed to
prove the NP-completeness of the latter.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Domenico</given-names>
            <surname>Cantone</surname>
          </string-name>
          .
          <article-title>Decision procedures for elementary sublanguages of set theory. X. Multilevel syllogistic extended by the singleton and powerset operators</article-title>
          .
          <source>J. Automat. Reason.</source>
          ,
          <volume>7</volume>
          (
          <issue>2</issue>
          ):
          <volume>193</volume>
          {
          <fpage>230</fpage>
          ,
          <year>June 1991</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Domenico</given-names>
            <surname>Cantone</surname>
          </string-name>
          , Vincenzo Cutello, and
          <string-name>
            <given-names>Alberto</given-names>
            <surname>Policriti</surname>
          </string-name>
          .
          <article-title>Set-theoretic reductions of Hilbert's tenth problem</article-title>
          . In Egon Borger, Hans Kleine Buning, and Michael M. Richter, editors,
          <source>CSL '89</source>
          , 3rd Workshop on Computer Science Logic, Kaiserslautern, Germany, October 2-
          <issue>6</issue>
          ,
          <year>1989</year>
          , Proceedings, volume
          <volume>440</volume>
          of Lecture Notes in Computer Science, pages
          <volume>65</volume>
          {
          <fpage>75</fpage>
          . Springer,
          <year>1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Domenico</given-names>
            <surname>Cantone</surname>
          </string-name>
          , Alfredo Ferro, and Eugenio G. Omodeo.
          <source>Computable set theory. Number 6 in International Series of Monographs on Computer Science</source>
          , Oxford Science Publications. Clarendon Press, Oxford, UK,
          <year>1989</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>Domenico</given-names>
            <surname>Cantone</surname>
          </string-name>
          , Eugenio G. Omodeo, and
          <string-name>
            <given-names>Alberto</given-names>
            <surname>Policriti</surname>
          </string-name>
          .
          <article-title>The automation of syllogistic. II: Optimization and complexity issues</article-title>
          .
          <source>J. Automat. Reason.</source>
          ,
          <volume>6</volume>
          (
          <issue>2</issue>
          ):
          <volume>173</volume>
          {
          <fpage>187</fpage>
          ,
          <year>June 1990</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Domenico</given-names>
            <surname>Cantone</surname>
          </string-name>
          , Eugenio G. Omodeo, and
          <string-name>
            <given-names>Alberto</given-names>
            <surname>Policriti</surname>
          </string-name>
          .
          <article-title>Set theory for computing - From decision procedures to declarative programming with sets</article-title>
          .
          <source>Monographs in Computer Science</source>
          . Springer-Verlag, New York,
          <year>2001</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Domenico</given-names>
            <surname>Cantone</surname>
          </string-name>
          , Eugenio G. Omodeo, and
          <string-name>
            <given-names>Pietro</given-names>
            <surname>Ursino</surname>
          </string-name>
          .
          <article-title>Formative processes with applications to the decision problem in set theory: I. Powerset and singleton operators</article-title>
          .
          <source>Information and Computation</source>
          ,
          <volume>172</volume>
          (
          <issue>2</issue>
          ):
          <volume>165</volume>
          {
          <fpage>201</fpage>
          ,
          <year>January 2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Domenico</given-names>
            <surname>Cantone</surname>
          </string-name>
          and
          <string-name>
            <given-names>Pietro</given-names>
            <surname>Ursino</surname>
          </string-name>
          .
          <article-title>Formative processes with applications to the decision problem in set theory: II. Powerset and singleton operators, niteness predicate</article-title>
          .
          <source>Information and Computation</source>
          ,
          <volume>237</volume>
          :
          <fpage>215</fpage>
          {
          <fpage>242</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Domenico</given-names>
            <surname>Cantone</surname>
          </string-name>
          and
          <string-name>
            <given-names>Pietro</given-names>
            <surname>Ursino</surname>
          </string-name>
          .
          <article-title>An Introduction to the Technique of Formative Processes in Set Theory</article-title>
          . Springer International Publishing,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Domenico</given-names>
            <surname>Cantone</surname>
          </string-name>
          and
          <string-name>
            <given-names>Calogero G.</given-names>
            <surname>Zarba</surname>
          </string-name>
          .
          <article-title>A new fast tableau-based decision procedure for an unquanti ed fragment of set theory</article-title>
          . In R. Caferra and G. Salzer, editors,
          <source>Automated Deduction in Classical and Non-Classical Logics, volume 1761 of Lecture Notes in Arti cial Intelligence</source>
          , pages
          <fpage>127</fpage>
          {
          <fpage>137</fpage>
          . Springer-Verlag,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Alfredo</surname>
            <given-names>Ferro</given-names>
          </string-name>
          , Eugenio G. Omodeo, and
          <string-name>
            <surname>Jacob</surname>
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Schwartz</surname>
          </string-name>
          .
          <article-title>Decision procedures for elementary sublanguages of set theory. I: Multilevel syllogistic and some extensions</article-title>
          .
          <source>Commun. Pur. Appl</source>
          . Math.,
          <volume>33</volume>
          :
          <fpage>599</fpage>
          {
          <fpage>608</fpage>
          ,
          <year>1980</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Michael</surname>
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Garey</surname>
            and
            <given-names>David S.</given-names>
          </string-name>
          <string-name>
            <surname>Johnson</surname>
          </string-name>
          . Computers and
          <article-title>Intractability: A Guide to the Theory of NP-Completeness. Series of Books in the Mathematical Sciences</article-title>
          .
          <string-name>
            <given-names>W. H.</given-names>
            <surname>Freeman</surname>
          </string-name>
          ,
          <year>1979</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>Nathan</given-names>
            <surname>Jacobson</surname>
          </string-name>
          .
          <source>Lectures in Abstract Algebra</source>
          , Vol.
          <volume>1</volume>
          {
          <string-name>
            <given-names>Basic</given-names>
            <surname>Concepts. D. Van</surname>
          </string-name>
          Nostrand, New York,
          <year>1951</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Yuri Ivanovich Manin</surname>
          </string-name>
          .
          <article-title>A course in mathematical logic</article-title>
          . Graduate texts in Mathematics. Springer-Verlag,
          <year>1977</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <given-names>E. G.</given-names>
            <surname>Omodeo</surname>
          </string-name>
          and
          <string-name>
            <surname>A. I. Tomescu.</surname>
          </string-name>
          <article-title>Set graphs</article-title>
          . III.
          <article-title>Proof Pearl: Claw-free graphs mirrored into transitive hereditarily nite sets</article-title>
          .
          <source>J. Automat. Reason.</source>
          ,
          <volume>52</volume>
          (
          <issue>1</issue>
          ):1{
          <fpage>29</fpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Eugenio</surname>
            <given-names>G</given-names>
          </string-name>
          . Omodeo, Alberto Policriti, and
          <string-name>
            <surname>Alexandru</surname>
            <given-names>I.</given-names>
          </string-name>
          <string-name>
            <surname>Tomescu</surname>
          </string-name>
          .
          <source>On Sets and Graphs: Perspectives on Logic and Combinatorics</source>
          . Springer,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Jacob</surname>
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Schwartz</surname>
          </string-name>
          , Domenico Cantone, and
          <string-name>
            <surname>Eugenio</surname>
            <given-names>G. Omodeo.</given-names>
          </string-name>
          <article-title>Computational logic and set theory: Applying formalized logic to analysis</article-title>
          . Springer-Verlag,
          <year>2011</year>
          . Foreword by
          <string-name>
            <given-names>M.</given-names>
            <surname>Davis</surname>
          </string-name>
          .
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          <source>Proofs of Lemmas 1</source>
          ,
          <issue>2</issue>
          , and
          <article-title>3 proving condition (c) of De nition 2. As for condition (b) of De nition 2, we have to show that if '(y) ^ Vz2Vars(') z [ x = z is satis able, so is '(y) ^ x = ?. But this follows at once from Proposition 1</article-title>
          .
          <string-name>
            <surname>Finally</surname>
          </string-name>
          ,
          <article-title>by observing that the mapping ' 7! Vz2Vars(') z [ x = z can clearly be computed in O(n)-time, it follows that the literal x = ? can be O(n)-expressed in BST([; =; 6=).</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>