Alloy has plenty of logical connectives like and
and or
and implies
. But I can't find true
and false
. Are they missing? At the moment I've been making do with 1=1
and 1=0
, but this is rather hacky (and gives a compiler warning).
My reason, by the way, for wanting true
and false
is that I'm writing something that produces an .als
file. My top-level .als
file expects that my auto-generated .als
file defines a wellformed
predicate and a faulty
predicate. Sometimes these predicates are complicated, but sometimes I just want wellformed[...]
to return true
, and faulty[...]
to return false
. This is why I want true
and false
in the Alloy language.