mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-26 21:23:53 +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
|