| 
4565
 | 
     1  | 
(*  Title:      HOLCF/IOA/meta_theory/Simulations.ML
  | 
| 
 | 
     2  | 
    ID:         $Id$
  | 
| 
12218
 | 
     3  | 
    Author:     Olaf Müller
  | 
| 
4565
 | 
     4  | 
  | 
| 
12218
 | 
     5  | 
Simulations in HOLCF/IOA.
  | 
| 
4565
 | 
     6  | 
*)
  | 
| 
 | 
     7  | 
  | 
| 
 | 
     8  | 
  | 
| 
 | 
     9  | 
  | 
| 
5068
 | 
    10  | 
Goal "(A~={}) = (? x. x:A)";
 | 
| 
4565
 | 
    11  | 
by (safe_tac set_cs);
  | 
| 
5132
 | 
    12  | 
by Auto_tac;
  | 
| 
4565
 | 
    13  | 
qed"set_non_empty";
  | 
| 
 | 
    14  | 
  | 
| 
5068
 | 
    15  | 
Goal "(A Int B ~= {}) = (? x. x: A & x:B)";
 | 
| 
4565
 | 
    16  | 
by (simp_tac (simpset() addsimps [set_non_empty]) 1);
  | 
| 
 | 
    17  | 
qed"Int_non_empty";
  | 
| 
 | 
    18  | 
  | 
| 
 | 
    19  | 
  | 
| 
5068
 | 
    20  | 
Goalw [Image_def]
  | 
| 
10835
 | 
    21  | 
"(R``{x} Int S ~= {}) = (? y. (x,y):R & y:S)";
 | 
| 
4565
 | 
    22  | 
by (simp_tac (simpset() addsimps [Int_non_empty]) 1);
  | 
| 
 | 
    23  | 
qed"Sim_start_convert";
  | 
| 
 | 
    24  | 
  | 
| 
 | 
    25  | 
Addsimps [Sim_start_convert];
  | 
| 
 | 
    26  | 
  | 
| 
 | 
    27  | 
  | 
| 
5068
 | 
    28  | 
Goalw [is_ref_map_def,is_simulation_def]
  | 
| 
4565
 | 
    29  | 
"!! f. is_ref_map f C A ==> is_simulation {p. (snd p) = f (fst p)} C A";
 | 
| 
 | 
    30  | 
by (Asm_full_simp_tac 1);
  | 
| 
 | 
    31  | 
qed"ref_map_is_simulation";
  | 
| 
 | 
    32  | 
  | 
| 
 | 
    33  | 
  | 
| 
 | 
    34  | 
  | 
| 
 | 
    35  | 
  |