| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Interleavings of lists using setoid equality |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
open import Relation.Binary.Bundles using (Setoid) |
| 10 |
|
| 11 |
module Data.List.Relation.Ternary.Interleaving.Setoid {c ℓ} (S : Setoid c ℓ) where |
| 12 |
|
| 13 |
open import Level using (_⊔_) |
| 14 |
open import Data.List.Base as List using (List) |
| 15 |
import Data.List.Relation.Ternary.Interleaving as General |
| 16 |
open Setoid S renaming (Carrier to A) |
| 17 |
|
| 18 |
------------------------------------------------------------------------ |
| 19 |
-- Definition |
| 20 |
|
| 21 |
Interleaving : List A → List A → List A → Set (c ⊔ ℓ) |
| 22 |
Interleaving = General.Interleaving _≈_ _≈_ |
| 23 |
|
| 24 |
------------------------------------------------------------------------ |
| 25 |
-- Re-export the basic combinators |
| 26 |
|
| 27 |
open General hiding (Interleaving) public |