MFPS2026-Agda
Primitive
Initializing search
    pdmosses/mfps2026-agda
    • About
    • Notation
    • Examples
    • Properties
    • Tests
    • Library
    pdmosses/mfps2026-agda
    • 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
    1. Library
    2. Agda

    Primitive

    -- The Agda primitives (preloaded).
    
    {-# OPTIONS --cubical-compatible --no-import-sorts --level-universe #-}
    
    module Agda.Primitive where
    
    ------------------------------------------------------------------------
    -- Universe levels
    ------------------------------------------------------------------------
    
    infixl 6 _⊔_
    
    {-# BUILTIN PROP           Prop      #-}
    {-# BUILTIN TYPE           Set       #-}
    {-# BUILTIN STRICTSET      SSet      #-}
    
    {-# BUILTIN PROPOMEGA      Propω     #-}
    {-# BUILTIN SETOMEGA       Setω      #-}
    {-# BUILTIN STRICTSETOMEGA SSetω     #-}
    
    {-# BUILTIN LEVELUNIV      LevelUniv #-}
    
    -- Level is the first thing we need to define.
    -- The other postulates can only be checked if built-in Level is known.
    
    postulate
      Level : LevelUniv
    
    -- MAlonzo compiles Level to (). This should be safe, because it is
    -- not possible to pattern match on levels.
    
    {-# BUILTIN LEVEL Level #-}
    
    postulate
      lzero : Level
      lsuc  : (ℓ : Level) → Level
      _⊔_   : (ℓ₁ ℓ₂ : Level) → Level
    
    {-# BUILTIN LEVELZERO lzero #-}
    {-# BUILTIN LEVELSUC  lsuc  #-}
    {-# BUILTIN LEVELMAX  _⊔_   #-}
    
    Previous
    Unit
    Next
    Raw
    Made with Material for MkDocs