aboutsummaryrefslogtreecommitdiffhomepage
path: root/etc/isar
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2002-06-30 17:41:31 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2002-06-30 17:41:31 +0000
commit8606f8bfd3f85aaea52a9a6374adb2e33b6a2a0a (patch)
tree79ad0fa8dd8ff0011f6016ea631cfe9b6db5afb7 /etc/isar
parentf220ea8912f37bedf05d3431f4cb6a3beb51688d (diff)
New files.
Diffstat (limited to 'etc/isar')
-rw-r--r--etc/isar/Persistent.thy40
1 files changed, 40 insertions, 0 deletions
diff --git a/etc/isar/Persistent.thy b/etc/isar/Persistent.thy
new file mode 100644
index 00000000..a4ade1f9
--- /dev/null
+++ b/etc/isar/Persistent.thy
@@ -0,0 +1,40 @@
+(*
+
+We now support persistent Isabelle sessions with Proof General, preserving
+the state of loaded theories (before I used to have a few explicit
+``bombs'' to prevent this). When saying ``Exit Isabelle/Isar'' the image
+is committed back. It's not possible to go continue partially processed
+theory buffer, but users could expect to have a fully processed theory
+stored properly. The latter requires scripting to be disabled first, in
+order to inform the process to store the finished theory.
+
+To spare users to think about this, the ``Exit Isabelle/Isar''
+operation disables scripting automatically.
+
+Produce a writable Isabelle session like this:
+
+ isabelle -q HOL Foo
+
+Now start PG and start a process with the Foo logic image.
+
+Tests:
+
+ Process this file, exit, start.
+ Unprocess, exit, start. [FAILS]
+
+*)
+
+
+theory Persistent = Main:
+
+theorem and_comms: "A & B --> B & A"
+proof
+ assume "A & B"
+ then show "B & A"
+ proof
+ assume B and A
+ then show ?thesis ..
+ qed
+qed
+
+end