------------------------------------------------------------------------
-- Universe levels
------------------------------------------------------------------------

module Tools.Level where

open import Agda.Primitive using (lzero; lsuc; Level; _⊔_) public
open import Relation.Nullary

ℓ₀ = lzero

open import Level using (Lift; lift) public

private variable
  b : Level
  A : Set _

-- If A is decided, then Lift b A is decided.

Lift? : Dec A  Dec (Lift b A)
Lift? (yes A) = yes (lift A)
Lift? (no ¬A) = no  { (lift A)  ¬A A })