Definability of some $k$-ary Relations Over Second Order kinds of Logics
Abstract
We consider the exprissibility in monadic second order logic of certain relations of importance in computer science. For integers and , a -tuple of sequences in are said to be -hashed if there is a coordinate where they all differ. A set of sequences is said to be a -hash code if any distinct elements are -hashed. Testing whether a code is -hashing and determining the largest size of -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 -hashing relation on -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.
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}
}