XDS-Agda
Level
Initializing search
    pdmosses/xds-agda@pre
    • About
    • Notation
    • Examples
    • Properties
    • Tests
    • Library
    pdmosses/xds-agda@pre
    • About
      • Background
      • Meta-notation
    • Notation
    • Examples
      • LC
        • Abstract-Syntax
        • Domain-Equations
        • Semantic-Functions
      • PCF
        • Abstract-Syntax
        • Domain-Equations
        • Semantic-Functions
      • Scm
        • Abstract-Syntax
        • Auxiliary-Functions
        • Domain-Equations
        • Semantic-Functions
    • Properties
    • Tests
      • LC
      • PCF
      • Scm
    • Library
          • Bool
          • Char
          • Equality
            • Rewrite
          • Int
          • List
          • Maybe
          • Nat
          • Sigma
          • String
          • Unit
        • Primitive
          • Raw
        • Core
          • RawMagma
          • Base
          • Base
        • Empty
          • Polymorphic
          • Base
          • Base
        • Irrelevant
          • Base
            • Base
                • Core
                • Base
          • Base
          • Base
          • Base
          • Base
          • Base
          • Base
          • Base
          • Base
          • Base
            • Base
          • Base
        • Base
        • Bundles
        • Consequences
          • Propositional
          • Setoid
        • Definitions
        • Structures
      • Level
          • Bundles
            • Raw
          • Consequences
              • Reflexive
            • Composition
              • Core
          • Core
          • Definitions
              • Core
            • Setoid
            • Core
            • Properties
            • Syntax
          • Structures
        • Nullary
          • Decidable
            • Core
          • Irrelevant
            • Core
          • Recomputable
            • Core
          • Reflects
        • Unary
          • Properties

    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
    
    Previous
    Structures
    Next
    Bundles
    Made with Material for MkDocs