{-# OPTIONS --without-K --safe #-}
module Data.Fin where
open import Relation.Nullary.Decidable.Core
open import Data.Nat.Base using (suc)
import Data.Nat.Properties as ℕₚ
open import Data.Fin.Base public
open import Data.Fin.Properties public
using (_≟_; _≤?_; _<?_)
infix 10 #_
#_ : ∀ m {n} {m<n : True (suc m ℕₚ.≤? n)} → Fin n
#_ _ {m<n = m<n} = fromℕ< (toWitness m<n)