I want to build a heap image for the Option
theory. I created a ROOT file to define a session for it:
session "Option" = "HOL" +
theories [document = false]
"~~/src/HOL/Option"
What is the isabelle command to build the heap upon this? I tried
$ isabelle jedit -l Option
but jEdit said the session Option
is undefined
I called this from the directory where my ROOT file is.
Next I tried this ROOT
file:
session "option" = HOL +
theories [document = false]
"~~/src/HOL/Option"
but for
$ isabelle jedit -d . -l option
I get
Implicit use of directory "/home/gergelybuday/Isabelle2023/src/HOL" for theory "option.HOL"
Implicit use of directory "/home/gergelybuday/Isabelle2023/src/HOL" for theory "option.Orderings"
Implicit use of directory "/home/gergelybuday/Isabelle2023/src/HOL" for theory "option.Groups"
...
Implicit use of directory "/home/gergelybuday/Isabelle2023/src/HOL" for theory "option.Option"
Implicit use of session directories: "/home/gergelybuday/Isabelle2023/src/HOL"
The error(s) above occurred in session "option" (line 1 of "/home/gergelybuday/gergelyphd/projects/monads/option/ROOT")
How should I do this correctly?
Isn’t Option
already part of HOL
, from which you start?
Wolfgang Jeltsch said:
Isn’t
Option
already part ofHOL
, from which you start?
My original problem was this: I imported Option
and Isabelle processed the background theories a lot, so I could not work on my theory. Should I build an image for HOL? I guess isabelle jedit starts with that by default, doesn't it?
Yes, it does. Therefore, I don’t know what processing took place in your case.
I think I have found the culprit: I imported ~~/src/HOL/Option
instead of simply Main
.
Hmm, still I don’t understand why Isabelle is not using the heap image in this case, but, then again, I don’t understand these technical details of Isabelle very well. In any case, you should always import Main
first (directly or indirectly by importing a theory first about which you know that it imports Main
first).
I think that it is because you are writing a path instead of HOL.Option
Last updated: Dec 21 2024 at 12:33 UTC