Files
UniverseLevelTypes/Util/Fin.agda
2026-04-01 18:29:46 +02:00

11 lines
308 B
Agda
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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)