| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Lists made up entirely of unique elements (setoid equality) |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Relation.Binary.Bundles using (Setoid) |
| 10 |
|
| 11 |
module Data.List.Relation.Unary.Unique.Setoid {a ℓ} (S : Setoid a ℓ) where |
| 12 |
|
| 13 |
open Setoid S using (_≉_) |
| 14 |
|
| 15 |
------------------------------------------------------------------------ |
| 16 |
-- Definition |
| 17 |
|
| 18 |
open import Data.List.Relation.Unary.AllPairs.Core _≉_ public |
| 19 |
renaming (AllPairs to Unique) |
| 20 |
|
| 21 |
open import Data.List.Relation.Unary.AllPairs {R = _≉_} public |
| 22 |
using (head; tail) |