我注意到<code>Vec.filter</code>的签名是
<pre><code>filter : ∀ {n} → Vec A n → Vec≤ A n
</code></pre>
为了返回<
我正在尝试获取<code>Data.List</code>的max元素:
<pre><code>listMax : max ℕ (2 ∷ 1 ∷ []) ≟ 2
listMax = ?
</code></p
我正在尝试在任意长度的<code>Data.Vec</code>上使用<code>fromList</code> <code>Data.List</code>:
<pre><code>natListToVe
我具有以下功能:
<pre><code>natListLast : List ℕ → ℕ
natListLast nats = v.last (v.fromList nats)
</code></pre>
我
尝试遵循本指南:<a href="https://plfa.github.io/GettingStarted/" rel="nofollow noreferrer">https://plfa.github.io/GettingStarted/
我正在尝试对记录类型进行模式匹配,但 agda 给了我以下错误,以下程序来自立方体。我知道这个定理
有人发现 Setoids 广泛用于 Agda、Coq 等语言中……事实上,Lean 等语言认为它们可以帮助避免“Setoid Hell”
我尝试实现我的“sprintf”函数版本(它从格式字符串构造一个字符串,其中包含许多不同类型的参数)
我正在玩弄函子对 <em>a la</em>
<a href="https://blog.functorial.com/posts/2017-12-10-Co-Finds-A-Pairing.html" rel="nofollo
根据 <a href="https://agda.readthedocs.io/en/v2.6.1.1/language/reflection.html" rel="nofollow noreferrer">Agda documentation</a>,可
我有一个函数 <code>filter'</code>:
<pre><code>filter' : {A : Set} → (A → Bool) → List A → List A
filter'
我正在尝试按照 <a href="https://agda.readthedocs.io/en/v2.6.1.1/getting-started/installation.html" rel="nofollow noreferrer">instr
我想在 Agda 中使用 Haskell 代码,例如,类似于返回整数和字符串对列表的函数。
我看到了这个文档
我已经开始阅读 <a href="https://plfa.inf.ed.ac.uk/Naturals/" rel="nofollow noreferrer">Programming Language Foundations in Agda</a
在启用 <code>List</code> 的情况下在 agda 中定义 <code>--without-K</code> 时的观察:
接受以下参数化归纳定
我们一直在尝试一些 AGDA,基本上是在 AGDA 中播放精益自然数的一部分。然而,对于不等式,我们遇到了
代码如下:
<pre><code>Continuation : Set → Set₁ → Set₁
Continuation R X = (X → R) → R
Selection : Set → Set₁
我尝试使用 <a href="https://agda.readthedocs.io/en/v2.6.1.3/getting-started/hello-world.html#hello-world-in-agda" rel="nofollow nore
给定两个列表 xs 和 ys,我想获得 Dec(xs ≡ ys) 的值。
有谁知道包含这种操作符的标准库模块的名称吗?
好像可以通过转义码来定义一个字符,比如
<pre><code>mychar : Char
mychar = '\US'
</code></pre>
但不适