arXiv:2610.35770cs.LOOct 2026

Manuscript Offprint

arXiv:2610.35770

The Undecidability of FO3 and the Calculus of Relations with Just One Binary Relation

Yoshiki Nakamura

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yoshiki Nakamura

Tokyo Institute of Technology, Japan

nakamura.yoshiki.ny@gmail.com

Abstract. The validity problem for first-order logic is a well-known undecidable problem. The undecidability also holds even for FO3 and (equational formulas of) the calculus of relations. In this paper we tighten these undecidability results to the following: (1) FO3 with just one binary relation is undecidable even without equality; and (2) the calculus of relations with just one character and with only composition, union, and complement is undecidable. Additionally we prove that the finite validity problem is also undecidable for the above two classes.

Keywords: First-order logic · The calculus of relations · Undecidability

1 Introduction

The validity problem for first-order logic (a.k.a. the Entscheidungsproblem) is the problem to decide whether a given formula of first-order logic (FO) is valid or not. The problem is recursively enumerable by Gödel's completeness theorem [7], but is undecidable, as shown by Church [5] and Turing [24]. In connection with the undecidability result, many decidable and undecidable variants of FO have been studied (we refer to the book [4]).

One restriction is to consider the validity problem over a restricted signature. In 1915, Löwenheim [13] proved that monadic FO with equality is decidable (more precisely, coNEXPTIME-complete [12, p. 318]). Monadic FO is FO with only unary relation symbols. In 1919, Skolem [20] extended the decidability result to monadic second-order logic (see also [26]). Subsequently Büchi [3] extended the decidability result to monadic second-order logic over IN with the linear order (called S1S). In contrast to this, FO with just one binary relation symbol is undecidable even without equality. Löwenheim [13] reduced FO to FO with only binary relation symbols, so the latter is also undecidable by [5,24], but the number of binary relation symbols is countably infinite. Subsequently the number was reduced to three by Herbrand [9] and to just one by Kalmár

  • Supported by JSPS KAKENHI Grant Number 16J08119. The affiliation above is that at the time of the conference version. The e-mail address is the author's address at the time of uploading to the repository.

** This is a long version of the paper at ICLA'19 [18], with (Ax.1) and (Ax.2) in Sect. 3 corrected (see the remark at the end of Sect. 3).

Yoshiki Nakamura

[11], see e.g., [4, p. 6] or [2, Theorem 21.4 (The Church-Herbrand theorem)]. Over finite models, FO with just one binary relation symbol is also undecidable by Trakhtenbrot's Theorem [23] (moreover, the undecidability holds even over finite graphs of vertex-degree at most 3 [27]).

Another restriction is with respect to the number of variables occurring in formulas. FOk denotes the restriction of FO to formulas with at most k distinct variables. In these classes, it is known that FO3 with countably infinitely many binary relation symbols and without equality is undecidable (because the ∀∃∀ case is undecidable [10]), whereas FO2 (even with equality) is decidable [17] and coNEXPTIME-complete [8, Corollary 5.4]. FO2 has a connection with modal logic in the sense that some propositional modal logics can be embedded into FO2 [25]. With respect to the expressive power of unary relations, FO2 is equivalent to Boolean modal logic with relational converse and the identity relation [14]. As for FO3, it has a connection with the calculus of (binary) relations [21]. We denote the full signature of the calculus of relations by ⟨⋅,∙−,∪,∙∘,1⟩\langle\cdot,\bullet^{-},\cup,\bullet^{\circ},1\rangle, where ⋅\cdot is relational composition, ∙−\bullet^{-}is set-theoretic complement, ∪\cup is set-theoretic union, ∙∘\bullet^{\circ} is relational converse, and 1 is the identity relation. Actually, with respect to the expressive power of binary relations, FO3 with equality is equivalent to terms of the calculus of relations [22] (see also [6]).

In this paper we prove that the intersection of the above two restrictions is also undecidable, i.e., the validity problem for FO3 with just one binary relation symbol and without equality is undecidable. Moreover we prove that the finite validity problem for the class is undecidable. The class is the minimal undecidable fragment with respect to the above two restrictions since both monadic FO and FO2 are decidable. As for the calculus of relations, we prove that the validity problem and the finite validity problem for equational formulas of the calculus of relations with just one character over the signature ⟨⋅,∙−,∪⟩\langle\cdot,\bullet^{-},\cup\rangle are undecidable.

References (27)