diff options
| author | David Aspinall | 2010-09-29 12:15:41 +0000 |
|---|---|---|
| committer | David Aspinall | 2010-09-29 12:15:41 +0000 |
| commit | c6dc09f3633aa500c6f0d2924f5effd5e734d8ac (patch) | |
| tree | 3efd50da4dec68a672eb440ee82c4558acfd3e7c /hol-light/example.ml | |
| parent | b225466ee703a1845f81bb3ae431e462b03d5533 (diff) | |
Experimental hol-light version, not usable yet
Diffstat (limited to 'hol-light/example.ml')
| -rw-r--r-- | hol-light/example.ml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/hol-light/example.ml b/hol-light/example.ml new file mode 100644 index 00000000..ccd59c23 --- /dev/null +++ b/hol-light/example.ml @@ -0,0 +1,32 @@ +(* + Example proof script for HOL Proof General. + + $Id$ +*) + +g `A /\ B ==> B /\ A`;; +e DISCH_TAC;; +e CONJ_TAC;; +e (IMP_RES_TAC AND_INTRO_THM);; +e (IMP_RES_TAC AND_INTRO_THM);; + +goal `A && B ==> B && A`; +val and_comms = pg_top_thm_and_drop();; + +(* Hints about HOL Proof General: + + Proof General needs to work with top-level declarations throughout, + and with "interactive" rather than "batch" versions of proofs. + + For best results, theorems should be saved in the way that they are + saved above, with pg_top_thm_and_drop. The function isn't + mysterious, it is defined as: + + fun pg_top_thm_and_drop () = let val t = top_thm(); in (drop(); t) end; +*) + +(* this simple proof is not quite like proofs in the other systems, + can anyone tell me a more similar proof in HOL? I want to split + the IMP_RES_TAC into two steps. +*) + |
