coq - Coq:在“隐式”之后应出现语法错误“类型”或“类型”
问题描述
我越来越Syntax error 'Type' or 'Types' expected after 'Implicit'
从 Coq'Art 输入以下内容时:
Set Implicit Arguments.
CoInductive LList (A: Set) : Set :=
LNil : LList A
| LCons : A -> LList A -> LList A.
Implicit Arguments LNil [A].
这是我的 Coq 版本:
$ coqc --version
The Coq Proof Assistant, version 8.12.0 (July 2020)
compiled on Jul 26 2020 6:47:02 with OCaml 4.09.0
什么是完成我想要的正确方法?
我希望 LNil 不需要 type 参数,并且一般来说,对于 Coq'Art 第 13 章中的示例,可以与我的 Coq 版本一起使用。
更新
Arguments LNil { A }.
似乎工作。现在我很好奇这种变化的原因,以及Arguments LNil { A }.
新旧之间的含义是否有任何区别Implicit Arguments LNil [A].
解决方案
我刚刚在更改的原因上发现了这一点: https ://coq.inria.fr/refman/changes.html
在 Jasper Hugunin 的帮助下,删除了已弃用的命令 Arguments Scope 和 Implicit Arguments 以支持 Arguments。
The main reason seems to be the generalization of implicit arguments and scope in a same command :
Enrico Tassi introduced a command Arguments that generalizes Implicit Arguments and Arguments Scope for assigning various properties to arguments of constants.
You might find further details at the address, or you could directly contact the commiters.
推荐阅读
- python - 一种热编码(映射值问题)
- python - python将mongodb图像与文本合并,使用pymongo和gridfs
- mysql - 为 Django 和 MySQL 配置 CircleCI
- ios - 尝试在 Objective C 中插入非属性值问题
- docker - 由于没有可用的 Postgresql 实例,Spring Boot 和 Postgresql 应用程序在 docker 中构建失败
- javascript - 数组中的空元素不会被评估为未定义?
- php - 如何将 sweetalert 的输入值保存在数据库中以及如何将行从表移动到另一个
- excel - 如何将Excel表格拆分为多页Word文件
- amazon-web-services - 提供存储在 AWS S3 中的媒体文件的最佳方式
- python - 从动态导入模块中的父目录导入模块