4559
|
1 |
(* Title: HOLCF/IOA/meta_theory/LiveIOA.ML
|
|
2 |
ID: $Id$
|
|
3 |
Author: Olaf M"uller
|
|
4 |
Copyright 1997 TU Muenchen
|
|
5 |
|
|
6 |
Live I/O Automata
|
|
7 |
|
|
8 |
*)
|
|
9 |
|
|
10 |
Delsimps [split_paired_Ex];
|
|
11 |
|
5068
|
12 |
Goalw [live_implements_def]
|
6161
|
13 |
"[| live_implements (A,LA) (B,LB); live_implements (B,LB) (C,LC) |] \
|
4559
|
14 |
\ ==> live_implements (A,LA) (C,LC)";
|
5132
|
15 |
by Auto_tac;
|
4559
|
16 |
qed"live_implements_trans";
|
|
17 |
|
|
18 |
|
|
19 |
section "Correctness of live refmap";
|
|
20 |
|
|
21 |
|
|
22 |
(* ---------------------------------------------------------------- *)
|
|
23 |
(* Correctness of live refmap *)
|
|
24 |
(* ---------------------------------------------------------------- *)
|
|
25 |
|
|
26 |
|
6161
|
27 |
Goal "[| inp(C)=inp(A); out(C)=out(A); \
|
4559
|
28 |
\ is_live_ref_map f (C,M) (A,L) |] \
|
|
29 |
\ ==> live_implements (C,M) (A,L)";
|
|
30 |
|
|
31 |
by (asm_full_simp_tac (simpset() addsimps [is_live_ref_map_def, live_implements_def,
|
|
32 |
livetraces_def,liveexecutions_def]) 1);
|
|
33 |
by (safe_tac set_cs);
|
|
34 |
by (res_inst_tac[("x","corresp_ex A f ex")] exI 1);
|
|
35 |
by (safe_tac set_cs);
|
|
36 |
(* Traces coincide, Lemma 1 *)
|
|
37 |
by (pair_tac "ex" 1);
|
|
38 |
by (etac (lemma_1 RS spec RS mp) 1);
|
|
39 |
by (simp_tac (simpset() addsimps [externals_def])1);
|
|
40 |
by (SELECT_GOAL (auto_tac (claset(),simpset()))1);
|
|
41 |
by (asm_full_simp_tac (simpset() addsimps [executions_def,reachable.reachable_0]) 1);
|
|
42 |
|
|
43 |
(* corresp_ex is execution, Lemma 2 *)
|
|
44 |
by (pair_tac "ex" 1);
|
|
45 |
by (asm_full_simp_tac (simpset() addsimps [executions_def]) 1);
|
|
46 |
(* start state *)
|
|
47 |
by (rtac conjI 1);
|
|
48 |
by (asm_full_simp_tac (simpset() addsimps [is_ref_map_def,corresp_ex_def]) 1);
|
|
49 |
(* is-execution-fragment *)
|
|
50 |
by (etac (lemma_2 RS spec RS mp) 1);
|
|
51 |
by (asm_full_simp_tac (simpset() addsimps [reachable.reachable_0]) 1);
|
|
52 |
|
|
53 |
(* Liveness *)
|
5132
|
54 |
by Auto_tac;
|
4559
|
55 |
qed"live_implements";
|