| 1 |
Warning: <standard input>, line 12 (fmod BAR): importation of fmod FOO by fmod |
| 2 |
BAR not allowed because the pseudo-parameter X of fmod FOO would be |
| 3 |
captured by an actual parameter of fmod BAR. |
| 4 |
Warning: In module instantiation BAR{[X]}, parameter X clashes with a |
| 5 |
pseudo-parameter of BAR. |
| 6 |
Warning: <standard input>, line 26 (fmod BAZ): this module contains one or more |
| 7 |
errors that could not be patched up and thus it cannot be used or imported. |
| 8 |
Warning: <automatic>: importation of fmod FOO * (sort Foo{X} to Foo{Y}) by fmod |
| 9 |
BAR{[Y]} * (sort Foo{X} to Foo{Y}) not allowed because the pseudo-parameter |
| 10 |
Y of fmod FOO * (sort Foo{X} to Foo{Y}) would be captured by an actual |
| 11 |
parameter of fmod BAR{[Y]} * (sort Foo{X} to Foo{Y}). |
| 12 |
Warning: <automatic>: importation of fmod FOO * (sort Foo{X} to Foo{Z}) by fmod |
| 13 |
BAR{[Z]} * (sort Foo{X} to Foo{Z}) not allowed because the pseudo-parameter |
| 14 |
Z of fmod FOO * (sort Foo{X} to Foo{Z}) would be captured by an actual |
| 15 |
parameter of fmod BAR{[Z]} * (sort Foo{X} to Foo{Z}). |
| 16 |
Warning: <standard input>, line 47 (fmod BAR): importation of fmod FOO by fmod |
| 17 |
BAR not allowed because the pseudo-parameter X of fmod FOO would be |
| 18 |
captured by an actual parameter of fmod BAR. |
| 19 |
Warning: <standard input>, line 48 (fmod BAR): undeclared sort Foo{X}. |
| 20 |
Warning: In module instantiation FOO{[X]}, parameter X clashes with a |
| 21 |
pseudo-parameter of FOO. |
| 22 |
Warning: <standard input>, line 61 (fmod BAR): this module contains one or more |
| 23 |
errors that could not be patched up and thus it cannot be used or imported. |
| 24 |
Warning: <standard input>, line 68 (fmod BAZ): unable to use module BAR due to |
| 25 |
unpatchable errors. |
| 26 |
Warning: <standard input>, line 67 (fmod BAZ): this module contains one or more |
| 27 |
errors that could not be patched up and thus it cannot be used or imported. |
| 28 |
Warning: In module instantiation FOO{[X]}, parameter X clashes with a |
| 29 |
pseudo-parameter of FOO. |
| 30 |
Warning: <standard input>, line 82 (fmod BAR): unusable view V. |
| 31 |
Warning: <standard input>, line 81 (fmod BAR): this module contains one or more |
| 32 |
errors that could not be patched up and thus it cannot be used or imported. |
| 33 |
Warning: In module instantiation FOO{V{[X]}}, argument view V{[X]} has a bound |
| 34 |
parameter X that clashes with a pseudo-parameter of FOO. |
| 35 |
Warning: <standard input>, line 99 (fmod BAR): this module contains one or more |
| 36 |
errors that could not be patched up and thus it cannot be used or imported. |
| 37 |
Warning: <standard input>, line 105 (fmod BAZ): unable to use module BAR due to |
| 38 |
unpatchable errors. |
| 39 |
Warning: <standard input>, line 104 (fmod BAZ): this module contains one or |
| 40 |
more errors that could not be patched up and thus it cannot be used or |
| 41 |
imported. |
| 42 |
Warning: In module instantiation FOO{V{V2{[X]}}}, argument view V{V2{[X]}} has |
| 43 |
a bound parameter X that clashes with a pseudo-parameter of FOO. |
| 44 |
Warning: <standard input>, line 130 (fmod BAR): this module contains one or |
| 45 |
more errors that could not be patched up and thus it cannot be used or |
| 46 |
imported. |
| 47 |
Warning: <standard input>, line 136 (fmod BAZ): unable to use module BAR due to |
| 48 |
unpatchable errors. |
| 49 |
Warning: <standard input>, line 135 (fmod BAZ): this module contains one or |
| 50 |
more errors that could not be patched up and thus it cannot be used or |
| 51 |
imported. |
| 52 |
Warning: <standard input>, line 146 (fmod BAR): importation of fmod FOO{[X]} by |
| 53 |
fmod BAR not allowed because the pseudo-parameter Y of fmod FOO{[X]} would |
| 54 |
be captured by an actual parameter of fmod BAR. |
| 55 |
Warning: <standard input>, line 148 (fmod BAR): undeclared sort Foo{X,Y}. |
| 56 |
fmod BAZ is |
| 57 |
sorts Bool Zero NzNat Nat Bar{Nat,Nat} Foo{Nat,Nat} . |
| 58 |
subsorts Zero NzNat < Nat . |
| 59 |
subsort Bar{Nat,Nat} < Foo{Nat,Nat} . |
| 60 |
op if_then_else_fi : Bool Universal Universal -> Universal [poly (2 3 0) prec |
| 61 |
0 gather (& & &) special ( |
| 62 |
id-hook BranchSymbol |
| 63 |
term-hook 1 (true) |
| 64 |
term-hook 2 (false))] . |
| 65 |
op _==_ : Universal Universal -> Bool [poly (1 2) prec 51 gather (E E) |
| 66 |
special ( |
| 67 |
id-hook EqualitySymbol |
| 68 |
term-hook equalTerm (true) |
| 69 |
term-hook notEqualTerm (false))] . |
| 70 |
op _=/=_ : Universal Universal -> Bool [poly (1 2) prec 51 gather (E E) |
| 71 |
special ( |
| 72 |
id-hook EqualitySymbol |
| 73 |
term-hook equalTerm (false) |
| 74 |
term-hook notEqualTerm (true))] . |
| 75 |
op true : -> Bool [ctor special ( |
| 76 |
id-hook SystemTrue)] . |
| 77 |
op false : -> Bool [ctor special ( |
| 78 |
id-hook SystemFalse)] . |
| 79 |
op _and_ : Bool Bool -> Bool [assoc comm prec 55 gather (e E)] . |
| 80 |
op _or_ : Bool Bool -> Bool [assoc comm prec 59 gather (e E)] . |
| 81 |
op _xor_ : Bool Bool -> Bool [assoc comm prec 57 gather (e E)] . |
| 82 |
op not_ : Bool -> Bool [prec 53 gather (E)] . |
| 83 |
op _implies_ : Bool Bool -> Bool [prec 61 gather (e E)] . |
| 84 |
op 0 : -> Zero [ctor] . |
| 85 |
op s_ : Nat -> NzNat [ctor iter prec 15 gather (E) special ( |
| 86 |
id-hook SuccSymbol |
| 87 |
term-hook zeroTerm (0))] . |
| 88 |
op _+_ : NzNat Nat -> NzNat [assoc comm prec 33 gather (e E) special ( |
| 89 |
id-hook ACU_NumberOpSymbol (+) |
| 90 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 91 |
op _+_ : Nat Nat -> Nat [assoc comm prec 33 gather (e E) special ( |
| 92 |
id-hook ACU_NumberOpSymbol (+) |
| 93 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 94 |
op sd : Nat Nat -> Nat [comm special ( |
| 95 |
id-hook CUI_NumberOpSymbol (sd) |
| 96 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 97 |
op _*_ : NzNat NzNat -> NzNat [assoc comm prec 31 gather (e E) special ( |
| 98 |
id-hook ACU_NumberOpSymbol (*) |
| 99 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 100 |
op _*_ : Nat Nat -> Nat [assoc comm prec 31 gather (e E) special ( |
| 101 |
id-hook ACU_NumberOpSymbol (*) |
| 102 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 103 |
op _quo_ : Nat NzNat -> Nat [prec 31 gather (E e) special ( |
| 104 |
id-hook NumberOpSymbol (quo) |
| 105 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 106 |
op _rem_ : Nat NzNat -> Nat [prec 31 gather (E e) special ( |
| 107 |
id-hook NumberOpSymbol (rem) |
| 108 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 109 |
op _^_ : Nat Nat -> Nat [prec 29 gather (E e) special ( |
| 110 |
id-hook NumberOpSymbol (^) |
| 111 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 112 |
op _^_ : NzNat Nat -> NzNat [prec 29 gather (E e) special ( |
| 113 |
id-hook NumberOpSymbol (^) |
| 114 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 115 |
op modExp : [Nat] [Nat] [Nat] -> [Nat] [special ( |
| 116 |
id-hook NumberOpSymbol (modExp) |
| 117 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 118 |
op gcd : NzNat Nat -> NzNat [assoc comm special ( |
| 119 |
id-hook ACU_NumberOpSymbol (gcd) |
| 120 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 121 |
op gcd : Nat Nat -> Nat [assoc comm special ( |
| 122 |
id-hook ACU_NumberOpSymbol (gcd) |
| 123 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 124 |
op lcm : NzNat NzNat -> NzNat [assoc comm special ( |
| 125 |
id-hook ACU_NumberOpSymbol (lcm) |
| 126 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 127 |
op lcm : Nat Nat -> Nat [assoc comm special ( |
| 128 |
id-hook ACU_NumberOpSymbol (lcm) |
| 129 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 130 |
op min : NzNat NzNat -> NzNat [assoc comm special ( |
| 131 |
id-hook ACU_NumberOpSymbol (min) |
| 132 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 133 |
op min : Nat Nat -> Nat [assoc comm special ( |
| 134 |
id-hook ACU_NumberOpSymbol (min) |
| 135 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 136 |
op max : NzNat Nat -> NzNat [assoc comm special ( |
| 137 |
id-hook ACU_NumberOpSymbol (max) |
| 138 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 139 |
op max : Nat Nat -> Nat [assoc comm special ( |
| 140 |
id-hook ACU_NumberOpSymbol (max) |
| 141 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 142 |
op _xor_ : Nat Nat -> Nat [assoc comm prec 55 gather (e E) special ( |
| 143 |
id-hook ACU_NumberOpSymbol (xor) |
| 144 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 145 |
op _&_ : Nat Nat -> Nat [assoc comm prec 53 gather (e E) special ( |
| 146 |
id-hook ACU_NumberOpSymbol (&) |
| 147 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 148 |
op _|_ : NzNat Nat -> NzNat [assoc comm prec 57 gather (e E) special ( |
| 149 |
id-hook ACU_NumberOpSymbol (|) |
| 150 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 151 |
op _|_ : Nat Nat -> Nat [assoc comm prec 57 gather (e E) special ( |
| 152 |
id-hook ACU_NumberOpSymbol (|) |
| 153 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 154 |
op _>>_ : Nat Nat -> Nat [prec 35 gather (E e) special ( |
| 155 |
id-hook NumberOpSymbol (>>) |
| 156 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 157 |
op _<<_ : Nat Nat -> Nat [prec 35 gather (E e) special ( |
| 158 |
id-hook NumberOpSymbol (<<) |
| 159 |
op-hook succSymbol (s_ : Nat ~> NzNat))] . |
| 160 |
op _<_ : Nat Nat -> Bool [prec 37 gather (E E) special ( |
| 161 |
id-hook NumberOpSymbol (<) |
| 162 |
op-hook succSymbol (s_ : Nat ~> NzNat) |
| 163 |
term-hook trueTerm (true) |
| 164 |
term-hook falseTerm (false))] . |
| 165 |
op _<=_ : Nat Nat -> Bool [prec 37 gather (E E) special ( |
| 166 |
id-hook NumberOpSymbol (<=) |
| 167 |
op-hook succSymbol (s_ : Nat ~> NzNat) |
| 168 |
term-hook trueTerm (true) |
| 169 |
term-hook falseTerm (false))] . |
| 170 |
op _>_ : Nat Nat -> Bool [prec 37 gather (E E) special ( |
| 171 |
id-hook NumberOpSymbol (>) |
| 172 |
op-hook succSymbol (s_ : Nat ~> NzNat) |
| 173 |
term-hook trueTerm (true) |
| 174 |
term-hook falseTerm (false))] . |
| 175 |
op _>=_ : Nat Nat -> Bool [prec 37 gather (E E) special ( |
| 176 |
id-hook NumberOpSymbol (>=) |
| 177 |
op-hook succSymbol (s_ : Nat ~> NzNat) |
| 178 |
term-hook trueTerm (true) |
| 179 |
term-hook falseTerm (false))] . |
| 180 |
op _divides_ : NzNat Nat -> Bool [prec 51 gather (E E) special ( |
| 181 |
id-hook NumberOpSymbol (divides) |
| 182 |
op-hook succSymbol (s_ : Nat ~> NzNat) |
| 183 |
term-hook trueTerm (true) |
| 184 |
term-hook falseTerm (false))] . |
| 185 |
eq true and A:Bool = A:Bool . |
| 186 |
eq false and A:Bool = false . |
| 187 |
eq A:Bool and A:Bool = A:Bool . |
| 188 |
eq false xor A:Bool = A:Bool . |
| 189 |
eq A:Bool xor A:Bool = false . |
| 190 |
eq A:Bool and (B:Bool xor C:Bool) = A:Bool and B:Bool xor A:Bool and C:Bool . |
| 191 |
eq not A:Bool = true xor A:Bool . |
| 192 |
eq A:Bool or B:Bool = A:Bool and B:Bool xor A:Bool xor B:Bool . |
| 193 |
eq A:Bool implies B:Bool = not (A:Bool xor A:Bool and B:Bool) . |
| 194 |
endfm |
| 195 |
Warning: <standard input>, line 164 (fmod CONFUSE): importation of fmod NAT-SET |
| 196 |
by fmod CONFUSE not allowed because the pseudo-parameter Nat of fmod |
| 197 |
NAT-SET would be captured by an actual parameter of fmod CONFUSE. |
| 198 |
Warning: <standard input>, line 165 (fmod CONFUSE): undeclared sort Set{Nat}. |
| 199 |
Warning: <standard input>, line 175 (fmod M): importation of fmod NAT * (sort |
| 200 |
Nat to Nat{X}) by fmod M not allowed because the pseudo-parameter X of fmod |
| 201 |
NAT * (sort Nat to Nat{X}) would be captured by an actual parameter of fmod |
| 202 |
M. |
| 203 |
Warning: <standard input>, line 185 (fmod CONFUSE): importation of fmod NAT-SET |
| 204 |
by fmod CONFUSE not allowed because the pseudo-parameter X of fmod NAT-SET |
| 205 |
would be captured by an actual parameter of fmod CONFUSE. |
| 206 |
Warning: <standard input>, line 186 (fmod CONFUSE): undeclared sort S{X}. |
| 207 |
Warning: <standard input>, line 204 (fmod BAR): importation of fmod FOO by fmod |
| 208 |
BAR not allowed because the pseudo-parameter X of fmod FOO would be |
| 209 |
captured by an actual parameter of fmod BAR. |
| 210 |
Warning: <standard input>, line 206 (fmod BAR): undeclared sort Foo{X}. |
| 211 |
fmod BAR{Y :: T} is |
| 212 |
sorts Y$Elt Bool . |
| 213 |
op if_then_else_fi : Bool Universal Universal -> Universal [poly (2 3 0) prec |
| 214 |
0 gather (& & &) special ( |
| 215 |
id-hook BranchSymbol |
| 216 |
term-hook 1 (true) |
| 217 |
term-hook 2 (false))] . |
| 218 |
op _==_ : Universal Universal -> Bool [poly (1 2) prec 51 gather (E E) |
| 219 |
special ( |
| 220 |
id-hook EqualitySymbol |
| 221 |
term-hook equalTerm (true) |
| 222 |
term-hook notEqualTerm (false))] . |
| 223 |
op _=/=_ : Universal Universal -> Bool [poly (1 2) prec 51 gather (E E) |
| 224 |
special ( |
| 225 |
id-hook EqualitySymbol |
| 226 |
term-hook equalTerm (false) |
| 227 |
term-hook notEqualTerm (true))] . |
| 228 |
op c{X} : -> Y$Elt . |
| 229 |
op true : -> Bool [ctor special ( |
| 230 |
id-hook SystemTrue)] . |
| 231 |
op false : -> Bool [ctor special ( |
| 232 |
id-hook SystemFalse)] . |
| 233 |
op _and_ : Bool Bool -> Bool [assoc comm prec 55 gather (e E)] . |
| 234 |
op _or_ : Bool Bool -> Bool [assoc comm prec 59 gather (e E)] . |
| 235 |
op _xor_ : Bool Bool -> Bool [assoc comm prec 57 gather (e E)] . |
| 236 |
op not_ : Bool -> Bool [prec 53 gather (E)] . |
| 237 |
op _implies_ : Bool Bool -> Bool [prec 61 gather (e E)] . |
| 238 |
eq true and A:Bool = A:Bool . |
| 239 |
eq false and A:Bool = false . |
| 240 |
eq A:Bool and A:Bool = A:Bool . |
| 241 |
eq false xor A:Bool = A:Bool . |
| 242 |
eq A:Bool xor A:Bool = false . |
| 243 |
eq A:Bool and (B:Bool xor C:Bool) = A:Bool and B:Bool xor A:Bool and C:Bool . |
| 244 |
eq not A:Bool = true xor A:Bool . |
| 245 |
eq A:Bool or B:Bool = A:Bool and B:Bool xor A:Bool xor B:Bool . |
| 246 |
eq A:Bool implies B:Bool = not (A:Bool xor A:Bool and B:Bool) . |
| 247 |
eq c{X} = c{X} . |
| 248 |
endfm |
| 249 |
fmod BAR is |
| 250 |
sorts Bool Quux . |
| 251 |
op if_then_else_fi : Bool Universal Universal -> Universal [poly (2 3 0) prec |
| 252 |
0 gather (& & &) special ( |
| 253 |
id-hook BranchSymbol |
| 254 |
term-hook 1 (true) |
| 255 |
term-hook 2 (false))] . |
| 256 |
op _==_ : Universal Universal -> Bool [poly (1 2) prec 51 gather (E E) |
| 257 |
special ( |
| 258 |
id-hook EqualitySymbol |
| 259 |
term-hook equalTerm (true) |
| 260 |
term-hook notEqualTerm (false))] . |
| 261 |
op _=/=_ : Universal Universal -> Bool [poly (1 2) prec 51 gather (E E) |
| 262 |
special ( |
| 263 |
id-hook EqualitySymbol |
| 264 |
term-hook equalTerm (false) |
| 265 |
term-hook notEqualTerm (true))] . |
| 266 |
op true : -> Bool [ctor special ( |
| 267 |
id-hook SystemTrue)] . |
| 268 |
op false : -> Bool [ctor special ( |
| 269 |
id-hook SystemFalse)] . |
| 270 |
op _and_ : Bool Bool -> Bool [assoc comm prec 55 gather (e E)] . |
| 271 |
op _or_ : Bool Bool -> Bool [assoc comm prec 59 gather (e E)] . |
| 272 |
op _xor_ : Bool Bool -> Bool [assoc comm prec 57 gather (e E)] . |
| 273 |
op not_ : Bool -> Bool [prec 53 gather (E)] . |
| 274 |
op _implies_ : Bool Bool -> Bool [prec 61 gather (e E)] . |
| 275 |
op d{X} : -> Quux . |
| 276 |
eq true and A:Bool = A:Bool . |
| 277 |
eq false and A:Bool = false . |
| 278 |
eq A:Bool and A:Bool = A:Bool . |
| 279 |
eq false xor A:Bool = A:Bool . |
| 280 |
eq A:Bool xor A:Bool = false . |
| 281 |
eq A:Bool and (B:Bool xor C:Bool) = A:Bool and B:Bool xor A:Bool and C:Bool . |
| 282 |
eq not A:Bool = true xor A:Bool . |
| 283 |
eq A:Bool or B:Bool = A:Bool and B:Bool xor A:Bool xor B:Bool . |
| 284 |
eq A:Bool implies B:Bool = not (A:Bool xor A:Bool and B:Bool) . |
| 285 |
eq d{X} = d{X} . |
| 286 |
endfm |
| 287 |
Warning: <standard input>, line 258 (fmod FOO): importation of fmod M by fmod |
| 288 |
FOO not allowed because the pseudo-parameter X of fmod M would be captured |
| 289 |
by an actual parameter of fmod FOO. |
| 290 |
Warning: <standard input>, line 259 (fmod FOO): bad token c. |
| 291 |
Warning: <standard input>, line 259 (fmod FOO): no parse for statement |
| 292 |
eq c {X} = c {X} . |
| 293 |
fmod BAR{Y :: TRIV} is |
| 294 |
sorts Y$Elt Bool . |
| 295 |
op if_then_else_fi : Bool Universal Universal -> Universal [poly (2 3 0) prec |
| 296 |
0 gather (& & &) special ( |
| 297 |
id-hook BranchSymbol |
| 298 |
term-hook 1 (true) |
| 299 |
term-hook 2 (false))] . |
| 300 |
op _==_ : Universal Universal -> Bool [poly (1 2) prec 51 gather (E E) |
| 301 |
special ( |
| 302 |
id-hook EqualitySymbol |
| 303 |
term-hook equalTerm (true) |
| 304 |
term-hook notEqualTerm (false))] . |
| 305 |
op _=/=_ : Universal Universal -> Bool [poly (1 2) prec 51 gather (E E) |
| 306 |
special ( |
| 307 |
id-hook EqualitySymbol |
| 308 |
term-hook equalTerm (false) |
| 309 |
term-hook notEqualTerm (true))] . |
| 310 |
op true : -> Bool [ctor special ( |
| 311 |
id-hook SystemTrue)] . |
| 312 |
op false : -> Bool [ctor special ( |
| 313 |
id-hook SystemFalse)] . |
| 314 |
op _and_ : Bool Bool -> Bool [assoc comm prec 55 gather (e E)] . |
| 315 |
op _or_ : Bool Bool -> Bool [assoc comm prec 59 gather (e E)] . |
| 316 |
op _xor_ : Bool Bool -> Bool [assoc comm prec 57 gather (e E)] . |
| 317 |
op not_ : Bool -> Bool [prec 53 gather (E)] . |
| 318 |
op _implies_ : Bool Bool -> Bool [prec 61 gather (e E)] . |
| 319 |
eq true and A:Bool = A:Bool . |
| 320 |
eq false and A:Bool = false . |
| 321 |
eq A:Bool and A:Bool = A:Bool . |
| 322 |
eq false xor A:Bool = A:Bool . |
| 323 |
eq A:Bool xor A:Bool = false . |
| 324 |
eq A:Bool and (B:Bool xor C:Bool) = A:Bool and B:Bool xor A:Bool and C:Bool . |
| 325 |
eq not A:Bool = true xor A:Bool . |
| 326 |
eq A:Bool or B:Bool = A:Bool and B:Bool xor A:Bool xor B:Bool . |
| 327 |
eq A:Bool implies B:Bool = not (A:Bool xor A:Bool and B:Bool) . |
| 328 |
endfm |
| 329 |
Bye. |