mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-21 10:41:59 +03:00
17 lines
224 B
Idris
17 lines
224 B
Idris
%default total
|
|
|
|
data Fix : (Type -> Type) -> Type where
|
|
MkFix : f (Fix f) -> Fix f
|
|
|
|
F : Type
|
|
F = Fix Not
|
|
|
|
yesF : Not F -> F
|
|
yesF nf = MkFix nf
|
|
|
|
notF : Not F
|
|
notF (MkFix f) = f (yesF f)
|
|
|
|
argh : Void
|
|
argh = notF (yesF notF)
|