Hello,
Is it possible to define a function with a multiple "type" range like [Nat -> Nat \union BOOLEAN] without TLC complaining about the type?.
When checking a type invariant will result in:
Attempted to check if the value:
FALSE
is in the integer interval 0..2
If "{a,b}" are untyped model values then there is no problem with [Nat -> Nat \union {a,b}], since "a" and "b" are by definition
unequal to anything but itself. But in the case of BOOLEAN, TLC refuses to compare with anything of different type.
Thanks!