Importing theory files from the AFP can take a while since every dependency has to be proven. How do you compile a theory, like it is done for theory HOL
for instance, so that it imports more quickly?
On the right of your Isabelle/jEdit, there is a Theories
tab, within which you can select a logic session to start with:
image.png
Select the target AFP entry and restart your Isabelle/jEdit.
Wenda Li said:
On the right of your Isabelle/jEdit, there is a
Theories
tab, within which you can select a logic session to start with:
image.png
Select the target AFP entry and restart your Isabelle/jEdit.
image.png
Thank you. However, I cannot see any AFP entry in the dropdown. I know that the AFP has been imported, because theory files that depend on AFP entries are validated without issues. How do I add AFP entries there?
Ahh, you need to have the AFP library properly installed first. See the instructions(i.e., via isabelle components -u
).
Wenda Li said:
Ahh, you need to have the AFP library properly installed first. See the instructions(i.e., via
isabelle components -u
).
~/bin/afp/afp-2023-11-28$ isabelle components -u thys/
Unchanged component "/home/david-wang/bin/afp/afp-2023-11-28/thys"
I did that before. Importing still takes ages.
Nothing seems to have changed.
David Wang said:
Wenda Li said:
Ahh, you need to have the AFP library properly installed first. See the instructions(i.e., via
isabelle components -u
).
~/bin/afp/afp-2023-11-28$ isabelle components -u thys/ Unchanged component "/home/david-wang/bin/afp/afp-2023-11-28/thys"
I did that before. Importing still takes ages.
Nothing seems to have changed.
Never mind. I did not see the scroll bar. Thank you.
At some point you probably should write a file named ROOT
which would look something like:
session YOUR_SESSION = HOL +
sessions
"Propositional_Proof_Systems"
theories
YOUR_THEORY
and then you can launch Isabelle with isabelle jedit -d . -R YOUR_SESSION
which instructs Isabelle to load the ROOT
file from the current directory with -d .
and tells it to prebuild all requirements of YOUR_SESSION
with -R YOUR_SESSION
which in this case just would be the session Propositional_Proof_Systems
Last updated: Dec 21 2024 at 16:20 UTC