fresh names, move case stuff along a little

This commit is contained in:
2024-08-13 07:42:01 -07:00
parent 023e9e61ad
commit 1fef9dcfc6
6 changed files with 67 additions and 15 deletions

View File

@@ -52,6 +52,21 @@ not2 = \ v => case v of
True => False
x => True
and : Bool -> Bool -> Bool
and = \ x y => case x of
True => y
False => False
-- FIXME - a case is evaluated here, and I don't know why.
nand : Bool -> Bool -> Bool
nand = \ x y => not (case x of
True => y
False => False)
-- -- this should be an error.
-- foo : Bool -> Bool
data Void : U where