File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/Codata/Guarded/Stream/Relation/Unary Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 99module Codata.Guarded.Stream.Relation.Unary.Any where
1010
1111open import Codata.Guarded.Stream as Stream using (Stream)
12- open import Data.Empty using (⊥-elim)
1312open import Data.Nat.Base hiding (_⊔_)
1413open import Level hiding (zero; suc)
15- open import Relation.Nullary.Negation.Core using (¬_)
14+ open import Relation.Nullary.Negation.Core using (¬_; contradiction )
1615open import Relation.Unary using (Pred; _⊆_)
1716
1817private
@@ -28,10 +27,10 @@ data Any {A : Set a} (P : Pred A p) : Stream A → Set (a ⊔ p) where
2827
2928head : ¬ Any P (Stream.tail xs) → Any P xs → P (Stream.head xs)
3029head ¬t (here h) = h
31- head ¬t (there t) = ⊥-elim (¬t t)
30+ head ¬t (there t) = contradiction t ¬t
3231
3332tail : ¬ P (Stream.head xs) → Any P xs → Any P (Stream.tail xs)
34- tail ¬h (here h) = ⊥-elim (¬h h)
33+ tail ¬h (here h) = contradiction h ¬h
3534tail ¬h (there t) = t
3635
3736map : P ⊆ Q → Any P ⊆ Any Q
You can’t perform that action at this time.
0 commit comments