initial commit
This commit is contained in:
10
Util/Fin.agda
Normal file
10
Util/Fin.agda
Normal file
@@ -0,0 +1,10 @@
|
||||
module univTypes.Util.Fin where
|
||||
|
||||
open import Data.Nat using (ℕ; suc; zero)
|
||||
|
||||
-- `Fin n` is a type with `n` elements.
|
||||
-- You can think of `Fin n` as the type of all natural numbers less than `n`.
|
||||
|
||||
data Fin : ℕ → Set where
|
||||
zero : ∀ {n} → Fin (suc n)
|
||||
suc : ∀ {n} → (i : Fin n) → Fin (suc n)
|
||||
Reference in New Issue
Block a user