mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-11 06:41:04 +03:00
14 lines
240 B
Idris
14 lines
240 B
Idris
|
data Fin : Nat -> Type where
|
||
|
FZ : Fin (S k)
|
||
|
FS : Fin k -> Fin (S k)
|
||
|
|
||
|
noFinZ : Fin Z -> Void
|
||
|
noFinZ FZ impossible
|
||
|
noFinZ (FS k) impossible
|
||
|
|
||
|
noFinZ' : Fin Z -> Void
|
||
|
noFinZ' x impossible
|
||
|
|
||
|
noEmpty : Void -> Fin Z
|
||
|
noEmpty t impossible
|