Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/loops/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Coq:未从列表导入的符号_Coq - Fatal编程技术网

Coq:未从列表导入的符号

Coq:未从列表导入的符号,coq,Coq,这个标题不言自明。 我想对列表使用标准的[]和+符号。但即使在进口后,它们也无法被识别。请参阅下面的代码 Require Import List. Check [1]. 这将导致以下错误消息: Syntax error: [constr:lconstr] expected after 'Check' (in [vernac:query_command]). 因此,基本上,符号没有被认为是有效的构造函数。 相比之下,我可以使用Bool的| 我被难住了。请救救我 列表符号隐藏在两层模块中: Re

这个标题不言自明。 我想对列表使用标准的
[]
+
符号。但即使在进口后,它们也无法被识别。请参阅下面的代码

Require Import List.
Check [1].
这将导致以下错误消息:

Syntax error: [constr:lconstr] expected after 'Check' (in [vernac:query_command]).
因此,基本上,符号没有被认为是有效的构造函数。 相比之下,我可以使用Bool的
|


我被难住了。请救救我

列表符号隐藏在两层模块中:

Require Import List.
Import ListNotations.
Check [1].