Denotational Semantics in Agda
Level
Initializing search
    pdmosses/xds-agda
    • About
    • Meta-notation
    • ULC
    • PCF
    • Scheme
    pdmosses/xds-agda
    • About
    • Meta-notation
      • Untyped λ-calculus
      • ULC.All
      • ULC.Variables
      • ULC.Terms
      • ULC.Domains
      • ULC.Environments
      • ULC.Semantics
      • ULC.Checks
      • PCF (Plotkin 1977)
      • PCF.All
      • PCF.Domain Notation
      • PCF.Types
      • PCF.Constants
      • PCF.Variables
      • PCF.Terms
      • PCF.Environments
      • PCF.Checks
      • Core Scheme (R5RS)
      • Scheme.All
      • Scheme.Domain Notation
      • Scheme.Abstract Syntax
      • Scheme.Domain Equations
      • Scheme.Auxiliary Functions
      • Scheme.Semantic Functions

    Level

    ------------------------------------------------------------------------
    -- 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
    
    Made with Material for MkDocs