=Paper= {{Paper |id=Vol-3733/paper5 |storemode=property |title=On Two-variable First-order Logic with a Partial Order |pdfUrl=https://ceur-ws.org/Vol-3733/paper5.pdf |volume=Vol-3733 |authors=Dariusz Marzec,Lidia Tendera |dblpUrl=https://dblp.org/rec/conf/cilc/MarzecT24 }} ==On Two-variable First-order Logic with a Partial Order== https://ceur-ws.org/Vol-3733/paper5.pdf
                         On two-variable first-order logic with a partial order
                         Dariusz Marzec1,*,† , Lidia Tendera1,*,†
                         1
                             Institute of Computer Science, University of Opole, Poland


                                         Abstract
                                         The main motivation for this work is the open question of decidability of the satisfiability problem for the
                                         two-variable fragment of first-order logic, β„±π’ͺ2 , with one transitive relation. The problem can be reduced to the
                                         corresponding problem when the transitive relation is required to be a partial order. It is known that its finite
                                         satisfiability problem is decidable but the decidability of the general satisfiability problem has been resolved
                                         only for restricted variants. More precisely, the problem is decidable for the fragment with transitive witnesses in
                                         which existential quantifiers are required to be guarded by transitive atoms, a property in line with the standard
                                         translation of modal logic into first-order logic. We study the β€˜complementary’ fragment with free witnesses where
                                         formulas, when written in negation normal form, contain existential quantifiers applied only to conjunctions of
                                         the form π‘₯ ∼ 𝑦 ∧ πœ“, where π‘₯ ∼ 𝑦 means that π‘₯ and 𝑦 are not comparable by the order.
                                             We show that β„±π’ͺ2 with a partial order and free witnesses is not locally finite. On the positive side, we show
                                         that the logic enjoys the finite antichain property that we believe is a crucial step towards showing decidability
                                         of its satisfiability problem. We also identify minimal syntactic restrictions needed to retain the finite model
                                         property.

                                         Keywords
                                         two-variable first-order logic, satisfiability problem, decidability, finite model property, transitivity, partial order,
                                         finite antichains, locally finite order




                         1. Introduction
                         Two-variable first-order logic, β„±π’ͺ2 , is the restriction of classical first-order logic, β„±π’ͺ, over relational
                         signatures to formulae with at most two distinct variables π‘₯ and 𝑦. The logic enjoys the finite model
                         property [1], and its satisfiability (hence also finite satisfiability) problem is NExpTime-complete [2].
                            It is easy to show that β„±π’ͺ2 is not able to express transitivity of a binary relation or related properties,
                         such as that of being an order or an equivalence. In fact, the same limitation applies to many other
                         decidable fragments of first-order logic, including the guarded fragment, 𝒒ℱ, and the fluted fragment,
                         β„±β„’. Hence, following the approach employed in modal logic, one program of research is to study
                         properties of these logics over restricted classes of structures where some distinguished binary predicates
                         are interpreted as transitive relations, orders or equivalences. Equivalently, one considers signatures
                         containing undistinguished predicates and distinguished predicates having a predefined interpretation as
                         a transitive relation, order, etc. In this setting, however, it is easy to write infinity axioms. For instance,
                         the β„±π’ͺ2 -formula
                                                                  πœ™0 = βˆ€π‘₯¬𝑇 π‘₯π‘₯ ∧ βˆ€π‘₯βˆƒπ‘¦π‘‡ π‘₯𝑦,                                           (1)
                         saying that 𝑇 is serial and irreflexive, with 𝑇 being a distinguished transitive predicate, is satisfiable but
                         has only infinite models.
                            In this scenario decidability of the (finite) satisfiability problem usually depends on the number of
                         distinguished relations, unless additional syntactic restrictions apply (cf. [3] for an overview and [4]
                         for a comprehensive study). In particular, it has been established that three distinguished predicates
                         interpreted as either transitive relations, equivalence relations or linear orders suffice to obtain undecid-
                         ability of both the satisfiability and the finite satisfiability problems for each of the logics 𝒒ℱ 2 , β„±π’ͺ2
                         and β„±β„’2 . These results can be strengthened: in case of 𝒒ℱ 2 and β„±π’ͺ2 undecidability follows already
                         CILC 2024: 39th Italian Conference on Computational Logic, June 26–28, 2024, Rome, Italy
                         *
                           Corresponding author.
                         †
                           These authors contributed equally.
                         $ dariusz.marzec@uni.opole.pl (D. Marzec); tendera@uni.opole.pl (L. Tendera)
                          0000-0002-9659-1161 (D. Marzec); 0000-0003-0681-4040 (L. Tendera)
                                      Β© 2024 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).


CEUR
                  ceur-ws.org
Workshop      ISSN 1613-0073
Proceedings
over structures with one transitive and one equivalence relation [5], and in case of β„±β„’2 it suffices
that one of the three transitive relation is an equality [6]. These undecidability results come mainly
from the possible interactions between the transitive relations. When such interactions are restricted,
decidability is retained even in the presence of arbitrarily many transitive relations, as in the guarded
fragment with transitive guards, where transitive atoms are only allowed in guard positions [7].
   On the positive side, β„±π’ͺ2 with one equivalence relation has the finite model property, and its
satisfiability (= finite satisfiability) problem is NExpTime-complete [8]; β„±π’ͺ2 with two equivalence
relations lacks the finite model property, but its satisfiability and finite satisfiability problems are both
2-NExpTime-complete [9].
   When the distinguished predicates are required to be interpreted as linear orders, the picture is not
fully transparent, as not all known complexity bounds are tight. Specifically, the satisfiability and finite
satisfiability problems for β„±π’ͺ2 together with one linear order are both NEXPTIME-complete [10]; the
finite satisfiability problem for β„±π’ͺ2 together with two linear orders is in 2-NExpTime [11] (falling to
ExpSpace when all undistinguished predicates are unary [12]). Decidability of the satisfiability problem
for β„±π’ͺ2 with two linear orders was shown recently using an automata based approach by ToruΕ„czyk
and Zeume [13]. More precisely, the paper shows decidability of the countable satisfiability problem for
two-variable logic in the presence of a tree order, a linear order, and arbitrary atoms that are definable
from the tree order using monadic second-order formulas.
   Turning towards transitive relations the following is known. The satisfiability problem for 𝒒ℱ 2 with
one transitive relation is 2-ExpTime-complete [14]. Both the satisfiability and the finite satisfiability
problems for β„±β„’β€”the full fluted fragmentβ€”with one transitive relation remain decidable in the presence
of equality and arbitrarily many undistinguished relations [6].
   The case that is not yet fully understood is β„±π’ͺ2 with one transitive relation, β„±π’ͺ2 1T. It is known
that its finite satisfiability problem is decidable in 3-NExpTime [15] but the decidability of the general
satisfiability problem has been resolved only for restricted variants. As mentioned above, the problem
is decidable for 𝒒ℱ 2 with one transitive relation. Moreover, decidability of the satisfiability problem
follows also for 𝒒ℱ 2 with one partial order, as (ir)reflexivity and antisymmetry of a binary relation are
two-variable guarded properties. Decidability of the satisfiability problem is also known for β„±π’ͺ2 with
one linear order or with one tree order but the case of any transitive relation seems to be more intricate.
   In 2013 it was advertised that Sat(β„±π’ͺ2 1T) is decidable [16] but later it was discovered [17] that the
proof works only for the fragment with transitive witnesses in which existential quantifiers are required
to be guarded by transitive atoms, a property in line with the standard translation of modal logic into
first-order logic. We remark that the infinity axiom (1) belongs to this fragment, as the existential
quantifier in the subformula βˆ€π‘₯βˆƒπ‘¦π‘‡ π‘₯𝑦 is guarded by the atom 𝑇 π‘₯𝑦. In this fragment transitive guards
might also be of the form 𝑇 𝑦π‘₯, so the syntax allows one to describe tense frames defined in modal logic
by adding to usual Kripke frames βŸ¨π‘Š, π‘…βŸ© the converse of 𝑅.
   In this paper we study the fragment β„±π’ͺ2 1T with free witnesses in which formulas, when written
in negation normal form, contain existential quantifiers applied only to conjunctions of the form
¬𝑇 π‘₯𝑦 ∧ ¬𝑇 𝑦π‘₯ ∧ πœ“, enforcing that π‘₯ and 𝑦 are incomparable by 𝑇 . We note that this pattern is neither
guarded nor fluted. The logic can be seen as complementary to β„±π’ͺ2 1T with transitive witnesses.
   Models for β„±π’ͺ2 1T-formulas, taking into account the interpretation of the transitive relation, can be
seen as partitioned into cliques. In [15] it was observed that this logic enjoys the small clique property:
every satisfiable formula has a model in which the size of cliques is bounded. This property allows
one to reduce the (finite) satisfiability problem for β„±π’ͺ2 1T to the (finite) satisfiability problem for β„±π’ͺ2
with one partial order encoding cliques by single elements satisfying some new unary predicates and
connection types between cliques by pairs of elements satisfying new binary predicates. Hence, in the
remaining part of the paper we concentrate on β„±π’ͺ2 1PO, the two-variable fragment of first-order logic
with one partial order, and its subfragments.
   Regarding expressive power it turns out that β„±π’ͺ2 1PO is able not only to enforce infinite models but
also infinite antichains (cf. examples in [15, 17]). When restricting attention to the fragment with free
witnesses, the finite model property is also lost [17]. However, as we show, the subfragment enjoys the
finite antichain property: every satisfiable formula has a model in which the size of every antichain is
exponentially bounded with respect to the length of the formula. The proof shows actually a bit more:
every satisfiable formula has a model with a universe forming a simple block structure; the universe
can be partitioned into a bounded number of chains consisting of small blocks containing elements of
the same one-type. Elements inside the blocks are incomparable, and the partial order is induced by the
order on the blocks. We believe that the finite antichain property will be crucial to show decidability.
Notably, known undecidability proofs for elementary modal logics and for fragments of two-variable
first-order logic usually encode variants of the tiling problems that are based on two-dimensional grids
having unbounded antichains.
   We also illustrate the expressive power of β„±π’ͺ2 1PO with free witnesses, showing that in this logic
one can write formulas enforcing models that are not locally finite. (A structure is locally finite if for
any two elements π‘Ž, 𝑏 of its domain, the interval 𝐼(π‘Ž, 𝑏) consisting of elements between π‘Ž and 𝑏 is finite.)
We provide a formula using only unary undistinguished predicates, each of whose model embeds a
copy of Zπ‘˜ (π‘˜ depends on the size of the signature). Such structures, for any π‘˜>1, have infinitely many
infinite intervals. Moreover, we identify minimal syntactic restrictions on the universal part of formulas
in the logic that allow us to rescue the finite model property.
   The paper is structured as follows. Section 2 contains the necessary preliminaries. The proof that
the logic β„±π’ͺ2 1PO with free witnesses is not locally finite is given in Section 3. The finite antichain
property of the logic is established in Section 4 and the restrictions needed to retain the finite model
property in Section 5. We conclude with some directions for future research.
   Related work. Partially related is the research on logics for data words and data trees that can be
seen as logics over signatures consisting of unary predicates corresponding to data values and (at least)
two distinguished binary predicates: an equivalence relation used to compare data values and the linear
order for words or the tree order relation(s) for trees, see e.g. [18, 19]. However, in these papers the
structures (words or trees) are finite and, hence, the results concern only the finite satisfiability problem.
   More closely related seems to be the research on automata on various classes of infinite partial
orders, in particular, on pomsets (i.e. labelled partially ordered sets) investigated in the area of modelling
concurrent systems. Decidability of the satisfiability problem for logics over these classes is often
established by showing decidability of non-emptiness of the corresponding automata. This research
contains the study of series-parallel pomsets, also called N-free pomsets, originated by [20, 21] for
finite graphs, generalized to width-bounded infinite graphs in [22], scattered and countable posets
in [23, 24], and to synchronized series-parallel graphs in [25]. Positive results are obtained usually in the
presence of additional assumptions on the structures such as bounded-width, scattered, well-ordered,
finite antichains. Since the structures enforced by β„±π’ͺ2 1PO-sentences are not necessarily N-free, the
branching automata introduced for such structures cannot be directly applied to recognize models of
the logics we are concerned with in this article.
   Somewhat related is also research on certain modal logics. For instance, Humberstone [26] and
Goranko [27] study the bimodal logic of inaccessible worlds determined by complementary frames of
the form βŸ¨π‘Š, 𝑅, π‘Š 2 βˆ’π‘…βŸ©. In the logic the standard modal operator [ ] is used for worlds accessible by
the relation 𝑅, and a second modal operator [𝑖] is used for inaccessible worlds: [𝑖]𝑝 holds at a world
π‘₯, iff 𝑝 is true in all worlds which are not accessible from π‘₯ via 𝑅. This condition is not expressible
in guarded logic but it is expressible in β„±π’ͺ2 and in β„±β„’. Decidability of both the global and the local
satisfiability problem for the bimodal logic of inaccessible worlds over transitive frames can be inferred
from the above mentioned decidability of β„±β„’ with one transitive relation [6].


2. Preliminaries
We employ standard terminology and notation from model theory. Structures are denoted by (possibly
decorated) fraktur letters A, B, and their domains by the corresponding Roman letters. Where a
structure is clear from context, we frequently equivocate between predicates and their realizations,
thus writing, for example, 𝑅 in place of the technically correct 𝑅A . If A is a structure over a relational
signature and 𝐡 βŠ† 𝐴, then A↾𝐡 denotes the (induced) substructure of A with the universe 𝐡.
2.1. Poset terminology
Let (𝑋, <) be a poset, where < denotes a strict partial order, i.e. a binary relation that is irreflexive and
transitive. Elements π‘₯, 𝑦 ∈ 𝑋 are said to be comparable if either π‘₯ < 𝑦 or 𝑦 < π‘₯. Elements π‘₯, 𝑦 ∈ 𝑋
are said to be incomparable, denoted π‘₯ ∼ 𝑦, if they are not comparable and distinct. An element π‘₯ ∈ 𝑋
is maximal, if there is no element 𝑦 ∈ 𝑋 such that π‘₯ < 𝑦.
   Let π‘₯ ∈ 𝑋 and π‘Œ βŠ† 𝑋. We write π‘₯ < π‘Œ (π‘Œ < π‘₯) if for every 𝑦 ∈ π‘Œ we have π‘₯ < 𝑦 (𝑦 < π‘₯). For
subsets π‘Œ, π‘Œ β€² βŠ† 𝑋 we write π‘Œ < π‘Œ β€² if 𝑦 < 𝑦 β€² holds for every 𝑦 ∈ π‘Œ and 𝑦 β€² ∈ π‘Œ β€² . We also write
π‘Œ ∼ π‘Œ β€² iff π‘Œ ΜΈ< π‘Œ β€² and π‘Œ β€² ΜΈ< π‘Œ hold.
   A set π‘Œ βŠ† 𝑋 is an antichain, if all elements of π‘Œ are mutually incomparable; π‘Œ is a chain, if the
partial order restricted to π‘Œ is total. An element π‘₯ ∈ 𝑋 is an upper bound of π‘Œ if for every 𝑦 ∈ π‘Œ ,
𝑦 = π‘₯ ∨ 𝑦 < π‘₯. For any π‘₯, 𝑦 ∈ 𝑋 we define 𝐼(π‘₯, 𝑦) = {𝑧 ∈ 𝑋|π‘₯ < 𝑧 < 𝑦} as the interval of (π‘₯, 𝑦). A
poset (𝑋, <) has the finite antichain property if every antichain in 𝑋 is finite; it is locally finite, if for
every π‘Ž, 𝑏 ∈ 𝑋 the interval 𝐼(π‘Ž, 𝑏) is finite.
   We apply the above terminology to structures interpreting a signature 𝜎 in which one distinguished
relation is a partial order < in a natural way. For instance, let A be a 𝜎-structure and 𝐡, 𝐢 βŠ† 𝐴. We
write 𝐡  (π‘₯, 𝑦) := ¬𝑇 π‘₯𝑦 ∧ 𝑇 𝑦π‘₯ ∧ π‘₯ ΜΈ= 𝑦.

Definition 1. A formula πœ™ of β„±π’ͺ2 1T (or of β„±π’ͺ2 1PO) is said to be in transitive normal form if it
conforms to the pattern
                                π‘š
                                ⋀︁       ⋀︁
                   βˆ€π‘₯βˆ€π‘¦ πœ“0 ∧                       βˆ€π‘₯ (𝑃𝑖,𝑑 π‘₯ β†’ βˆƒπ‘¦ (𝑇𝑑 (π‘₯, 𝑦) ∧ πœ“π‘–,𝑑 (π‘₯, 𝑦))),             (2)
                                𝑖=1 π‘‘βˆˆ{∼,<,>,≑}


where πœ“0 is quantifier-free, the 𝑃𝑖,𝑑 are unary predicates and the πœ“π‘–,𝑑 (π‘₯, 𝑦) are quantifier- and equality-
free formulas not featuring either of the atoms 𝑇 π‘₯𝑦 or 𝑇 𝑦π‘₯ (they may contain the atoms 𝑇 π‘₯π‘₯ or
𝑇 𝑦𝑦).

  Without loss of generality we assume that an β„±π’ͺ2 1PO-formula in transitive normal form fea-
tures only βˆ€βˆƒ-conjuncts with 𝑇𝑑 ∈ {∼, <, >}. Indeed, when 𝑇 is a strict partial order, a formula
βˆ€π‘₯βˆƒπ‘¦ (𝑃 (π‘₯) β†’ 𝑇≑ (π‘₯, 𝑦) ∧ πœ“(π‘₯, 𝑦)) is only a complicated way of writing the logical constant false.
  Additionally, normal form formulas of β„±π’ͺ2 1PO𝑑𝑀 feature no conjuncts with π‘‡βˆΌ , and normal form
formulas of β„±π’ͺ2 1PO𝑓 𝑀 feature only βˆ€βˆƒ-conjuncts with π‘‡βˆΌ . So, denoting the transitive relation 𝑇 by
the symbol < and employing the abbreviation

                                π‘₯ ∼ 𝑦 := Β¬(π‘₯ < 𝑦) ∧ Β¬(𝑦 < π‘₯) ∧ π‘₯ ΜΈ= 𝑦,

any β„±π’ͺ2 1PO𝑓 𝑀 -formula πœ™ in transitive normal form (2) conforms to the pattern
                                          π‘š
                                          ⋀︁
                            βˆ€π‘₯βˆ€π‘¦ πœ“0 ∧           βˆ€π‘₯ (𝑃𝑖 π‘₯ β†’ βˆƒπ‘¦ (π‘₯ ∼ 𝑦 ∧ πœ“π‘– (π‘₯, 𝑦))),                        (3)
                                          𝑖=1

where πœ“0 is quantifier-free, the 𝑃𝑖 s are unary predicates and the πœ“π‘– (π‘₯, 𝑦) are quantifier- and equality-free
formulas not featuring <.

Lemma 1 ([15], Lemma 5.2). Let πœ™ be an β„±π’ͺ2 1T-formula. There exists an β„±π’ͺ2 1T-formula πœ™* in
transitive normal form such that: (i) |= πœ™* β†’ πœ™; (ii) every model of πœ™ can be expanded to a model of πœ™* ;
and (iii) the length of πœ™* is bounded polynomially with respect to the length of πœ™.
  In case of β„±π’ͺ2𝑒 1PO one more normal form has been introduced in [15] to simplify reasoning con-
cerning decidability of the finite satisfiability problem of the logic. We reuse the form with a slight
modification so that it works for all domains not only finite ones.

Definition 2. A formula πœ™ of β„±π’ͺ2𝑒 1PO is said to be in basic normal form if it is a conjunction of basic
formulas of the form

                          βˆ€π‘₯(𝛼(π‘₯) β†’ βˆ€π‘¦(𝛼(𝑦) β†’ π‘₯ = 𝑦))                                                   (B1)
                          βˆ€π‘₯(𝛼(π‘₯) β†’ βˆ€π‘¦(𝛼(𝑦) ∧ π‘₯ ΜΈ= 𝑦 β†’ π‘₯ ∼ 𝑦))                                         (B2a)
                          βˆ€π‘₯(𝛼(π‘₯) β†’ βˆ€π‘¦(𝛽(𝑦) β†’ π‘₯ ∼ 𝑦))                                                  (B2b)
                          βˆ€π‘₯(𝛼(π‘₯) β†’ βˆ€π‘¦(𝛽(𝑦) β†’ π‘₯ < 𝑦))                                                   (B3)
                          βˆ€π‘₯(𝛼(π‘₯) β†’ βˆ€π‘¦(𝛽(𝑦) β†’ π‘₯ < 𝑦 ∨ π‘₯ ∼ 𝑦))                                           (B4)
                          βˆ€π‘₯(𝛼(π‘₯) β†’ βˆ€π‘¦(𝛼(𝑦) ∧ π‘₯ ΜΈ= 𝑦 β†’ (π‘₯ < 𝑦 ∨ 𝑦 < π‘₯)))                               (B5a)
                          βˆ€π‘₯(𝛼(π‘₯) β†’ βˆ€π‘¦(𝛽(𝑦) ∧ π‘₯ ΜΈ= 𝑦 β†’ (π‘₯ < 𝑦 ∨ 𝑦 < π‘₯)))                               (B5b)
                          βˆ€π‘₯(𝛼(π‘₯) β†’ βˆƒπ‘¦(π‘₯ < 𝑦 ∧ πœ‡(𝑦)))                                                   (B6)
                          βˆ€π‘₯(𝛼(π‘₯) β†’ βˆƒπ‘¦(𝑦 < π‘₯ ∧ πœ‡(𝑦)))                                                   (B7)
                          βˆ€π‘₯(𝛼(π‘₯) β†’ βˆƒπ‘¦(π‘₯ ∼ 𝑦 ∧ πœ‡(𝑦)))                                                   (B8)
                          βˆ€π‘₯.πœ‡(π‘₯)                                                                       (B9)
                          βˆƒπ‘₯.πœ‡(π‘₯)                                                                      (B10)

where 𝛼, 𝛽 are distinct 1-types and πœ‡ is a quantifier-free formula not featuring =, <, ∼.

  Our modification concerns conjuncts (B6) and (B7) that in [15] had the forms βˆ€π‘₯(𝛼(π‘₯) β†’ βˆƒπ‘¦(πœ‡(𝑦) ∧
¬𝛼(𝑦) ∧ π‘₯ < 𝑦)) and, respectively, βˆ€π‘₯(𝛼(π‘₯) β†’ βˆƒπ‘¦(πœ‡(𝑦) ∧ ¬𝛼(𝑦) ∧ 𝑦 < π‘₯)). These forms could be
obtained by considering extremal elements satisfying the 1-type 𝛼 that in infinite structures might not
exist. We also omit the conjuncts (B1b): βˆ€π‘₯(𝛼(π‘₯) β†’ βˆ€π‘¦(𝛽(𝑦) β†’ π‘₯ = 𝑦)) that for distinct 1-types 𝛼
and 𝛽 are equivalent to the logical constant false and can be expressed anyway.
  The following Lemma can be proved exactly as Lemma 3.1 from [15].

Lemma 2. Let πœ™ be an β„±π’ͺ2𝑒 1PO-formula. There exists an β„±π’ͺ2𝑒 1PO-formula πœ™* in basic normal form
such that: (i) |= πœ™* β†’ πœ™; (ii) every model of πœ™ can be expanded to a model of πœ™* , and (iii) the length of πœ™*
is bounded polynomially in the length of πœ™.

   We remark that the transformations in the proofs of Lemmas 1 and 2 do not influence the cardinalities
of antichains or intervals in models.


3. Enforcing Infinite Intervals
In this section we show that β„±π’ͺ2𝑒 1PO𝑓 𝑀 is not locally finite. The formula Ξ¦ we write builds on the
infinity axiom presented in [17, Section 5]. It will contain several conjuncts of the form (B5b) with
various 𝛼 and 𝛽, so we introduce the abbreviation:

                        𝛼 ◁▷ 𝛽 := βˆ€π‘₯(𝛼(π‘₯) β†’ βˆ€π‘¦(𝛽(𝑦) β†’ (π‘₯ < 𝑦) ∨ (𝑦 < π‘₯)));

we also say in such case that the 1-types 𝛼 and 𝛽 are entangled.
  Let 𝐼 = {0, 1, 2, 3, 4} and 𝜎0 = {𝐴𝑖 |𝑖 ∈ 𝐼} βˆͺ {𝐡𝑖 |𝑖 ∈ 𝐼}. Let Ξ¦0 be the formula saying that the
unary predicates of 𝜎0 are mutually disjoint and exhaustive, with the exception of 𝐴0 and 𝐡0 that are
equivalent (so, one is invited to think that 𝐴0 and 𝐡0 can be identified)
                                     ⋁︁                      ⋀︁
           βˆ€π‘₯(𝐴0 π‘₯ ↔ 𝐡0 π‘₯) ∧ βˆ€π‘₯          𝐢π‘₯ ∧                              (𝐢π‘₯ β†’ ¬𝐢 β€² π‘₯).          (4)
                                    𝐢∈𝜎0          𝐢,𝐢 β€² ∈𝜎0 :𝐢̸=𝐢 β€² ,{𝐢,𝐢 β€² }ΜΈ={𝐴0 ,𝐡0 }
Let Ξ¦π‘ π‘π‘–π‘Ÿπ‘Žπ‘™(𝐴) contain for every 𝑖 ∈ 𝐼 the following conjuncts

                                   𝐴𝑖 ◁▷ 𝐴𝑖+2 ,                                                        (5)
                                   βˆ€π‘₯(𝐴𝑖 π‘₯ β†’ βˆƒπ‘¦(𝐴𝑖+1 𝑦 ∧ π‘₯ ∼ 𝑦)),                                      (6)
                                   βˆ€π‘₯(𝐴𝑖 π‘₯ β†’ βˆƒπ‘¦(π΄π‘–βˆ’1 𝑦 ∧ π‘₯ ∼ 𝑦)),                                      (7)

with the arithmetical operations in indices understood modulo 5.
   Assume D |= Ξ¦0 ∧ Ξ¦π‘ π‘π‘–π‘Ÿπ‘Žπ‘™(𝐴) . Without loss of generality we may assume that there is π‘Ž0 ∈ 𝐷
satisfying 𝐴0 . By (6) there is an incomparable element π‘Ž1 ∈ 𝐷 satisfying 𝐴1 . By (7), there is an
element π‘Žβˆ’1 ∈ 𝐷 incomparable with π‘Ž0 satisfying 𝐴4 . By (5), π‘Ž1 and π‘Žβˆ’1 are comparable. Assume
D |= π‘Žβˆ’1 < π‘Ž1 . Now, the conjuncts (6) and (7) enforce existence of new elements π‘Ž2 incomparable with
π‘Ž1 satisfying 𝐴2 and π‘Žβˆ’2 incomparable with π‘Žβˆ’1 and satisfying 𝐴3 . Since, by (5), 𝐴2 is entangled with
𝐴0 and 𝐴4 , so we get π‘Ž0 < π‘Ž2 and π‘Žβˆ’1 < π‘Ž2 . Here, we have no choice for the direction, as otherwise,
by transitivity, π‘Ž1 and π‘Ž2 were comparable. Similarly, again by (5), 𝐴3 is entangled with 𝐴0 and 𝐴1 , we
get π‘Žβˆ’2 < π‘Ž0 and π‘Žβˆ’2 < π‘Ž1 . Hence, by transitivity, π‘Žβˆ’2 < π‘Ž2 . Now, by (6), there must be a new element
π‘Ž3 ∈ 𝐷 incomparable with π‘Ž2 satisfying 𝐴3 . Simple induction shows that there is an infinite sequence
of distinct elements π‘Žπ‘˜ ∈ 𝐷 (π‘˜ ∈ Z) such that, for every π‘˜ ∈ Z, π‘Žπ‘˜ satisfies π΄π‘˜(mod 5) , π‘Žπ‘˜ ∼ π‘Žπ‘˜+1 and,
for every π‘˜ < 𝑙+1, π‘Žπ‘˜ < π‘Žπ‘™ . Let us call this sequence an 𝐴-spiral of D. Note that the argument repeats
when π‘Žβˆ’1 > π‘Ž1 , resulting in a spiral going in the opposite direction (for every π‘˜ < 𝑙+1, π‘Žπ‘™ < π‘Žπ‘˜ ).
Hence, the formula Ξ¦0 ∧ Ξ¦π‘ π‘π‘–π‘Ÿπ‘Žπ‘™(𝐴) is an axiom of infinity.
   Now, let Ξ¦π‘ π‘π‘–π‘Ÿπ‘Žπ‘™(𝐡) be a copy of the formula Ξ¦π‘ π‘π‘–π‘Ÿπ‘Žπ‘™(𝐴) obtained by replacing all occurences of the
𝐴𝑖 s by corresponding 𝐡𝑖 s. Suppose D |= Ξ¦0 ∧ Ξ¦π‘ π‘π‘–π‘Ÿπ‘Žπ‘™(𝐴) ∧ Ξ¦π‘ π‘π‘–π‘Ÿπ‘Žπ‘™(𝐡) . Starting with an element
π‘Ž0 (= 𝑏0 ) ∈ 𝐷 satisfying both 𝐴0 and 𝐡0 , and repeating the above argument for the 𝐡-spiral, we
see that D contains an 𝐴-spiral {π‘Žπ‘˜ }π‘˜βˆˆZ and a 𝐡-spiral {π‘π‘˜ }π‘˜βˆˆZ crossing at π‘Ž0 = 𝑏0 , each having a
particular direction.
   To enforce infinite intervals we add additional entanglements. Let Ξ¦π‘π‘Ÿπ‘œπ‘ π‘  be the formula containing
for every 𝑖 ∈ 𝐼 the entanglement:

                                                  𝐴2 ◁▷ 𝐡𝑖 .                                           (8)

This is consistent with the identification 𝐴0 = 𝐡0 , since we already have 𝐴0 ◁▷ 𝐴2 in (5).
   Finally, let Ξ¦ = Ξ¦0 ∧ Ξ¦π‘ π‘π‘–π‘Ÿπ‘Žπ‘™(𝐴) ∧ Ξ¦π‘ π‘π‘–π‘Ÿπ‘Žπ‘™(𝐡) ∧ Ξ¦π‘π‘Ÿπ‘œπ‘ π‘  and let D |= Ξ¦. Suppose the direction of the
𝐴-spiral and of the 𝐡-spiral agrees with the natural order on the indices of its elements, i.e. π‘Ž0 < π‘Ž2
and 𝑏0 < 𝑏2 . Simple reasoning with transitivity shows that all elements of the 𝐡-spiral lie below π‘Ž2 .
Note that π‘Ž5 (satisfying 𝐴0 = 𝐡0 ) generates a further 𝐡-spiral, all of whose elements are greater than
π‘Ž2 and less than π‘Ž7 . And so the process repeats. Note in this regard that, the elements 𝑏5π‘˜ (π‘˜ ∈ Z)
which satisfy both 𝐴0 and 𝐡0 and, by (6), require a free witness satisfying 𝐴1 may use π‘Ž1 as that free
witness. Similarly for the higher 𝐡-spirals.
   Hence, D contains infinitely many mutually disjoint 𝐡-spirals sandwiched between π‘Ž5π‘˜βˆ’3 and π‘Ž5π‘˜+2 ,
i.e. the intervals 𝐼(π‘Ž5π‘˜βˆ’3 , π‘Ž5π‘˜+2 ) = {𝑑 ∈ 𝐷|π‘Ž5π‘˜βˆ’3 < 𝑑 < π‘Ž5π‘˜+2 } are mutually disjoint and each of
them contains a whole infinite 𝐡-spiral. The argument obviously repeats when the direction of the
𝐴-spiral is opposite. Fig. 1 depicts a possible model D of Φ. Moreover, one could employ additional
unary predicates to enforce a different 𝐢-spiral involving π‘Ž0 but ’going’ in the third dimension, inducing
infinitely many 𝐴-spirals, of which each induces infinitely many 𝐡-spirals, as described above. The
process can be continued for any finite dimension. Hence, we have the following observation.

Theorem 3. Let π‘˜ > 0. There is a satisfiable formula πœ™ ∈ β„±π’ͺ2𝑒 1PO𝑓 𝑀 such that every model of πœ™ embeds
a copy of Zπ‘˜ (lexicographically ordered).

  Note that the formulas enforcing infinity axioms and infinite intervals presented in this section use
only universal conjuncts of the form (B5b) that define entanglements between distinct 1-types. As we
show in Section 5, this is not a coincidence.
Figure 1: A structure D which is a model of Ξ¦ inducing infinite intervals. The elements π‘Žπ‘˜ with π‘˜ ∈ Z form an
A-spiral and the elements π‘π‘˜π‘™ with π‘˜, 𝑙 ∈ Z form B-spirals. Each element π‘Žπ‘˜ realizes the 1-type π΄π‘˜ mod 5 and each
element π‘π‘˜π‘™ realizes the 1-type 𝐡𝑙 mod 5 . The straight thick blue arrow indicates the direction of the A-spiral; in
particular, π‘Ž0 < π‘Ž2 , π‘Ž0 < π‘Ž3 and π‘Ž1 < π‘Ž3 . The straight thin yellow arrows indicate the directions of the B-spirals.
Additionally, the curved arrows indicate that all elements of a given B-spiral crossing the A-spiral at the element
π‘Ž5𝑗 with 𝑗 ∈ Z are greater than π‘Ž5π‘—βˆ’3 and less than π‘Ž5𝑗+2 w.r.t. the partial order  = {𝑑 ∈ 𝑃 |𝑑 >A 𝑐}. Note that
𝑃< βˆͺ 𝑃> ΜΈ= βˆ… due to the fact that 𝑃 is not a unit and hence |𝑃 | β‰₯ 2. Obviously, 𝑃 = 𝑃< βˆͺ 𝑃𝑐 βˆͺ 𝑃> .
Replacing in P the block 𝑃 by three blocks 𝑃< , 𝑃𝑐 and 𝑃> we get Q = (P βˆ– {𝑃 }) βˆͺ {𝑃< , 𝑃𝑐 , 𝑃> } which
is a new factorization of A such that P βŠ‘ Q and P ΜΈ= Q which contradicts maximality of P.
   (ii) Let 𝑃, 𝑄 ∈ P be such that 𝑃 ΜΈ= 𝑄 and for all π‘Ž ∈ 𝑃 and 𝑏 ∈ 𝑄 we have either π‘Ž π‘Ž = {𝑏 ∈ 𝑄| π‘Ž π‘Ž = 𝑄. Note that we have either 𝑄<π‘Ž = βˆ… or 𝑄>π‘Ž = βˆ…. Otherwise, replacing in P the block
𝑄 by two non-empty blocks 𝑄<π‘Ž and 𝑄>π‘Ž we get Q = (P βˆ– {𝑄}) βˆͺ {𝑄>π‘Ž , 𝑄<π‘Ž }β€”a new factorization
of A such that P βŠ‘ Q and P ΜΈ= Q which contradicts maximality of P.
   Now, split 𝑃 into the subsets 𝑃<𝑄 = {π‘Ž ∈ 𝑃 | 𝑄<π‘Ž = 𝑄} and 𝑃>𝑄 = {π‘Ž ∈ 𝑃 | 𝑄>π‘Ž = 𝑄}. Again,
we have either 𝑃<𝑄 = βˆ… or 𝑃>𝑄 = βˆ…. Otherwise, replacing in P the block 𝑃 by two blocks 𝑃<𝑄 and
𝑃>𝑄 we get a factorization Qβ€² = (P βˆ– {𝑃 }) βˆͺ {𝑃>𝑄 , 𝑃<𝑄 } such that P βŠ‘ Qβ€² and P ΜΈ= Qβ€² which again
contradicts maximality of P. Hence, it follows that for every 𝑃, 𝑄 ∈ P we have either 𝑃  1, then |𝐡 𝛼 | = 2 and for each distinct π‘Ž, 𝑏 ∈ 𝐡 𝛼 we
have π‘Ž ∼B 𝑏. Hence, all conjuncts of the form (B2a) are also true in B.
   Let us prove (B2b), (B3), (B4). By the definition of B, the relation β‰Ί+ cannot imply the situation that
for any distinct 1-types 𝛼, 𝛽 ∈ 𝛼B , there exist π‘Žβ€² ∈ 𝑔(𝛼) and 𝑏′ ∈ 𝑔(𝛼) such that the 2-type 𝑑𝑝B [π‘Žβ€² , 𝑏′ ]
contradicts any of the conjuncts of the form (B2b), (B3), (B4). In the case of (B2b) and (B4), the definition
of B implies that π‘Žβ€² ∼B 𝑏′ and in the case of (B3), the definition of B implies that π‘Žβ€²  π‘Ž0 < π‘Ž3 > π‘Ž1 . Hence, branching automata
mentioned in the Introduction, developed to deal with N-free posets, are not directly applicable to
recognize models of such formulas.
   So, in this article, we have also identified a minimal fragment of the two-variable logic with one
partial order that is critical for answering the question on decidability of Sat(β„±π’ͺ2 1PO). Namely, it
suffices to concentrate on: (i) signatures without equality comprising arbitrarily many unary predicates
and one binary predicate required to be interpreted as a partial order; (ii) sentences in basic normal
form as given in Definition 2 where only entanglements 𝛼 ◁▷ 𝛽 of the form (B5b) and conjuncts of
the form (B8) appear. We believe that the fragment is decidable and we plan to study its satisfiability
problem on scattered structures. The finite antichain property established in this paper suggests that
some automata techniques might be generalized to handle such structures.


Acknowledgments
This work is supported by the Polish National Science Centre grant 2018/31/B/ST6/03662.


References
 [1] M. Mortimer, On languages with two variables, Zeitschr. f. Logik und Grundlagen d. Math. 21
     (1975) 135–140.
 [2] E. GrΓ€del, P. Kolaitis, M. Vardi, On the decision problem for two-variable first-order logic, Bull. of
     Symb. Logic 3 (1997) 53–69.
 [3] E. KieroΕ„ski, I. Pratt-Hartmann, L. Tendera, Two-variable logics with counting and semantic
     constraints, ACM SIGLOG News 5 (2018) 22–43. URL: https://doi.org/10.1145/3242953.3242958.
     doi:10.1145/3242953.3242958.
 [4] I. Pratt-Hartmann, Fragments of First-Order Logic, Oxford Logic Guides, Oxford University Press,
     United Kingdom, 2023.
 [5] E. KieroΕ„ski, J. Michaliszyn, I. Pratt-Hartmann, L. Tendera, Two-variable first-order logic with
     equivalence closure, SIAM Journal of Computing 43 (2014) 1012–1063.
 [6] I. Pratt-Hartmann, L. Tendera, The fluted fragment with transitive relations, Ann. Pure Appl. Log.
     173 (2022) 103042. URL: https://doi.org/10.1016/j.apal.2021.103042. doi:10.1016/j.apal.2021.
     103042.
 [7] W. Szwast, L. Tendera, The guarded fragment with transitive guards, Ann. Pure Appl. Log. 128
     (2004) 227–276. URL: https://doi.org/10.1016/j.apal.2004.01.003. doi:10.1016/j.apal.2004.01.
     003.
 [8] E. KieroΕ„ski, M. Otto, Small substructures and decidability issues for first-order logic with two
     variables., in: LICS, 2005, pp. 448–457.
 [9] E. KieroΕ„ski, J. Michaliszyn, I. Pratt-Hartmann, L. Tendera, Two-variable first-order logic with
     equivalence closure, in: Logic in Computer Science, IEEE, 2012, pp. 431–440.
[10] M. Otto, Two-variable first-order logic over ordered domains, Journal of Symbolic Logic 66 (2001)
     685–702.
[11] T. Zeume, F. Harwath, Order invariance of two-variable logic is decidable, in: Proceedings of the
     31st Annual ACM/IEEE Symposium on Logic in Computer Science LICS 2016, New York, NY, USA,
     July 5-8, 2016, 2016, pp. 807–816.
[12] T. Schwentick, T. Zeume, Two-variable logic with two order relations - (extended abstract), in:
     A. Dawar, H. Veith (Eds.), CSL, volume 6247 of Lecture Notes in Computer Science, Springer, 2010,
     pp. 499–513.
[13] S. ToruΕ„czyk, T. Zeume, Register automata with extrema constraints, and an application to
     two-variable logic, Log. Methods Comput. Sci. 18 (2022). URL: https://doi.org/10.46298/lmcs-18(1:
     42)2022. doi:10.46298/LMCS-18(1:42)2022.
[14] E. KieroΕ„ski, Results on the guarded fragment with equivalence or transitive relations, in:
     C. L. Ong (Ed.), Computer Science Logic, 19th International Workshop, CSL 2005, 14th Annual
     Conference of the EACSL, Oxford, UK, August 22-25, 2005, Proceedings, volume 3634 of Lecture
     Notes in Computer Science, Springer, 2005, pp. 309–324. URL: https://doi.org/10.1007/11538363_22.
     doi:10.1007/11538363\_22.
[15] I. Pratt-Hartmann, Finite satisfiability for two-variable, first-order logic with one transitive
     relation is decidable, Math. Log. Q. 64 (2018) 218–248. URL: https://doi.org/10.1002/malq.201700055.
     doi:10.1002/malq.201700055.
[16] W. Szwast, L. Tendera, FO2 with one transitive relation is decidable, in: 30th International
     Symposium on Theoretical Aspects of Computer Science, STACS 2013, February 27 - March 2,
     2013, Kiel, Germany, 2013, pp. 317–328. doi:10.4230/LIPIcs.STACS.2013.317.
[17] W. Szwast, L. Tendera, On the satisfiability problem for fragments of two-variable logic with one
     transitive relation, J. Log. Comput. 29 (2019) 881–911. URL: https://doi.org/10.1093/logcom/exz012.
     doi:10.1093/LOGCOM/EXZ012.
[18] M. BojaΕ„czyk, A. Muscholl, T. Schwentick, L. Segoufin, Two-variable logic on data trees and
     XML reasoning, J. ACM 56 (2009) 13:1–13:48. URL: https://doi.org/10.1145/1516512.1516515.
     doi:10.1145/1516512.1516515.
[19] B. Bednarczyk, W. Charatonik, E. KieroΕ„ski, Extending two-variable logic on trees, in: V. Goranko,
     M. Dam (Eds.), 26th EACSL Annual Conference on Computer Science Logic, CSL 2017, August
     20-24, 2017, Stockholm, Sweden, volume 82 of LIPIcs, Schloss Dagstuhl - Leibniz-Zentrum fΓΌr
     Informatik, 2017, pp. 11:1–11:20. URL: https://doi.org/10.4230/LIPIcs.CSL.2017.11. doi:10.4230/
     LIPICS.CSL.2017.11.
[20] K. Lodaya, P. Weil, Series-parallel posets: Algebra, automata and languages, in: M. Morvan,
     C. Meinel, D. Krob (Eds.), STACS 98, Springer Berlin Heidelberg, Berlin, Heidelberg, 1998, pp.
     555–565.
[21] K. Lodaya, P. Weil, Series–parallel languages and the bounded-width property, Theoretical
     Computer Science 237 (2000) 347–380. URL: https://www.sciencedirect.com/science/article/pii/
     S0304397500000311. doi:https://doi.org/10.1016/S0304-3975(00)00031-1.
[22] D. Kuske, Infinite series-parallel posets: Logic and languages, in: U. Montanari, J. D. P. Rolim,
     E. Welzl (Eds.), Automata, Languages and Programming, 27th International Colloquium, ICALP
     2000, Geneva, Switzerland, July 9-15, 2000, Proceedings, volume 1853 of Lecture Notes in Computer
     Science, Springer, 2000, pp. 648–662. URL: https://doi.org/10.1007/3-540-45022-X_55. doi:10.1007/
     3-540-45022-X\_55.
[23] N. Bedon, C. Rispal, Series-parallel languages on scattered and countable posets, in: Mathematical
     Foundations of Computer Science 2007: 32nd International Symposium, MFCS 2007 ČeskyΜ€ Krumlov,
     Czech Republic, August 26-31, 2007 Proceedings 32, Springer, 2007, pp. 477–488.
[24] N. Bedon, Complementation of branching automata for scattered and countable n-free posets.,
     International Journal of Foundations of Computer Science 29 (2018).
[25] R. Alur, C. Stanford, C. Watson, A robust theory of series parallel graphs, Proc. ACM Program.
     Lang. 7 (2023). URL: https://doi.org/10.1145/3571230. doi:10.1145/3571230.
[26] I. L. Humberstone, Inaccessible worlds, Notre Dame J. Formal Log. 24 (1983) 346–352. URL:
     https://doi.org/10.1305/ndjfl/1093870378. doi:10.1305/NDJFL/1093870378.
[27] V. Goranko, Modal definability in enriched languages, Notre Dame J. Formal Log. 31 (1990) 81–105.
     URL: https://doi.org/10.1305/ndjfl/1093635335. doi:10.1305/NDJFL/1093635335.
[28] S. Rudolph, M. KrΓΆtzsch, P. Hitzler, All elephants are bigger than all mice, in: F. Baader, C. Lutz,
     B. Motik (Eds.), Proceedings of the 21st International Workshop on Description Logics (DL2008),
     Dresden, Germany, May 13-16, 2008, volume 353 of CEUR Workshop Proceedings, CEUR-WS.org,
     2008. URL: https://ceur-ws.org/Vol-353/RudolphKraetzschHitzler.pdf.