问题
Can someone please tell me the differences between
Require
Name.Require Import
Name.Import
Name
?
回答1:
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
.
来源:https://stackoverflow.com/questions/33854672/confused-by-coq-imports