Why does Isabelle have to "recompile" the HOL library every time when I import theories like HOL-Number_Theory.Number_Theory
? I understand for this behavior for the AFP, but why don't the sessions of type HOL-<Name>
behave exactly like HOL
itself and are ready-to-use?
You can achieve what you want by launching jedit with the the option -l HOL-Number_Theory
or by basing your session on HOL-Number_Theory
by modifying your ROOT file.
Of course, you can base your session on any other session including AFP sessions.
Graphically, you can do than in the theory panel of Isabelle/jEdit.
But I am a big fan of the -R
option
What is the difference between -R
and -l
? The isabelle jedit --help
explanation of -l
reads "logic session name" which is not clear to me.
isabelle jedit -l HOL-Number_Theory
vs isabelle jedit -R my_session
Requires a ROOT file for your project however.
Basically -l
chooses one of the predefined "logic" sessions to base your interactive session on while -R
pre-builds all sessions that your session depends on as defined in your ROOT file.
Thanks!
Marco David has marked this topic as resolved.
Marco David has marked this topic as unresolved.
Actually, a follow-up question. I've managed to launch Isabelle with isabelle jedit -d . -R My_Session
but the wanted sessions are only pre-compiled if they are the parent of my session, not if they are simply included via the sessions
command. More precisely, I have a file like
session My_Session = "HOL-Computational_Algebra" +
...
sessions
"HOL-Number_Theory"
and on the above command, only computational algebra is pre-compiled. Is this intended?
I found the answer myself: I only specified the top-level theory file in the ROOT file under theories
, but this theory file did not properly import those lower-level theories that depend on HOL-Number_Theory
. Hence, Isabelle/jEdit was just being efficient by not building sessions that are not imported anyhow.
Marco David has marked this topic as resolved.
Last updated: Dec 21 2024 at 16:20 UTC