XDS-Agda
Polymorphic
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. Empty

    Polymorphic

    ------------------------------------------------------------------------
    -- The Agda standard library
    --
    -- Level polymorphic Empty type
    ------------------------------------------------------------------------
    
    {-# OPTIONS --cubical-compatible --safe #-}
    
    module Data.Empty.Polymorphic where
    
    import Data.Empty as Empty using (⊥; ⊥-elim)
    open import Level using (Level; Lift; _⊔_)
    
    ⊥ : {ℓ : Level} → Set ℓ
    ⊥ {ℓ} = Lift ℓ Empty.⊥
    
    -- make ⊥-elim dependent too, as it does seem useful
    ⊥-elim : ∀ {w ℓ} {Whatever : ⊥ {ℓ} → Set w} → (witness : ⊥ {ℓ}) → Whatever witness
    ⊥-elim ()
    
    Previous
    Empty
    Next
    Base
    Made with Material for MkDocs