Skip to content
m·amathatlas
ExploreAboutOpen problemsCited authorsMy libraryFeedback
Sign in
FRENES
Loading views…Recent views only, across all languages. Vercel history is unavailable for this page. Repeat visits in the same tab are grouped for 30 minutes.
ShareLinkedInXFacebookWhatsApp
← All open problems
Reported open

Blatter-Specker Theorem for ternary relations

Mathematical logic

Imported on November 26, 2026

Read the question with its definitions and background below. The source provides the full formulation and further discussion; the glossary and Wikipedia links offer additional reading aids.

Problem statement

Let CCC be a class of finite relational structures. We denote by fC(n)f_C(n)fC​(n) the number of structures in CCC over the labeled set {0,…,n−1}\{0, \dots, n-1 \}{0,…,n−1}. For any class CCC definable in monadic second-order logic with unary and binary relation symbols, Specker and Blatter showed that, for every m∈Nm \in \mathbb{N}m∈N, the function fC(n)f_C(n)fC​(n) is ultimately periodic modulo mmm.

Question Does the Blatter-Specker Theorem hold for ternary relations.

Definitions and context

Our exposition follows closely [BS84].

Counting labeled structures modulo mmm

Let CCC be a class of finite structures for one binary relation symbol RRR. We define for A={1,…,n}A = \{ 1, \ldots, n \}A={1,…,n}

FC(n)=∣{RA⊆A2:⟨A,RA⟩∈C}∣F_C(n) = \mid \{ R^A \subseteq A^2 : \langle A, R^A \rangle \in C \} \midFC​(n)=∣{RA⊆A2:⟨A,RA⟩∈C}∣

Examples:

  • If C=UC=UC=U consists of all RRR-structures, fU(n)=2n2f_U(n)= 2^{n^2}fU​(n)=2n2.
  • If C=BC=BC=B consists of bijections, fB(n)=n!f_B(n)= n!fB​(n)=n!
  • If C=GC= GC=G is the class of all (undirected, simple) graphs, fG(n)=2(n2)f_G(n)= 2^{\binom{n}{2}}fG​(n)=2(2n​).
  • If C=EC=EC=E is the class of all equivalence relations, then fE(n)=Bnf_E(n)= B_nfE​(n)=Bn​, the Bell Numbers.
  • If C=E2C=E_2C=E2​ is the class of all equivalence relations with two classes only, of the same size, fE2(2n)=12⋅(2nn)f_{E_2}(2n)= \frac{1}{2} \cdot {\binom{2n}{n}}fE2​​(2n)=21​⋅(n2n​). Clearly, fE2(2n+1)=0f_{E_2}(2n+1)= 0fE2​​(2n+1)=0.
  • If C=TC=TC=T is the class of all trees, fT(n)=nn−2f_T(n)= n^{n-2}fT​(n)=nn−2, Caley.

We observe the following:

fC(n)=2n2=(−1)n2(mod3)f_C(n)= 2^{n^2} = (-1)^{n^2} \pmod{3}fC​(n)=2n2=(−1)n2(mod3) fC(n)=n!=0(modm)\mboxforn≥mf_C(n)= n! = 0 \pmod{m} \mbox{ for } n \geq mfC​(n)=n!=0(modm)\mboxforn≥m

And for each mmm the functions, fG(n)=2(n2)f_G(n)= 2^{\binom{n}{2}}fG​(n)=2(2n​), fE(n)=Bnf_E(n)= B_nfE​(n)=Bn​, fT(n)=nn−2f_T(n)= n^{n-2}fT​(n)=nn−2 are ultimately periodic (modm)\pmod{m}(modm).

However, fE2(2n)=12⋅(2nn)=1(mod2)f_{E_2}(2n)= \frac{1}{2} \cdot {\binom{2n}{n}} = 1 \pmod{2}fE2​​(2n)=21​⋅(n2n​)=1(mod2) iff n=22kn = 2^{2k}n=22k, hence is not periodic (mod2)\pmod{2}(mod2).

Monadic second-order logic definable classes

The first four examples (all relations, all bijections, all graphs, all equivalence relations) are definable in First Order Logic FO\text{FO}FO. The trees are definable in Monadic Second Order Logic MSO\text{MSO}MSO..

E2E_2E2​ is definable in Second Order Logic SO\text{SO}SO, but it is not MSO\text{MSO}MSO-definable. If we expand E2E_2E2​ to have the bijection between the classes we get structures with two binary relations. The class is now FO\text{FO}FO-definable. Let us denote the corresponding counting function FE2(2n)F_{E_2}(2n)FE2​​(2n). We have

fE2(2n)⋅n!=FE2(n)=0(modm)f_{E_2}(2n) \cdot n! = F_{E_2}(n) = 0 \pmod{m}fE2​​(2n)⋅n!=FE2​​(n)=0(modm)

for nnn large enough.

Periodicity and linear recurrence relations

The periodicity of fC(n)f_C(n)fC​(n) (modm)\pmod{m}(modm) is usually established by exhibiting a linear recurrence relation:

There exists 1≤k∈N1 \leq k \in \mathbb{N}1≤k∈N and integers a1,…,aka_1, \ldots, a_ka1​,…,ak​ such that for all nnn

fC(n)=∑j=1kaj⋅fC(n−j)(modm)f_C(n) = \sum_{j=1}^{k} a_j \cdot f_C(n-j) \pmod{m}fC​(n)=j=1∑k​aj​⋅fC​(n−j)(modm)

