XDS-Agda
Base
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
    1. Library
    2. Data
    3. Unit
    4. Polymorphic

    Base

    ------------------------------------------------------------------------
    -- The Agda standard library
    --
    -- A universe polymorphic unit type, as a Lift of the Level 0 one.
    ------------------------------------------------------------------------
    
    {-# OPTIONS --cubical-compatible --safe #-}
    
    module Data.Unit.Polymorphic.Base where
    
    open import Level using (Level; Lift; lift)
    import Data.Unit.Base as ⊤
    
    ------------------------------------------------------------------------
    -- A unit type defined as a synonym
    
    ⊤ : {ℓ : Level} → Set ℓ
    ⊤ {ℓ} = Lift ℓ ⊤.⊤
    
    tt : {ℓ : Level} → ⊤ {ℓ}
    tt = lift ⊤.tt
    
    Previous
    Base
    Next
    Base
    Made with Material for MkDocs