formally_smt/logics/standard.rs
1//
2// ::formally - the open-source formal methods toolchain
3//
4// Copyright (c) 2025 Nicola Gigante
5//
6// Permission is hereby granted, free of charge, to any person obtaining a copy
7// of this software and associated documentation files (the "Software"), to deal
8// in the Software without restriction, including without limitation the rights
9// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10// copies of the Software, and to permit persons to whom the Software is
11// furnished to do so, subject to the following conditions:
12//
13// The above copyright notice and this permission notice shall be included in
14// all copies or substantial portions of the Software.
15//
16// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19// AUTHORS OR COPYRIGHT HOLDERS BE IntsBLE FOR ANY CLAIM, DAMAGES OR OTHER
20// IntsBILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22// SOFTWARE.
23//
24
25use crate::*;
26
27use formally::smt::{logics::requirements::*, theories::*};
28
29logic! {
30 /// Linear Integer Arithmetic with Uninterpreted Functions.
31 name: pub UFLIA,
32 theories: [ Core, Ints ],
33 requirements: [ Linear ],
34 standard: true
35}
36
37logic! {
38 /// Linear Real Arithmetic with Uninterpreted Functions.
39 name: pub UFLRA,
40 theories: [ Core, Reals ],
41 requirements: [ Linear ],
42 standard: true
43}
44
45logic! {
46 /// Linear Integer Arithmetic.
47 name: pub LIA,
48 theories: [ Core, Ints ],
49 requirements: [ Linear, NoUF ],
50 standard: true
51}
52
53logic! {
54 /// Linear Real Arithmetic.
55 name: pub LRA,
56 theories: [ Core, Reals ],
57 requirements: [ Linear, NoUF ],
58 standard: true
59}
60
61logic! {
62 /// Linear Real Arithmetic.
63 name: pub LIRA,
64 theories: [ Core, RealsInts ],
65 requirements: [ Linear, NoUF ],
66 standard: true
67}
68
69logic! {
70 /// Non-linear Integer Arithmetic.
71 name: pub NIA,
72 theories: [ Core, Ints ],
73 requirements: [ NoUF ],
74 standard: true
75}
76
77logic! {
78 /// Non-linear Real Arithmetic.
79 name: pub NRA,
80 theories: [ Core, Reals ],
81 requirements: [ NoUF ],
82 standard: true
83}
84
85logic! {
86 /// Quantifier-Free Linear Integer Arithmetic with Uninterpreted Functions.
87 name: pub QF_UFLIA,
88 theories: [ Core, Ints ],
89 requirements: [ Linear, QuantifierFree ],
90 standard: true
91}
92
93logic! {
94 /// Quantifier-Free Linear Real Arithmetic with Uninterpreted Functions.
95 name: pub QF_UFLRA,
96 theories: [ Core, Reals ],
97 requirements: [ Linear, QuantifierFree ],
98 standard: true
99}
100
101logic! {
102 /// Quantifier-Free Non-linear Integer Arithmetic with Uninterpreted Functions.
103 name: pub QF_UFNIA,
104 theories: [ Core, Ints ],
105 requirements: [ QuantifierFree ],
106 standard: true
107}
108
109logic! {
110 /// Quantifier-Free Non-linear Real Arithmetic with Uninterpreted Functions.
111 name: pub QF_UFNRA,
112 theories: [ Core, Reals ],
113 requirements: [ QuantifierFree ],
114 standard: true
115}
116
117logic! {
118 /// Quantifier-Free Linear Integer Arithmetic.
119 name: pub QF_LIA,
120 theories: [ Core, Ints ],
121 requirements: [ Linear, QuantifierFree, NoUF ],
122 standard: true
123}
124
125logic! {
126 /// Quantifier-Free Linear Real Arithmetic.
127 name: pub QF_LRA,
128 theories: [ Core, Reals ],
129 requirements: [ Linear, QuantifierFree, NoUF ],
130 standard: true
131}
132
133logic! {
134 /// Quantifier-Free Non-linear Integer Arithmetic.
135 name: pub QF_NIA,
136 theories: [ Core, Ints ],
137 requirements: [ QuantifierFree, NoUF ],
138 standard: true
139}
140
141logic! {
142 /// Quantifier-Free Non-linear Real Arithmetic.
143 name: pub QF_NRA,
144 theories: [ Core, Reals ],
145 requirements: [ QuantifierFree, NoUF ],
146 standard: true
147}
148
149logic! {
150 /// Quantifier-Free Linear Real/Integer Arithmetic.
151 name: pub QF_LIRA,
152 theories: [ Core, RealsInts ],
153 requirements: [ Linear, QuantifierFree, NoUF ],
154 standard: true
155}
156
157logic! {
158 /// Linear Integer Arithmetic with Arrays.
159 name: pub ALIA,
160 theories: [ Core, Ints, Arrays ],
161 requirements: [ Linear, NoUF ],
162 standard: true
163}
164
165logic! {
166 /// Quantifier-Free Linear Integer Arithmetic with Arrays.
167 name: pub QF_ALIA,
168 theories: [ Core, Ints, Arrays ],
169 requirements: [ Linear, QuantifierFree, NoUF ],
170 standard: true
171}
172
173logic! {
174 /// Linear Integer Arithmetic with Arrays and Uninterpreted Functions.
175 name: pub UFALIA,
176 theories: [ Core, Ints, Arrays ],
177 requirements: [ Linear ],
178 standard: true
179}
180
181logic! {
182 /// Quantifier-Free Linear Integer Arithmetic with Arrays and Uninterpreted Functions.
183 name: pub QF_UFALIA,
184 theories: [ Core, Ints, Arrays ],
185 requirements: [ Linear, QuantifierFree ],
186 standard: true
187}