English

Definability of some $k$-ary Relations Over Second Order kinds of Logics

Logic 2025-09-17 v1

Abstract

We consider the exprissibility in monadic second order logic of certain relations of importance in computer science. For integers n1n\geq 1 and kbk\leq b, a kk-tuple of sequences in {0,1,,b1}n\{0,1,\ldots, b-1\}^n are said to be kk-hashed if there is a coordinate where they all differ. A set C\mathcal{C} of sequences is said to be a kk-hash code if any kk distinct elements are kk-hashed. Testing whether a code is kk-hashing and determining the largest size of kk-hash codes is an important problem in computer science. The use of general purpose solvers for this problem leads to question what minimal logic is needed to represent the problem. In this paper, we prove that the kk-hashing relation on kk-tuples is not definable in Monadic Second Order Logic (MSO), highlighting its limitations for this problem. Instead, the property can be expressed in extensions of the MSO that add the equi-cardinality relation.

Keywords

Cite

@article{arxiv.2509.13063,
  title  = {Definability of some $k$-ary Relations Over Second Order kinds of Logics},
  author = {Simone Costa and Marco Dalai and Stefano Della Fiore and Anita Pasotti},
  journal= {arXiv preprint arXiv:2509.13063},
  year   = {2025}
}