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