src/HOL/UNITY/Extend.ML
author wenzelm
Tue, 09 Mar 1999 12:09:22 +0100
changeset 6318 4a423e8a0b54
parent 6309 ca52347e259a
child 6454 1c8f48966033
permissions -rw-r--r--
added mkdir;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6297
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
     1
(*  Title:      HOL/UNITY/Extend.ML
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
     2
    ID:         $Id$
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
     4
    Copyright   1999  University of Cambridge
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
     5
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
     6
Extending of state sets
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
     7
  function f (forget)    maps the extended state to the original state
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
     8
  function g (forgotten) maps the extended state to the "extending part"
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
     9
*)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    10
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    11
Open_locale "Extend";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    12
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    13
val slice_def = thm "slice_def";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    14
val f_act_def = thm "f_act_def";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    15
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    16
(*** Trivial properties of f, g, h ***)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    17
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    18
val inj_h = thm "inj_h";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    19
val surj_h = thm "surj_h";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    20
Addsimps [inj_h, inj_h RS inj_eq, surj_h];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    21
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    22
val f_def = thm "f_def";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    23
val g_def = thm "g_def";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    24
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    25
Goal "f(h(x,y)) = x";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    26
by (simp_tac (simpset() addsimps [f_def]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    27
qed "f_h_eq";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    28
Addsimps [f_h_eq];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    29
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    30
Goal "g(h(x,y)) = y";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    31
by (simp_tac (simpset() addsimps [g_def]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    32
qed "g_h_eq";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    33
Addsimps [g_h_eq];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    34
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    35
Goal "h(f z, g z) = z";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    36
by (cut_inst_tac [("y", "z")] (surj_h RS surjD) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    37
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    38
qed "h_f_g_eq";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    39
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    40
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    41
(*** extend_set: basic properties ***)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    42
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    43
Goalw [extend_set_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    44
     "(h(x,y)) : extend_set h A = (x : A)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    45
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    46
qed "mem_extend_set_iff";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    47
AddIffs [mem_extend_set_iff]; 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    48
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    49
Goal "inj (extend_set h)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    50
by (rtac injI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    51
by (rewtac extend_set_def);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    52
by (etac equalityE 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    53
by (blast_tac (claset() addSDs [inj_h RS inj_image_mem_iff RS iffD1]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    54
qed "inj_extend_set";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    55
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    56
Goalw [extend_set_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    57
    "extend_set h (A Un B) = extend_set h A Un extend_set h B";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    58
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    59
qed "extend_set_Un_distrib";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    60
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    61
Goalw [extend_set_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    62
    "extend_set h (A Int B) = extend_set h A Int extend_set h B";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    63
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    64
qed "extend_set_Int_distrib";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    65
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    66
Goalw [extend_set_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    67
    "extend_set h (A - B) = extend_set h A - extend_set h B";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    68
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    69
qed "extend_set_Diff_distrib";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    70
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    71
Goalw [extend_set_def] "extend_set h (Union A) = (UN X:A. extend_set h X)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    72
by (Blast_tac 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    73
qed "extend_set_Union";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    74
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    75
Goalw [extend_set_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    76
     "(extend_set h A <= - extend_set h B) = (A <= - B)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    77
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    78
qed "extend_set_subset_Compl_eq";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    79
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    80
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    81
Goalw [extend_set_def] "f `` extend_set h A = A";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    82
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    83
by (blast_tac (claset() addIs [f_h_eq RS sym]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    84
qed "f_image_extend_set";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    85
Addsimps [f_image_extend_set];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    86
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    87
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    88
(*** extend_act ***)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    89
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    90
Goalw [extend_act_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    91
     "((h(s,y), h(s',y)) : extend_act h act) = ((s, s') : act)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    92
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    93
qed "mem_extend_act_iff";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    94
AddIffs [mem_extend_act_iff]; 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    95
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    96
Goal "inj (extend_act h)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    97
by (rtac injI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    98
by (rewtac extend_act_def);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
    99
by (force_tac (claset() addSEs [equalityE]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   100
			addIs  [h_f_g_eq RS sym], 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   101
	       simpset()) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   102
qed "inj_extend_act";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   103
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   104
Goalw [extend_set_def, extend_act_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   105
     "extend_act h act ^^ (extend_set h A) = extend_set h (act ^^ A)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   106
by (Force_tac 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   107
qed "extend_act_Image";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   108
Addsimps [extend_act_Image];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   109
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   110
Goalw [extend_set_def, extend_act_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   111
    "(extend_set h A <= extend_set h B) = (A <= B)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   112
by (Force_tac 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   113
qed "extend_set_strict_mono";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   114
Addsimps [extend_set_strict_mono];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   115
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   116
Goalw [extend_set_def, extend_act_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   117
    "Domain (extend_act h act) = extend_set h (Domain act)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   118
by (Force_tac 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   119
qed "Domain_extend_act"; 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   120
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   121
Goalw [extend_set_def, extend_act_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   122
    "extend_act h Id = Id";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   123
by (force_tac (claset() addIs  [h_f_g_eq RS sym], simpset()) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   124
qed "extend_act_Id";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   125
Addsimps [extend_act_Id];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   126
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   127
Goal "Id : extend_act h `` Acts F";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   128
by (auto_tac (claset() addSIs [extend_act_Id RS sym], 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   129
	      simpset() addsimps [image_iff]));
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   130
qed "Id_mem_extend_act";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   131
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   132
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   133
(**** extend ****)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   134
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   135
(*** Basic properties ***)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   136
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   137
Goalw [extend_set_def, extend_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   138
     "Init (extend h F) = extend_set h (Init F)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   139
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   140
qed "Init_extend";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   141
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   142
Goal "Acts (extend h F) = (extend_act h `` Acts F)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   143
by (auto_tac (claset() addSIs [extend_act_Id RS sym], 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   144
	      simpset() addsimps [extend_def, image_iff]));
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   145
qed "Acts_extend";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   146
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   147
Addsimps [Init_extend, Acts_extend];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   148
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   149
Goalw [SKIP_def] "extend h SKIP = SKIP";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   150
by (rtac program_equalityI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   151
by (auto_tac (claset() addIs  [h_f_g_eq RS sym], 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   152
	      simpset() addsimps [extend_set_def]));
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   153
qed "extend_SKIP";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   154
Addsimps [extend_SKIP];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   155
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   156
Goal "inj (extend h)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   157
by (rtac injI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   158
by (rewtac extend_def);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   159
by (etac program_equalityE 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   160
by (full_simp_tac
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   161
    (simpset() addsimps [inj_extend_set RS inj_eq,
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   162
			 inj_extend_act RS inj_image_eq_iff,
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   163
			 Id_mem_extend_act RS insert_absorb]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   164
by (blast_tac (claset() addIs [program_equalityI]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   165
qed "inj_extend";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   166
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   167
Goal "extend h (F Join G) = extend h F Join extend h G";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   168
by (rtac program_equalityI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   169
by (simp_tac (simpset() addsimps [image_Un, Acts_Join]) 2);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   170
by (simp_tac (simpset() addsimps [extend_set_Int_distrib]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   171
qed "extend_Join";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   172
Addsimps [extend_Join];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   173
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   174
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   175
(*** Safety: constrains, stable ***)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   176
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   177
Goal "(extend h F : constrains (extend_set h A) (extend_set h B)) = \
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   178
\     (F : constrains A B)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   179
by (simp_tac (simpset() addsimps [constrains_def]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   180
qed "extend_constrains";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   181
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   182
Goal "(extend h F : stable (extend_set h A)) = (F : stable A)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   183
by (asm_simp_tac (simpset() addsimps [stable_def, extend_constrains]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   184
qed "extend_stable";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   185
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   186
Goal "(extend h F : invariant (extend_set h A)) = (F : invariant A)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   187
by (asm_simp_tac (simpset() addsimps [invariant_def, extend_stable]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   188
qed "extend_invariant";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   189
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   190
(** Substitution Axiom versions: Constrains, Stable **)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   191
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   192
Goal "p : reachable (extend h F) ==> f p : reachable F";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   193
by (etac reachable.induct 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   194
by (auto_tac
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   195
    (claset() addIs reachable.intrs,
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   196
     simpset() addsimps [extend_set_def, extend_act_def, image_iff]));
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   197
qed "reachable_extend_f";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   198
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   199
Goal "h(s,y) : reachable (extend h F) ==> s : reachable F";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   200
by (force_tac (claset() addSDs [reachable_extend_f], simpset()) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   201
qed "h_reachable_extend";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   202
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   203
Goalw [extend_set_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   204
     "reachable (extend h F) = extend_set h (reachable F)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   205
by (rtac equalityI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   206
by (force_tac (claset() addIs  [h_f_g_eq RS sym]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   207
			addSDs [reachable_extend_f], 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   208
	       simpset()) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   209
by (Clarify_tac 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   210
by (etac reachable.induct 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   211
by (ALLGOALS (force_tac (claset() addIs reachable.intrs, 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   212
			 simpset())));
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   213
qed "reachable_extend_eq";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   214
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   215
Goal "(extend h F : Constrains (extend_set h A) (extend_set h B)) =  \
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   216
\     (F : Constrains A B)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   217
by (simp_tac
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   218
    (simpset() addsimps [Constrains_def, reachable_extend_eq, 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   219
			 extend_constrains, extend_set_Int_distrib RS sym]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   220
qed "extend_Constrains";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   221
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   222
Goal "(extend h F : Stable (extend_set h A)) = (F : Stable A)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   223
by (simp_tac (simpset() addsimps [Stable_def, extend_Constrains]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   224
qed "extend_Stable";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   225
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   226
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   227
(*** Progress: transient, ensures ***)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   228
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   229
Goal "(extend h F : transient (extend_set h A)) = (F : transient A)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   230
by (auto_tac (claset(),
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   231
	      simpset() addsimps [transient_def, extend_set_subset_Compl_eq,
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   232
				  Domain_extend_act]));
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   233
qed "extend_transient";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   234
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   235
Goal "(extend h F : ensures (extend_set h A) (extend_set h B)) = \
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   236
\     (F : ensures A B)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   237
by (simp_tac
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   238
    (simpset() addsimps [ensures_def, extend_constrains, extend_transient, 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   239
			 extend_set_Un_distrib RS sym, 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   240
			 extend_set_Diff_distrib RS sym]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   241
qed "extend_ensures";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   242
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   243
Goal "F : leadsTo A B \
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   244
\     ==> extend h F : leadsTo (extend_set h A) (extend_set h B)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   245
by (etac leadsTo_induct 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   246
by (asm_simp_tac (simpset() addsimps [leadsTo_UN, extend_set_Union]) 3);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   247
by (blast_tac (claset() addIs [leadsTo_Trans]) 2);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   248
by (asm_simp_tac (simpset() addsimps [leadsTo_Basis, extend_ensures]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   249
qed "leadsTo_imp_extend_leadsTo";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   250
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   251
(*** Proving the converse takes some doing! ***)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   252
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   253
Goalw [slice_def] "slice (Union S) y = (UN x:S. slice x y)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   254
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   255
qed "slice_Union";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   256
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   257
Goalw [slice_def] "slice (extend_set h A) y = A";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   258
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   259
qed "slice_extend_set";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   260
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   261
Goalw [slice_def] "f``A = (UN y. slice A y)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   262
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   263
by (blast_tac (claset() addIs [f_h_eq RS sym]) 2);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   264
by (best_tac (claset() addIs [h_f_g_eq RS ssubst]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   265
qed "image_is_UN_slice";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   266
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   267
Goalw [slice_def, transient_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   268
    "extend h F : transient A ==> F : transient (slice A y)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   269
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   270
by (rtac bexI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   271
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   272
by (force_tac (claset(), simpset() addsimps [extend_act_def]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   273
qed "extend_transient_slice";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   274
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   275
Goal "extend h F : ensures A B ==> F : ensures (slice A y) (f `` B)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   276
by (full_simp_tac
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   277
    (simpset() addsimps [ensures_def, extend_constrains, extend_transient, 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   278
			 image_Un RS sym,
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   279
			 extend_set_Un_distrib RS sym, 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   280
			 extend_set_Diff_distrib RS sym]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   281
by Safe_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   282
by (full_simp_tac (simpset() addsimps [constrains_def, extend_act_def, 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   283
				       extend_set_def]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   284
by (Clarify_tac 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   285
by (ball_tac 1); 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   286
by (full_simp_tac (simpset() addsimps [slice_def, image_iff, Image_iff]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   287
by (force_tac (claset() addSIs [h_f_g_eq RS sym], simpset()) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   288
(*transient*)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   289
by (dtac extend_transient_slice 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   290
by (etac transient_strengthen 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   291
by (force_tac (claset() addIs [f_h_eq RS sym], 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   292
	       simpset() addsimps [slice_def]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   293
qed "extend_ensures_slice";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   294
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   295
Goal "ALL y. F : leadsTo (slice B y) CU ==> F : leadsTo (f `` B) CU";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   296
by (simp_tac (simpset() addsimps [image_is_UN_slice]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   297
by (blast_tac (claset() addIs [leadsTo_UN]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   298
qed "leadsTo_slice_image";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   299
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   300
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   301
Goal "extend h F : leadsTo AU BU \
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   302
\     ==> ALL y. F : leadsTo (slice AU y) (f `` BU)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   303
by (etac leadsTo_induct 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   304
by (full_simp_tac (simpset() addsimps [slice_Union]) 3);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   305
by (blast_tac (claset() addIs [leadsTo_UN]) 3);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   306
by (blast_tac (claset() addIs [leadsTo_slice_image, leadsTo_Trans]) 2);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   307
by (blast_tac (claset() addIs [extend_ensures_slice, leadsTo_Basis]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   308
qed_spec_mp "extend_leadsTo_slice";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   309
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   310
Goal "(extend h F : leadsTo (extend_set h A) (extend_set h B)) = \
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   311
\     (F : leadsTo A B)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   312
by Safe_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   313
by (etac leadsTo_imp_extend_leadsTo 2);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   314
by (dtac extend_leadsTo_slice 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   315
by (full_simp_tac (simpset() addsimps [slice_extend_set]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   316
qed "extend_leadsto_eq";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   317
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   318
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   319
(*** guarantees properties ***)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   320
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   321
Goalw [f_act_def, extend_act_def] "f_act (extend_act h act1) = act1";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   322
by (force_tac
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   323
    (claset() addSIs [rev_bexI],
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   324
     simpset() addsimps [image_iff]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   325
qed "f_act_extend_act";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   326
Addsimps [f_act_extend_act];
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   327
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   328
Goalw [extend_set_def]
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   329
     "f `` (extend_set h A Int B) = (f `` extend_set h A) Int (f``B)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   330
by (force_tac (claset() addIs  [h_f_g_eq RS sym], simpset()) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   331
qed "image_extend_set_Int_eq";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   332
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   333
Goal "(extend h F) Join G = extend h H ==> EX J. H = F Join J";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   334
by (etac program_equalityE 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   335
by (auto_tac (claset(), simpset() addsimps [Acts_Join]));
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   336
by (res_inst_tac [("x", "mk_program(f``(Init G), f_act``Acts G)")] exI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   337
by (rtac program_equalityI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   338
(*Init*)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   339
by (REPEAT (dres_inst_tac [("f", "op `` f")] arg_cong 1));
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   340
by (asm_full_simp_tac (simpset() addsimps [image_extend_set_Int_eq]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   341
(*Now for the Actions*)
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   342
by (dres_inst_tac [("f", "op `` f_act")] arg_cong 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   343
by (asm_full_simp_tac 
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   344
    (simpset() addsimps [Acts_Join, image_Un, image_compose RS sym, o_def]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   345
qed "extend_Join_eq_extend_D";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   346
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   347
Goal "F : X guarantees Y \
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   348
\     ==> extend h F : (extend h `` X) guarantees (extend h `` Y)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   349
by (rtac guaranteesI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   350
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   351
by (blast_tac (claset() addDs [extend_Join_eq_extend_D, guaranteesD]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   352
qed "guarantees_imp_extend_guarantees";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   353
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   354
Goal "extend h F : (extend h `` X) guarantees (extend h `` Y) \
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   355
\     ==> F : X guarantees Y";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   356
by (rtac guaranteesI 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   357
by (rewrite_goals_tac [guarantees_def, component_def]);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   358
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   359
by (dtac spec 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   360
by (dtac (mp RS mp) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   361
by (Blast_tac 2);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   362
by (blast_tac (claset() addSDs [inj_extend RS inj_image_mem_iff RS iffD1]) 2);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   363
by Auto_tac;
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   364
qed "extend_guarantees_imp_guarantees";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   365
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   366
Goal "(extend h F : (extend h `` X) guarantees (extend h `` Y)) \
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   367
\     = (F : X guarantees Y)";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   368
by (blast_tac (claset() addIs [guarantees_imp_extend_guarantees,
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   369
			       extend_guarantees_imp_guarantees]) 1);
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   370
qed "extend_guarantees_eq";
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   371
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   372
5b9fbdfe22b7 new theory of extending the state space
paulson
parents:
diff changeset
   373
Close_locale "Extend";