| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Coinductive lists where all elements satisfy a predicate |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --guardedness #-} |
| 8 |
|
| 9 |
module Codata.Musical.Colist.Relation.Unary.All where |
| 10 |
|
| 11 |
open import Codata.Musical.Colist.Base |
| 12 |
open import Codata.Musical.Notation |
| 13 |
open import Level using (Level; _⊔_) |
| 14 |
open import Relation.Unary using (Pred) |
| 15 |
|
| 16 |
private |
| 17 |
variable |
| 18 |
a b p : Level |
| 19 |
A : Set a |
| 20 |
B : Set b |
| 21 |
P : Pred A p |
| 22 |
|
| 23 |
data All {A : Set a} (P : Pred A p) : Pred (Colist A) (a ⊔ p) where |
| 24 |
[] : All P [] |
| 25 |
_∷_ : ∀ {x xs} (px : P x) (pxs : ∞ (All P (♭ xs))) → All P (x ∷ xs) |
| 26 |
|
| 27 |
infixr 5 _∷_ |