Agda-Pages Demo
Empty
Initializing search
    agda-pages-demo
    • Home
    • Demo
    • Library
    • Tags
    agda-pages-demo
    • Home
    • Demo
        • Sub
          • Base
        • LaTeX
        • Markdown
        • Metadata
        • hello-world-dep
        • hello-world-dep-lookup
        • Characters
        • LaTeX
        • Markdown
    • Library
          • Bool
          • Equality
          • List
          • Maybe
          • Nat
          • Sigma
          • Unit
        • Primitive
      • Algebra
        • Bundles
          • Raw
          • Base
          • Propositional
          • Setoid
          • LiftedChoice
            • Base
            • Max
            • MaxOp
            • Min
            • MinMaxOp
            • MinOp
        • Core
        • Definitions
          • RawMagma
          • Bundles
            • Raw
              • MaxOp
              • MinMaxOp
              • MinOp
            • BooleanAlgebra
            • DistributiveLattice
            • Lattice
            • Semilattice
          • Structures
        • Morphism
          • Definitions
          • Structures
          • CommutativeSemigroup
          • Semigroup
        • Structures
          • Biased
          • Propositional
        • UniquenessOfIdentityProofs
          • Base
          • ListAction
          • Properties
        • Empty
          • Polymorphic
        • Fin
          • Base
          • Patterns
          • Properties
        • Irrelevant
          • Base
          • Effectful
          • Extrema
            • Core
            • Propositional
              • Properties
                • Core
            • Setoid
              • Properties
          • Properties
                • Propositional
                • Setoid
              • Pointwise
                • Base
                • Properties
                • Propositional
                • Setoid
              • All
                • Properties
                  • Core
              • AllPairs
                • Core
              • Any
                • Properties
                • Setoid
          • Base
              • All
              • Any
        • Nat
          • Base
          • Divisibility
            • Core
          • DivMod
            • Core
          • GeneralisedArithmetic
          • Induction
          • Properties
          • Base
          • Algebra
          • Base
              • Propositional
              • Propositional
              • Setoid
          • Properties
                • NonDependent
              • All
          • Base
        • Sum
          • Algebra
          • Base
            • Propositional
            • Setoid
          • Properties
              • Pointwise
          • Base
          • Base
          • Polymorphic
            • Base
            • Properties
        • Vec
          • Base
            • Base
        • Applicative
        • Choice
        • Empty
        • Functor
        • Monad
        • Base
        • Bundles
        • Consequences
          • Propositional
          • Setoid
          • Composition
          • Identity
          • Symmetry
        • Core
        • Definitions
          • Bundles
              • Equality
          • Bundles
          • Core
          • Definitions
          • Nat
            • Bundles
            • Core
            • Definitions
            • Structures
          • Structures
          • Bijection
          • Inverse
            • HalfAdjointEquivalence
          • RightInverse
          • Surjection
          • Propositional
          • TypeIsomorphisms
        • Structures
      • Induction
        • WellFounded
      • Level
        • Binary
          • Bundles
            • Raw
          • Consequences
            • Composition
              • EqAndOrd
            • Intersection
              • Left
            • NonStrictToStrict
          • Core
          • Definitions
            • Heterogeneous
              • Bundles
                • Trivial
              • Core
              • Definitions
              • Structures
          • Lattice
            • Bundles
            • Definitions
            • Structures
            • Definitions
            • Structures
            • DecTotalOrder
            • Poset
            • Preorder
            • Setoid
            • TotalOrder
          • PropositionalEquality
            • Algebra
            • Core
            • Properties
              • Double
              • Single
              • Triple
            • Preorder
            • Setoid
            • Syntax
          • Structures
            • Biased
        • Nullary
          • Decidable
            • Core
          • Indexed
          • Irrelevant
          • Negation
            • Core
          • Recomputable
            • Core
          • Reflects
        • Unary
          • PredicateTransformer
          • Properties
    • Tags
    1. Home
    2. Library
    3. Data
    4. Empty

    Empty

    ------------------------------------------------------------------------
    -- The Agda standard library
    --
    -- Empty type, judgementally proof irrelevant, Level-monomorphic
    ------------------------------------------------------------------------
    
    {-# OPTIONS --cubical-compatible --safe #-}
    
    module Data.Empty where
    
    open import Data.Irrelevant using (Irrelevant)
    
    ------------------------------------------------------------------------
    -- Definition
    
    -- Note that by default the empty type is not universe polymorphic as it
    -- often results in unsolved metas. See `Data.Empty.Polymorphic` for a
    -- universe polymorphic variant.
    
    private
      data Empty : Set where
    
    -- ⊥ is defined via Data.Irrelevant (a record with a single irrelevant
    -- field) so that Agda can judgementally declare that all proofs of ⊥
    -- are equal to each other. In particular this means that all functions
    -- returning a proof of ⊥ are equal.
    
    ⊥ : Set
    ⊥ = Irrelevant Empty
    
    {-# DISPLAY Irrelevant Empty = ⊥ #-}
    
    ------------------------------------------------------------------------
    -- Functions
    
    ⊥-elim : ∀ {w} {Whatever : Set w} → ⊥ → Whatever
    ⊥-elim ()
    
    ⊥-elim-irr : ∀ {w} {Whatever : Set w} → .⊥ → Whatever
    ⊥-elim-irr ()
    
    Made with MaterialX