Closed TomasMikula closed 8 years ago
Although I used the name GenBool
for generalized Boolean algebra, I came to like the shortcut less and less, because "Gen" is kind of ambiguous (generic?, org.scalacheck.Gen
-related?). I guess I would prefer spelling out GeneralizedBool
.
I'm fine with either of those names. I like @johnynek's idea of just merging this as-is (GenBool
) but if you'd rather I am fine with changing the name to GeneralizedBool
.
If you are fine with it, then go ahead and merge. How do people feel about without
as the name for relative complement. It is an intuitive name for the case of set difference. For logic, the intuition is a butNot b
(as a primitive operation, because we don't have not
/complement
).
:+1:
So the idea is that we'd write the relative complement of a in b as b \ a
and without(b, a)
?
Yes, exactly, so that the argument order of the spelled out name is consistent with the symbolic notation.
Sounds good to me.
I think without is fine.
This is a work in progress on topless Bool/BoolRing (#107), subject to some renaming. In this version I used the names
GenBool
for generalized Boolean algebra andwithout(a, b)
fora\b
(relative complement of b with respect to a).