A Decision Procedure for a Theory of Finite Sets with Finite Integer Intervals
Pith reviewed 2026-05-24 12:46 UTC · model grok-4.3
The pith
A decision procedure extends to finite sets with integer intervals whose bounds can involve unbounded variables.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The authors extend the decision procedure for L_|.| to L_[ ] by adding support for set terms that denote finite integer intervals whose limits are integer linear terms possibly containing unbounded variables. The extension keeps the logic quantifier-free while allowing direct use of set minimum and maximum, and the procedure is shown to remain decidable and to succeed on the elevator invariance lemmas.
What carries the argument
The decision procedure for L_[ ] obtained by extending the base procedure for L_|.| to decide formulas containing finite integer interval terms with unbounded variable bounds.
If this is right
- Quantifier-free formulas involving minimum and maximum of sets become decidable.
- The {log} tool can automatically discharge invariance lemmas that mention intervals.
- Set-based specifications that rely on bounded integer ranges can be verified without introducing quantifiers.
- The same decision procedure applies when interval endpoints depend on free variables.
Where Pith is reading between the lines
- The same extension technique might be reusable for other bounded numeric set operators beyond min and max.
- Verification of algorithms that maintain ordered sets or ranges could be automated more readily.
- The approach opens a route to combine the procedure with other SMT back-ends that already handle linear arithmetic.
Load-bearing premise
The extension of the base decision procedure to interval terms with unbounded variables preserves decidability and is correctly implemented.
What would settle it
A concrete formula using min or max of a set that the implemented procedure classifies as satisfiable but is in fact unsatisfiable, or vice versa.
Figures
read the original abstract
In this paper we extend a decision procedure for the Boolean algebra of finite sets with cardinality constraints ($\mathcal{L}_{\lvert\cdot\rvert}$) to a decision procedure for $\mathcal{L}_{\lvert\cdot\rvert}$ extended with set terms denoting finite integer intervals ($\mathcal{L}_{[\,]}$). In $\mathcal{L}_{[\,]}$ interval limits can be integer linear terms including \emph{unbounded variables}. These intervals are a useful extension because they allow to express non-trivial set operators such as the minimum and maximum of a set, still in a quantifier-free logic. Hence, by providing a decision procedure for $\mathcal{L}_{[\,]}$ it is possible to automatically reason about a new class of quantifier-free formulas. The decision procedure is implemented as part of the $\{log\}$ tool. The paper includes a case study based on the elevator algorithm showing that $\{log\}$ can automatically discharge all its invariance lemmas some of which involve intervals.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper extends an existing decision procedure for the theory of finite sets with cardinality constraints (denoted L_|.|) to a new theory L_[ ] that incorporates finite integer interval terms. In L_[ ], the interval bounds may be integer linear expressions over unbounded variables. This allows quantifier-free expression of operators such as set minimum and maximum. The extended procedure is implemented in the {log} tool and is shown, via a case study on the elevator algorithm, to discharge all invariance lemmas, some of which involve intervals.
Significance. If the extension preserves decidability and soundness, the work enlarges the class of quantifier-free set formulas that can be decided automatically, directly supporting verification tasks that require extremal values or interval reasoning. The concrete elevator case study supplies a falsifiable demonstration of utility, and the {log} implementation supplies a reproducible artifact.
minor comments (2)
- [Abstract] Abstract: the claim that the procedure 'remains decidable' would be strengthened by a one-sentence pointer to the key reduction or termination argument used in the extension.
- The case-study section would benefit from an explicit statement of which formulas involve unbounded interval bounds and how many such formulas were discharged.
Simulated Author's Rebuttal
We thank the referee for the positive summary, significance assessment, and recommendation of minor revision. No major comments were provided in the report.
Circularity Check
No significant circularity
full rationale
The paper presents an extension of a previously published decision procedure for L_|.| to the new theory L_[ ] that incorporates finite integer interval terms whose bounds may involve unbounded integer variables. The base procedure is treated as an external, independently developed component; the extension is described as preserving decidability through explicit algorithmic modifications, with correctness supported by implementation in {log} and empirical validation on the elevator invariance lemmas. No step reduces a claimed prediction or uniqueness result to a fitted parameter, self-citation chain, or definitional renaming; the central claim remains an independent algorithmic construction whose soundness is not forced by the inputs.
Axiom & Free-Parameter Ledger
axioms (2)
- domain assumption Decidability and correctness of the base theory L_|.|
- standard math Standard axioms of Boolean algebra, finite sets, and linear integer arithmetic
Reference graph
Works this paper leans on
-
[1]
J.-R. Abrial, The B-book: Assigning Programs to Meanings, Cambr idge University Press, New York, NY, USA, 1996
work page 1996
-
[2]
M. Leuschel, M. Butler, ProB: A model checker for B, in: A. Keijir o, S. Gnesi, D. Mandrioli (Eds.), FME, Vol. 2805 of Lecture Notes in Com - puter Science, Springer-Verlag, 2003, pp. 855–874
work page 2003
- [3]
-
[4]
C. G. Zarba, Combining sets with integers, in: A. Armando (Ed.), F ron- tiers of Combining Systems, 4th International Workshop, FroCoS 2002, Santa Margherita Ligure, Italy, April 8-10, 2002, Proceedings, V ol. 2309 of Lecture Notes in Computer Science, Springer, 2002, pp. 103–1 16. doi:10.1007/3-540-45988-X 9. URL https://doi.org/10.1007/3-540-45988-X\_9
-
[5]
V. Kuncak, H. H. Nguyen, M. C. Rinard, Deciding Boolean algebra with Presburger arithmetic, J. Autom. Reason. 36 (3) (2006) 213 –239. doi:10.1007/s10817-006-9042-1
-
[6]
K. Bansal, C. W. Barrett, A. Reynolds, C. Tinelli, Reasoning with fin ite sets and cardinality constraints in SMT, Log. Methods Comput. Sci. 14 (4). doi:10.23638/LMCS-14(4:12)2018. 36
-
[7]
M. Cristi´ a, G. Rossi, Integrating cardinality constraints into co nstraint logic programming with sets, CoRR abs/2102.05422, under consider ation in Theory Pract. Log. Program. arXiv:2102.05422. URL https://arxiv.org/abs/2102.05422
-
[8]
A. R. Bradley, Z. Manna, H. B. Sipma, What’s decidable about ar- rays?, in: E. A. Emerson, K. S. Namjoshi (Eds.), Verification, Mod el Checking, and Abstract Interpretation, 7th International Con ference, VM- CAI 2006, Charleston, SC, USA, January 8-10, 2006, Proceeding s, Vol. 3855 of Lecture Notes in Computer Science, Springer, 2006, pp. 4 27–442. doi:10...
-
[9]
Z. Su, D. A. Wagner, A class of polynomially solvable range constra ints for interval analysis without widenings, Theor. Comput. Sci. 345 (1) (2 005) 122–138. doi:10.1016/j.tcs.2005.07.035. URL https://doi.org/10.1016/j.tcs.2005.07.035
- [10]
-
[11]
M. Cristi´ a, G. Rossi, Solving quantifier-free first-order cons traints over fi- nite sets and binary relations, J. Autom. Reasoning 64 (2) (2020) 2 95–330. doi:10.1007/s10817-019-09520-4. URL https://doi.org/10.1007/s10817-019-09520-4
-
[12]
M. Cristi´ a, G. Rossi, A decision procedure for restricted inten sional sets, in: L. de Moura (Ed.), Automated Deduction - CADE 26 - 26th Intern a- tional Conference on Automated Deduction, Gothenburg, Swede n, August 6-11, 2017, Proceedings, Vol. 10395 of Lecture Notes in Compute r Science, Springer, 2017, pp. 185–201. doi:10.1007/978-3-319-63046-5 12. ...
-
[13]
M. Cristi´ a, G. Rossi, Automated reasoning with restricted inte nsional sets, Journal of Automated Reasoningdoi:10.1007/s10817-021-09589 -w. URL https://doi.org/10.1007/s10817-021-09589-w
-
[14]
A. Dovier, E. G. Omodeo, E. Pontelli, G. Rossi, A language for pro - gramming in logic with finite sets, J. Log. Program. 28 (1) (1996) 1–4 4. doi:10.1016/0743-1066(95)00147-6. URL http://dx.doi.org/10.1016/0743-1066(95)00147-6
-
[15]
Rossi, {log}, http://people.dmi.unipr.it/gianfranco.rossi/ setlog.Home.html (2021)
G. Rossi, {log}, http://people.dmi.unipr.it/gianfranco.rossi/ setlog.Home.html (2021). URL \url{http://people.dmi.unipr.it/gianfranco.rossi/setlog. Home.html}
work page 2021
-
[16]
M. Cristi´ a, G. Rossi, Automated proof of Bell-LaPadula security properties, J. Autom. Reason. 65 (4) (2021) 463–478. doi:10.1007/s10817-0 20-09577-6. URL https://doi.org/10.1007/s10817-020-09577-6 37
-
[17]
M. Cristi´ a, G. Rossi, An automatically verified prototype of the Tokeneer ID station specification, CoRR abs/2009.00999. arXiv:2009.00999. URL https://arxiv.org/abs/2009.00999
-
[18]
A. Dovier, E. Pontelli, G. Rossi, Set unification, Theory Pract. L og. Pro- gram. 6 (6) (2006) 645–701. doi:10.1017/S1471068406002730
-
[19]
J. Eriksson, M. Parsa, A DSL for integer range reasoning: Par tition, in- terval and mapping diagrams, in: E. Komendantskaya, Y. A. Liu (Ed s.), Practical Aspects of Declarative Languages - 22nd Internationa l Sympo- sium, PADL 2020, New Orleans, LA, USA, January 20-21, 2020, Pro ceed- ings, Vol. 12007 of Lecture Notes in Computer Science, Springer, 2 020...
-
[20]
Holzbaur, OF AI CLP(Q,R) manual, Tech
C. Holzbaur, OF AI CLP(Q,R) manual, Tech. rep., edition 1.3.3. Tec hnical Report TR-95-09, Austrian Research Institute for Artificial Int elligence (1995). URL http://www.ofai.at/cgi-bin/tr-online?number+95-09
work page 1995
-
[21]
J. M. Howe, A. King, A pearl on SAT and SMT solving in Prolog, Theo r. Comput. Sci. 435 (2012) 43–55. doi:10.1016/j.tcs.2012.02.024. URL https://doi.org/10.1016/j.tcs.2012.02.024
-
[22]
M. Cristi´ a, G. Rossi, Rewrite rules for a solver for sets, binary relations and partial functions, Tech. rep., http://people.dmi.unipr.it/gianfranco. rossi/SETLOG/calculus.pdf (2019)
work page 2019
-
[23]
M. Cristi´ a, G. Rossi, A set solver for finite set relation algebra, in: J. De- sharnais, W. Guttmann, S. Joosten (Eds.), Relational and Algebra ic Meth- ods in Computer Science - 17th International Conference, RAMiCS 2018, Groningen, The Netherlands, October 29 - November 1, 2018, Pro ceedings, Vol. 11194 of Lecture Notes in Computer Science, Springer, 2...
work page 2018
-
[24]
In: International Conference on Relational and Algebraic Methods in Computer Science, Springer, pp
doi:10.1007/978-3-030-02149-8 20. URL https://doi.org/10.1007/978-3-030-02149-8\_20
-
[25]
M. Cristi´ a, G. Rossi, C. S. Frydman, {log} as a test case generator for the Test Template Framework, in: R. M. Hierons, M. G. Merayo, M. Brav etti (Eds.), SEFM, Vol. 8137 of Lecture Notes in Computer Science, Spr inger, 2013, pp. 229–243
work page 2013
-
[26]
J. F. Allen, Maintaining knowledge about temporal intervals, Com mun. ACM 26 (11) (1983) 832–843. doi:10.1145/182.358434. URL http://doi.acm.org/10.1145/182.358434
-
[27]
D. Mentr´ e, C. March´ e, J.-C. Filliˆ atre, M. Asuka, Dischargingproof obliga- tions from Atelier B using multiple automated provers, in: J. Derrick, J. A. Fitzgerald, S. Gnesi, S. Khurshid, M. Leuschel, S. Reeves, E. Ricco bene (Eds.), ABZ, Vol. 7316 of Lecture Notes in Computer Science, Sprin ger, 2012, pp. 238–251. 38
work page 2012
-
[28]
W. Harvey, P. J. Stuckey, Improving linear constraint propag ation by changing constraint representation, Constraints An Int. J. 8 (2 ) (2003) 173–207. doi:10.1023/A:1022323717928. URL https://doi.org/10.1023/A:1022323717928
-
[29]
K. R. Apt, P. Zoeteweij, An analysis of arithmetic constraints o n integer intervals, Constraints An Int. J. 12 (4) (2007) 429–468. doi:10.10 07/s10601- 007-9017-9. URL https://doi.org/10.1007/s10601-007-9017-9
-
[30]
L. Bozzelli, A. Molinari, A. Montanari, A. Peron, Model checking in terval temporal logics with regular expressions, Inf. Comput. 272 (2020 ) 104498. doi:10.1016/j.ic.2019.104498. URL https://doi.org/10.1016/j.ic.2019.104498
-
[31]
A. A. Krokhin, P. Jeavons, P. Jonsson, Reasoning about temp oral relations: The tractable subalgebras of allen’s interval algebra, J. ACM 50 (5) (2003) 591–640. doi:10.1145/876638.876639. URL https://doi.org/10.1145/876638.876639
-
[32]
P. B. Ladkin, The completeness of a natural system for reaso ning with time intervals, in: J. P. McDermott (Ed.), Proceedings of the 10th Inte rnational Joint Conference on Artificial Intelligence. Milan, Italy, August 23- 28, 1987, Morgan Kaufmann, 1987, pp. 462–465. URL http://ijcai.org/Proceedings/87-1/Papers/091.pdf
work page 1987
-
[33]
T. Janhunen, M. Sioutis, Allen’s interval algebra makes the differ ence, in: P. Hofstedt, S. Abreu, U. John, H. Kuchen, D. Seipel (Eds.), Dec lara- tive Programming and Knowledge Management - Conference on Decla ra- tive Programming, DECLARE 2019, Unifying INAP, WLP, and WFLP, Cottbus, Germany, September 9-12, 2019, Revised Selected Pap ers, Vol. 12057 of ...
-
[34]
All the y i p are of sort Int
-
[35]
All the y i p are such that k i≤ y i p≤ m i
-
[36]
There are at least vi integer numbers in [ k i , m i ]—because all the y i p are different from each other. Therefore, if (B.2) is unsatisfiable when (B.3) is satisfiable it must be b ecause Φ1∧ Φ2 implies at least one of the following:
-
[37]
x∈ ˙Ai∧ ninteger(x )
-
[38]
x∈ ˙Ai∧ (x < k i∨ m i < x )
-
[39]
size( ˙Ai , q)∧ m i− k i + 1 < q m i− k i + 1 < q, size( ˙Ai , q)∧ ˙Ai⊆ [k i , m i ] is trivially unsatisfiable
-
[40]
0 ≤ p∧ (⋀p+1 j =1 xp /∈ ˙Ai∧ k i≤ xp≤ m i )∧ size( ˙Ai , m i− k i + 1− p) (a) ⋀p+1 j =1 k i≤ xp≤ m i implies that there are p + 1 elements in [ k i , m i ]. (b) size( ˙Ai , m i− k i + 1− p) ∧ ˙Ai ⊆ [k i , m i ] implies that there are m i− k i + 1− p elements in [ k i , m i ]. (c) ⋀p+1 j =1 xp /∈ ˙Ai implies that the p + 1 elements of 4a are disjoint from ...
-
[41]
Rewrite rules of SAT |·|do not call the new rewrite rules as L|·|does not admit integer intervals. Then, if one of the new rewrite rules genera tes a constraint dealt by the old rewrite rules, the latter will not call the f ormer. Then, termination is proved in what concerns the interaction betwe en new and old rewrite rules
-
[42]
All these constraints are processed by CLP(Q) which only generates integer constraints
Rules (10), (12), (13), (15), (16), (17), (18), (20), (22), (27), (28) and (29), produce only integer constraints or true. All these constraints are processed by CLP(Q) which only generates integer constraints. T hen, termination is proved
-
[43]
Rules (16) and (17) trivially terminate. This is important because o ther rules in Figures 2-5 produce constraints of the form ·∈ [·,·] or· /∈ [·,·]. So when that happens, termination is proved
-
[44]
This is important because these a re the rules called when the identity (3) is applied
Rules (22)-(24) are either non-recursive or self recursive, bu t they never make a recursion on another rule. This is important because these a re the rules called when the identity (3) is applied. Then, when (22)-(24) ar e called, termination is proved
-
[45]
Rule (11) generates a size-constraint in which case 1 applies; and a con- straint of the form ·⊆ [·,·] in which case 4 applies. Then, termination is proved
-
[46]
Then, te rmi- nation is proved
Rule (14) calls rules (16) and (17), in which case 3 applies. Then, te rmi- nation is proved
-
[47]
Rule (19) generates a size and a∥ constraints in which case 1 applies; and a constraint of the form·⊆ [·,·] in which case 4 applies. Then, termination is proved
-
[48]
Rule (21) generates a constraint of the form ·∈ [·,·] in which case 3 applies. Then, termination is proved
-
[49]
Rules (25) and (26) generate equality, size and un constraints in which case 1 applies. They also generate constraints of the form [ ·,·] =·in which case 5 applies; and constraints of the form ·⊆ [·,·] in which case 4 applies. Then, termination is proved. 45 Appendix C. Two Operators Definable as L[ ] F ormulas In this section we show two more operators de...
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.