Skip to content

Commit a22ff7c

Browse files
authored
Change ⊥-elim to contradiction in src/Codata/Guarded/Stream/Relation/Unary/Any.agda (#2652)
1 parent 7ea9852 commit a22ff7c

File tree

1 file changed

+3
-4
lines changed
  • src/Codata/Guarded/Stream/Relation/Unary

1 file changed

+3
-4
lines changed

src/Codata/Guarded/Stream/Relation/Unary/Any.agda

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
module Codata.Guarded.Stream.Relation.Unary.Any where
1010

1111
open import Codata.Guarded.Stream as Stream using (Stream)
12-
open import Data.Empty using (⊥-elim)
1312
open import Data.Nat.Base hiding (_⊔_)
1413
open import Level hiding (zero; suc)
15-
open import Relation.Nullary.Negation.Core using (¬_)
14+
open import Relation.Nullary.Negation.Core using (¬_; contradiction)
1615
open import Relation.Unary using (Pred; _⊆_)
1716

1817
private
@@ -28,10 +27,10 @@ data Any {A : Set a} (P : Pred A p) : Stream A → Set (a ⊔ p) where
2827

2928
head : ¬ Any P (Stream.tail xs) Any P xs P (Stream.head xs)
3029
head ¬t (here h) = h
31-
head ¬t (there t) = ⊥-elim (¬t t)
30+
head ¬t (there t) = contradiction t ¬t
3231

3332
tail : ¬ 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
3534
tail ¬h (there t) = t
3635

3736
map : P ⊆ Q Any P ⊆ Any Q

0 commit comments

Comments
 (0)