src/HOLCF/IOA/meta_theory/Simulations.ML
author wenzelm
Thu, 15 Nov 2001 23:25:46 +0100
changeset 12218 6597093b77e7
parent 10835 f4745d77e620
child 12525 4ad978c8f550
permissions -rw-r--r--
GPLed;

(*  Title:      HOLCF/IOA/meta_theory/Simulations.ML
    ID:         $Id$
    Author:     Olaf Müller
    License:    GPL (GNU GENERAL PUBLIC LICENSE)

Simulations in HOLCF/IOA.
*)



Goal "(A~={}) = (? x. x:A)";
by (safe_tac set_cs);
by Auto_tac;
qed"set_non_empty";

Goal "(A Int B ~= {}) = (? x. x: A & x:B)";
by (simp_tac (simpset() addsimps [set_non_empty]) 1);
qed"Int_non_empty";


Goalw [Image_def]
"(R``{x} Int S ~= {}) = (? y. (x,y):R & y:S)";
by (simp_tac (simpset() addsimps [Int_non_empty]) 1);
qed"Sim_start_convert";

Addsimps [Sim_start_convert];


Goalw [is_ref_map_def,is_simulation_def]
"!! f. is_ref_map f C A ==> is_simulation {p. (snd p) = f (fst p)} C A";
(* start states *)
by (Asm_full_simp_tac 1);
(* main case *)
by (Blast_tac 1);
qed"ref_map_is_simulation";