| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Properties of coinductive lists and their operations |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --guardedness #-} |
| 8 |
|
| 9 |
module Codata.Musical.Colist.Properties where |
| 10 |
|
| 11 |
open import Level using (Level) |
| 12 |
open import Codata.Musical.Notation using (♭; ∞; ♯_) |
| 13 |
open import Codata.Musical.Colist.Base using (Colist; []; _∷_) |
| 14 |
open import Function.Base using (_∋_) |
| 15 |
open import Relation.Binary.PropositionalEquality.Core using (_≡_; refl) |
| 16 |
|
| 17 |
private |
| 18 |
variable |
| 19 |
a b : Level |
| 20 |
A : Set a |
| 21 |
B : Set b |
| 22 |
|
| 23 |
∷-injectiveˡ : ∀ {x y xs ys} → (Colist A ∋ x ∷ xs) ≡ y ∷ ys → x ≡ y |
| 24 |
∷-injectiveˡ refl = refl |
| 25 |
|
| 26 |
∷-injectiveʳ : ∀ {x y xs ys} → (Colist A ∋ x ∷ xs) ≡ y ∷ ys → xs ≡ ys |
| 27 |
∷-injectiveʳ refl = refl |