Closed semenov-vladyslav closed 5 years ago
Thanks!
@johnchandlerburnham explain yourself!
Last I remember leaving Data.Bool
is looking like this: https://gitlab.com/moonad/Formality-Base/blob/jcb/scratch/Bool.fm, with the binop
abstraction and operators. OTOH, I make many careless mistakes, so if I did this I apologize!
Regardless, this implies two follow-up issues:
Data.Bool
to catch errors like this. And we should think about how to scalably add proofs to other data structures to prevent errors like this in other files. Call it: "Proof-Driven Development"Base
given our recent refactors.I will create new issues around #1 and #2 when I get back from my honeymoon
nand
andxor
fromData.Bool
are equal.nand x y
is usually defined to be equal toand (not x) y
.nor x y
is equal tonot (or (not x) (not y))
which is a slightly unconventional definition ofnor
.