mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 05:29:30 -06:00
9 lines
246 B
Plaintext
9 lines
246 B
Plaintext
data Bool : Type where { True : Bool; False : Bool; } ;
|
|
|
|
depif : (A:Type) -> (B:Type) -> (b:Bool) -> A -> B -> if Type b then A else B ;
|
|
depif _ _ True x _ = x ;
|
|
depif _ _ False _ y = y ;
|
|
|
|
not : Bool -> Bool ;
|
|
not b = if b then False else True ;
|