Quantitative relational modelling with QAlloy
Pedro Silva, José N. Oliveira, Nuno Macedo, Alcino Cunha
Abstract
Alloy is a popular language and tool for formal software design. A key factor to this popularity is its relational logic, an elegant specification language with a minimal syntax and semantics. However, many software problems nowadays involve both structural and quantitative requirements, and Alloy's relational logic is not well suited to reason about the latter. This paper introduces QAlloy, an extension of Alloy with quantitative relations that add integer quantities to associations between domain elements. Having integers internalised in relations, instead of being explicit domain elements like in standard Alloy, allows quantitative requirements to be specified in QAlloy with a similar elegance to structural requirements, with the side-effect of providing basic dimensional analysis support via the type system. The QAlloy Analyzer also implements an SMT-based engine that enables quantities to be unbounded, thus avoiding many problems that may arise with the current bounded integer semantics of Alloy.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
Builds on1
Related papers
- Abstract Alloy InstancesJan Oliver Ringert, Allison SullivanFM 2023 · 9 citations
- A study of the learnability of relational properties: model counting meets machine learning (MCML)Muhammad Usman, Wenxi Wang, Marko Vasic, Kaiyuan Wang et al.PLDI 2020 · 5 citations
- Forge: A Tool and Language for Teaching Formal MethodsTim Nelson, Ben Greenman, Siddhartha Prasad, Tristan Dyer et al.OOPSLA 2024 · 8 citations
- SymMC: approximate model enumeration and counting using symmetry information for Alloy specificationsWenxi Wang, Yang Hu, Kenneth L. McMillan, Sarfraz KhurshidFSE 2022
- QMaude: Quantitative Specification and Verification in Rewriting LogicRubén Rubio, Narciso Martí-Oliet, Isabel Pita, Alberto VerdejoFM 2023 · 11 citations
