← Back

Modules

Leios

  • Abstract
  • Base
  • Blocks
  • Config
  • Defaults
  • FFD
  • Foreign.BaseTypes
  • Foreign.HsTypes
  • Foreign.Types
  • Foreign.Util
  • KeyRegistration
  • Network
  • Prelude
  • Protocol
  • Short
  • Short.Decidable
  • Short.Trace.Verifier
  • Short.Trace.Verifier.Test
  • Simplified
  • Simplified.Deterministic
  • SpecStructure
  • Traces
  • Voting
  • VRF
1234567891011121314151617181920212223
{-# OPTIONS --safe --no-import-sorts #-}
 
open import Axiom.Set using (Theory)
 
module Class.HasEmptySet (th : Theory) where
 
open import abstract-set-theory.Prelude
 
open Theory th renaming (∅ to ∅ˢ)
open import Axiom.Set.Map th
 
record HasEmptySet (A : Type) : Type where
field
∅ : A
 
open HasEmptySet ⦃...⦄ public
 
instance
HasEmptySet-Set : {A : Type} → HasEmptySet (Set A)
HasEmptySet-Set = record { ∅ = ∅ˢ }
 
HasEmptySet-Map : {A B : Type} → HasEmptySet (Map A B)
HasEmptySet-Map = record { ∅ = ∅ᵐ }