The First-Order Theory of Sets with Cardinality Constraints is Decidable
<|reference_start|>The First-Order Theory of Sets with Cardinality Constraints is Decidable: We show that the decidability of the first-order theory of the language that combines Boolean algebras of sets of uninterpreted elements with Presburger arithmetic operations. We thereby disprove a recent conjecture that this theory is undecidable. Our language allows relating the cardinalities of sets to the values of integer variables, and can distinguish finite and infinite sets. We use quantifier elimination to show the decidability and obtain an elementary upper bound on the complexity.   Precise program analyses can use our decidability result to verify representation invariants of data structures that use an integer field to represent the number of stored elements.<|reference_end|>
@article{kuncak2004the,
    title={The First-Order Theory of Sets with Cardinality Constraints is Decidable},
    author={Viktor Kuncak and Martin Rinard},
    journal={arXiv preprint arXiv:cs/0407045},
    year={2004},
    number={MIT CSAIL 958},
    archivePrefix={arXiv},
    eprint={cs/0407045},
    primaryClass={cs.LO cs.PL}
}