← Back

Modules

CategoricalCrypto

  • CategoricalCrypto
  • Channel.Category
  • Channel.Core
  • Channel.Selection
  • Examples.Basic
  • Examples.Commitment
  • Examples.Signatures
  • Machine.Constraints
  • Machine.Core
  • SFunM

Categories

  • Discrete
  • FreeMonoidal
  • FreeStrictMonoidal
  • GradedKleisli
  • MonoidalCoherence
  • NaturalTransformationHelper
  • Properties

Class

  • Monad.Ext
12345678910111213141516171819202122232425262728293031323334
------------------------------------------------------------------------
-- The Agda standard library
--
-- Universe levels
------------------------------------------------------------------------
 
{-# OPTIONS --cubical-compatible --safe #-}
 
module Level where
 
-- Levels.
 
open import Agda.Primitive as Prim public
using (Level; _⊔_; Setω)
renaming (lzero to zero; lsuc to suc)
 
-- Lifting.
 
record Lift {a} ℓ (A : Set a) : Set (a ⊔ ℓ) where
constructor lift
field lower : A
 
open Lift public
 
-- Synonyms
 
0ℓ : Level
0ℓ = zero
 
levelOfType : ∀ {a} → Set a → Level
levelOfType {a} _ = a
 
levelOfTerm : ∀ {a} {A : Set a} → A → Level
levelOfTerm {a} _ = a