← Back

Modules

Leios

  • Linear

Network

  • BasicBroadcast
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 { ∅ = ∅ᵐ }