Manuscript Offprint
arXiv:2608.12206Deciding Amalgamation Beyond Arity Two: The Semantic Horn Case
Exponential Lower Bounds for Horn AmalgamationThanks: This research was funded in whole or in part by the Austrian Science Fund (FWF) [ESP 1571225]. For the purpose of Open Access, the author has applied a CC BY public copyright licence to any Author Accepted Manuscript (AAM) version arising from this submission.
Abstract.
The amalgamation decision problem asks whether the finite models of a given universal first-order sentence have the amalgamation property. We prove that this problem is ExpTime-hard for universal Horn sentences of maximum relation arity three, and 2ExpTime-hard when the arity is unbounded, thereby strengthening the previous best lower bounds for universal Horn sentences.
The first reduction simulates runs of nondeterministic tree automata using a single ternary relation and unary and binary auxiliary relations. The second simulates finite winning strategies in an exponential corridor game. As a secondary contribution, we prove that deciding the winner remains 2ExpTime-complete for the game normal form used in our reduction, in which each move label determines a unique legal successor from every non-winning legal row.
For a universal first-order sentence , write for the class of its finite models. The amalgamation decision problem (ADP) asks, on input , whether has the amalgamation property (AP). Universal sentences give finite descriptions of hereditary classes: every failure of a sentence is already witnessed on the elements assigned to its variables. This makes the ADP the computational counterpart of the study of finitely bounded homogeneous structures.
In the present article, we study the ADP for universal Horn sentences, given explicitly as conjunctions of universally quantified Horn clauses. Such a clause has a conjunction of atoms as its premise and either one atom or falsity as its conclusion. The syntactic restriction is substantial, but it still permits computations to be expressed by repeated application of Horn rules. The question is how much computational complexity can be encoded in the amalgamation property of the resulting finite model class.
Earlier work established PSpace-hardness for Horn amalgamation at arity three using word computations [9, Theorem 5]. A related corridor construction established ExpSpace-hardness for succinct universal presentations of Horn theories: its conversion into explicitly listed Horn clauses incurs an exponential increase in size [9, Theorem 6 and its proof, p. 150:12]. For unrestricted universal input, the stronger lower bound of 2NExpTime-hardness is known from the expanded journal version [10, Corollary 1.5] of [9]; for input given as a set of forbidden substructures, the corresponding result is NExpTime-hardness [10, Corollary 1.6]. The contribution here concerns the restriction to explicitly given Horn clauses. We use branching computations to obtain stronger lower bounds for this restriction. Universality of nondeterministic finite tree automata yields the first result.
Theorem 1.1.
The ADP for universal Horn sentences of relation arity at most three is ExpTime-hard. More precisely, it is ExpTime-hard to distinguish sentences whose finite models have the SAP from sentences whose finite models do not have the AP. This holds for equality-free sentences with only one ternary relation symbol and all remaining relation symbols unary or binary.
Here the SAP denotes the strong amalgamation property: the images of the two structures in the amalgam intersect exactly in the image of their common part. The stronger distinction in the theorem gives the same lower bound for deciding the SAP. In particular, the bound applies to every fixed maximum relation arity at least three.
For unbounded arity, we use a game played on rows of exponential width. The moves simulate an alternating exponential-space computation, and a winning strategy is represented by a finite tree of rows.
Theorem 1.2.
The ADP for universal Horn sentences is 2ExpTime-hard when relation arities are unbounded. More precisely, it is 2ExpTime-hard to distinguish sentences whose finite models have the SAP from sentences whose finite models do not have the AP. The lower bound holds for equality-free sentences.
The corridor game requires a specific normal form. There is a unique legal initial row; every non-winning legal row is owned by one of two players; and, from every such row, each of two move labels determines exactly one legal successor row. We prove that deciding the winner remains 2ExpTime-complete in this normal form. Uniqueness of successors is essential to the Horn encoding: at a universally owned row, one Horn rule checks a winning successor for each label, and these two successors must account for all available moves.
Both reductions use the same amalgamation mechanism. Apart from designated seed clauses, every clause is complete: each pair of distinct variables occurs together in a premise atom. Such clauses are preserved under free amalgams over common induced substructures. Each seed clause omits just one pair, consisting of two distinguished variables called poles. Placing the poles on opposite sides of an amalgamation diagram activates a computation over its common part. Padding atoms ensure that every tuple newly derived by Horn closure still has its poles on opposite sides and all its computational data in the intersection.
In the tree-automaton reduction, an unaccepted tree gives a diagram with no amalgam, whereas universality allows every diagram to be completed to a strong amalgam. In the corridor-game reduction, a winning strategy gives a diagram with no amalgam; if there is no winning strategy, Horn closure again constructs a strong amalgam for every diagram. These arguments work directly with the input structures and their unions.
The results establish lower bounds for the Horn syntax. The decidability of the ADP for universal Horn sentences in arbitrary arity remains an open problem, posed in [4, Question 1]. For context, the ADP over binary signatures is decidable even for unrestricted universal sentences [3, Theorem 4], with a coNExpTime upper bound for universal input [10, Proposition 3.2]. Over binary signatures, explicitly given universal Horn input admits the better upper bound [8, Section 6.3, Proposition 22, p. 79, and the preceding remark]. The ternary relation in Theorem 1.1 is what lets the first construction carry two poles together with a tree position.
Section 2 introduces the required notation and the free-union and Horn-closure tools. Section 3 proves Theorem 1.1. Section 4 defines the exponential corridor game and proves completeness of its binary normal form. Section 5 translates these games into Horn sentences and proves Theorem 1.2. Section 6 discusses the remaining questions.
2. Preliminaries
We write , , and for a tuple of variables or elements. All reductions are polynomial-time many-one reductions. Input sentences are represented by explicit lists of clauses; their length includes all occurrences of relation symbols and variables. In particular, arities and the lengths of tuples are charged to the input size.
2.1. Relational structures and amalgamation
A relational signature is a finite set of relation symbols, each with a specified positive arity. A -structure consists of a domain and a relation for each -ary . Empty domains are allowed. The induced substructure on has relations .
A map is a homomorphism from to if it preserves every relation. It is an embedding if it is injective and also reflects every relation: for each and each tuple of the appropriate length, we have if and only if Here maps act on tuples coordinatewise. A surjective embedding is an isomorphism.
Let be a class of finite -structures closed under isomorphisms and induced substructures. An amalgamation diagram in consists of inducing the same structure on . An amalgam is a structure with embeddings for such that . The class has the amalgamation property (AP) if every such diagram has an amalgam. It has the strong amalgamation property (SAP) if the amalgam can always be chosen with
The free amalgam of an amalgamation diagram has domain and relations . The class has the free amalgamation property (FAP) if it is closed under taking free amalgams. Thus FAP implies SAP, and SAP implies AP. Since our classes are hereditary, any strong amalgam can be restricted to the union of the two images. After renaming elements, it then has domain and is obtained by adding relation tuples to the free amalgam without changing either induced side.
Diagrams may have empty common part. Consequently the AP implies the joint embedding property for a nonempty hereditary class. A structure is homogeneous if every isomorphism between its finite induced substructures extends to an automorphism. Its age is the class of finite structures that embed into it. Fraïssé’s theorem says that a nonempty class closed under isomorphisms and induced substructures, in a finite relational signature, is the age of a countable homogeneous structure if and only if it has the AP; that structure is unique up to isomorphism.
2.2. Universal Horn sentences
A universal sentence has the form with quantifier-free. A universal Horn sentence, or simply a Horn sentence, is given as a finite conjunction of universally quantified clauses where each is a relational or equality atom and is such an atom or (falsity). The premise may be empty. We suppress universal quantifiers when displaying clauses. A clause with a relational head is called a positive-head clause; a clause with an equality head is called an equality-head clause; and a clause with head is called a constraint. A sentence is equality-free if it contains no equality atoms. All sentences constructed in the reductions are equality-free.
We write for the finite models of a universal sentence . This class is closed under isomorphisms and induced substructures. The Horn ADP takes an explicitly given Horn sentence as input and asks whether has the AP. The corresponding problem for SAP is defined in the same way.
2.3. Complete clauses and Horn closure
The premise Gaifman graph of a Horn clause has all variables occurring in the clause as vertices. Two distinct variables are adjacent if they occur together in a premise atom. The clause is complete if this graph is complete. Variables occurring only in the head still count as vertices. For example, is complete, whereas is not. A Horn sentence is complete if all of its clauses are complete.
Lemma 2.1.
Let and satisfy a complete Horn clause and induce the same substructure on . Their free amalgam also satisfies the clause. Consequently, the finite models of a complete Horn sentence have the FAP.
Proof.
Suppose that an assignment to all variables of the clause makes the premise true in . Recall that the premise Gaifman graph also includes variables occurring only in the head. The image of the assignment cannot meet both and : completeness would put values from opposite sides together in a premise atom. A relational tuple containing these values belongs to neither side, and an equality between them is false. Thus the assignment lies in one side . Agreement on the common induced substructure implies that every premise atom also holds in . The clause holds there, so its head holds in the union; if the head is , the premise cannot have held in the first place. ∎
For a finite structure and an equality-free Horn sentence, the Horn closure under the positive-head clauses is defined inductively. Set . Obtain by adding the head tuple of every positive-head clause under every assignment whose premise holds in . The domain does not change. There are only finitely many possible relation tuples, so this increasing sequence reaches a fixed point. The fixed point satisfies all positive-head clauses. It is a model of the sentence precisely when it also satisfies the constraints.
We use the same construction for selected subsets of the positive-head clauses. Under any homomorphism from the initial structure into a model of those clauses, the image of every derived tuple lies in the corresponding relation, by induction on its derivation stage. In particular, a derivation of from the facts of an amalgamation diagram rules out every amalgam, including those identifying elements from opposite sides. Conversely, a closure that satisfies the sentence and changes no induced side is a strong amalgam.
In both reductions, the only incomplete clauses are seed clauses whose premise Gaifman graph omits just the pair of pole variables . All other pairs are covered by premise atoms, including suitable padding atoms. The extraction lemmas below (Lemmas 3.3 and 5.2) show that every new tuple has its poles in opposite sides outside the intersection and all remaining entries in the intersection. This is the invariant that ensures Horn closure preserves both induced sides.
3. The lower bound at arity three
3.1. Tree-automaton universality
For bounded arity, we replace the word-based computation in the PSpace-hardness proof of [9, Theorem 5] by a tree-based computation, reducing from universality of regular tree languages. We use the standard ExpTime-complete universality problem for nondeterministic bottom-up tree automata [11]; see also [7, Section 1.7, Theorem 13] for an explicit statement of universality hardness.
Let denote the set of all finite words over . A ranked alphabet is a finite set equipped with an arity map A finite -tree is a map , where is finite, nonempty, and prefix-closed, such that, for every and , we have if and only if . Thus a node labelled by has exactly ordered children. The root is the empty word . We write for the set of all finite -trees.
A nondeterministic bottom-up tree automaton (NBTA) is a tuple where is a finite set of states, is the set of accepting states, and is a finite set of transitions of the form for and For , such a transition is written .
A run of on a tree is a map such that, for every , writing and , the set of transitions contains
The run is accepting if . The language recognized by is
A tree language is called regular if it is recognized by an NBTA, that is, if for some such automaton . The automaton is universal if
Universality remains ExpTime-complete when the ranked alphabet has maximum rank two. We give the rank reduction explicitly. If the alphabet has no nullary symbol, there are no finite trees and the automaton is universal. If there is a nullary symbol but some symbol has no transition, the automaton is not universal. These cases can be mapped to fixed universal and non-universal binary automata, respectively. Otherwise, every symbol occurs in a transition, so the sum of the alphabet’s ranks is bounded by the size of the explicitly listed transition table.
Keep symbols of rank at most two. For each symbol of rank , introduce distinct binary symbols , and encode a node by
The map acts recursively and leaves symbols of rank at most two unchanged. The indexed symbols make decoding unique, so it is a bijection between and the well-formed encodings. A complete deterministic bottom-up automaton recognizes the latter using one state for a complete encoded subtree, one for each permitted proper suffix of an -chain, and an error state. Its transitions check the next chain index and require every child attached to the chain to be a complete encoded subtree. Both its state set and its transition table have polynomial size; complementing its accepting states recognizes all malformed encodings.
To simulate an original transition , an NBTA uses states along the chain to check the required child states successively, and outputs at its root. There is one auxiliary state for each relevant position of each explicitly listed transition. Taking the union of this simulator with the automaton accepting malformed encodings gives a polynomial-size binary automaton that is universal precisely when the original automaton is universal.
3.2. The Horn encoding
For the rest of this section, let be an NBTA over a ranked alphabet of rank at most two. We construct an equality-free universal Horn sentence . Its signature contains the unary symbols , , the binary symbols , , and one ternary symbol . The symbols describe labelled ordered trees; is a padding relation; says that the subtree rooted at admits a run with root state , anchored at the pole ; and is the two-pole predicate used to parse an arbitrary tree. The auxiliary marker selects the anchors subject to the acceptance constraints. We retain it to keep this role separate from the pole markers .
We write . For every transition , the first part contains
For every , it also contains
The second part contains, for every nullary , the seed clause
For every of positive rank , it contains the recursive clause
and finally
Here and in (1) an occurrence of denotes the empty conjunction. The construction is polynomial in , and is its only ternary relation symbol.
Lemma 3.1.
Every clause of is complete. Every non-seed clause of , including (5), is complete. The only non-complete clauses are the seed clauses (3), whose premise Gaifman graph is missing precisely the edge .
Proof.
For , the six pairs among in (1) occur in the atoms , , , , , . The cases follow by deleting the unused child variables, and (2) is complete because contains both variables. In (4), each atom supplies the three edges on . The atoms , , and, in the binary case, , supply all remaining pairs. The assertions about (5) and (3) are immediate. ∎
We next make the two computations performed by the Horn clauses explicit. For , let be its set of positions, let be the label at , and choose a variable for each position. Write for the subtree rooted at . A state is reachable at if has a run on whose root state is . Set
Lemma 3.2.
For every and ,
if and only if has a run on whose root state is . Moreover,
Proof.
For the first statement, suppose that has a run on with root state . Induction on , using the transition selected by the run at each node in (1), derives . Conversely, if there is no such run, take the structure with domain whose relational facts are precisely the instances displayed in , interpret all other relations, including and every , as empty, and close it under the positive-head clauses of . Since the position variables are distinct and its only - and -facts are those of , induction shows that the resulting least model contains exactly for the states reachable at position . It is therefore a countermodel to the displayed implication whenever is not reachable at the root.
For the second statement, (3) derives at every leaf. Successive applications of (4) derive at each internal node, and (5) derives at the root. ∎
Only the run-to-entailment direction of the first equivalence is needed below; the converse records that the Horn simulation derives no spurious root states.
3.3. Extracting trees and constructing amalgams
The following lemma is the tree-shaped replacement for the path-extraction argument in the regular-grammar reduction of [9]. Notice that it concerns only newly generated -tuples and therefore does not require the input structures themselves to be trees.
Lemma 3.3.
Let be an amalgamation diagram in , with common part and free amalgam . Close under the -rules (3) and (4). Every newly added tuple satisfies, after exchanging the two sides if necessary,
and admits a tree and a map , with , such that
where .
Proof.
We proceed by induction on the stage at which is first added. Suppose first that it is added by a seed clause. Neither pole can lie in . Indeed, if, say, and , let be the side containing . The atom forces . If both poles lie in , instead choose a side containing . In either case every premise atom belongs to the chosen side; for tuples contained in , this uses that the two sides induce the same structure there. Since that side satisfies the seed clause, the head would already belong to , a contradiction. The case in which only lies in is symmetric. If the two poles lay outside on the same side, the atoms and would again put the entire premise in that side, giving the same contradiction. Thus lie in opposite sides outside , and the two atoms and force . The remaining assertions hold for the one-node tree labelled by the nullary symbol used in the seed clause.
Suppose next that the tuple is added by a recursive clause. At least one of its premise -atoms lies outside . Indeed, the other premise relations are not changed during the closure, so if all premise -atoms belonged to , Lemma 2.1 applied to the complete recursive clause would put its head in . Such a premise tuple was added at an earlier closure stage. By the induction hypothesis, it has poles in opposite sides and its root lies in . The atoms and force the new root into . Every other premise is also a cross tuple and therefore cannot belong to ; by induction it supplies a tree rooted at . Attach these trees below a new root labelled by . The atom , the -atoms and, in the binary case, , supply exactly the remaining conjuncts of . This also proves the assertions concerning both pole anchors. ∎
Lemma 3.4.
For every NBTA over a ranked alphabet of rank at most two, we have
Proof.
Suppose first that , and fix . Take one distinct element for every position of , and let the relational facts of be precisely the instances displayed in , together with . Extend it to by a new element , the facts , , and for all , and the facts for exactly those states reachable at position . Extend to by a new element , the fact , and all facts . All unmentioned tuples are absent.
The transition semantics of shows that ; clause (2) does not fire because no final state is reachable at the root. The sentence holds in because and all are empty there. No clause of fires in either side: is empty in both sides, disabling the recursive and final clauses, while the seed clauses require , which is empty in , and , which is empty in . Hence is an amalgamation diagram in . In any amalgam, the images of these elements satisfy the premise . By Lemma 3.2, this is impossible in a model of . Thus the diagram has no amalgam, and does not have the AP. The diagram and the obstruction forced in every prospective amalgam are illustrated in Figure 1.
a$$x_{\varepsilon}$$x_{0}$$x_{1}$$C_{0}$$C_{1}$$D$$L,I$$A_{f},T$$A_{c_{0}}$$A_{c_{1}}$$x_{\varepsilon}$$x_{0}$$x_{1}$$b$$C_{0}$$C_{1}$$D$$R$$A_{f},T$$A_{c_{0}}$$A_{c_{1}}$$\Rightarrow$$a$$x_{\varepsilon}$$x_{0}$$x_{1}$$b$$C_{0}$$C_{1}$$D$$L,I$$R$$A_{f},T$$A_{c_{0}}$$A_{c_{1}}
Figure 1. The obstruction associated with a rejected binary tree . The two models share the tree-shaped structure . The first side adds the left pole , together with the states reachable at each node (-facts not shown), while the second adds the right pole . In any amalgam, the seed clauses produce and ; the recursive clause then produces , and the -mark at the root activates (5). Hence the diagram has no amalgam. Dotted edges represent padding atoms ; brown hyperedges mark the forced -atoms.
Conversely, suppose that , and consider an arbitrary amalgamation diagram as in Lemma 3.3. By Lemmas 2.1 and 3.1, their union satisfies . Form by the -closure from Lemma 3.3. Since the domain and signature are finite, this process reaches a fixed point.
We claim that (5) does not fire in . It cannot fire on a -tuple already present in : the complete clause (5) holds in by Lemmas 2.1 and 3.1. If it fired on a newly added tuple , then Lemma 3.3 would supply a tree and a map of all its positions into , with . Choose an accepting run of on . All atoms of the corresponding instance of hold in the side containing . The map need not be injective: the run-to-entailment direction is a universal implication and remains valid when its variables are assigned equal values. Applying that direction of Lemma 3.2 inside that side derives for a final state . Since belongs to the common substructure, (2) contradicts the assumption that this side is a model.
The clauses of do not mention , so they remain true in . The seed and recursive parsing clauses hold at the fixed point, and the final parsing constraint holds by the preceding argument. Hence . The only tuples added to are -tuples whose poles lie in opposite sides, by Lemma 3.3. Hence the inclusions of into are embeddings and introduce no new identification. Thus is a strong amalgam. ∎
Proof of Theorem 1.1.
The map is computable in polynomial time, produces a universal Horn sentence, and uses relation symbols of arity at most three. By Lemma 3.4, it maps universal automata to sentences with SAP and non-universal automata to sentences without AP. Universality for nondeterministic finite tree automata over ranked alphabets of rank at most two is ExpTime-hard by [11] and the rank reduction in Section 3.1. This proves the lower bound.∎
4. Binary exponential corridor games
The second reduction uses finite winning strategy trees for a game on rows of width , where is part of the input in unary. This extends the exponential corridor-tiling problem used for the earlier ExpSpace lower bound [9] by allowing existential and universal choices. Corridor-tiling games go back to Chlebus [6]. We give the full proof of the precise normal form needed for Horn amalgamation.
4.1. The game and its winning region
We first specify the source problem. A binary exponential corridor game is a tuple
where is given in unary, is a finite tile set, , and the remaining entries are subsets of . We require . Set . A row is a tuple . It is legal if , , and for all . It is initial if it is legal and its first tile belongs to . Independently, it is an Existential Player (EP) row, a Universal Player (UP) row, or a winning row depending on whether its first tile belongs to , or , respectively. We restrict ourselves to the following normal form:
(NF1) there is a unique initial row; (NF2) partition ; (NF3) for every non-winning legal row and every , there is a unique legal row such that for all ; we write .
The game starts at the initial row. At an EP row, EP chooses ; at a UP row, UP chooses . EP wins by reaching a winning row, and UP wins infinite plays.
A finite winning strategy tree for EP from a legal row is a finite tree of legal rows rooted at . Its leaves are winning rows and its internal nodes are non-winning rows, with one -successor at each EP node and both the - and the -successor at each UP node. Define sets of legal rows inductively. Let consist of all legal winning rows, and, for , put
The winning region is defined as .
Induction on shows that a row belongs to exactly when EP has a finite winning strategy tree of height at most from that row, where height is measured in edges. Moreover, every winning strategy yields a finite one: unfold it and stop each branch when it first reaches a winning row. The resulting tree is finitely branching and has no infinite branch, because UP wins every infinite play. By König’s lemma, it is finite. Thus EP has a winning strategy if and only if the initial row belongs to .
4.2. Complexity of the normal form
A closely related formulation in terms of finite tiling trees with exponentially wide rows appears in [2, extended version, Definition 5.4 and Lemma 5.5]; see also [1, extended version, Proposition 9]. We require the explicitly labelled unique-successor condition (NF3). The following lemma establishes completeness for this exact variant.
Lemma 4.1.
Deciding whether EP has a winning strategy in a binary exponential corridor game satisfying (NF1)–(NF3) is 2ExpTime-complete.
We use one-tape alternating Turing machines
where the four sets of states form a partition of , the input alphabet is contained in the tape alphabet , is the blank symbol, is the initial state, and we have a transition function
We assume that is nonempty for every and ; accepting and rejecting states have no outgoing transitions. The tape is indexed by the non-negative integers. A move to the left from cell leaves the head at cell .
A configuration consists of a state, a head position, and a tape content which is blank at all but finitely many positions. If , then the corresponding successor is obtained by writing in place of the symbol scanned by the head, changing the state to , and moving the head by , subject to the convention at cell . On input , the initial configuration has state , has written from cell onwards and blanks thereafter, and has its head at cell .
We use the acceptance-game semantics. A configuration in is owned by EP and one in by UP; its owner chooses one of its successor configurations. Reaching a configuration in is winning for EP, whereas reaching one in , or producing an infinite play, is winning for UP. Thus an input is accepted precisely when EP has a winning strategy from its initial configuration.
The machine uses space at most on inputs of length if the head position is smaller than in every configuration reachable from the initial configuration on such an input. The proof below relies on the alternation theorem of Chandra, Kozen, and Stockmeyer [5] in the form
Proof of Lemma 4.1.
Upper bound. Let be the size of the encoding of the game and put . There are at most rows. Given one or two explicitly represented rows, legality and the relations can be tested in time . By the induction following (9), a row belongs to exactly when it admits a winning strategy tree of height at most . The increasing sequence stabilizes after at most stages. Enumerating the rows and row pairs and computing this sequence therefore takes time. This proves membership in 2ExpTime.
Reduction from alternating machines. For hardness, let . By the alternation theorem, there are a polynomial and an alternating Turing machine which decides using space at most on inputs of length . We choose the normal form of described below independently of the input. Replacing uniformly by , we may also assume that , and hence , for every input length . Given an input word , with , we construct in polynomial time a binary exponential corridor game of width such that
The remainder of the proof defines and verifies the equivalence.
Machine normal form. We bring into a binary-branching normal form by changes that are independent of the input word. For every non-halting state and every tape symbol , choose a finite full binary decision tree whose leaf labels are exactly the transitions in , each occurring at least once. The root represents the original state scanning that symbol, and every other internal vertex is represented by a fresh auxiliary state with the same owner as the original state. Label the two edges leaving every internal vertex by and . An edge leading to another internal vertex changes only the state, whereas an edge leading to a leaf performs the original transition labelling that leaf. Duplicate leaves if necessary; in particular, if only one original transition is available, label both leaves by it. If an auxiliary state is paired with a scanned symbol for which it was not intended, let both labelled transitions lead, without changing the tape or head, to a fresh rejecting state. Such configurations are unreachable. For an existential state, the decision tree replaces a finite disjunction of successors by iterated binary disjunctions; for a universal state, it replaces a finite conjunction by iterated binary conjunctions. Hence acceptance is unchanged. The auxiliary transitions use no additional tape cells, and every non-halting configuration now has exactly one successor under each label .
We also arrange that the initial state does not occur as the target state of any transition. Rename the old initial state and add a fresh state used only at the start, with the same owner (existential or universal) or the same halting status (accepting or rejecting) and, when non-halting, for every scanned symbol , the same two labelled transitions as the renamed old initial state has on . Now fix an input word of length , and set and .
An -cell configuration is a configuration whose head position lies in and whose tape is blank outside this interval. Write for the set of all -cell configurations. On , we totalize both labelled successor maps: if a prescribed move would leave the interval , its write and state update are performed but the head remains at the corresponding boundary cell. At the left boundary this agrees with our tape convention. At the right boundary it changes no transition reachable from the initial configuration, because uses at most tape cells on input . Hence totalization does not change the winner of the acceptance game from .
We represent every rejecting halting configuration by a UP row which is not marked as winning, and give it itself as its successor under both labels. Thus reaching a rejecting configuration of is simulated by an infinite self-looping play, which is winning for UP. Consequently, for every non-accepting and every , there is a unique successor under label ; we denote it by . For a rejecting configuration, this convention gives . Set
Since no transition enters , the set contains the initial configuration and is closed under both successor maps on its non-accepting configurations.
We use the following standard claim, spelling out the part needed for condition (NF3). Given and an input word of length , one can construct in polynomial time a tile set , relations , and sets , with the already fixed parameter written in unary, together with a bijection such that:
- the initial configuration is mapped to the unique initial row;
- the first tile records whether the configuration is existential, universal, accepting, or rejecting; and
- for every non-accepting and every ,
Horizontal encoding. To prove the claim, encode a configuration as a word of length over the tape alphabet, with one distinguished head position. The tile at position records the three-cell window consisting of positions , with entries in . At the two boundaries, a missing neighbouring cell is replaced by the left endmarker or the right endmarker , respectively. The centre of every tile is a genuine tape symbol, and membership in and requires the corresponding boundary pattern. The tile also records the current state, copied into every tile, and a head-position tag from . If the unique head is at position , the intended tag at position is when , when , and when . Thus the intended sequence of tags has the form The relation enforces this pattern locally. Besides requiring successive windows to overlap exactly and the copied states to agree, it permits only the following pairs of tags on horizontally adjacent tiles:
Moreover, contains only tiles whose tag is or , whereas contains only tiles whose tag is or . The allowed adjacent pairs forbid two head tags and also forbid passing directly from to . The right boundary excludes an all- row, and the left boundary excludes an all- row. Hence every legal row has exactly one distinguished head position.
Add a deterministic horizontal position component with states which labels cells individually and then remains in a tail state; determines this component throughout every legal row, and fixes its initial value. Cells are the input positions, while cell marks the start of the blank tail in the initial configuration. The inequality ensures that all these distinguished positions fit into the row. The position component itself places no restriction on tape symbols outside the initial state. In the fresh initial state , restrict the permitted tiles so that the first cells spell , the head is in its initial position, and all remaining cells are blank. For every other state, all well-formed configurations are permitted. Exact window overlap and the boundary conditions now show that the legal rows are precisely the encodings of the configurations in . This proves the existence of the bijection , and it also makes the encoding of the unique initial row. Let consist of the left-boundary tiles carrying . The leftmost tile carries the copied control state, so the existential, universal, accepting, and rejecting states define a partition of , where rejecting states are placed in .
For an interior head position, the three tiles centred immediately around the head are illustrated in Figure 2; the deterministic position component is omitted.
window state , tag \mathsf{before}$$\rho(h)window state , tag \mathsf{head}$$\rho(h+1)window state , tag \mathsf{after}$$H$$H
Figure 2. Assuming , three horizontally consecutive tiles , where is the legal row encoding a configuration whose head is at position . Here and . At a boundary head position, the missing neighbouring tape symbol is replaced by the corresponding endmarker. A tile stores an overlapping three-cell tape window, the copied state , and its head-position tag; checks adjacent overlap and horizontal consistency.
Vertical compatibility. Since every transition moves the head by at most one cell, its effect can be checked locally using the scanned cell and its two neighbours. We define to consist precisely of the pairs of source and target tiles satisfying the conditions described below. The relation compares tiles at the same position and requires their deterministic position components to agree. On the head-position tags it never permits either of the pairs and Suppose that legal source and target rows have their heads at positions and , respectively. If , then position has vertical tag pair ; if , then position has vertical tag pair . The two exclusions therefore imply
For an accepting source state, contains no outgoing pair. Accepting rows are winning, so condition (NF3) imposes no successor requirement on them. For a rejecting source state, we let require equality of the source and target data, thereby implementing the identity successor fixed above. Suppose henceforth that the source state is non-halting. At the source-head position, sees the current state and the tape symbol under the head, and hence determines the unique totalized transition with label . Let be its head displacement, where a prescribed outward move at a boundary has displacement . At the source-head position, requires the target tag to be , , or according as , respectively. Together with , this forces .
At the source-head position, also checks the symbol written there and the new state. At every other position it requires the centre tape symbol to remain unchanged. Exact window overlap assembles these centre-symbol requirements into the target tape word, while horizontal compatibility in the target row propagates the copied new state through the entire row. The boundary endmarkers make the effective displacement visible at the two ends. Thus these local conditions implement the totalized successor map defined above. Consequently need not be the graph of a function on individual tiles, but it induces the graph of the function on legal rows. This proves (10) and condition (NF3) follows: since is onto the legal rows, every non-winning legal row is for a unique non-accepting ; closure of gives , and (10) says that is the unique legal row pointwise -related to .
Size and correctness. The tile set and all compatibility relations of have size polynomial in , while its width is specified succinctly by , meaning that the actual width is . Hence is a polynomial-time many-one reduction. Under the bijection , every labelled transition from a non-halting configuration corresponds to the unique transition between the associated legal rows. Accepting configurations correspond to winning rows, while rejecting configurations are replaced by UP-owned identity loops. This modification preserves the winner. Therefore
Since was an arbitrary language in 2ExpTime, the binary exponential corridor game is 2ExpTime-hard. ∎
5. The lower bound for unbounded arity
We use the normal form from Section 4 to translate the game rules into a Horn sentence. Binary branching lets one represent an EP choice by choosing one of two Horn rules, and a UP choice by one Horn rule containing exactly two successors. Moreover, the label must determine a unique legal successor from every non-winning legal row: at a UP row, the Horn rule certifies one winning successor for each label, which covers all possible moves precisely because of this uniqueness. A vertical step check alone verifies only pointwise compatibility; legality of its endpoints is established separately in the strategy-extraction proof. Marking ownership and acceptance in the first tile lets the row scanner select the appropriate rule. In the games produced by Lemma 4.1, the two identity successors of a rejecting row turn rejection into an infinite play, which is winning for UP.
5.1. The signature and binary addresses
We now translate a game into a Horn sentence. The construction is a streamlined version of the binary-counter mechanism from [9, proof of Theorem 6]. Besides unary symbols and binary symbols , the signature contains an -ary symbol for every . An atom says that the row represented by contains at address . The binary relation distinguishes the two elements used as bits. We include the complete Horn clauses
For a list of variables, put
The last conjunction includes the loops , which we retain for uniformity. These diagonal conjuncts are not needed for completeness. Even if they were omitted, a retained atom could still require a ground loop when an assignment identifies the distinct variables . The contribution of to the premise Gaifman graph contains every edge among its variables except . Fix variables for the two bits, and write and . For and , define
These are the two sides of a binary increment in which position flips from to .
5.2. Row and transition scanners
For introduce an -ary scan relation and a -ary relation . For every include the seed rule
For every and include
and, for every , include
The transition scanner is analogous. For introduce an -ary relation and a -ary relation . For include
and, for every and , include
Finally, include
5.3. Winning strategies
It remains to recognize winning strategy trees. Introduce a -ary relation . The following rules mirror the induction defining the sets in (9):
For each , include
For UP rows, include
We retain the padding in (20) for uniformity, although its -atom already covers all six variables for completeness and the extraction invariant. Removing it would strengthen the clause on arbitrary structures. In (21), padding is needed to cover the pair . Finally, include
Let be the conjunction of all the displayed clauses.
5.4. Correctness of the reduction
For the next lemma, keep fixed, assuming (11) and (12), and take closure under the scanner rules (13)–(18). For each scanner considered, fix its poles, row identifier(s), and bit elements, and assume that its scan and output relations ( or ) are initially empty at these parameters. Other parameter slices are unrestricted.
Lemma 5.1.
The scanner closure has the following properties:
(i) is derived if and only if holds and the -facts at encode a legal row whose first tile belongs to . (ii) is derived if and only if holds and the -facts at encode rows whose corresponding tiles are -related.
Tile functionality makes each encoded row unique.
Proof.
Every recursive scanner rule preserves its parameter tuple, and finishing rules preserve these parameters as well. Thus facts in other slices do not affect the computation in the fixed slice. Any derived fact in an initially empty slice therefore traces back to a seed with the same parameters, whose premises include and the relevant padding. If either condition fails, no output fact is derived and the claimed equivalence is immediate. Assume henceforth that both conditions hold.
Clause (11) and imply . Write for the binary address of , with the most significant bit first. Every scan tuple derived in the fixed parameter slice has a binary address: a seed starts at , and a step copies its prefix from the preceding scan tuple. Every non-maximal binary address has a unique representation , where is the position of its rightmost . Replacing it by increments the address by one. No step applies at the maximal address.
Within the fixed row-scanner slice, induction on proves that belongs to the closure if and only if there are tiles such that
- holds for ,
- for .
At address zero, only a seed can apply. At a positive address, the only possible step comes from its immediate predecessor. Tile functionality ensures that the tile tested there agrees with the final tile of the previous prefix; the step therefore extends that prefix consistently. Conversely, a compatible prefix supplies the premises of the unique increment step. The finishing rule checks the right boundary, proving (i).
For the transition scanner, fix both row identifiers as well as the poles and bit elements. The analogous induction says that the scanner reaches precisely when both rows have tiles at every address through and the corresponding tile pairs belong to . The finishing rule proves (ii). ∎
The transition scanner does not check horizontal compatibility or boundary conditions. Thus a -fact need not connect legal rows. If both endpoints are legal and the source is non-winning, however, Lemma 5.1(ii) and condition (NF3) identify the target as the unique -successor of the source.
All clauses above except the two scanner seed schemes are complete. Indeed, each recursive or finishing scanner clause contains a scan atom involving all of its variables. The winning-leaf and final clauses each contain an atom involving all of their variables, while the EP and UP clauses are complete because of their high-arity atoms and the displayed padding. A seed premise is complete except for the single missing edge .
Lemma 5.2.
Let induce the same substructure on , and let . Close under all clauses of with a positive head. Every newly added tuple has its first two entries in opposite sides outside , and all remaining entries in . If the premise of (22) becomes true using a newly added tuple, then the common -facts unfold to a finite winning strategy tree for EP whose root is an initial row.
Proof.
For the first assertion, we proceed by induction on the closure stage.
A new seed tuple cannot have a pole in . Indeed, suppose first that exactly one pole lies in , and choose the side containing the other pole. Every remaining variable is joined by a padding atom to the outside pole, and hence lies in that side. If both poles lie in and some remaining entry lies outside , choose the side containing such an entry; the padding atoms between all remaining entries put all of them in that side. If all remaining entries lie in , choose either side. In every case each premise atom belongs to the chosen side, using agreement of the induced structures for tuples contained in . Since the side satisfies the seed clause, the head would already belong to , a contradiction. The two poles cannot lie outside on the same side for the same reason: each remaining variable is joined to either pole. Hence the poles lie in opposite sides outside . The padding atoms connecting every remaining entry to both poles now force all remaining entries into .
In every non-seed rule, a new head requires a premise tuple outside : if every premise tuple belonged to , completeness would already put the head in . The symbols never occur in a head, so their interpretations do not change during closure. The new premise tuple must therefore belong to a scan, row, step, or relation, each of which carries the poles in its first two positions. It was added at an earlier stage, so the induction hypothesis fixes the two cross poles. In a recursive or finishing scanner rule, the scan premise contains every variable of the rule and, having these cross poles, lies outside . Its earlier-stage invariant places every data entry in . The same argument applies to the row premise in the winning-leaf rule. In an EP rule, the premise also carries both cross poles and hence lies outside ; its earlier-stage invariant covers all six variables of the rule. In a UP rule, the padding joins every data variable to both poles, forcing its value into . Thus every new head satisfies the asserted invariant.
It remains to extract the strategy. Fix the two cross poles of a newly derived tuple. No tuple already in can contain both poles, because every relation tuple of lies wholly in one side. Thus the slices of all scan, row, step, and strategy relations carrying these poles are initially empty, as required for Lemma 5.1. Since (11) and (12) are complete, they hold in by Lemma 2.1, and closure changes neither nor the . The scanner relations occur as heads only in (13)–(18), whose premises involve only scanner relations and the frozen relations . Consequently, full positive closure and closure under the scanner rules alone contain the same scanner facts. We use the “only if” directions of Lemma 5.1, which also supply the seed facts and padding.
We prove by induction on the first closure stage of each newly derived -tuple that its row identifier encodes a legal row and that EP has a finite winning strategy tree from that row. For (19), the premise supplies a legal winning row by Lemma 5.1(i); the strategy consists of one leaf. For (20), the premise supplies a legal EP row. The -premise from an earlier closure stage supplies a legal child row and a finite winning strategy from it. The premise gives pointwise -compatibility, so condition (NF3) identifies this child as the parent’s -successor. Attach the child’s strategy below the parent. For (21), the same argument gives the two legal successor rows and their finite winning strategies. Condition (NF3) ensures that these account for both possible moves of UP. Attaching both strategies proves the induction step, even if the two successors coincide.
Finally, if (22) becomes true using a new tuple, both of its premise tuples have the same cross poles and therefore neither was present in . The newly derived premise marks the root of the extracted strategy as initial. ∎
Lemma 5.3.
For every binary exponential corridor game in normal form,
Proof.
Suppose first that EP has a winning strategy. By the finite-strategy characterization following (9), EP then has a finite winning strategy tree. Put one element into a common structure for every node of this tree, together with two further elements , all chosen distinct. Add and all -facts describing the row at on . Interpret as the full relation on , including all loops. Let add an element with and for all , and let add an element with and for all . All scan and strategy relations are empty in the two sides, and all unmentioned facts are absent. Since neither side contains both a left and a right pole, no seed rule fires there; tile functionality and bit asymmetry hold by construction. Thus both sides are models.
The “if” directions of Lemma 5.1 apply with poles : and all required padding facts are present in the union. Thus the row and transition scanners derive all facts needed to follow the given strategy tree. Induction from its leaves using (19)–(21) derives at its initial root, and (22) derives . The diagram therefore has no amalgam, since these derivations transfer along the embeddings into any prospective amalgam, even one that identifies the poles.
Conversely, assume that EP has no winning strategy and take an arbitrary amalgamation diagram. By Lemma 2.1, its union satisfies all complete clauses. Close the union under the positive-head clauses. The closure is finite. The bit-asymmetry and tile-functionality constraints remain true, since their relations are unchanged, and all positive-head clauses hold at the fixed point. Clause (22) cannot already fail in the union, since its premise is complete and both sides are models. It cannot be violated after closure either: by Lemma 5.2, that would yield a finite winning strategy for EP. Hence the closure is a model of . The only added tuples have opposite outside poles, so the inclusions of and into the closure are embeddings. Since the closure has universe , their images intersect precisely in . The closure is therefore a strong amalgam. ∎
Proof of Theorem 1.2.
The sentence is an equality-free universal Horn sentence. Its largest relation has arity . It contains rules, each of length polynomial in the game instance, so the construction is polynomial. By Lemma 5.3, winning games map to failure of the AP and non-winning games map to SAP. Since deterministic 2ExpTime is closed under complement, Lemma 4.1 gives the lower bound. ∎
6. Conclusion
We have proved ExpTime-hardness of the amalgamation decision problem for universal Horn sentences of maximum relation arity three, and 2ExpTime-hardness when arities are unbounded. Both reductions produce equality-free sentences and distinguish classes with SAP from classes without AP. They therefore establish the same lower bounds for deciding strong amalgamation.
The proofs turn branching computations into obstructions to amalgamation. At arity three, Horn rules parse a tree between two poles, while an automaton simulation on one side detects accepted trees. With unbounded arity, tuples address exponentially wide rows and Horn rules assemble finite winning strategies. The binary corridor-game normal form supplies, from every non-winning legal row, exactly two labelled moves with unique legal successors, so a universal choice can be represented by a single Horn clause. In both cases, completeness of the remaining clauses and the pole invariant allow strong amalgams to be constructed directly by Horn closure.
The main question left open is whether the ADP for universal Horn sentences is decidable in arbitrary arity, or already at maximum arity three. A decision procedure for either fragment would have to control amalgamation diagrams in arbitrary input theories; the closure invariants proved here apply to the specific theories produced by the reductions.
It is also natural to ask whether the arity-three lower bound persists over a fixed relational signature. The first construction uses only one ternary symbol, but its unary and binary symbols depend on the tree automaton. Understanding which parts of that vocabulary can be fixed may help isolate the sources of complexity in Horn amalgamation.
AI assistance
The author used OpenAI’s ChatGPT Sol 6.1 and Anthropic’s Claude Opus 5.5 to help checking the proofs in the manuscript; the tools were also used to improve wording.
References
[1] Alessandro Artale, Luca Geatti, Nicola Gigante, Andrea Mazzullo, and Angelo Montanari, Complexity of safety and coSafety fragments of linear temporal logic, Proceedings of the AAAI Conference on Artificial Intelligence 37 (2023), no. 5, 6236–6244, Extended version: https://arxiv.org/abs/2211.14913v2.
[2] Roland Axelsson, Matthew Hague, Stephan Kreutzer, Martin Lange, and Markus Latte, Extended computation tree logic, Logic for Programming, Artificial Intelligence, and Reasoning (LPAR 2010), Lecture Notes in Computer Science, vol. 6397, Springer, 2010, Extended version: https://arxiv.org/abs/1006.3709, pp. 67–81.
[3] Manuel Bodirsky, Simon Knäuer, and Florian Starke, ASNP: A tame fragment of existential second-order logic, Beyond the Horizon of Computability (CiE 2020), Lecture Notes in Computer Science, vol. 12098, Springer, 2020, Preprint: https://arxiv.org/abs/2001.08190, pp. 149–162.
[4] Manuel Bodirsky, Jakub Rydval, and André Schrottenloher, Universal Horn sentences and the joint embedding property, Discrete Mathematics & Theoretical Computer Science 23 (2022), no. 2, 1–15.
[5] Ashok K. Chandra, Dexter C. Kozen, and Larry J. Stockmeyer, Alternation, Journal of the ACM 28 (1981), no. 1, 114–133.
[6] Bogdan S. Chlebus, Domino-tiling games, Journal of Computer and System Sciences 32 (1986), no. 3, 374–392.
[7] Hubert Comon, Max Dauchet, Rémi Gilleron, Florent Jacquemard, Denis Lugiez, Sophie Tison, and Marc Tommasi, Tree automata techniques and applications, 1999, Version of 14 October 1999. https://www.eecs.harvard.edu/~shieber/Projects/Transducers/Papers/comon-tata.pdf.
[8] Jakub Rydval, Using model theory to find decidable and tractable description logics with concrete domains, Ph.D. thesis, Technische Universität Dresden, 2022, https://tud.qucosa.de/id/qucosa%3A79907.
[9] by same author, Homogeneity and homogenizability: Hard problems for the logic SNP, 51st International Colloquium on Automata, Languages, and Programming (ICALP 2024), Leibniz International Proceedings in Informatics, vol. 297, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024, pp. 150:1–150:20.
[10] by same author, Finitely bounded homogeneity turned inside-out, Journal of Mathematical Logic (2025), 2550017, Expanded version of the ICALP 2024 paper; result numbering refers to https://arxiv.org/abs/2108.00452v13.
[11] Helmut Seidl, Deciding equivalence of finite tree automata, SIAM Journal on Computing 19 (1990), no. 3, 424–437.