From: Alex Meyer <email@example.com>
Dear friends, I am really stuck with this, hope, someone can help moe to overcome this and move forward. So this is what I am doing step-by-step:
I crated session root in directory Workspace-Algo with session name Algo:
$ cd /cygdrive/c/Workspace-Algo
$ isabelle mkroot -n Algo
Preparing session "Algo" in "."
Now use the following command line to build the session:
isabelle build -D .
My ROOT file is:
session Algo = HOL +
options [document = pdf, document_output = "output"]
(*theories [document = false]
I have copied my theory file Max_Of_Two_Integers_Real.thy inside document subdirectory:
imports (* Main *)
definition two_integer_max_case_def :: "nat ⇒ nat ⇒ nat" where
"two_integer_max_case_def a b = (case a > b of True ⇒ a | False ⇒ b)"
definition "example_case_def = two_integer_max_case_def 1 2"
export_code example_case_def checking SML SML_imp OCaml? OCaml_imp? Haskell? Scala Scala_imp
(* test 123 *)
I built session and started jEdit from command line from the session directory:
$ isabelle build
0:00:02 elapsed time
$ isabelle jedit -d /cygdrive/c/Workspace-Algo
'Plugins - Isabelle - Browse Session information' shows session structure:
That is fine, one can say that I am in my session indeed.
But the default file is scratch and I should open my thy file manually. Let it be.
And now is the main thing.
I tried to export my Algo session:
$ isabelle export -d /cygdrive/c/Workspace-Algo -O /cygdrive/c/test3 -x :* Algo
Build started for Isabelle/Algo ...
Running Algo ...
Preparing Algo/document ...
Finished Algo/document (0:00:21 elapsed time)
Document at "/cygdrive/c/Workspace-Algo/output/document.pdf"
Finished Algo (0:00:01 elapsed time)
This export created /Workspace-Algo/output directory with tex and tex style files and session graph pdf and so on. But what I was really after and and what I have tried to achieve was export to C:/test3 directory in which I expected to see theory and proof files - files without extension that are some kind of session internal dump files which I can forward to MMT tool for transformation into XML MMT files according to https://lists.cam.ac.uk/pipermail/cl-isabelle-users/2021-March/msg00069.html
So - I have 2 problems here and I am looking for 2 answers:
1) Why my Max_Of_Two_Integers_Real.thy has not been included in output directory and why session graph.pdf is empty? I expect: if I am starting jEdit from the session directory and I am starting theory file from such jEdit instance, then I expect that theory file is automatically being added to the sessions. Or is it no? Should I add every theory file manually to the session ROOT file? And only then the session build transmits this theory file to output?
2) Why my export technical dump (not to confuse it with the tex/pdf output in output directory) to C:/test3 is empty - no sessions, no proofs, no heaps etc.? Is it because my session ROOT does not contain explicitly listed theory files? If I had added theory files manually to ROOT file, then session would have had some content and this technical content would have beend exported to isabelle export -O directory?
Hope, that someone can clarify those things for me.
I have gone through hard things before. And I know how to cope with them - I have gone through quantum mechanics or Yoned lemma in category theory and the rule of thumb is to go after second, third... sixth, seventh book and have wide outlook on the things and such persistence clear away all the confusions and leads to understanding. But for Isabelle there are not sixth or seventh tutorial or manual. So, that is why I am asking here. Thanks in advance!
No: Jakub Kądziołka <firstname.lastname@example.org>
Nosūtīts: pirmdiena, 2021. gada 22. marts 17:41
Kam: Alex Meyer <email@example.com>; Isabelle Users <firstname.lastname@example.org>
Tēma: Re: [isabelle] How to see the names of all active Isabelle sessions and how to export specific session?
You need to create a session with 'isabelle mkroot', just like you would
for document preparation. Then, include the -d flag to point to the
directory in which your ROOT file resides.
Last updated: Dec 05 2021 at 22:18 UTC