检查有理数流中元素的成员资格

时间:2015-05-31 06:34:29

标签: agda

我想编写一个函数,该函数将有理数和$curx=$cdir.$md5urx;个有理数作为输入,并返回Stream如果该数字存在于True,则返回Stream }。

False

这是在图书馆中定义的。

我想写一个以下签名的功能。

-- x ∈ xs means that x is a member of xs.

infix 4 _∈_

data _∈_ {A} : A → Stream A → Set where
  here  : ∀ {x   xs}                   → x ∈ x ∷ xs
  there : ∀ {x y xs} (x∈xs : x ∈ ♭ xs) → x ∈ y ∷ xs

问题在于我无法理解如何继续_ElementOf_ : ∀ {A} → A → Stream A → Bool here

0 个答案:

没有答案