diff options
Diffstat (limited to 'etc')
-rw-r--r-- | etc/isa/completed-proof.ML | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/etc/isa/completed-proof.ML b/etc/isa/completed-proof.ML new file mode 100644 index 00000000..70cc8e18 --- /dev/null +++ b/etc/isa/completed-proof.ML @@ -0,0 +1,43 @@ +(* Test of completed proof behaviour: even if qed command is missing, + PG should close of the proof as a goalsave. + + Issue with Isabelle2002: Goals.disable_pr prevents + proof-shell-proof-completed being set because "No Subgoals!" is not + displayed. This means that processing file in one go here (or C-c + C-RET at val_) does not work properly. +*) + +(* default proof-completed-proof-behaviour for isa is 'closeany. + Also should test this file with 'closegoal, 'extend. + + (setq proof-completed-proof-behaviour 'closeany) + : close on any command after proof completed seen + (setq proof-completed-proof-behaviour 'closegoal) + : close when next goal is seen + (setq proof-completed-proof-behaviour 'extend) + : continually extend region after proof completed, until next goal. + + *) + +Goal "A & B --> B & A"; + by (rtac impI 1); + by (etac conjE 1); + by (rtac conjI 1); + by (assume_tac 1); + by (assume_tac 1); + (* qed "and_comms"; *) + +val _ = (); +val _ = (); + +Goal "A & B --> B & A"; + by (rtac impI 1); + by (etac conjE 1); + by (rtac conjI 1); + by (assume_tac 1); + by (assume_tac 1); + qed "and_comms"; + + + + |