| 1 |
fth T is |
| 2 |
sort Elt . |
| 3 |
op ({_}:{_}) : Elt Elt -> Elt . |
| 4 |
op {_}to{_} : Elt Elt -> Elt . |
| 5 |
op two to : -> Elt . |
| 6 |
op ([:]) : -> Elt . |
| 7 |
endfth |
| 8 |
fth T is |
| 9 |
sort Elt . |
| 10 |
op ({_}:{_}) : Elt Elt -> Elt [prec 0 gather (& &)] . |
| 11 |
op {_}to{_} : Elt Elt -> Elt [prec 0 gather (& &)] . |
| 12 |
op two to : -> Elt . |
| 13 |
op ([:]) : -> Elt . |
| 14 |
endfth |
| 15 |
fmod M is |
| 16 |
sort Elt . |
| 17 |
op term{_,_} : Elt Elt -> Elt . |
| 18 |
op {_}.{_} : Elt Elt -> Elt . |
| 19 |
op term{} : -> Elt . |
| 20 |
op }.{ : -> Elt . |
| 21 |
endfm |
| 22 |
fmod M is |
| 23 |
including BOOL . |
| 24 |
sort Elt . |
| 25 |
op term{_,_} : Elt Elt -> Elt [prec 0 gather (& &)] . |
| 26 |
op {_}.{_} : Elt Elt -> Elt [prec 0 gather (& &)] . |
| 27 |
op term{} : -> Elt . |
| 28 |
op }.{ : -> Elt . |
| 29 |
endfm |
| 30 |
view V from T to M is |
| 31 |
op ({_}:{_}) to (term{_,_}) . |
| 32 |
op ({_}to{_}) to ({_}.{_}) . |
| 33 |
op (two to) to (term{}) . |
| 34 |
op ([:]) to (}.{) . |
| 35 |
endv |
| 36 |
view V from T to M is |
| 37 |
op ({_}:{_}) to (term{_,_}) . |
| 38 |
op ({_}to{_}) to ({_}.{_}) . |
| 39 |
op (two to) to (term{}) . |
| 40 |
op ([:]) to (}.{) . |
| 41 |
endv |
| 42 |
fth T2 is |
| 43 |
including T * (op ({_}:{_}) to (f[_,_]), op ({_}to{_}) to (_,_), op (two to) |
| 44 |
to (][), op ([:]) to (]i[)) . |
| 45 |
endfth |
| 46 |
fth T2 is |
| 47 |
including T * (op ({_}:{_}) to (f[_,_]), op ({_}to{_}) to (_,_), op (two to) |
| 48 |
to (][), op ([:]) to (]i[)) . |
| 49 |
endfth |
| 50 |
fmod BOOL |
| 51 |
fmod TRUTH-VALUE |
| 52 |
fmod BOOL-OPS |
| 53 |
fmod TRUTH |
| 54 |
fmod EXT-BOOL |
| 55 |
fmod INITIAL-EQUALITY-PREDICATE |
| 56 |
fmod NAT |
| 57 |
fmod INT |
| 58 |
fmod RAT |
| 59 |
fmod M |
| 60 |
fmod FLOAT |
| 61 |
fmod STRING |
| 62 |
fmod CONVERSION |
| 63 |
fmod RANDOM |
| 64 |
fmod BOUND |
| 65 |
fmod QID |
| 66 |
fth TRIV |
| 67 |
fth STRICT-WEAK-ORDER |
| 68 |
fth STRICT-TOTAL-ORDER |
| 69 |
fth TOTAL-PREORDER |
| 70 |
fth TOTAL-ORDER |
| 71 |
fth DEFAULT |
| 72 |
fmod LIST |
| 73 |
fmod WEAKLY-SORTABLE-LIST |
| 74 |
fmod SORTABLE-LIST |
| 75 |
fmod WEAKLY-SORTABLE-LIST' |
| 76 |
fmod SORTABLE-LIST' |
| 77 |
fmod SET |
| 78 |
fmod LIST-AND-SET |
| 79 |
fmod SORTABLE-LIST-AND-SET |
| 80 |
fmod SORTABLE-LIST-AND-SET' |
| 81 |
fmod LIST* |
| 82 |
fmod SET* |
| 83 |
fmod MAP |
| 84 |
fmod ARRAY |
| 85 |
fmod STRING-OPS |
| 86 |
fmod NAT-LIST |
| 87 |
fmod QID-LIST |
| 88 |
fmod QID-SET |
| 89 |
fmod META-TERM |
| 90 |
fmod META-CONDITION |
| 91 |
fmod META-STRATEGY |
| 92 |
fmod META-MODULE |
| 93 |
fth T |
| 94 |
fmod META-VIEW |
| 95 |
fmod META-LEVEL |
| 96 |
fth T2 |
| 97 |
fmod LEXICAL |
| 98 |
mod COUNTER |
| 99 |
mod LOOP-MODE |
| 100 |
mod CONFIGURATION |
| 101 |
fth X :: TRIV |
| 102 |
fmod LIST{[X]} |
| 103 |
fth X :: STRICT-WEAK-ORDER |
| 104 |
fmod LIST{STRICT-WEAK-ORDER} |
| 105 |
fmod LIST{STRICT-WEAK-ORDER}{[X]} |
| 106 |
fmod LIST{STRICT-WEAK-ORDER}{[X]} * (sort NeList{STRICT-WEAK-ORDER}{X} to |
| 107 |
NeList{X}, sort List{STRICT-WEAK-ORDER}{X} to List{X}) |
| 108 |
fmod WEAKLY-SORTABLE-LIST{[X]} |
| 109 |
fth X :: STRICT-TOTAL-ORDER |
| 110 |
fmod WEAKLY-SORTABLE-LIST{STRICT-TOTAL-ORDER} |
| 111 |
fmod LIST{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER} |
| 112 |
fmod LIST{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{[X]} |
| 113 |
fmod LIST{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{[X]} * (sort NeList{ |
| 114 |
STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{X} to NeList{STRICT-TOTAL-ORDER}{X}, |
| 115 |
sort List{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{X} to List{ |
| 116 |
STRICT-TOTAL-ORDER}{X}) |
| 117 |
fmod WEAKLY-SORTABLE-LIST{STRICT-TOTAL-ORDER}{[X]} |
| 118 |
fmod WEAKLY-SORTABLE-LIST{STRICT-TOTAL-ORDER}{[X]} * (sort NeList{ |
| 119 |
STRICT-TOTAL-ORDER}{X} to NeList{X}, sort List{STRICT-TOTAL-ORDER}{X} to |
| 120 |
List{X}) |
| 121 |
fmod LIST{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{[X]} * (sort NeList{ |
| 122 |
STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{X} to NeList{STRICT-TOTAL-ORDER}{X}, |
| 123 |
sort List{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{X} to List{ |
| 124 |
STRICT-TOTAL-ORDER}{X}) * (sort NeList{STRICT-TOTAL-ORDER}{X} to NeList{X}, |
| 125 |
sort List{STRICT-TOTAL-ORDER}{X} to List{X}) |
| 126 |
fmod SORTABLE-LIST{[X]} |
| 127 |
fth X :: TOTAL-PREORDER |
| 128 |
fmod LIST{TOTAL-PREORDER} |
| 129 |
fmod LIST{TOTAL-PREORDER}{[X]} |
| 130 |
fmod LIST{TOTAL-PREORDER}{[X]} * (sort NeList{TOTAL-PREORDER}{X} to NeList{X}, |
| 131 |
sort List{TOTAL-PREORDER}{X} to List{X}) |
| 132 |
fmod WEAKLY-SORTABLE-LIST'{[X]} |
| 133 |
fth X :: TOTAL-ORDER |
| 134 |
fmod WEAKLY-SORTABLE-LIST'{TOTAL-ORDER} |
| 135 |
fmod LIST{TOTAL-PREORDER}{TOTAL-ORDER} |
| 136 |
fmod LIST{TOTAL-PREORDER}{TOTAL-ORDER}{[X]} |
| 137 |
fmod LIST{TOTAL-PREORDER}{TOTAL-ORDER}{[X]} * (sort NeList{TOTAL-PREORDER}{ |
| 138 |
TOTAL-ORDER}{X} to NeList{TOTAL-ORDER}{X}, sort List{TOTAL-PREORDER}{ |
| 139 |
TOTAL-ORDER}{X} to List{TOTAL-ORDER}{X}) |
| 140 |
fmod WEAKLY-SORTABLE-LIST'{TOTAL-ORDER}{[X]} |
| 141 |
fmod WEAKLY-SORTABLE-LIST'{TOTAL-ORDER}{[X]} * (sort NeList{TOTAL-ORDER}{X} to |
| 142 |
NeList{X}, sort List{TOTAL-ORDER}{X} to List{X}) |
| 143 |
fmod LIST{TOTAL-PREORDER}{TOTAL-ORDER}{[X]} * (sort NeList{TOTAL-PREORDER}{ |
| 144 |
TOTAL-ORDER}{X} to NeList{TOTAL-ORDER}{X}, sort List{TOTAL-PREORDER}{ |
| 145 |
TOTAL-ORDER}{X} to List{TOTAL-ORDER}{X}) * (sort NeList{TOTAL-ORDER}{X} to |
| 146 |
NeList{X}, sort List{TOTAL-ORDER}{X} to List{X}) |
| 147 |
fmod SORTABLE-LIST'{[X]} |
| 148 |
fmod SET{[X]} |
| 149 |
fmod LIST-AND-SET{STRICT-WEAK-ORDER} |
| 150 |
fmod SET{STRICT-WEAK-ORDER} |
| 151 |
fmod SET{STRICT-WEAK-ORDER}{[X]} |
| 152 |
fmod LIST-AND-SET{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER} |
| 153 |
fmod SET{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER} |
| 154 |
fmod SET{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{[X]} |
| 155 |
fmod LIST-AND-SET{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{[X]} |
| 156 |
fmod LIST-AND-SET{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{[X]} * (sort NeList{ |
| 157 |
STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{X} to NeList{STRICT-TOTAL-ORDER}{X}, |
| 158 |
sort List{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{X} to List{ |
| 159 |
STRICT-TOTAL-ORDER}{X}) |
| 160 |
fmod LIST-AND-SET{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{[X]} * (sort NeList{ |
| 161 |
STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{X} to NeList{STRICT-TOTAL-ORDER}{X}, |
| 162 |
sort List{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{X} to List{ |
| 163 |
STRICT-TOTAL-ORDER}{X}) * (sort NeList{STRICT-TOTAL-ORDER}{X} to NeList{X}, |
| 164 |
sort List{STRICT-TOTAL-ORDER}{X} to List{X}, sort NeSet{STRICT-WEAK-ORDER}{ |
| 165 |
STRICT-TOTAL-ORDER}{X} to NeSet{X}, sort Set{STRICT-WEAK-ORDER}{ |
| 166 |
STRICT-TOTAL-ORDER}{X} to Set{X}) |
| 167 |
fmod SET{STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{[X]} * (sort NeSet{ |
| 168 |
STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{X} to NeSet{X}, sort Set{ |
| 169 |
STRICT-WEAK-ORDER}{STRICT-TOTAL-ORDER}{X} to Set{X}) |
| 170 |
fmod LIST-AND-SET{TOTAL-PREORDER} |
| 171 |
fmod SET{TOTAL-PREORDER} |
| 172 |
fmod SET{TOTAL-PREORDER}{[X]} |
| 173 |
fmod LIST-AND-SET{TOTAL-PREORDER}{TOTAL-ORDER} |
| 174 |
fmod SET{TOTAL-PREORDER}{TOTAL-ORDER} |
| 175 |
fmod SET{TOTAL-PREORDER}{TOTAL-ORDER}{[X]} |
| 176 |
fmod LIST-AND-SET{TOTAL-PREORDER}{TOTAL-ORDER}{[X]} |
| 177 |
fmod LIST-AND-SET{TOTAL-PREORDER}{TOTAL-ORDER}{[X]} * (sort NeList{ |
| 178 |
TOTAL-PREORDER}{TOTAL-ORDER}{X} to NeList{TOTAL-ORDER}{X}, sort List{ |
| 179 |
TOTAL-PREORDER}{TOTAL-ORDER}{X} to List{TOTAL-ORDER}{X}) |
| 180 |
fmod LIST-AND-SET{TOTAL-PREORDER}{TOTAL-ORDER}{[X]} * (sort NeList{ |
| 181 |
TOTAL-PREORDER}{TOTAL-ORDER}{X} to NeList{TOTAL-ORDER}{X}, sort List{ |
| 182 |
TOTAL-PREORDER}{TOTAL-ORDER}{X} to List{TOTAL-ORDER}{X}) * (sort NeList{ |
| 183 |
TOTAL-ORDER}{X} to NeList{X}, sort List{TOTAL-ORDER}{X} to List{X}, sort |
| 184 |
NeSet{TOTAL-PREORDER}{TOTAL-ORDER}{X} to NeSet{X}, sort Set{ |
| 185 |
TOTAL-PREORDER}{TOTAL-ORDER}{X} to Set{X}) |
| 186 |
fmod SET{TOTAL-PREORDER}{TOTAL-ORDER}{[X]} * (sort NeSet{TOTAL-PREORDER}{ |
| 187 |
TOTAL-ORDER}{X} to NeSet{X}, sort Set{TOTAL-PREORDER}{TOTAL-ORDER}{X} to |
| 188 |
Set{X}) |
| 189 |
fmod LIST*{[X]} |
| 190 |
fmod SET*{[X]} |
| 191 |
fth Y :: TRIV |
| 192 |
fmod MAP{[X], [Y]} |
| 193 |
fth Y :: DEFAULT |
| 194 |
fmod ARRAY{[X], [Y]} |
| 195 |
fmod LIST{Nat} |
| 196 |
fmod LIST{Nat} * (sort NeList{Nat} to NeNatList, sort List{Nat} to NatList) |
| 197 |
fmod LIST{Qid} |
| 198 |
fmod LIST{Qid} * (sort NeList{Qid} to NeQidList, sort List{Qid} to QidList) |
| 199 |
fmod SET{Qid} |
| 200 |
fmod SET{Qid} * (sort NeSet{Qid} to NeQidSet, sort Set{Qid} to QidSet) |
| 201 |
fmod QID-SET * (op empty to none, op _,_ to _;_ [prec 43]) |
| 202 |
fmod SET{Qid} * (sort NeSet{Qid} to NeQidSet, sort Set{Qid} to QidSet) * (op |
| 203 |
empty to none, op _,_ to _;_ [prec 43]) |
| 204 |
fth T * (op ({_}:{_}) to (f[_,_]), op ({_}to{_}) to (_,_), op (two to) to (][), |
| 205 |
op ([:]) to (]i[)) |
| 206 |
view Bool |
| 207 |
view Nat |
| 208 |
view Int |
| 209 |
view Rat |
| 210 |
view Float |
| 211 |
view String |
| 212 |
view Qid |
| 213 |
view TRIV |
| 214 |
view STRICT-WEAK-ORDER |
| 215 |
view STRICT-TOTAL-ORDER |
| 216 |
view Nat< |
| 217 |
view Int< |
| 218 |
view Rat< |
| 219 |
view Float< |
| 220 |
view String< |
| 221 |
view TOTAL-PREORDER |
| 222 |
view TOTAL-ORDER |
| 223 |
view Nat<= |
| 224 |
view Int<= |
| 225 |
view Rat<= |
| 226 |
view Float<= |
| 227 |
view String<= |
| 228 |
view DEFAULT |
| 229 |
view Nat0 |
| 230 |
view Int0 |
| 231 |
view Rat0 |
| 232 |
view Float0 |
| 233 |
view String0 |
| 234 |
view Qid0 |
| 235 |
view List |
| 236 |
view WeaklySortableList |
| 237 |
view SortableList |
| 238 |
view WeaklySortableList' |
| 239 |
view SortableList' |
| 240 |
view Set |
| 241 |
view List* |
| 242 |
view Set* |
| 243 |
view Map |
| 244 |
view Array |
| 245 |
view V |
| 246 |
Advisory: redefining module T. |
| 247 |
Advisory: redefining view V. |
| 248 |
view V{X :: TRIV} from T * (op [_,_] to ({_,_})) to LIST{X} is |
| 249 |
sort Elt to List{X} . |
| 250 |
op {_,_} to append . |
| 251 |
endv |
| 252 |
view V{X :: TRIV} from T * (op [_,_] to ({_,_})) to LIST{X} is |
| 253 |
sort Elt to List{X} . |
| 254 |
op {_,_} to append . |
| 255 |
endv |
| 256 |
fmod OP-HOOK-TEST is |
| 257 |
protecting BOOL . |
| 258 |
sorts Zero NzNat Nat . |
| 259 |
subsorts Zero NzNat < Nat . |
| 260 |
op 0 : -> Zero [ctor] . |
| 261 |
op (:) : Nat -> NzNat [ctor iter special ( |
| 262 |
id-hook SuccSymbol |
| 263 |
term-hook zeroTerm (0))] . |
| 264 |
op _+_ : NzNat Nat -> NzNat [assoc comm prec 33 special ( |
| 265 |
id-hook ACU_NumberOpSymbol (+) |
| 266 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 267 |
op _+_ : Nat Nat -> Nat [ditto] . |
| 268 |
endfm |
| 269 |
fmod OP-HOOK-TEST is |
| 270 |
including BOOL . |
| 271 |
protecting BOOL . |
| 272 |
sorts Zero NzNat Nat . |
| 273 |
subsorts Zero NzNat < Nat . |
| 274 |
op 0 : -> Zero [ctor] . |
| 275 |
op (:) : Nat -> NzNat [ctor iter special ( |
| 276 |
id-hook SuccSymbol |
| 277 |
term-hook zeroTerm (0))] . |
| 278 |
op _+_ : NzNat Nat -> NzNat [assoc comm prec 33 gather (e E) special ( |
| 279 |
id-hook ACU_NumberOpSymbol (+) |
| 280 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 281 |
op _+_ : Nat Nat -> Nat [assoc comm prec 33 gather (e E) special ( |
| 282 |
id-hook ACU_NumberOpSymbol (+) |
| 283 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 284 |
endfm |
| 285 |
fmod OP-HOOK-TEST2 is |
| 286 |
sorts Bool Zero NzNat Nat . |
| 287 |
subsorts Zero NzNat < Nat . |
| 288 |
op if_then_else_fi : Bool Universal Universal -> Universal [poly (2 3 0) prec |
| 289 |
0 gather (& & &) special ( |
| 290 |
id-hook BranchSymbol |
| 291 |
term-hook 1 (true) |
| 292 |
term-hook 2 (false))] . |
| 293 |
op _==_ : Universal Universal -> Bool [poly (1 2) prec 51 gather (E E) |
| 294 |
special ( |
| 295 |
id-hook EqualitySymbol |
| 296 |
term-hook equalTerm (true) |
| 297 |
term-hook notEqualTerm (false))] . |
| 298 |
op _=/=_ : Universal Universal -> Bool [poly (1 2) prec 51 gather (E E) |
| 299 |
special ( |
| 300 |
id-hook EqualitySymbol |
| 301 |
term-hook equalTerm (false) |
| 302 |
term-hook notEqualTerm (true))] . |
| 303 |
op true : -> Bool [ctor special ( |
| 304 |
id-hook SystemTrue)] . |
| 305 |
op false : -> Bool [ctor special ( |
| 306 |
id-hook SystemFalse)] . |
| 307 |
op _and_ : Bool Bool -> Bool [assoc comm prec 55 gather (e E)] . |
| 308 |
op _or_ : Bool Bool -> Bool [assoc comm prec 59 gather (e E)] . |
| 309 |
op _xor_ : Bool Bool -> Bool [assoc comm prec 57 gather (e E)] . |
| 310 |
op not_ : Bool -> Bool [prec 53 gather (E)] . |
| 311 |
op _implies_ : Bool Bool -> Bool [prec 61 gather (e E)] . |
| 312 |
op 0 : -> Zero [ctor] . |
| 313 |
op (:) : Nat -> NzNat [ctor iter special ( |
| 314 |
id-hook SuccSymbol |
| 315 |
term-hook zeroTerm (0))] . |
| 316 |
op _+_ : NzNat Nat -> NzNat [assoc comm prec 33 gather (e E) special ( |
| 317 |
id-hook ACU_NumberOpSymbol (+) |
| 318 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 319 |
op _+_ : Nat Nat -> Nat [assoc comm prec 33 gather (e E) special ( |
| 320 |
id-hook ACU_NumberOpSymbol (+) |
| 321 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 322 |
op sd : Nat Nat -> Nat [comm special ( |
| 323 |
id-hook CUI_NumberOpSymbol (sd) |
| 324 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 325 |
op _*_ : NzNat NzNat -> NzNat [assoc comm prec 31 gather (e E) special ( |
| 326 |
id-hook ACU_NumberOpSymbol (*) |
| 327 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 328 |
op _*_ : Nat Nat -> Nat [assoc comm prec 31 gather (e E) special ( |
| 329 |
id-hook ACU_NumberOpSymbol (*) |
| 330 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 331 |
op _quo_ : Nat NzNat -> Nat [prec 31 gather (E e) special ( |
| 332 |
id-hook NumberOpSymbol (quo) |
| 333 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 334 |
op _rem_ : Nat NzNat -> Nat [prec 31 gather (E e) special ( |
| 335 |
id-hook NumberOpSymbol (rem) |
| 336 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 337 |
op _^_ : Nat Nat -> Nat [prec 29 gather (E e) special ( |
| 338 |
id-hook NumberOpSymbol (^) |
| 339 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 340 |
op _^_ : NzNat Nat -> NzNat [prec 29 gather (E e) special ( |
| 341 |
id-hook NumberOpSymbol (^) |
| 342 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 343 |
op modExp : [Nat] [Nat] [Nat] -> [Nat] [special ( |
| 344 |
id-hook NumberOpSymbol (modExp) |
| 345 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 346 |
op gcd : NzNat Nat -> NzNat [assoc comm special ( |
| 347 |
id-hook ACU_NumberOpSymbol (gcd) |
| 348 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 349 |
op gcd : Nat Nat -> Nat [assoc comm special ( |
| 350 |
id-hook ACU_NumberOpSymbol (gcd) |
| 351 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 352 |
op lcm : NzNat NzNat -> NzNat [assoc comm special ( |
| 353 |
id-hook ACU_NumberOpSymbol (lcm) |
| 354 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 355 |
op lcm : Nat Nat -> Nat [assoc comm special ( |
| 356 |
id-hook ACU_NumberOpSymbol (lcm) |
| 357 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 358 |
op min : NzNat NzNat -> NzNat [assoc comm special ( |
| 359 |
id-hook ACU_NumberOpSymbol (min) |
| 360 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 361 |
op min : Nat Nat -> Nat [assoc comm special ( |
| 362 |
id-hook ACU_NumberOpSymbol (min) |
| 363 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 364 |
op max : NzNat Nat -> NzNat [assoc comm special ( |
| 365 |
id-hook ACU_NumberOpSymbol (max) |
| 366 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 367 |
op max : Nat Nat -> Nat [assoc comm special ( |
| 368 |
id-hook ACU_NumberOpSymbol (max) |
| 369 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 370 |
op _xor_ : Nat Nat -> Nat [assoc comm prec 55 gather (e E) special ( |
| 371 |
id-hook ACU_NumberOpSymbol (xor) |
| 372 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 373 |
op _&_ : Nat Nat -> Nat [assoc comm prec 53 gather (e E) special ( |
| 374 |
id-hook ACU_NumberOpSymbol (&) |
| 375 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 376 |
op _|_ : NzNat Nat -> NzNat [assoc comm prec 57 gather (e E) special ( |
| 377 |
id-hook ACU_NumberOpSymbol (|) |
| 378 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 379 |
op _|_ : Nat Nat -> Nat [assoc comm prec 57 gather (e E) special ( |
| 380 |
id-hook ACU_NumberOpSymbol (|) |
| 381 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 382 |
op _>>_ : Nat Nat -> Nat [prec 35 gather (E e) special ( |
| 383 |
id-hook NumberOpSymbol (>>) |
| 384 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 385 |
op _<<_ : Nat Nat -> Nat [prec 35 gather (E e) special ( |
| 386 |
id-hook NumberOpSymbol (<<) |
| 387 |
op-hook succSymbol (: : Nat ~> NzNat))] . |
| 388 |
op _<_ : Nat Nat -> Bool [prec 37 gather (E E) special ( |
| 389 |
id-hook NumberOpSymbol (<) |
| 390 |
op-hook succSymbol (: : Nat ~> NzNat) |
| 391 |
term-hook trueTerm (true) |
| 392 |
term-hook falseTerm (false))] . |
| 393 |
op _<=_ : Nat Nat -> Bool [prec 37 gather (E E) special ( |
| 394 |
id-hook NumberOpSymbol (<=) |
| 395 |
op-hook succSymbol (: : Nat ~> NzNat) |
| 396 |
term-hook trueTerm (true) |
| 397 |
term-hook falseTerm (false))] . |
| 398 |
op _>_ : Nat Nat -> Bool [prec 37 gather (E E) special ( |
| 399 |
id-hook NumberOpSymbol (>) |
| 400 |
op-hook succSymbol (: : Nat ~> NzNat) |
| 401 |
term-hook trueTerm (true) |
| 402 |
term-hook falseTerm (false))] . |
| 403 |
op _>=_ : Nat Nat -> Bool [prec 37 gather (E E) special ( |
| 404 |
id-hook NumberOpSymbol (>=) |
| 405 |
op-hook succSymbol (: : Nat ~> NzNat) |
| 406 |
term-hook trueTerm (true) |
| 407 |
term-hook falseTerm (false))] . |
| 408 |
op _divides_ : NzNat Nat -> Bool [prec 51 gather (E E) special ( |
| 409 |
id-hook NumberOpSymbol (divides) |
| 410 |
op-hook succSymbol (: : Nat ~> NzNat) |
| 411 |
term-hook trueTerm (true) |
| 412 |
term-hook falseTerm (false))] . |
| 413 |
eq true and A:Bool = A:Bool . |
| 414 |
eq false and A:Bool = false . |
| 415 |
eq A:Bool and A:Bool = A:Bool . |
| 416 |
eq false xor A:Bool = A:Bool . |
| 417 |
eq A:Bool xor A:Bool = false . |
| 418 |
eq A:Bool and (B:Bool xor C:Bool) = A:Bool and B:Bool xor A:Bool and C:Bool . |
| 419 |
eq not A:Bool = true xor A:Bool . |
| 420 |
eq A:Bool or B:Bool = A:Bool and B:Bool xor A:Bool xor B:Bool . |
| 421 |
eq A:Bool implies B:Bool = not (A:Bool xor A:Bool and B:Bool) . |
| 422 |
endfm |
| 423 |
omod FOO is |
| 424 |
sorts Foo Bar . |
| 425 |
ops f ([_]) : Foo -> Foo . |
| 426 |
msgs m ([_]) : Bar -> Msg . |
| 427 |
endom |
| 428 |
Advisory: redefining module FOO. |
| 429 |
fmod FOO is |
| 430 |
sort Foo . |
| 431 |
ops ([_]) (:) : Foo -> Foo . |
| 432 |
endfm |
| 433 |
Bye. |