Manuscript Offprint
arXiv:2610.19940A Non-Dichotomy for CSPs of Stable -Categorical Structures
A Non-Dichotomy for CSPs of Stable -Categorical Structures
Manuel Bodirsky ☒ id
TU Dresden, Dresden, Germany
David Bradley-Williams ☒ id
TU Dresden, Dresden, Germany
Czech Technical University in Prague, Prague, Czech Republic
Charles University, Prague, Czech Republic
Ehud Hrushovski ☒
University of Oxford, Oxford, United Kingdom
Christoph Spiess ☒ id
TU Wien, Vienna, Austria
Abstract
We construct countable, stable, -categorical structures with at most two binary relations whose CSPs exhibit three complexity regimes: NP-complete, decidable but not in NP, and undecidable. The templates arise from a controlled Hrushovski construction of stable -categorical graphs for suitable irrational parameters . Some of these graphs have NP-complete CSPs. Expanding the graphs by the non-edge relation turns age membership into a restriction of the CSP. For every time-constructible bound , there is such an expansion whose CSP is decidable but not in DTIME( ). For an explicit parameter , the restriction to complete instances belongs to coNP and the full CSP belongs to . Separating the ages of the using graphs with large girth and prescribed density yields distinct CSPs of these expansions, all but countably many of which are undecidable.
2012 ACM Subject Classification Theory of computation → Finite Model Theory; Theory of computation → Problems, reductions and completeness; Theory of computation → Computability
Keywords and phrases Constraint satisfaction problem, -categoricity, stability, Hrushovski construction, undecidability, computational complexity
Funding Funded by the European Union (project POCOCOP, ERC Synergy grant No. 101071674). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them. The research of the second author has also been supported by project 25-15571S of GAČR. The last author's contribution to this work was funded within the DOC program of the OeAW.
Acknowledgements The authors thank Bertalan Bodor, David Evans, and Paolo Marimon for discussions on the topic. The core of the proof of Lemma 18 is adapted from an argument that was discovered, in discussion with ChatGPT, during the Bachelor thesis project of Noah Pahlke at the TU Dresden, where the statement of Theorem 2 is also deduced.
AI disclosure. OpenAI's ChatGPT was used for proof search and initial LaTeX drafting; it contributed the ideas of using high-girth graphs for the separation argument, applying PCSP hardness results to prove NP-hardness, and using the Kostochka–Yancey bound on the number of edges in critical graphs to establish finite homomorphic equivalents. Many of the other ideas, e.g., the original idea to reconstruct the parameter from the age, came from the authors, and some emerged in discussions with ChatGPT. The authors reviewed and revised all text produced by LLMs; almost all of the original latex text generated by AI has been changed in the process of revising the document. The authors verified the mathematical content, claims, citations, and final text and take full responsibility for the paper.
A Non-Dichotomy for Stable -Categorical CSPs
1 Introduction
A constraint satisfaction problem is specified by a fixed relational structure in a finite relational signature, called the template. The input is a finite structure in the same signature, and the question is whether there is a homomorphism . This problem is denoted by CSP( ). All templates considered in this paper have finite relational signature. For finite templates the dichotomy theorem states that each such problem is either in P or NP-complete [33], announced independently by Bulatov [7] and by Zhuk [32]. For unrestricted infinite templates, by contrast, every computational decision problem is polynomial-time Turing equivalent to a CSP, so essentially arbitrary computational behaviour can occur [3, Theorem 1]. A central aim of infinite-domain CSP theory is therefore to identify structural hypotheses that retain enough finiteness for classification while still covering genuinely infinite domains.
The most established such hypothesis is -categoricity. By the theorem of Ryll-Nardzewski-Engeler-Svenonius (see, e.g., [19, Theorem 7.3.1]), a countable structure is -categorical if and only if it has only finitely many automorphism orbits on n-tuples for each fixed n. Equivalently, its first-order theory has only finitely many n-types over the empty set [19, Theorem 7.3.1]. Thus, there are only finitely many possible solutions for each input size (up to symmetry), although the domain itself is infinite. The motivation of this restriction is that the so-called universal-algebraic approach, which led to the mentioned dichotomy theorem for finite-domain CSPs, can also be applied to -categorical templates [5] . However, there are -categorical directed graphs such that CSP( ) is undecidable [5]. Assuming , there are also -categorical directed graphs such that CSP( ) is coNP-intermediate, i.e., in coNP, but neither in P nor coNP-complete [3]. The following question is still open.
▶ Question 1. Is there an -categorical structure with a finite relational signature such that CSP( ) is NP-intermediate, i.e., in NP, but neither in P nor NP-complete?
One major research programme narrows the class of -categorical templates by focusing on first-order reducts of finitely bounded homogeneous structures. A first-order reduct of is a structure which has the same domain as and all its relations are first-order definable in . A structure is homogeneous if every isomorphism between finite substructures extends to an automorphism, and finitely bounded if its age, i.e., the class of all finite structures which embed into it, is characterised by finitely many forbidden finite induced substructures. This class extends finite-domain CSPs and is the setting of the infinite-domain dichotomy conjecture [6, Conjecture 1.2]. Its scope includes all stable homogeneous structures with finite relational signature studied by Lachlan and Cherlin–Lachlan [25, 9], as well as all temporal templates, i.e., structures first-order definable in , which include unstable structures, and their CSPs satisfy a complexity dichotomy [4, Theorem 50].
This, however, is only one way to restrict the full class of -categorical structures. A different and complementary question is whether intrinsic model-theoretic tameness conditions, imposed directly on arbitrary -categorical templates, force algorithmic regularity. From a model-theoretic perspective, the first candidates are NIP and stability. NIP excludes the uniform coding of arbitrary finite set systems, whereas stability excludes infinite order patterns; the precise definitions are recalled in Section 2 (stability implies NIP). Since such patterns are natural mechanisms for encoding computational complexity, it is reasonable to ask whether an -categorical NIP, or even stable, template must at least have a decidable CSP.
We answer this question negatively in a strong form. Even stable -categorical templates in a finite binary signature can have undecidable CSPs. Thus, stability—and therefore also NIP—does not by itself provide an alternative to the structural restrictions in the finitely bounded homogeneous programme. Our examples retain finite orbit structure at every arity and exclude definable order, but their CSPs can nevertheless encode noncomputable behaviour. Our first result is model-theoretic and combinatorial.
▶ Theorem 2. There are countable stable -categorical graphs with pairwise distinct ages.
The established controlled Hrushovski machinery already supplies stable -categorical graph constructions [20, 18, 14]. The new point in Theorem 2 is the pairwise separation of their ages. This strengthens pairwise non-isomorphism, since non-isomorphic structures can have the same age. The distinction is crucial for the CSP consequences: the complete instances used below encode precisely age membership and hence also separate the CSPs.
The graphs are obtained by a controlled Hrushovski construction introduced in [20]. For an irrational real parameter we use the predimension
For example, the computational complexity of CSP( ) is captured by the set of polymorphisms of , up to logspace reductions (see, e.g., [2]).
A Non-Dichotomy for Stable -Categorical CSPs
on finite graphs, where is the number of vertices and the number of edges. Using a slowly growing control function , we construct a countable graph whose age consists exactly of the finite graphs satisfying
We choose parameters for which tends to infinity, ensuring that the size of a finite set's closure is bounded in terms of its size, which yields -categoricity. To distinguish the ages associated with different parameters, we construct separating graphs using Erdős's theorem that girth and chromatic number can simultaneously be arbitrarily large [12]. Although Erdős's original proof is probabilistic, subsequent work has provided several constructions, including explicit ones, surveyed in [26].
The CSP consequence concerns a binary definable expansion. For a graph , let be the expansion of by the non-edge relation on distinct pairs. A complete instance of has symmetric, irreflexive relations and and assigns exactly one of them to each unordered pair of distinct vertices. Any homomorphism from such an instance is injective and preserves both edges and non-edges, so complete instances test exactly membership in . Consequently, distinct ages give distinct CSP languages.
▶ Theorem 3. There are pairwise distinct CSPs of countable stable -categorical structures in a signature consisting of two binary relations. All but countably many of these CSPs are undecidable.
Indeed, there are only countably many decidable languages, because Turing machines have finite descriptions. Thus, the continuum-sized family in Theorem 2 immediately yields continuum many undecidable CSPs.
We also give an effective refinement. It shows that the phenomenon is not restricted to noncomputable templates: among computably presented parameters one obtains decidable CSPs of arbitrarily high deterministic time complexity. We encode an instance with variables by one matrix for each binary relation, giving bit length for our fixed signatures. Time lower bounds are measured in . DTIME() denotes the class of problems decidable in deterministic time , and is time-constructible if a deterministic machine outputs on input within steps. A real number is computable if an algorithm, on input , outputs a rational number satisfying .
▶ Theorem 4. For every time-constructible with , there is a computable real parameter such that is stable and -categorical, is decidable, and
Here the input-size parameter n is the domain size of the instance. The lower bound already holds on complete instances.
For parameters admitting polynomial-time comparison with rationals of bounded numerator and denominator, we also obtain a complementary upper bound: the restriction to complete instances belongs to coNP, while the full CSP belongs to . Pantano's construction [27, Appendix B] provides an explicit such parameter; see Theorem 24 and Corollary 25.
For the graph reducts, we prove that is NP-hard for every , and is NP-complete throughout (Theorem 28 and Proposition 29). Consequently, for all but countably many , adding the definable non-edge relation changes an NP-complete CSP into an undecidable one. Hence, stable -categorical templates in binary signatures already exhibit three unconditionally distinct algorithmic regimes.
▶ Corollary 5 (An unconditional non-dichotomy). There are countably infinite stable -categorical structures in signatures with at most two binary relations whose CSPs are, respectively, NP-complete, decidable but not in NP, and undecidable. In the middle case, the time lower bound used to exclude NP is measured by the number of variables.
Moreover, there is some computable irrational such that the templates in the first and second case can be chosen to be and , respectively.
Outline
Section 2 recalls the background. Section 3 produces stable -categorical graphs by controlled Hrushovski constructions (details in Sections A–C). Section 4 separates ages uniformly on parameter intervals using graphs of high girth and prescribed density. Section 5 links complete instances of non-edge expansions to age membership and constructs decidable CSPs beyond prescribed time bounds using nested intervals. Section 6 derives complexity results for graph reducts from hardness for promise CSPs and homomorphic equivalence to finite cliques.
2 Preliminaries
Our construction uses embeddings to control the ages of the templates, while their CSPs use homomorphisms. We first fix these notions, then recall the tameness conditions and the amalgamation framework used below.
We use and write for non-decreasing convergence.
Structures and maps
We work in finite relational signatures. We write for the domain of and for its cardinality. For structures and in the same signature , we call a substructure of , written , if and for every -ary relation . Thus, substructures are induced. We identify domain subsets with the induced substructures they determine. For substructures of a common structure, unions, intersections, and differences are taken on their domains and equipped with the induced relations.
For two structures and in the same signature , a homomorphism from to is a map that preserves every relation: for every -ary and every , we have . We write if there exists a homomorphism from to . An embedding is an injective homomorphism that additionally satisfies . An isomorphism is a surjective embedding. An automorphism is an isomorphism from a structure to itself; denotes its automorphism group. The problem CSP( ) asks whether a finite input structure in the same signature admits a homomorphism to [2, Definition 1.1.1].
For two structures and on the same domain with signatures and , respectively, we say is an expansion of and, conversely, is a reduct of , if and for every . An expansion is first-order definable if every added relation is first-order definable without parameters in the reduct. The age of a structure , denoted Age( ), consists of the finite induced substructures of , up to isomorphism.
Unless explicitly called a directed graph (or digraph), a graph is simple and undirected, represented by a symmetric, irreflexive binary relation E. CSP input structures may have loops and asymmetric binary relations. For our graph templates and their non-edge expansions, a loop in any input relation makes the instance unsatisfiable, while adding the converse of every constraint leaves its homomorphisms unchanged. For a graph , let be
A Non-Dichotomy for Stable -Categorical CSPs
its vertex set and its set of unordered edges. We write and . The term subgraph also allows edge deletions; we specify when such a subgraph is induced. The density of is . We write for the chromatic number of .
Model-theoretic tameness
A countable structure is -categorical if its theory has exactly one countable model up to isomorphism. By Ryll-Nardzewski–Engeler–Svenonius, this is equivalent to having finitely many orbits on for every [19, Theorem 7.3.1], where two tuples lie in the same automorphism orbit if an automorphism maps one to the other componentwise.
A theory is stable if no formula has the order property: there are tuples and in a model of the theory such that holds exactly when . A formula has the independence property if, for every , there are tuples and , for all , in a model of the theory, such that holds exactly when . A theory is NIP if no formula has this property. It is well-known and easy to see that stability implies NIP (see Tent-Ziegler [30, Exercise 8.2.2]). We say that a structure is stable (respectively, NIP) if its first-order theory is stable (respectively, NIP).
▶ Remark 6. Expansions by relations that are first-order definable without parameters preserve both -categoricity and stability. Such an expansion has the same automorphism group, so -categoricity is preserved by Ryll-Nardzewski–Engeler–Svenonius. Every formula in the expansion translates to a formula in the reduct, so the expansion cannot introduce the order property.
2.1 Constructing countable structures
We briefly recall the variant of Fraissé amalgamation that we employ for constructing the countable CSP templates, following the presentation of Evans [14, Section 3], making use of the variant of Fraissé's theorem given in [13, Theorem 2.10], similar to that stated in [24, Theorem 1.5].
Let be a class of finite structures in a fixed finite relational signature. The class is hereditary if every substructure of a member of also belongs to . Let be a reflexive and transitive relation on , preserved by isomorphisms, such that implies . If we choose to be the (induced) substructure relation, then we recover the classical theory of Fraissé amalgamation. We call a strong substructure of if . We assume the following convexity condition:
This is condition (N3) in [14].
An embedding is strong if . The joint embedding property means that any two members of strongly embed into a common member. The amalgamation property means that, for strong embeddings between members of , there are and strong embeddings such that ; the resulting structure and maps form an amalgam.
We call an amalgamation class if is hereditary and closed under isomorphisms, has countably many isomorphism types, and has the joint embedding and amalgamation properties. If , a finite substructure is strong in , written , if for every finite substructure containing . An embedding of a finite structure into is strong if its image is strong in .
Convexity and transitivity imply that
whenever and are finite. Indeed, given a finite substructure containing , let . Then since is strong in , so by transitivity, and hence by convexity.
▶ Theorem 7 (Amalgamation limit; see [13, Theorem 2.10] and [14, Theorem 3.2]). Let be an amalgamation class containing structures of arbitrarily large finite size. Let be reflexive, transitive, and satisfy the convexity condition. Then there exists an, up to isomorphism, unique countably infinite structure , called the amalgamation limit of , satisfying:
(i) Age(M) = K;
(ii) Every finite subset of M is contained in a finite strong substructure of M;
(iii) (Extension property) For all with , every strong embedding extends to a strong embedding .
Moreover, M satisfies the following weakening of homogeneity: every isomorphism between finite strong substructures of M extends to an automorphism of M.
Amalgamation limits are variously called generic structures or Fraissé limits in the literature. The theorem here is the version of Fraissé amalgamation with strong embeddings presented in [13, Theorem 2.10] and [14, Theorem 3.2]. We recall its proof in Section A. These results can also be viewed as instances of more general categorical versions of Fraissé's theorem, where limits arise as colimits of chains of finite structures, with strong embeddings as morphisms; see, e.g., [8, 10, 11, 22, 23]. All of the above generalise the theorem of Fraissé [15, 16]; see, e.g., [17, Chapter 11] and [19, Theorem 7.1.2].
Homogeneity with respect to strong substructures yields -categoricity provided every finite tuple lies in a strong substructure whose size is bounded in terms of the tuple length. We shall use the following criterion.
▶ Lemma 8 (Bounded strong substructures). Let be the amalgamation limit of in a finite relational signature. Suppose there is a function such that, for every , each subset is contained in a strong substructure with . Then is -categorical.
3 Controlled predimension classes
This section specialises the established framework of Hrushovski constructions with the graph predimension and parameter-dependent control functions used below. We include the details for completeness and convenience of the reader. The new ingredients begin with the uniform separation of the resulting ages in the next section and its CSP applications. Closely related constructions appear in [18, 31, 27, Section 3, Section 5, and Section 5.1, respectively]. All these constructions are based on Hrushovski's in [20]. We follow the presentation given by Evans [14, Section 3]. Proofs of the standard approximation, strongness, amalgamation, and closure calculations in this section are collected in Section B.
For a real parameter and , define the distance from to its best rational approximation from below with denominator at most N by
A Non-Dichotomy for Stable -Categorical CSPs
Put
and extend linearly between consecutive integers. We call the control function. The sequence is positive and non-increasing. The elementary properties needed below are collected next and proven in Section B.
▶ Lemma 9 (Properties of ). For every real and :
(i)
(ii) is continuous, strictly increasing, and concave;
(iii) , and hence .
Since is increasing, it is unbounded exactly when ; we use the latter formulation below. Given a real , define the predimension of a finite graph by
For finite induced subgraphs of a common graph, direct edge counting gives the submodularity inequality
with equality when there are no edges between and ; see [14, Lemma 3.7].
▶ Definition 10. For any fixed real , let be the class of finite graphs such that, for every non-empty induced ,
Given , write if
In this case we say that is closed in .
Deleting edges preserves membership in : on every vertex subset, it can only increase the predimension, while leaving the right-hand side of (4) unchanged. Thus, (4) also holds for subgraphs that are not induced.
The proof of the following is given in Section B.
▶ Lemma 11 (Properties of ). The relation is reflexive and transitive. Moreover, if and , then .
Consequently, finite intersections of subgraphs closed in are closed in , and is closed in itself. For finite let denote the unique smallest closed subgraph of containing .
3.1 Free amalgamation
The free amalgam of and over their common induced subgraph has vertex set and edge set . Thus, there are no edges between the two parts outside . A free-amalgamation class is an amalgamation class in which this free amalgam is always an amalgam for strong embeddings. The proof of the following is given in Section B.
▶ Lemma 12. For every irrational , the pair is a free-amalgamation class.
In the following, we denote by the amalgamation limit of in the sense of Theorem 7.
3.2 Bounded closures and stability
The following lemma bounds the predimension of the closure defined after Lemma 11. Its proof is given in Section B.
▶ Lemma 13 (Predimension of closure). for every finite .
Suppose that , so that is defined on . For nonempty , Lemma 13 and the control inequality give ; for , the closure is empty. Consequently,
This is a uniform bound depending only on . By Lemma 8, the amalgamation limit is therefore -categorical.
Free amalgamation with respect to strong embeddings does not itself imply stability. However, when stability of these structures is well established; a proof can be found in [18] (see the first paragraph of Section 6 with the proof of stability in Section 4 culminating in Theorem 14), and also follows from Wagner's dimension-theoretic analysis [31, Section 3 and Example 5.3]. For completeness, we give an account of the dimension calculus and type-counting argument in Section C, following Wagner's dimension-theoretic approach to stability for predimension generics.
▶ Proposition 14. Suppose that is irrational and . Then is -categorical and stable.
Proof. The preceding closure argument gives -categoricity. Stability is proved in Theorem 33.
4 A continuum of distinct ages
It remains to determine continuum many real parameters for which and to show that the corresponding graphs have pairwise distinct ages.
4.1 Many admissible parameters
Evans sketches a Baire-category argument showing that parameters for which diverges form a comeager set [14, Example 3.22], also mentioned by Wagner [31, Example 5.3], while Pantano in [27, Appendix A] gives such details for a related controlled predimension construction in a countably infinite language. For the uniform and effective interval arguments in our complexity analysis, we need the following explicit strengthening; a full proof suited to our conventions is given in Section D.
▶ Lemma 15 (Uniform density consequence). For every nonempty open interval and every , there are and a nonempty rational open interval with such that
A Non-Dichotomy for Stable -Categorical CSPs
For , let be the union of all rational open intervals for which there is an integer such that
By Lemma 15, every is open and dense.
We shall use the following explicit strengthening of the usual Baire conclusion; its standard interval-tree proof is recalled in Section D.
▶ Lemma 16 (Intersection of dense open sets). If are dense open subsets of a non-empty open real interval , then contains a subset homeomorphic to the Cantor space , the space of infinite binary sequences with the product topology, where carries the discrete topology. In particular, the intersection has cardinality .
By Lemma 16, the set of admissible parameters
has cardinality ; here the irrationals are themselves the intersection of countably many open dense sets. For every , the partial sums exceed every integer, and hence . Therefore, Lemma 12 and Proposition 14 apply.
4.2 The switch lemma
The girth of a graph is the length of its shortest cycle, with girth for a forest. Erdős proved that graphs can have simultaneously arbitrarily large girth and chromatic number [12]. That was proven with a probabilistic construction. Subsequent work has produced such graphs by a variety of methods, including explicit constructions; see [26] for a survey. We use the following density consequence; the argument is given in Section E.
▶ Lemma 17 (High girth and density). For every integer , every real , and every , there is a finite graph with at least vertices, girth greater than , and .
The graph obtained in the following lemma is the central separating device.
▶ Lemma 18 (Switch lemma). Let be real numbers such that . There is a finite graph such that
(i) for every ;
(ii) for every .
A graph satisfying (i) and (ii) is called a switch graph for . It may be chosen with , arbitrarily large girth, and arbitrarily many vertices.
Proof. Let , and set . Choose so large that
By Lemma 17, there are arbitrarily large graphs of girth greater than with . Choose a subgraph of , not necessarily induced, satisfying , such that no proper subgraph obtained by deleting vertices, edges, or both satisfies this inequality. Every proper subgraph of then satisfies , and
Moreover, as , we have , so contains a cycle. Its girth is greater than , and therefore .
For , we have , so , hence, .
Now let and take any nonempty induced subgraph . Put . If contains a cycle, then and minimality gives , including the case . Since , the choice of gives
If is acyclic, then . The rational approximation gives for every , so and
Thus . Increasing the initial choice of gives switch graphs with girth and number of vertices larger than any prescribed bounds.
A switch graph for rational inputs can be found effectively. Take and an integer satisfying and . Since decreases, the required harmonic estimate holds for all . Enumerate finite graphs in increasing order of their number of vertices and, for each fixed number of vertices, their number of edges, until finding one with girth greater than and density greater than . Every proper subgraph would have appeared earlier, up to isomorphism, if it satisfied the same density condition. Thus every proper subgraph of the resulting graph satisfies . Lemma 17 guarantees termination. Alternatively, it may result in a faster implementation to use an explicit construction of graphs with high chromatic number and high girth graphs, c.f. [26].
The following proposition shows that one can recover the parameter from the age of .
▶ Proposition 19 (Recovering the parameter). For every ,
Proof. If , then , so the supremum is at most . Conversely, fix a rational number with . Choose rationals . A switch graph for belongs to and satisfies . Letting proves the reverse inequality.
Proof of Theorem 2. For every , the graph is stable and -categorical by Proposition 14. If , then Proposition 19 gives , so the ages are pairwise distinct. Since , the result follows.
5 Constraint satisfaction consequences
For , expand by the relation
and write . This is a structure in a finite binary signature. Since is first-order definable in , the expansion is again stable and -categorical by Remark 6.
A Non-Dichotomy for Stable -Categorical CSPs
Given a finite graph , let be the -structure on defined by and . We call such instances complete.
▶ Lemma 20 (Complete instances detect age membership). For every finite graph and every ,
Irreflexivity forces injectivity, and preserving both relations gives an induced embedding; see Section F for details. Combining this observation with Proposition 19 shows that the CSP language itself remembers the parameter already on complete inputs.
▶ Corollary 21 (Recovering the parameter from the CSP). For every ,
In particular, implies .
Proof. By Lemma 20, the complete inputs accepted by the CSP are precisely the structures with . The equality is therefore Proposition 19. Distinct values of the displayed supremum force distinct languages.
Having obtained pairwise distinctness of the CSPs, we are now ready to prove Theorem 3.
Proof of Theorem 3. By Theorem 2, the family contains countable stable -categorical graphs with pairwise distinct ages. Since is first-order definable from , Remark 6 shows that every is again stable and -categorical. Corollary 21 shows that the corresponding CSPs are pairwise different. Hence the family contains distinct languages. Only countably many languages are decided by Turing machines, so all but countably many members of the family are undecidable.
For arbitrary instances, homomorphisms may identify unconstrained variables. The following finite characterisation isolates this extra freedom; its proof is given in Section F.
▶ Lemma 22 (Quotients). Let be an instance of . For an equivalence relation on , let the quotient graph be the simple undirected graph whose vertices are the -classes and whose edges join exactly the distinct classes linked by an -constraint in either direction in . Then if and only if there is such an equivalence relation satisfying:
(i) no ordered pair in or in is contained in ;
(ii) there are no and such that and either or ;
(iii) .
We call consistent if it satisfies (i) and (ii).
For , , and , write
Thus, is the largest rational below with denominator at most .
▶ Lemma 23. For every computable , is decidable.
Proof. Since is computable and irrational, comparison with any rational is decidable by refining an approximation to until its error interval excludes that rational. Choose an integer . For each , a finite search over fractions with and therefore computes exactly, and hence is an exactly computable rational. A finite graph belongs to precisely when for every nonempty induced . These finitely many rational tests decide age membership. Enumerating the consistent quotients in Lemma 22 then decides CSP().
▶ Theorem 24 (A polynomial-hierarchy upper bound). Let . Suppose that there are an integer , a polynomial , and a deterministic algorithm which, given in unary and integers such that
decides whether in time at most . Then the restriction of to complete instances belongs to coNP, and .
Proof. Let be the number of vertices in the input instance. For each integer with , enumerating the fractions with and , and using the assumed comparison algorithm, one can compute in time polynomial in the numerical value of . Since , this bound is polynomial in the input size. Thus, all values for can be computed exactly in polynomial time in : their denominators divide , which has bits, and their numerators also have polynomial bit length since .
Non-membership of a finite graph in is certified by a nonempty subgraph with . This certificate is verifiable in polynomial time. By Lemma 20, the complete-instance restriction therefore belongs to coNP.
Now let be an arbitrary instance of . By Lemma 22, we have if and only if there is a consistent equivalence relation such that , where has the quotient classes as vertices and exactly the edges required by . The relation has a polynomial-size encoding, and both consistency and the construction of can be checked in polynomial time. The remaining condition is
Hence membership of in has the form
where checks consistency and the inequality . These checks take polynomial time, so .
▶ Corollary 25 (An explicit upper-bound parameter). There is an explicit irrational , with , for which the complete-instance restriction of belongs to coNP and .
Proof. The parameter constructed in Proposition 36 satisfies the comparison hypothesis of Theorem 24 with c = 10.
Mere computability of does not imply the polynomial-time comparison hypothesis in Theorem 24; in particular, we do not claim these upper bounds for the diagonal parameters constructed below.
A Non-Dichotomy for Stable -Categorical CSPs
5.1 Effective parameters and a time hierarchy
To prove Theorem 4 we select a computable parameter through nested rational intervals. We need to make the dense interval refinements effective; decidability of will then follow from Lemma 23.
▶ Lemma 26 (Finite parameter stratification). Let and let have rational endpoints . One can effectively compute a finite set such that, on every component of , all functions for are rational-affine, i.e., affine with rational coefficients. Their formulae are computable from the component.
The proof is given in Section F.
▶ Lemma 27 (Effective dense refinement). Given and a nonempty open rational interval , one can effectively find and a nonempty open rational interval with such that
Proof. Enumerate all tuples with and rational numbers such that . For each tuple, apply Lemma 26 with to , obtaining a finite set . Check whether lies in a single component of . If it does, then has a computable rational-affine formula on that component, hence, the minimum on occurs at an endpoint. Check whether its values at both and exceed . If so, return and .
This search terminates: By Lemma 15, there are and a nonempty open interval with such that for every . Choose rationals with such that . The finite set leaves a component that intersects with in a nonempty open interval. We can choose rationals with inside that intersection. The tuple therefore passes both checks: lies in a single component of , and the endpoint values and both exceed . Since this tuple is eventually enumerated, the search terminates.
Proof of Theorem 4. Fix an effective enumeration of all pairs consisting of a deterministic machine and a positive integer. Let simulate for at most steps on an input with variables, rejecting if the clock expires. Since is time-constructible, these machines are effective and always halt. Also enumerate all rationals as . For , we construct nonempty rational open intervals and finite graphs satisfying:
(i) , and for ;
(ii) (where is the open dense set defined in Section 4.1) and it does not contain ;
(iii) for every and ,
Choose with and . Since for , its closure lies in ; the avoidance and disagreement requirements in (ii) and (iii) are initially vacuous.
Given , apply Lemma 27 with threshold to obtain an interval with and . Shrink it so that . Choose nonempty rational open intervals whose closures lie in and satisfy . The effective construction following
Lemma 18 gives a finite graph such that for , whereas for .
Run on and set
Choose a nonempty rational open interval with and . Its closure avoids and lies in . Since , for and it still holds that if and only if rejects . The choice of ensures that the same equivalence holds for .
The nested compact intervals have diameters tending to zero. Define their unique common point by
Their effectively computed endpoints approximate with error at most , so is computable. Requirement (ii) ensures that is irrational and belongs to every , hence . By Proposition 14 and Remark 6, and its definable expansion are stable and -categorical. By Lemma 23, is decidable.
Since , the parameter belongs to every . Requirement (iii) and Lemma 20 therefore show that gives the wrong answer for on , for every .
Suppose that a deterministic machine correctly decides all complete instances in time . Choose a positive integer such that halts within steps on every complete instance. The pair occurs as for some . On , the clocked machine then agrees with , a contradiction. Thus the lower bound holds already on complete instances, and .
6 CSP complexity of the graph reducts
The age separation above does not separate the CSPs of the pure graph reducts: a graph homomorphism need not preserve non-edges. We now analyse the CSPs for the pure graphs . Write for the complete graph on vertices. We call and homomorphically equivalent, written , if and . Homomorphically equivalent graphs have the same CSP, even when their ages differ.
We prove NP-hardness of (and hence, of ) for every admissible irrational using hardness results for promise graph colouring. For , we show that is equivalent to -colouring for some and therefore NP-complete. For parameters in , continuum many templates therefore yield exactly countably many distinct CSP languages, all NP-complete.
Throughout this subsection, is assumed to be admissible and irrational. By (10), inequality (4) for a finite graph is equivalent to . Every finite subgraph of satisfies this inequality.
▶ Theorem 28. For every admissible irrational , with ,
Hence, both CSP( ) and CSP( ) are NP-hard.
A Non-Dichotomy for Stable -Categorical CSPs
Proof. Since for all , we have for . Thus, , giving the first homomorphism.
Every nonempty finite subgraph of satisfies , hence, has average degree . Repeatedly deleting a vertex of degree at most and then colouring in reverse order (the previously coloured neighbours forbid at most colours) gives a -colouring. Compactness therefore yields .
Put . By [1, Theorem 6.5], distinguishing -colourable graphs from graphs that are not -colourable is NP-hard. The chain
shows that an algorithm for distinguishes these cases. Adding an empty -relation to an input reduces to , hence, is also NP-hard.
▶ Proposition 29. For every admissible irrational , put and . The following homomorphic equivalences hold:
Hence, is NP-complete for .
Proof sketch; full proof in Section H. For , the estimates , , and give for . The Kostochka–Yancey bound [21, Theorem 4] and compactness yield . Together with Theorem 28, this gives .
For , put . If , then embeds into . Otherwise, Lemma 37 and [21, Theorem 4] give . Theorem 28 yields , hence, in the first case and in the second. Finally, Lemma 38 gives the thresholds .
Put . By Proposition 29,
and by Lemma 16 each language on the right is realised by continuum many parameters. Thus, continuum many graph templates with pairwise distinct ages by Lemma 18 yield exactly countably many distinct CSPs, all NP-complete. For , Theorem 28 gives . Thus, is NP-hard, while membership in NP remains open.
The expansions , for , have pairwise distinct CSPs by Lemma 20, and all but countably many are undecidable. Consequently, for all but countably many , adding the non-edge relation changes an NP-complete CSP into an undecidable one, while preserving stability and -categoricity.
Proof of Corollary 5. Apply the construction in the proof of Theorem 4 with and an initial rational interval whose closure lies in . This yields a computable irrational such that is decidable but does not belong to , with time measured by the number of variables. In a fixed finite binary signature, an instance on variables admits an encoding of size . Membership in NP would therefore give a deterministic -time algorithm, and hence membership in DTIME(t). Thus CSP( ) is decidable but not in NP.
For the same , Proposition 29 gives that is NP-complete. Both templates are countably infinite, stable and -categorical, with one and two binary relations, respectively. Finally, Theorem 3 supplies the undecidable case.
7 Conclusion
We construct continuum many countable stable -categorical graphs with pairwise distinct ages. Their expansions by the non-edge relation have pairwise distinct CSPs and all but countably many of them are undecidable. We also obtain computable parameters such that the corresponding CSPs are decidable but the running time of any deterministic algorithm that solves such a CSP exceeds any prescribed time-constructible time bound. Thus, stability and -categoricity alone impose no uniform bound on CSP complexity. For the graph reducts, we prove NP-hardness for every admissible irrational and NP-completeness for . In particular, for all but countably many in this range, adding the non-edge relation changes an NP-complete CSP into an undecidable one. For suitable computable , the expansion instead has a decidable CSP outside NP. The interval remains to be understood. There, our results establish NP-hardness of , but do not establish membership in NP.
Our cardinality argument does not identify an explicit parameter for which is undecidable, and the computable parameters with time lower bounds are obtained by diagonalisation. For Pantano's explicit parameter, the restriction to complete instances belongs to coNP and the full CSP belongs to . It remains to determine the exact complexity in both cases and whether the passage from complete to arbitrary instances increases the complexity.
Our non-dichotomy relies on CSPs outside NP. It remains open whether stable -categorical templates can have NP-intermediate CSPs. We ask whether such an example can be found among the first-order reducts of the graphs . A positive answer would also answer Question 1 positively.
▶ Question 30. Is there an admissible irrational and a first-order reduct of such that is NP-intermediate?
References
1 Libor Barto, Jakub Bulín, Andrei Krokhin, and Jakub Opršal. Algebraic approach to promise constraint satisfaction. J. ACM, 68(4), July 2021. doi:10.1145/3457606.
2 Manuel Bodirsky. Complexity of Infinite-Domain Constraint Satisfaction, volume 52 of Lecture Notes in Logic. Cambridge University Press, 2021. doi:10.1017/9781107337534.
3 Manuel Bodirsky and Martin Grohe. Non-dichotomies in constraint satisfaction complexity. In Luca Aceto, Ivan Damgård, Leslie Ann Goldberg, Magnús M. Halldórsson, Anna Ingólfsdóttir, and Igor Walukiewicz, editors, Automata, Languages and Programming, 35th International Colloquium, ICALP 2008, volume 5126 of Lecture Notes in Computer Science, pages 184–196. Springer, 2008. doi:10.1007/978-3-540-70583-3_16.
4 Manuel Bodirsky and Jan Kára. The complexity of temporal constraint satisfaction problems. Journal of the ACM, 57(2):9:1–9:41, 2010. doi:10.1145/1667053.1667058.
5 Manuel Bodirsky and Jaroslav Nešetril. Constraint satisfaction with countable homogeneous templates. Journal of Logic and Computation, 16(3):359–373, 2006. doi:10.1093/logcom/exi083.
A Non-Dichotomy for Stable -Categorical CSPs
6 Manuel Bodirsky, Michael Pinsker, and András Pongrácz. Projective clone homomorphisms. J. Symb. Log., 86(1):148–161, 2021. doi:10.1017/jsl.2019.23.
7 Andrei A. Bulatov. A dichotomy theorem for nonuniform CSPs. In 58th Annual IEEE Symposium on Foundations of Computer Science, FOCS '17, pages 319–330. IEEE Computer Society, 2017. doi:10.1109/FOCS.2017.37.
8 Olivia Caramello. Fraissé's construction from a topos-theoretic perspective. Log. Univers., 8(2):261–281, 2014. doi:10.1007/s11787-014-0104-6.
9 Gregory Cherlin and Alistair H. Lachlan. Stable finitely homogeneous structures. Transactions of the American Mathematical Society, 296(2):815–850, 1986. doi:10.1090/S0002-9947-1986-0846608-8.
10 Manfred Droste and Rüdiger Göbel. A categorical theorem on universal objects and its application in abelian group theory and computer science. In L. A. Bokut', Yu. L. Ershov, O. H. Kegel, and A. I. Kostrikin, editors, Proceedings of the International Conference on Algebra, Part 3 (Novosibirsk, 1989), volume 131 of Contemporary Mathematics, pages 49–74. American Mathematical Society, Providence, RI, 1992. doi:10.1090/comm/131.3/1175872.
11 Manfred Droste and Rüdiger Göbel. Universal domains and the amalgamation property. Mathematical Structures in Computer Science, 3(2):137–159, 1993. doi:10.1017/S0960129500000177.
12 Paul Erdős. Graph theory and probability. Canadian Journal of Mathematics, 11:34–38, 1959. doi:10.4153/CJM-1959-003-9.
13 David M. Evans. Examples of -categorical structures. In Richard Kaye and Dugald Macpherson, editors, Automorphisms of First-Order Structures, pages 33–72. Oxford University Press, 1994. doi:10.1093/oso/9780198534686.003.0002.
14 David M. Evans. Homogeneous structures, -categoricity and amalgamation constructions, 2013. Notes from a lecture course. URL: https://wwwf.imperial.ac.uk/~dmevans/Bonn2013_DE.pdf.
15 Roland Fraissé. Sur certaines relations qui généralisent l'ordre des nombres rationnels. Comptes Rendus Hebdomadaires des Séances de l'Académie des Sciences, 237:540–542, 1953. URL: https://gallica.bnf.fr/ark:/12148/bpt6k3189t/f540.item.
16 Roland Fraissé. Sur l'extension aux relations de quelques propriétés des ordres. Annales scientifiques de l'École Normale Supérieure, 3e série, 71(4):363–388, 1954. URL: https://www.numdam.org/articles/10.24033/asens.1027/, doi:10.24033/asens.1027.
17 Roland Fraissé. Theory of Relations, volume 118 of Studies in Logic and the Foundations of Mathematics. North-Holland, Amsterdam, 1986. URL: https://www.sciencedirect.com/bookseries/studies-in-logic-and-the-foundations-of-mathematics/vol/118/suppl/C.
18 Bernhard Herwig. Weight in stable theories with few types. The Journal of Symbolic Logic, 60(2):353–373, 1995. doi:10.2307/2275836.
19 Wilfrid Hodges. Model Theory, volume 42 of Encyclopedia of Mathematics and its Applications. Cambridge University Press, 1993. doi:10.1017/CB09780511551574.
20 Ehud Hrushovski. A stable -categorical pseudo-plane. Unpublished notes, 1988. URL: https://people.maths.ox.ac.uk/hrushovski/Some%20older%20texts/stable-alephzero-categorical.pdf.
21 Alexandr Kostochka and Matthew Yancey. Ore's conjecture on color-critical graphs is almost true. Journal of Combinatorial Theory, Series B, 109:73–101, 2014. doi:10.1016/j.jctb.2014.05.002.
22 Wiesław Kubis. Fraissé sequences: Category-theoretic approach to universal homogeneous structures. Annals of Pure and Applied Logic, 165(11):1755–1811, 2014. doi:10.1016/j.apal.2014.07.004.
23 Wiesław Kubis. Weak fraissé categories. Theory and Applications of Categories, 38(2):27–63, 2022. doi:10.70930/tac/uq64gy5a.
24 David W. Kueker and Michael C. Laskowski. On generic structures. Notre Dame Journal of Formal Logic, 33(2):175–183, 1992. doi:10.1305/ndjf1/1093636094.
25 Alistair H. Lachlan. On countable stable structures which are homogeneous for a finite relational language. Israel Journal of Mathematics, 49:69–153, 1984. doi:10.1007/BF02760647.
26 Jaroslav Nešetril. A combinatorial classic—sparse graphs with high chromatic number. In László Lovász, Imre Z. Ruzsa, and Vera T. Sós, editors, Erdős Centennial, volume 25 of Bolyai Society Mathematical Studies, pages 383–407. Springer, Berlin, Heidelberg, 2013. doi:10.1007/978-3-642-39286-3_15.
27 Maria Emanuela Pantano. Algebraic Closure in -Categorical Structures. PhD thesis, University of East Anglia, Norwich, UK, 1995.
28 Saharon Shelah. Stable theories. Israel Journal of Mathematics, 7:187–202, 1969. doi:10.1007/BF02787611.
29 Saharon Shelah. Classification Theory and the Number of Non-Isomorphic Models, volume 92 of Studies in Logic and the Foundations of Mathematics. North-Holland, Amsterdam, 2 edition, 1990. URL: https://archive.org/details/classificationth0092shel.
30 Katrin Tent and Martin Ziegler. A Course in Model Theory, volume 40 of Lecture Notes in Logic. Cambridge University Press, 2012. doi:10.1017/CB09781139015417.
31 Frank O. Wagner. Relational structures and dimensions. In Richard Kaye and Dugald Macpherson, editors, Automorphisms of First-Order Structures, Oxford Science Publications, pages 153–180. Oxford University Press, 1994. doi:10.1093/oso/9780198534686.003.0006.
32 Dmitriy Zhuk. A proof of CSP dichotomy conjecture. In 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS), pages 331–342, 2017. doi:10.1109/FOCS.2017.38.
33 Dmitriy Zhuk. A proof of the CSP dichotomy conjecture. Journal of the ACM, 67(5):30:1–30:78, 2020. doi:10.1145/3402029.
A Non-Dichotomy for Stable -Categorical CSPs
A Construction of the amalgamation limit
Proof of Theorem 7. Enumerate representatives of the isomorphism types in as . We construct a chain
of members of K. Start with any .
Suppose that has been constructed. By the joint embedding property, choose a strong extension of into which strongly embeds.
For every , every , and every strong embedding , successively amalgamate the current and over , using and the inclusion into . Transitivity ensures that is strong as a map into the current . Replacing the amalgam by an isomorphic copy, we retain as a strong substructure and obtain a strong embedding of extending . There are only finitely many such embeddings to process, since the structures involved are finite. After these amalgamations, let be the resulting structure. Transitivity ensures that all embeddings obtained during the stage remain strong in .
Let . This structure is countable, and heredity gives . Moreover, for every : given a finite substructure containing , choose with . Transitivity gives , and convexity gives . Since every finite subset of lies in some , this proves (ii).
At stage , strongly embeds into , and hence into . Thus, every member of strongly embeds into , proving (i). Since contains structures of arbitrarily large finite size, is countably infinite.
To prove (iii), let and let be strong. Up to isomorphism, we may assume that for some . Choose with . Since is strong in , it is strong in . The construction at stage therefore supplies a strong embedding of into extending . Its image is strong in , as required. If and both have these properties, the isomorphisms between finite strong substructures form a back-and-forth system. Alternating extensions along enumerations of and gives an isomorphism. Starting with an isomorphism between finite strong substructures of one copy gives homogeneity restricted to strong substructures.
Proof of Lemma 8. Replacing by , we may assume that is non-decreasing. Fix , and let be an -tuple from the amalgamation limit . Write for the set of entries of . By Theorem 7(ii), there is a finite containing . The hypothesis applied inside gives a strong containing with . The observation preceding Theorem 7 gives . Thus, every -tuple is contained in a finite strong substructure of size at most . There are only finitely many isomorphism types of pairs with and . Homogeneity with respect to strong substructures shows that if two tuples lie in isomorphic such pairs, they lie in the same orbit. Hence, Aut() has finitely many orbits on for every , and Ryll-Nardzewski–Engeler–Svenonius gives -categoricity.
B Controlled predimension calculations
We collect the standard finite calculations used in Lemmas 9 and 11–13. They are included to make explicit the specialisation of the controlled predimension construction to the present graph parameters.
Proof of Lemma 9. The minimum defining is taken over a finite nonempty set and is positive because every candidate is required to be strictly below . Increasing enlarges the set of rational approximations, proving monotonicity. Taking gives
and therefore . The slope of on is . These slopes are positive and non-increasing, which proves strict increase and concavity. Summing the upper bounds gives , and .
Proof of Lemma 11. Reflexivity is immediate. If and , then either , in which case the claim follows from , or . In the latter case, and (3) give
Since , either or . Thus
proving transitivity.
For the intersection assertion, let . Then , and (3) together with gives
Hence .
Proof of Lemma 12. The class is hereditary by definition, it is closed under isomorphisms, and has only countably many isomorphism types. The empty graph belongs to , since the defining condition quantifies only over nonempty induced subgraphs. Moreover, for every , since every nonempty induced satisfies . Thus, the joint embedding property follows by amalgamating over the empty graph once amalgamation is established.
Let , and let be their free amalgam over . We first prove inequality (4) for an arbitrary nonempty induced . Put
Then is the free amalgam of and over , and Lemma 11 gives . If one of the equals , then is isomorphic to the other and the claim follows because . Otherwise, possibly after interchanging and , suppose
The last quotient is positive because and . Write it as
The denominator of is at most , and . Therefore
A Non-Dichotomy for Stable -Categorical CSPs
Set
Thus, and . The assumed ordering yields
Moreover, , so
Concavity of the control function gives
Since is the free amalgam of and over , these bounds combine to give
Thus, .
Finally, if , then , and freeness gives
Hence , and symmetrically . Thus, the free amalgam is an amalgam by strong embeddings.
Proof of Lemma 13. Starting with , if is not strong in , choose with . Finiteness of makes this process terminate at a strong containing , with . The smallest strong closure is contained in . If this containment is proper, strongness of gives ; otherwise they are equal.
C Stability of the controlled amalgamation limit
The stability argument given below is an instance of Wagner’s general dimension-theoretic analysis of Hrushovski generics [31, Section 3 and Example 5.3], while a proof that is specialised for limits of classes of graphs controlled by the same function is written by Herwig [18] (see the first paragraph of Section 6 and the proof of stability in Section 4 culminating in Theorem 14). It also closely parallels Pantano’s proof for her controlled stable constructions in a countably infinite language [27, Section 4.3, pp. 51–61]. We include the specialisation needed here in order to verify explicitly the points required for the present graph class and for arbitrary models of its complete theory. We prove stability by showing that types over a closed parameter set are determined by countable closed extensions of countable subsets of that set. We first establish the required closure and dimension properties and show that the extension property from Theorem 7 (iii) holds in every model of . We then use dimension independence to obtain closed free amalgams, whose isomorphism types determine complete types. The resulting type count gives stability.
For an infinite cardinal , a complete theory is -stable if, for every parameter set of cardinality at most and every , there are at most complete -types over . Equivalently, it suffices to count 1-types. A theory is stable in this type-counting sense if it is -stable for some infinite . For complete first-order theories this is equivalent to the definition of stability by the absence of the order property (the definition recalled in Section 2), and due to Shelah [29, Theorem II.2.13]; also see for example [30, Section 5.2 and Exercise 8.2.7]. Shelah's foundational paper [28] develops the type-counting approach to stability and studies the stability spectrum, that is, the infinite cardinals for which a theory is -stable. The proof below establishes -stability directly for . No novelty is claimed for the underlying stability method.
Closure and dimension
Fix an admissible irrational , i.e. , and put
Thus, consists exactly of the finite graphs such that for every nonempty induced . Positive rescaling does not change the strong-substructure relation. For finite induced subgraphs of a common graph, direct edge counting gives
and hence
Let be a graph all of whose finite induced subgraphs belong to . For finite , define
The minimum exists. Indeed, it is enough to consider with , and then bounds because . Hence only finitely many values of can occur. Submodularity shows that the intersection of two minimisers is again a minimiser: if both have value , then their union and intersection have value at least , while submodularity forces both values to equal . We write for the intersection of all minimisers. It is finite and
Since is irrational, a proper finite extension cannot have the same -value. Consequently a finite is closed in precisely when , and then .
If are finite, put and . The sets and contain and , respectively, so their -values are at least and . Applying (14) to , shows that equality holds throughout. Thus, is a minimiser for ; by the definition of as the intersection of all such minimisers, . Hence finite closure is monotone. Moreover, is closed: every finite set containing it is also a candidate in the minimum defining and therefore has -value at least .
For arbitrary , set
A Non-Dichotomy for Stable -Categorical CSPs
We show that is a finitary closure operator. By construction, has finite character: the closure of a set is the union of the closures of its finite subsets. It is also extensive, i.e. , and monotone. To show idempotence, i.e. , note that for finite, we have for some finite . Finite monotonicity and idempotence give . It follows that , so is closed.
We establish four properties of dimension that will be used below. Throughout, are finite subsets of .
(D1) Non-negativity, monotonicity, and submodularity. We have , and implies . Moreover,
Proof. Non-negativity follows because every finite graph considered in the definition of belongs to . Monotonicity follows because enlarging restricts the finite supersets over which the minimum is taken. For submodularity, apply (14) to and . Their union and intersection are candidates in the definitions of and , respectively, giving the displayed inequality.
For finite X and arbitrary 3, define the relative dimension of X over 3 by
(D2) Enlargement of base does not increase relative dimension. Relative dimension is non-negative and does not increase when the base is enlarged: for arbitrary ,
For a finite base , its definition simplifies to
Proof. If are finite, submodularity applied to and , together with monotonicity and , gives
These differences are nonnegative, again by monotonicity. Thus, for a finite base , the infimum defining is attained at itself. For arbitrary bases, enlarging the base enlarges the collection of finite subsets over which the infimum is taken, so relative dimension does not increase.
(D3) Invariance under closure. Taking the closure of either the finite argument or the base does not change the relative dimension: For every
Proof. We first prove the finite identity
Submodularity applied to and gives
The intersection contains , so monotonicity gives . The reverse inequality follows from . Applying this identity with a finite subset of and shows .
It remains to prove invariance under closure of the base. Since , property (D2) gives . For the reverse inequality, let be finite. Finite character gives a finite with . The inclusions
and (16) imply
Consequently,
Taking the infimum over all finite proves the reverse inequality.
(D4) The chain rule. For every ,
Proof. If the base is finite, cancellation gives
For an arbitrary base , let range over its finite subsets. Since is finite, every finite subset of is contained in some . By property (D2), it therefore suffices to use bases of the form when computing .
Both terms and are non-increasing as grows. Given , choose finite subsets of approximating their respective infima within . Replacing these subsets by their union approximates both infima simultaneously. Hence the infimum of the sum is the sum of the infima, proving (17).
The extension property in arbitrary models
The final type count takes place in a saturated elementary extension of . We therefore show that every model of satisfies the finite extension property, using the first-order definability of finite closedness. Let
If a -element set is not closed in a graph whose finite subgraphs lie in , then some finite has . Applying the closure construction inside and the estimate (6) gives such a witness with at most vertices. Thus, closedness of a fixed finite tuple is first-order definable: one excludes the finitely many diagrams of witnesses of size at most .
For every finite strong extension , the limit graph satisfies the first-order sentence saying that every closed copy of extends to a closed copy of . These sentences therefore belong to . It follows that every has the following two properties:
(F1) every finite induced subgraph of N belongs to ;
(F2) if is finite and with , then contains over a closed copy of .
A Non-Dichotomy for Stable -Categorical CSPs
Closed diagrams and free amalgamation
We first show that isomorphisms between closed subgraphs are elementary. We then prove that dimension independence yields a closed free amalgam.
▶ Lemma 31 (Closed diagrams). Let . Every isomorphism between closed induced subgraphs of and is elementary.
Proof. The isomorphisms between finite closed subgraphs form a back-and-forth system. Indeed, let be such an isomorphism and let . Then is a finite closed strong extension of . Property (F2) in gives a closed copy of over , extending ; the converse direction is symmetric. Hence every isomorphism between finite closed subgraphs is elementary.
Now let be an isomorphism between arbitrary closed subgraphs. Every finite tuple from is contained in a finite subgraph closed in . Put . Since is closed, monotonicity gives . By the definition of closure,
Since is closed in , no proper finite extension of can have predimension at most . Thus, , so . The restriction is therefore elementary by the preceding paragraph. Since every finite tuple from is contained in such an , it follows that is elementary.
For closed substructures of with , write if
and
■ for every finite set , we have .
The next lemma is the separation step in Wagner's argument.
▶ Lemma 32 (Dimension separation). If and , then is their free amalgam over and is closed in .
Proof. First suppose that and are finite, and put . Since all three sets are closed, dimension independence gives
Direct edge counting gives
Here counts the edges between and . If the amalgam were not free, the right-hand side would be at least . Since , this would contradict the displayed dimension equality. Thus, the amalgam is free. Equality in (18) now gives , so is closed.
Now let and be arbitrary. We first exclude a cross-edge with and . Put and . Choose a finite such that
and put and . Choose a finite closed containing , and set . The sets are closed, and the cross-edge gives
by (18). Therefore
On the other hand, independence and monotonicity give
a contradiction. Hence the amalgam is free.
Finally, suppose for a contradiction that is not closed. Choose a finite such that is not contained in , and put . Since and is a minimiser for , we have . Equality is impossible for the proper extension because is irrational. Thus
This drop persists under finite enlargement inside . Indeed, if is finite and contains , then , so submodularity gives
Choose finite closed and containing and , respectively. Put . By the definition of relative dimension, choose a finite , containing , such that
Set
Because and are closed, and . Thus, is a finite subset of containing , and (19) applies. Since and are closed, the chain rule and submodularity yield
As , monotonicity and closure invariance give
Consequently,
contradicting . Hence is closed.
◀
A Non-Dichotomy for Stable -Categorical CSPs
Counting types
We now bound the number of types over a parameter set of cardinality , using the preceding two lemmata to prove stability.
▶ Theorem 33. The theory is stable.
Proof. Let . In ZFC, . We show that is -stable. It suffices to consider parameter sets of cardinality : smaller sets can be enlarged in an elementary extension, and their types extend to types over the larger set. Let , let have cardinality , and take a -saturated elementary extension . Put . Since closure is finitary and finite sets have finite closure, .
Every finite type over is realised in . Fix a finite tuple (we use for both the tuple and the set of its entries) from . By the definition of relative dimension, there are finite such that
Let . Then is countable and . Put
Both and are countable and closed, and . Monotonicity and closure invariance give
We claim that the same equality holds for every finite tuple from . By finitarity of closure, choose a finite such that . Since , closure invariance and monotonicity in the finite argument give
The right-hand sides are equal. Applying the chain rule to the left-hand sides, we obtain
Because , each summand on the left is at most the corresponding summand on the right. Equality of their sums forces equality of the corresponding summands; in particular,
Moreover, and are closed, , and is closed. Hence
Thus, both conditions in the definition of independence hold, so . By Lemma 32, is the free amalgam of and over and is closed in .
We now count the possibilities for . There are at most
choices for the countable set , and at most possibilities for the countable diagram of with the distinguished tuple and its identified subgraph . Since is a free amalgam, these data determine its complete diagram. By Lemma 31, that diagram determines the complete type of , and hence the type of over . Therefore there are at most finite types over , and consequently at most finite types over . Thus, is -stable and hence stable.
◀
D The open-dense parameter argument
We reconstruct the Baire-category step from [14, Example 3.22]. Recall that
The strict inequality differs from Evans' convention only at rational parameters. For the finite partial sum used below, our interval contains no rational with within the relevant denominator bound. Thus, no parameter in the interval is equal to an admissible rational approximation, and the proof applies with the present convention.
Proof of Lemma 16. Construct closed rational intervals of positive length indexed by binary strings . Start with . Having chosen , use openness and density of to choose two disjoint closed rational subintervals
of diameter at most . For every infinite binary sequence , the nested intervals have a unique common point. Distinct sequences give distinct points because sibling intervals are disjoint, and every resulting point lies in every . The resulting map from to the intersection is continuous and injective. Since is compact and is Hausdorff, it is a homeomorphism onto its image. The reverse cardinality bound holds because the intersection is a subset of .
▶ Lemma 34 (Denominator bound). If
then every rational p/q strictly between them has .
Proof.
Thus, .
▶ Proposition 35 (Open-dense parameter intervals). For every nonempty open interval and every , there are and a nonempty rational open interval with such that
Consequently, for each m, the union of all such intervals J is open and dense in .
Proof. Choose a reduced fraction with , and choose such that . There are integers with . For , put
Then . Choose t so large that
A Non-Dichotomy for Stable -Categorical CSPs
It follows that
Thus, . Rename as ; then
For , put
Then , so , the sequence increases to , and by Lemma 34 every rational strictly between and has denominator at least . Choose so large that
Choose a nonempty rational open interval J whose closure is contained in
The left endpoint of the displayed interval is greater than , because
Thus, every lies above .
Fix such an . If and , Lemma 34 shows that is the greatest rational below with denominator at most . Hence
Moreover,
There are exactly integers in this block. Therefore, with ,
by (20). The same works for every . Since was arbitrarily chosen, the union of all such is dense; it is open by definition.
E High girth and density
Proof of Lemma 17. Choose integers and . By Erdős's theorem there is a finite graph with chromatic number at least and girth at least . Let be minimal under vertex deletion subject to . Then every vertex of has degree at least : otherwise a -colouring of would extend to . Hence
Moreover, contains a cycle because , and every cycle has length at least . Thus, , the girth is greater than , and .
F CSP and effective parameter calculations
Proof of Lemma 20. Every pair of distinct vertices of carries either an E-constraint or an N-constraint. Both relations are irreflexive in , so any homomorphism is injective. It preserves edges and non-edges and hence gives an induced embedding of into . Conversely, every such induced embedding preserves both relations and gives a homomorphism from to . Finally, .
Proof of Lemma 22. If , its kernel is consistent by irreflexivity and disjointness of and in . The graph induced by on the image of , transferred to the quotient classes, belongs to . Deleting its edges that are not required by -constraints in gives , which still belongs to .
Conversely, if is consistent and , choose an induced embedding . Its composition with the quotient map preserves every - and -constraint and hence gives a homomorphism to .
Proof of Lemma 26. Only approximation denominators occur. Fix . Among the fractions with denominator exactly , the largest one strictly below is . Indeed, its numerator is the largest integer strictly smaller than . Consequently, if is the best lower approximation to among fractions with denominator at most , for some , then we have . It follows that .
Thus, for each , only finitely many integer numerators can occur. Let contain , , and all the resulting rationals that lie in . Then . On one component of the complement, the order relation between the parameter and every relevant rational is fixed. Hence, for each , the greatest relevant rational below is a fixed number , and
It follows that on the component. All rationals and all coefficients arise from finite searches, so the decomposition is effective. The strict convention in the definition of affects the values at points of , but not on the open components used in the interval construction.
G A parameter for the polynomial-hierarchy bound
The following parameter comes from Pantano's construction [27, Appendix B], translated to our reciprocal parameterisation. We include the comparison analysis because the large gaps between successive decimal positions do not prevent polynomial-time comparison at the relevant input scale.
▶ Proposition 36 (Pantano's explicit parameter). Let
and define
A Non-Dichotomy for Stable -Categorical CSPs
Then is an irrational member of with . Moreover, given and integers satisfying
one can decide whether in time polynomial in N.
Proof. The first term of is 1/10, and the remaining nonzero decimal digits occur after the second decimal place. Hence , so . The gaps tend to infinity. Thus, the decimal expansion of is not eventually periodic: for any proposed period, a sufficiently isolated digit 1 would force another digit 1 before the next . Consequently, and are irrational.
Pantano uses the approximation function
Since ,
and therefore
Now
so Pantano’s Lemma B.1 implies that tends to infinity [27, Appendix B]. Hence . For each , choose with . Because is irrational, a sufficiently small neighborhood of contains no rational with denominator at most whose crossing could change one of the best lower approximations used in the first summands. The strict inequality therefore persists throughout a rational open interval containing . Thus, (see (7)) for every , and .
For the comparison algorithm, the case is immediate. Assume . Choose minimal such that
We will show that is equivalent to the integer comparison .
The fraction is reduced, since . As , equality would imply , which is impossible. Therefore
On the other hand, gives
Multiplying by , we see that replacing by changes by less than , and hence cannot change its sign. Thus
Finally, this truncation can be computed in polynomial time. Since , we have , and minimality gives . Hence
Iterating the recurrence and constructing and therefore takes polynomial time in , with all intermediate integers having bits. The final integer comparison has the same polynomial bound.
H Finite equivalents for irrational coefficients
▶ Lemma 37 (Colouring estimate). Let be irrational, and put and . If , then, for every ,
Proof. Suppose that . The rational approximations with denominators one, two, and three give
contrary to the hypothesis; here . Since is irrational, it follows that
Using , we obtain, for ,
▶ Lemma 38 (Clique cutoffs). Let be an integer and let be irrational. Put
Then
Proof. Put . Then is odd, , and
Suppose first that . We have and for . Moreover, in its reduced form has denominator , so for . Consequently,
A Non-Dichotomy for Stable -Categorical CSPs
Now suppose that . If
then
Since 2a - b is a positive integer with the same parity as b, the only possibilities are
Applying these bounds to the rational approximations defining gives
The second bound is strict at , since the case requires denominator . Together with , this yields
where the second inequality uses . This completes the calculation.
Proof of Proposition 29. Put . For , put
An -critical graph has chromatic number and every proper subgraph (not necessarily induced) is -colourable. The Kostochka–Yancey bound states that every such graph on vertices has at least edges [21, Theorem 4]. Every finite graph that is not -colourable contains an -critical subgraph.
We first record a criterion for -colourability that will be used in both parameter ranges. Every finite subgraph of satisfies . Consequently, if for all , then no finite subgraph is -critical, and every finite subgraph is -colourable. Compactness then gives .
Suppose first that . Since , , and for all , for we have
Applying the above criterion with , we obtain . Together with Theorem 28, this gives .
Now suppose that , and put . By Theorem 28, . All proper induced subgraphs of therefore belong to , so
If this inequality holds, embeds into . Theorem 28 gives the reverse homomorphism. Hence, .
If the inequality fails, the numerical estimate proved in Lemma 37 gives
Applying the above criterion gives . Together with Theorem 28, this yields .
By Lemma 38, holds exactly when , giving the stated cases. In each case, is homomorphically equivalent to a finite clique with at least three vertices. Its CSP is therefore the corresponding graph colouring problem and is NP-complete.