如何在ROOT中指定非文档理论文件?

时间:2014-07-25 13:41:11

标签: isabelle

我将Nominal2导入我的主要理论文件,在Isabelle / jEdit中,我可以使用atom_decl,因此它可以正常工作。在ROOT中,我尝试了各种尝试来指定Nominal2,例如

session "techreport" = "HOL" + 
   options [document = pdf, document_output = "output"] 
   theories [document = false] 
     Nominal2 
   theories 
     IsarIntroduction 
   files "document/root.tex" 

但我得到bad inputNo such file: "Nominal2.thy"。我试图从IsarIntroduction的目录和root.tex的目录中指定相对路径,但是徒劳无功。

如何指定Nominal2理论的路径?

更新:我为Isabelle / JEdit使用了特意构建的Nominal2图像

2 个答案:

答案 0 :(得分:1)

你也应该像在Isabelle / jEdit中那样建立会话(图像)Nominal2。例如:

session "techreport" = "Nominal2" + 
   options [document = pdf, document_output = "output"] 
   theories 
     IsarIntroduction 
   files "document/root.tex" 

答案 1 :(得分:0)

一些摆弄让我找到了解决方案。

No such file: "Nominal2.thy"消息来自isabelle build进程,该进程看不到Isabelle / jEdit使用的Nominal2预先构建的图像。因此,在主要理论文件Nominal2以及IsarIntroduction.thy文件中提供ROOT的完整路径可以解决问题。

但有一点需要注意:我有一个超过两百页的文档,其中包含Infinite_Set.thy的所有开发。包含的日志

Loading theory "Infinite_Set" (required by "IsarIntroduction" 
via "Nominal2" via "Nominal2_Base")

所以我必须包括

theories [document = false]
  "Nominal2-Isabelle2013-1/Nominal/Nominal2"
  "~~/src/HOL/Library/Infinite_Set"
ROOT

以防止这种情况发生。