Installation 加载Agda标准库

Installation 加载Agda标准库,installation,standard-library,agda,Installation,Standard Library,Agda,我安装了Agda(版本2.3.2.2)和标准库(版本0.7)。 我可以加载不导入标准库的程序。 例如,我可以加载 data Bool : Set where true : Bool false : Bool not : Bool -> Bool not false = true not true = false 但是,我无法加载 open import Data.Bool data Bool : Set where true : Bool false : Bool not : Boo

我安装了Agda(版本2.3.2.2)和标准库(版本0.7)。
我可以加载不导入标准库的程序。
例如,我可以加载

data Bool : Set where
true : Bool
false : Bool

not : Bool -> Bool
not false = true
not true = false
但是,我无法加载

open import Data.Bool
data Bool : Set where
true : Bool
false : Bool

not : Bool -> Bool
not false = true
not true = false
当我加载标准库时,我得到以下错误

/Users/my_name/.cabal/share/Agda-2.3.2.2/lib-0.7/src/Level.agda:27,1-32
Duplicate binding for built-in thing LEVEL, previous binding to.Agda.Primitive.Level
when checking the pragma BUILTIN LEVEL Level

有什么办法可以解决这个错误吗?

您确定这些版本吗?2.3.2.2应与0.7兼容。在我看来,您的Agda比2.3.2.2更新。是否有
..\Agda-2.3.2.2\lib\prim\Agda\Primitive.Agda
文件?它不应该在那里

如果没有帮助,您可以尝试手动将
级别
模块的内容更改为:

module Level where

-- Levels.

open import Agda.Primitive public
  using    (Level; _⊔_)
  renaming (lzero to zero; lsuc to suc)

-- Lifting.

record Lift {a ℓ} (A : Set a) : Set (a ⊔ ℓ) where
  constructor lift
  field lower : A

open Lift public
但你可能会遇到其他问题


你真的想要Agda和stdlib的旧版本吗?

Agda的版本不是2.3.2.2!对不起,谢谢!我可以加载图书馆!