Debian Codegraph @

src/Data/List/Relation/Unary/Enumerates/Setoid.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Lists which contain every element of a given type
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 open import Data.List.Base using (List)
10 open import Level
11 open import Relation.Binary.Bundles using (Setoid)
12
13 module Data.List.Relation.Unary.Enumerates.Setoid
14 {a ℓ} (S : Setoid a ℓ) where
15
16 open Setoid S renaming (Carrier to A)
17 open import Data.List.Membership.Setoid S
18
19 ------------------------------------------------------------------------
20 -- Definition
21
22 IsEnumeration : List A → Set (a ⊔ ℓ)
23 IsEnumeration xs = ∀ x → x ∈ xs