aboutsummaryrefslogtreecommitdiff
path: root/Util.agda
blob: 23da7ccecd066b59b5f908cba50f8932a24c3746 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Util where

open import Data.Fin using (Fin; toℕ)
open import Data.Nat using (ℕ; _≤_; _<_ ; z<s; s≤s)
open import Data.Product using (_×_)


_<_≤_ :       Set
_<_≤_ i j k = (i < j) × (j  k)

_<_<_ :       Set
_<_<_ i j k = (i < j) × (j < k)

toℕ< : {n : }  (i : Fin n)  toℕ i < n
toℕ< Fin.zero = z<s
toℕ< (Fin.suc i) = s≤s (toℕ< i)