首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >导入Agda中的立体Agda模块

导入Agda中的立体Agda模块
EN

Stack Overflow用户
提问于 2022-01-30 03:34:03
回答 1查看 114关注 0票数 1

我在Emacs模式下使用agda。我正试图开始一个依赖立方体图书馆的项目。我想导入模块Cubical.Core.Everything。我只写了以下几篇

代码语言:javascript
复制
{-# OPTIONS --without-K #-}

open import Cubical.Core.Everything

当我试图加载文件时,我会收到以下错误

代码语言:javascript
复制
/home/rymndbkr/myHoTT/Agda/intro.agda:3,1-36
Importing module Cubical.Core.Everything using the
--cubical/--erased-cubical flag from a module which does not.
when scope checking the declaration
  open import Cubical.Core.Everything
/home/rymndbkr/myHoTT/Agda/intro.agda:3,1-36
Importing module Cubical.Core.Everything using the --two-level flag
from a module which does not.
when scope checking the declaration
  open import Cubical.Core.Everything

我已经阅读了相关的agda文档,我没有看到任何能解决这个问题的地方。有人知道这里发生了什么吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-01-30 08:49:27

立体Agda库只能从立体Agda中使用。错误信息告诉您将源文件更改为使用立体式模式:

代码语言:javascript
复制
{-# OPTIONS --cubical #-}
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70911605

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档