Confused by Coq imports

匆匆过客 提交于 2019-12-19 17:42:51

问题


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 the user-contribs/ folder);
  • Import: imports the names in a module. For example, if you have a function f in a module M, by doing Import M., you will only need to type f instead of M.f;
  • Require Import: does both Require and Import.


来源:https://stackoverflow.com/questions/33854672/confused-by-coq-imports

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!