被Coq进口混淆 [英] Confused by Coq imports
本文介绍了被Coq进口混淆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以告诉我之间的差异
Can someone please tell me the differences between
-
需要
姓名。 -
需要导入
姓名。 -
导入
名称
Require
Name.Require Import
Name.Import
Name
?
推荐答案
-
需要
:加载外部库(通常来自标准库或user-contribs /
文件夹); -
导入
:导入模块中的名称。例如,如果模块M
中的函数f
,则执行导入M 。
,您只需输入f
而不是Mf
; -
需要导入
:同时需要
和导入
。 Require
: load an external library (typically from the standard library or theuser-contribs/
folder);Import
: imports the names in a module. For example, if you have a functionf
in a moduleM
, by doingImport M.
, you will only need to typef
instead ofM.f
;Require Import
: does bothRequire
andImport
.
这篇关于被Coq进口混淆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文