Trakhtenbrot's Theorem in Coq: Finite Model Theory through the Constructive Lens

Dominik Kirst, Dominique Larchey-Wendling
4/29/2021
cs.LOcs.CLmath.LO

Official code: uds-psl/coq-library-undecidability (145 stars, Rocq Prover, MPL-2.0, last commit 2026-06-24).

Abstract

We study finite first-order satisfiability (FSAT) in the constructive setting of dependent type theory. Employing synthetic accounts of enumerability and decidability, we give a full classification of FSAT depending on the first-order signature of non-logical symbols.

Show full abstract

On the one hand, our development focuses on Trakhtenbrot's theorem, stating that FSAT is undecidable as soon as the signature contains an at least binary relation symbol. Our proof proceeds by a many-one reduction chain starting from the Post correspondence problem. On the other hand, we establish the decidability of FSAT for monadic first-order logic, i.e. where the signature only contains at most unary function and relation symbols, as well as the enumerability of FSAT for arbitrary enumerable signatures. To showcase an application of Trakhtenbrot's theorem, we continue our reduction chain with a many-one reduction from FSAT to separation logic. All our results are mechanised in the framework of a growing Coq library of synthetic undecidability proofs.

View on arXivView PDF

Code Implementations(1)

MPL-2.0

A library of mechanised undecidability proofs in the Coq proof assistant.

14539Rocq Prover, JavaScriptOct 26, 20185 months agoMPL-2.0
coq

Similar Papers

Cite this paper

@article{kirst2021trakhtenbrots,
  title  = {Trakhtenbrot's Theorem in Coq: Finite Model Theory through the Constructive Lens},
  author = {Dominik Kirst and Dominique Larchey-Wendling},
  year   = {2021},
  eprint = {2104.14445},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.14445}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.14445.svg)](https://codeofpaper.com/paper/2104.14445)

Discussion