coqide - can't load modules from same folder

后端 未结 4 1203
陌清茗
陌清茗 2020-12-03 10:32

I can\'t load modules that are in same folder in CoqIde.

I\'m trying to load sources from Software Foundations, I\'m running coqide in folder that contains SF source

4条回答
  •  甜味超标
    2020-12-03 11:27

    To be able to load a source file in coqtop, coqc, CoqIDE, or Proof General there are several ways, one method is as follows:

    Suppose you have downloaded code files for the book titled Certified Programming with Dependent Types written by Adam Chlipala that are available here and extract them in a path we call CODEHOME. As you can see there are this first line in any source files Require Import Bool Arith List Cpdt.CpdtTactics.

    First type coqc -v in a cli (command line interface), the output would be something like The Coq Proof Assistant, version 8.4pl4 ...., then create a file named coqrc.8.4pl4, the file extension should be in accord with the version of the coq you are using, in $HOME/.config/coq directory if it does not exist and write this line in it Add LoadPath "CODEHOME/cpdt/src" as Cpdt . and that's it.

提交回复
热议问题