Examples.

  • In the case of fC(n)=2n2f_C(n) = 2^{n^2}fC​(n)=2n2 we have
fC(n)=fC(n−2)+2⋅fC(n−1)(mod3)f_C(n) = f_C(n-2) + 2 \cdot f_C(n-1) \pmod{3}fC​(n)=fC​(n−2)+2⋅fC​(n−1)(mod3)
  • In the case of fC(n)=n!f_C(n) = n!fC​(n)=n! we have for all mmm
fC(n)=0⋅fC(n−1)(modm)f_C(n) = 0 \cdot f_C(n-1) \pmod{m}fC​(n)=0⋅fC​(n−1)(modm)

In this case we say that fCf_CfC​ trivializes.

The Blatter-Specker Theorem

Theorem (BS84) Let τ\tauτ be a binary vocabulary, i.e. all relation symbols are at most binary. If CCC is a class of finite τ\tauτ-structures which is MSO\text{MSO}MSO-definable, then for all m∈Nm \in \mathbb{N}m∈N fC(n)f_C(n)fC​(n) is ultimately periodic (modm)\pmod{m}(modm).

Moreover, there exists 1≤k∈N1 \leq k \in \mathbb{N}1≤k∈N and integers a1,…,aka_1, \ldots, a_ka1​,…,ak​ such that for all nnn

fC(n)=∑j=1kaj⋅fC(n−j)(modm)f_C(n) = \sum_{j=1}^{k} a_j \cdot f_C(n-j) \pmod{m}fC​(n)=j=1∑k​aj​⋅fC​(n−j)(modm)

i.e we have a linear recurrence relation.

References cited in the source

[BS84]* C. Blatter and E. Specker, Recurrence relations for the number of labeled structures on a finite set, Logic and Machines: Decision Problems and Complexity, E. Börger, G. Hasenjaeger and D. Rödding, eds, LNCS 171 (1984) pp. 43-61.

[F03] E. Fischer, The Specker-Blatter theorem does not hold for quaternary relations, Journal of Combinatorial Theory Series A 103(2003), 121-136.

[FM06] E. Fischer and J. A. Makowsky, The Specker-Blatter Theorem revisited: Generating functions for definable classes of stuctures. In Computing and Combinatorics (COCOON 2003) Proc., LNCS vol. 2697 (2003), 90-101.

[S88] E. Specker, Application of Logic and Combinatorics to Enumeration Problems, Trends in Theoretical Computer Science, E. Börger ed., Computer Science Press, 1988, pp. 141-169. Reprinted in: Ernst Specker, Selecta, Birkhäuser 1990, pp. 324-350.

Statement and context adapted from Open Problem Garden · Open Problem Garden contributors: dberwanger

GFDL · Formatting adapted; mathematical formulas preserved · Source history

A few useful definitions

Graph
A set of vertices connected by edges. A vertex’s degree counts the incident edges; the statement specifies whether directions or multiple edges are allowed.

Topics : Logic · Finite Model Theory

Authors listed by the source : Makowsky

Sources and original status

  • Open Problem Garden Status in source : open index
Coverage, sources and method

This count measures imported entries, including distinct variants. It is not a count of all open mathematical questions worldwide. One entry may belong to several fields and sources.

This directory is neither exhaustive nor updated in real time. “Reported open” describes the source classification observed at import; imported entries have not each undergone independent mathematical verification. The 32 explained entries were reviewed separately.

Formal Conjectures: only “research open” statements with no reported formal proof are retained; their tag is checked in a pinned repository revision. Variants remain distinct. A “sorry” placeholder is not sufficient to establish open status.

Erdős: solved or independent problems and entries with a Lean solution are excluded, including “open (Lean)”. Exact matches to the main Formal Conjectures statements are merged.

Open Problem Garden: the open index is checked against the solved index; spam, identified clones and some outdated statuses are excluded. Statements and definition context are attributed to their original pages; formulas are preserved and the content remains under the GFDL. Recognized duplicates across sources are merged; this does not resolve every mathematical equivalence.

OEIS: direct extraction of conjectural comments and formulas, one entry per sequence, excluding mentioned resolutions. MathOverflow and Math Stack Exchange: questions classified as unanswered by their API, excluding closed posts and non-research categories. They remain distinct from problems reported open. This is a partial, dated collection; every entry credits its authors and license.

Documented exclusions account for recent announcements and conflicting statuses. A stronger variant or a special case can remain open after a different statement is settled.

Attribution: The Formal Conjectures Authors; teorth/erdosproblems and contributors; Open Problem Garden and contributors. Each source retains its license.

  • Formal Conjectures · 1,924 · Apache-2.0 / CC-BY-4.0
  • Erdős Problems (teorth) · 622 · Apache-2.0
  • Open Problem Garden · 404 · GFDL (source content); only title/category/link metadata imported
  • OEIS · 18,857 · CC BY-SA 4.0
  • MathOverflow · 19,035 · CC BY-SA (version on each entry)
  • Mathematics Stack Exchange · 35 · CC BY-SA (version on each entry)
Report a development or correction
mathatlas

An independent atlas to understand, read, and question research.

The papers present claimed results at different stages of verification.
NewsletterShare feedbackAbout Data and privacy
Created by Sonny Mupfuni