coq - 错误消息:缺少的参数数量不正确(预期为 1)
问题描述
运行以下代码时遇到错误消息。
Require Import Coq.Lists.List.
Import ListNotations.
Theorem con_not_com :
exists A (l1 l2 : list A), l1 ++ l2 <> l2 ++ l1.
Proof.
exists bool [true] [false].
我想知道我该如何解决它。谢谢。
解决方案
你需要逗号:
Require Import Coq.Lists.List.
Import ListNotations.
Theorem con_not_com :
exists A (l1 l2 : list A), l1 ++ l2 <> l2 ++ l1.
Proof.
exists bool, [true], [false].
推荐阅读
- javascript - 带有 charCodeAt() 的 js 中的 ASCII 字符
- malloc - Cython:在类中使用 PyMem_Malloc 时出现段错误
- python - Python不会读取文本文件
- java - 可以设计什么样的标准来优先考虑cloudsim中的cloudlet?
- python - Python不会导入模块
- angular - 如何在 [ngClass] 和 ngIf 中使用动态局部模板变量
- java - 何时使用 jmap -J
选项? - javascript - 如何在 Switchery 插件中将 box-shadow 添加到 jackColor
- python - 哪些文件的名称来自 result dir(scrapy) 命令?
- android - 通知中心位置的大图标设置 | 安卓科特林