src/HOL/Modelcheck/Example.ML
author paulson
Fri, 19 Sep 1997 16:12:21 +0200
changeset 3685 5b8c0c8f576e
parent 3380 2986e3b1f86a
child 5069 3ea049f7979d
permissions -rw-r--r--
Full version of TLS including session resumption, but no Oops
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3210
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
     1
(*  Title:      HOL/Modelcheck/Example.ML
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
     2
    ID:         $Id$
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
     3
    Author:     Olaf Mueller, Jan Philipps, Robert Sandner
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
     4
    Copyright   1997  TU Muenchen
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
     5
*)
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
     6
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
     7
val reach_rws = [reach_def,INIT_def,N_def];
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
     8
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
     9
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
    10
goal thy "reach (True,True,True)";
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
    11
by (simp_tac (MC_ss addsimps reach_rws) 1);
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
    12
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
    13
(*show the current proof state using the model checker syntax*)
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
    14
setmp print_mode ["Eindhoven"] pr ();
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
    15
3225
cee363fc07d7 little changes
mueller
parents: 3219
diff changeset
    16
(* actually invoke the model checker *)
cee363fc07d7 little changes
mueller
parents: 3219
diff changeset
    17
(* try out after installing the model checker: see the README file *)
cee363fc07d7 little changes
mueller
parents: 3219
diff changeset
    18
cee363fc07d7 little changes
mueller
parents: 3219
diff changeset
    19
(* by (mc_tac 1); *)
3210
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
    20
3380
2986e3b1f86a trivial changes to incorporate CTL.thy and Example.ML in html file;
mueller
parents: 3225
diff changeset
    21
(*qed "reach_ex_thm";*)
3210
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
    22
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
    23
e80db1660614 Invoking Model Checkers in Isabelle/HOL;
mueller
parents:
diff changeset
    24
3380
2986e3b1f86a trivial changes to incorporate CTL.thy and Example.ML in html file;
mueller
parents: 3225
diff changeset
    25
(* just to make a proof in this file :-) *)
2986e3b1f86a trivial changes to incorporate CTL.thy and Example.ML in html file;
mueller
parents: 3225
diff changeset
    26
goalw thy [INIT_def] "INIT (a,b,c) = (~a & ~b &~c)";
2986e3b1f86a trivial changes to incorporate CTL.thy and Example.ML in html file;
mueller
parents: 3225
diff changeset
    27
by (Simp_tac 1);
2986e3b1f86a trivial changes to incorporate CTL.thy and Example.ML in html file;
mueller
parents: 3225
diff changeset
    28
qed"init_state";