src/HOL/UNITY/UNITY_tactics.ML
author paulson
Thu Jan 30 18:08:09 2003 +0100 (2003-01-30)
changeset 13797 baefae13ad37
parent 13796 19f50fa807ae
child 13798 4c1a53627500
permissions -rw-r--r--
conversion of UNITY theories to new-style
paulson@13786
     1
(*  Title:      HOL/UNITY/UNITY_tactics.ML
paulson@13786
     2
    ID:         $Id$
paulson@13786
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
paulson@13786
     4
    Copyright   2003  University of Cambridge
paulson@13786
     5
paulson@13786
     6
Specialized UNITY tactics, and ML bindings of theorems
paulson@13786
     7
*)
paulson@13786
     8
paulson@13797
     9
(*UNITY*)
paulson@13797
    10
val constrains_def = thm "constrains_def";
paulson@13797
    11
val stable_def = thm "stable_def";
paulson@13797
    12
val invariant_def = thm "invariant_def";
paulson@13797
    13
val increasing_def = thm "increasing_def";
paulson@13797
    14
val Allowed_def = thm "Allowed_def";
paulson@13797
    15
val Id_in_Acts = thm "Id_in_Acts";
paulson@13797
    16
val insert_Id_Acts = thm "insert_Id_Acts";
paulson@13797
    17
val Id_in_AllowedActs = thm "Id_in_AllowedActs";
paulson@13797
    18
val insert_Id_AllowedActs = thm "insert_Id_AllowedActs";
paulson@13797
    19
val Init_eq = thm "Init_eq";
paulson@13797
    20
val Acts_eq = thm "Acts_eq";
paulson@13797
    21
val AllowedActs_eq = thm "AllowedActs_eq";
paulson@13797
    22
val surjective_mk_program = thm "surjective_mk_program";
paulson@13797
    23
val program_equalityI = thm "program_equalityI";
paulson@13797
    24
val program_equalityE = thm "program_equalityE";
paulson@13797
    25
val program_equality_iff = thm "program_equality_iff";
paulson@13797
    26
val def_prg_Init = thm "def_prg_Init";
paulson@13797
    27
val def_prg_Acts = thm "def_prg_Acts";
paulson@13797
    28
val def_prg_AllowedActs = thm "def_prg_AllowedActs";
paulson@13797
    29
val def_prg_simps = thm "def_prg_simps";
paulson@13797
    30
val def_act_simp = thm "def_act_simp";
paulson@13797
    31
val def_set_simp = thm "def_set_simp";
paulson@13797
    32
val constrainsI = thm "constrainsI";
paulson@13797
    33
val constrainsD = thm "constrainsD";
paulson@13797
    34
val constrains_empty = thm "constrains_empty";
paulson@13797
    35
val constrains_empty2 = thm "constrains_empty2";
paulson@13797
    36
val constrains_UNIV = thm "constrains_UNIV";
paulson@13797
    37
val constrains_UNIV2 = thm "constrains_UNIV2";
paulson@13797
    38
val constrains_weaken_R = thm "constrains_weaken_R";
paulson@13797
    39
val constrains_weaken_L = thm "constrains_weaken_L";
paulson@13797
    40
val constrains_weaken = thm "constrains_weaken";
paulson@13797
    41
val constrains_Un = thm "constrains_Un";
paulson@13797
    42
val constrains_UN = thm "constrains_UN";
paulson@13797
    43
val constrains_Un_distrib = thm "constrains_Un_distrib";
paulson@13797
    44
val constrains_UN_distrib = thm "constrains_UN_distrib";
paulson@13797
    45
val constrains_Int_distrib = thm "constrains_Int_distrib";
paulson@13797
    46
val constrains_INT_distrib = thm "constrains_INT_distrib";
paulson@13797
    47
val constrains_Int = thm "constrains_Int";
paulson@13797
    48
val constrains_INT = thm "constrains_INT";
paulson@13797
    49
val constrains_imp_subset = thm "constrains_imp_subset";
paulson@13797
    50
val constrains_trans = thm "constrains_trans";
paulson@13797
    51
val constrains_cancel = thm "constrains_cancel";
paulson@13797
    52
val unlessI = thm "unlessI";
paulson@13797
    53
val unlessD = thm "unlessD";
paulson@13797
    54
val stableI = thm "stableI";
paulson@13797
    55
val stableD = thm "stableD";
paulson@13797
    56
val stable_UNIV = thm "stable_UNIV";
paulson@13797
    57
val stable_Un = thm "stable_Un";
paulson@13797
    58
val stable_UN = thm "stable_UN";
paulson@13797
    59
val stable_Int = thm "stable_Int";
paulson@13797
    60
val stable_INT = thm "stable_INT";
paulson@13797
    61
val stable_constrains_Un = thm "stable_constrains_Un";
paulson@13797
    62
val stable_constrains_Int = thm "stable_constrains_Int";
paulson@13797
    63
val stable_constrains_stable = thm "stable_constrains_stable";
paulson@13797
    64
val invariantI = thm "invariantI";
paulson@13797
    65
val invariant_Int = thm "invariant_Int";
paulson@13797
    66
val increasingD = thm "increasingD";
paulson@13797
    67
val increasing_constant = thm "increasing_constant";
paulson@13797
    68
val mono_increasing_o = thm "mono_increasing_o";
paulson@13797
    69
val strict_increasingD = thm "strict_increasingD";
paulson@13797
    70
val elimination = thm "elimination";
paulson@13797
    71
val elimination_sing = thm "elimination_sing";
paulson@13797
    72
val constrains_strongest_rhs = thm "constrains_strongest_rhs";
paulson@13797
    73
val strongest_rhs_is_strongest = thm "strongest_rhs_is_strongest";
paulson@13797
    74
val Un_Diff_Diff = thm "Un_Diff_Diff";
paulson@13797
    75
val Int_Union_Union = thm "Int_Union_Union";
paulson@13797
    76
val Image_less_than = thm "Image_less_than";
paulson@13797
    77
val Image_inverse_less_than = thm "Image_inverse_less_than";
paulson@13797
    78
paulson@13797
    79
(*WFair*)
paulson@13797
    80
val stable_transient_empty = thm "stable_transient_empty";
paulson@13797
    81
val transient_strengthen = thm "transient_strengthen";
paulson@13797
    82
val transientI = thm "transientI";
paulson@13797
    83
val transientE = thm "transientE";
paulson@13797
    84
val transient_UNIV = thm "transient_UNIV";
paulson@13797
    85
val transient_empty = thm "transient_empty";
paulson@13797
    86
val ensuresI = thm "ensuresI";
paulson@13797
    87
val ensuresD = thm "ensuresD";
paulson@13797
    88
val ensures_weaken_R = thm "ensures_weaken_R";
paulson@13797
    89
val stable_ensures_Int = thm "stable_ensures_Int";
paulson@13797
    90
val stable_transient_ensures = thm "stable_transient_ensures";
paulson@13797
    91
val ensures_eq = thm "ensures_eq";
paulson@13797
    92
val leadsTo_Basis = thm "leadsTo_Basis";
paulson@13797
    93
val leadsTo_Trans = thm "leadsTo_Trans";
paulson@13797
    94
val transient_imp_leadsTo = thm "transient_imp_leadsTo";
paulson@13797
    95
val leadsTo_Un_duplicate = thm "leadsTo_Un_duplicate";
paulson@13797
    96
val leadsTo_Un_duplicate2 = thm "leadsTo_Un_duplicate2";
paulson@13797
    97
val leadsTo_Union = thm "leadsTo_Union";
paulson@13797
    98
val leadsTo_Union_Int = thm "leadsTo_Union_Int";
paulson@13797
    99
val leadsTo_UN = thm "leadsTo_UN";
paulson@13797
   100
val leadsTo_Un = thm "leadsTo_Un";
paulson@13797
   101
val single_leadsTo_I = thm "single_leadsTo_I";
paulson@13797
   102
val leadsTo_induct = thm "leadsTo_induct";
paulson@13797
   103
val subset_imp_ensures = thm "subset_imp_ensures";
paulson@13797
   104
val subset_imp_leadsTo = thm "subset_imp_leadsTo";
paulson@13797
   105
val leadsTo_refl = thm "leadsTo_refl";
paulson@13797
   106
val empty_leadsTo = thm "empty_leadsTo";
paulson@13797
   107
val leadsTo_UNIV = thm "leadsTo_UNIV";
paulson@13797
   108
val leadsTo_induct_pre_lemma = thm "leadsTo_induct_pre_lemma";
paulson@13797
   109
val leadsTo_induct_pre = thm "leadsTo_induct_pre";
paulson@13797
   110
val leadsTo_weaken_R = thm "leadsTo_weaken_R";
paulson@13797
   111
val leadsTo_weaken_L = thm "leadsTo_weaken_L";
paulson@13797
   112
val leadsTo_Un_distrib = thm "leadsTo_Un_distrib";
paulson@13797
   113
val leadsTo_UN_distrib = thm "leadsTo_UN_distrib";
paulson@13797
   114
val leadsTo_Union_distrib = thm "leadsTo_Union_distrib";
paulson@13797
   115
val leadsTo_weaken = thm "leadsTo_weaken";
paulson@13797
   116
val leadsTo_Diff = thm "leadsTo_Diff";
paulson@13797
   117
val leadsTo_UN_UN = thm "leadsTo_UN_UN";
paulson@13797
   118
val leadsTo_Un_Un = thm "leadsTo_Un_Un";
paulson@13797
   119
val leadsTo_cancel2 = thm "leadsTo_cancel2";
paulson@13797
   120
val leadsTo_cancel_Diff2 = thm "leadsTo_cancel_Diff2";
paulson@13797
   121
val leadsTo_cancel1 = thm "leadsTo_cancel1";
paulson@13797
   122
val leadsTo_cancel_Diff1 = thm "leadsTo_cancel_Diff1";
paulson@13797
   123
val leadsTo_empty = thm "leadsTo_empty";
paulson@13797
   124
val psp_stable = thm "psp_stable";
paulson@13797
   125
val psp_stable2 = thm "psp_stable2";
paulson@13797
   126
val psp_ensures = thm "psp_ensures";
paulson@13797
   127
val psp = thm "psp";
paulson@13797
   128
val psp2 = thm "psp2";
paulson@13797
   129
val psp_unless = thm "psp_unless";
paulson@13797
   130
val leadsTo_wf_induct_lemma = thm "leadsTo_wf_induct_lemma";
paulson@13797
   131
val leadsTo_wf_induct = thm "leadsTo_wf_induct";
paulson@13797
   132
val bounded_induct = thm "bounded_induct";
paulson@13797
   133
val lessThan_induct = thm "lessThan_induct";
paulson@13797
   134
val lessThan_bounded_induct = thm "lessThan_bounded_induct";
paulson@13797
   135
val greaterThan_bounded_induct = thm "greaterThan_bounded_induct";
paulson@13797
   136
val wlt_leadsTo = thm "wlt_leadsTo";
paulson@13797
   137
val leadsTo_subset = thm "leadsTo_subset";
paulson@13797
   138
val leadsTo_eq_subset_wlt = thm "leadsTo_eq_subset_wlt";
paulson@13797
   139
val wlt_increasing = thm "wlt_increasing";
paulson@13797
   140
val lemma1 = thm "lemma1";
paulson@13797
   141
val leadsTo_123 = thm "leadsTo_123";
paulson@13797
   142
val wlt_constrains_wlt = thm "wlt_constrains_wlt";
paulson@13797
   143
val completion_lemma = thm "completion_lemma";
paulson@13797
   144
val completion = thm "completion";
paulson@13797
   145
val finite_completion_lemma = thm "finite_completion_lemma";
paulson@13797
   146
val finite_completion = thm "finite_completion";
paulson@13797
   147
val stable_completion = thm "stable_completion";
paulson@13797
   148
val finite_stable_completion = thm "finite_stable_completion";
paulson@13797
   149
paulson@13797
   150
(*Constrains*)
paulson@13797
   151
val Increasing_def = thm "Increasing_def";
paulson@13797
   152
val reachable_Init = thm "reachable.Init";
paulson@13797
   153
val reachable_Acts = thm "reachable.Acts";
paulson@13797
   154
val reachable_equiv_traces = thm "reachable_equiv_traces";
paulson@13797
   155
val Init_subset_reachable = thm "Init_subset_reachable";
paulson@13797
   156
val stable_reachable = thm "stable_reachable";
paulson@13797
   157
val invariant_reachable = thm "invariant_reachable";
paulson@13797
   158
val invariant_includes_reachable = thm "invariant_includes_reachable";
paulson@13797
   159
val constrains_reachable_Int = thm "constrains_reachable_Int";
paulson@13797
   160
val Constrains_eq_constrains = thm "Constrains_eq_constrains";
paulson@13797
   161
val constrains_imp_Constrains = thm "constrains_imp_Constrains";
paulson@13797
   162
val stable_imp_Stable = thm "stable_imp_Stable";
paulson@13797
   163
val ConstrainsI = thm "ConstrainsI";
paulson@13797
   164
val Constrains_empty = thm "Constrains_empty";
paulson@13797
   165
val Constrains_UNIV = thm "Constrains_UNIV";
paulson@13797
   166
val Constrains_weaken_R = thm "Constrains_weaken_R";
paulson@13797
   167
val Constrains_weaken_L = thm "Constrains_weaken_L";
paulson@13797
   168
val Constrains_weaken = thm "Constrains_weaken";
paulson@13797
   169
val Constrains_Un = thm "Constrains_Un";
paulson@13797
   170
val Constrains_UN = thm "Constrains_UN";
paulson@13797
   171
val Constrains_Int = thm "Constrains_Int";
paulson@13797
   172
val Constrains_INT = thm "Constrains_INT";
paulson@13797
   173
val Constrains_imp_subset = thm "Constrains_imp_subset";
paulson@13797
   174
val Constrains_trans = thm "Constrains_trans";
paulson@13797
   175
val Constrains_cancel = thm "Constrains_cancel";
paulson@13797
   176
val Stable_eq = thm "Stable_eq";
paulson@13797
   177
val Stable_eq_stable = thm "Stable_eq_stable";
paulson@13797
   178
val StableI = thm "StableI";
paulson@13797
   179
val StableD = thm "StableD";
paulson@13797
   180
val Stable_Un = thm "Stable_Un";
paulson@13797
   181
val Stable_Int = thm "Stable_Int";
paulson@13797
   182
val Stable_Constrains_Un = thm "Stable_Constrains_Un";
paulson@13797
   183
val Stable_Constrains_Int = thm "Stable_Constrains_Int";
paulson@13797
   184
val Stable_UN = thm "Stable_UN";
paulson@13797
   185
val Stable_INT = thm "Stable_INT";
paulson@13797
   186
val Stable_reachable = thm "Stable_reachable";
paulson@13797
   187
val IncreasingD = thm "IncreasingD";
paulson@13797
   188
val mono_Increasing_o = thm "mono_Increasing_o";
paulson@13797
   189
val strict_IncreasingD = thm "strict_IncreasingD";
paulson@13797
   190
val increasing_imp_Increasing = thm "increasing_imp_Increasing";
paulson@13797
   191
val Increasing_constant = thm "Increasing_constant";
paulson@13797
   192
val Elimination = thm "Elimination";
paulson@13797
   193
val Elimination_sing = thm "Elimination_sing";
paulson@13797
   194
val AlwaysI = thm "AlwaysI";
paulson@13797
   195
val AlwaysD = thm "AlwaysD";
paulson@13797
   196
val AlwaysE = thm "AlwaysE";
paulson@13797
   197
val Always_imp_Stable = thm "Always_imp_Stable";
paulson@13797
   198
val Always_includes_reachable = thm "Always_includes_reachable";
paulson@13797
   199
val invariant_imp_Always = thm "invariant_imp_Always";
paulson@13797
   200
val Always_reachable = thm "Always_reachable";
paulson@13797
   201
val Always_eq_invariant_reachable = thm "Always_eq_invariant_reachable";
paulson@13797
   202
val Always_eq_includes_reachable = thm "Always_eq_includes_reachable";
paulson@13797
   203
val Always_UNIV_eq = thm "Always_UNIV_eq";
paulson@13797
   204
val UNIV_AlwaysI = thm "UNIV_AlwaysI";
paulson@13797
   205
val Always_eq_UN_invariant = thm "Always_eq_UN_invariant";
paulson@13797
   206
val Always_weaken = thm "Always_weaken";
paulson@13797
   207
val Always_Constrains_pre = thm "Always_Constrains_pre";
paulson@13797
   208
val Always_Constrains_post = thm "Always_Constrains_post";
paulson@13797
   209
val Always_ConstrainsI = thm "Always_ConstrainsI";
paulson@13797
   210
val Always_ConstrainsD = thm "Always_ConstrainsD";
paulson@13797
   211
val Always_Constrains_weaken = thm "Always_Constrains_weaken";
paulson@13797
   212
val Always_Int_distrib = thm "Always_Int_distrib";
paulson@13797
   213
val Always_INT_distrib = thm "Always_INT_distrib";
paulson@13797
   214
val Always_Int_I = thm "Always_Int_I";
paulson@13797
   215
val Always_Compl_Un_eq = thm "Always_Compl_Un_eq";
paulson@13797
   216
val Always_thin = thm "Always_thin";
paulson@13797
   217
paulson@13796
   218
(*FP*)
paulson@13796
   219
val stable_FP_Orig_Int = thm "stable_FP_Orig_Int";
paulson@13796
   220
val FP_Orig_weakest = thm "FP_Orig_weakest";
paulson@13796
   221
val stable_FP_Int = thm "stable_FP_Int";
paulson@13796
   222
val FP_equivalence = thm "FP_equivalence";
paulson@13796
   223
val FP_weakest = thm "FP_weakest";
paulson@13796
   224
val Compl_FP = thm "Compl_FP";
paulson@13796
   225
val Diff_FP = thm "Diff_FP";
paulson@13796
   226
paulson@13796
   227
(*SubstAx*)
paulson@13796
   228
val LeadsTo_eq_leadsTo = thm "LeadsTo_eq_leadsTo";
paulson@13796
   229
val Always_LeadsTo_pre = thm "Always_LeadsTo_pre";
paulson@13796
   230
val Always_LeadsTo_post = thm "Always_LeadsTo_post";
paulson@13796
   231
val Always_LeadsToI = thm "Always_LeadsToI";
paulson@13796
   232
val Always_LeadsToD = thm "Always_LeadsToD";
paulson@13796
   233
val leadsTo_imp_LeadsTo = thm "leadsTo_imp_LeadsTo";
paulson@13796
   234
val LeadsTo_Trans = thm "LeadsTo_Trans";
paulson@13796
   235
val LeadsTo_Union = thm "LeadsTo_Union";
paulson@13796
   236
val LeadsTo_UNIV = thm "LeadsTo_UNIV";
paulson@13796
   237
val LeadsTo_Un_duplicate = thm "LeadsTo_Un_duplicate";
paulson@13796
   238
val LeadsTo_Un_duplicate2 = thm "LeadsTo_Un_duplicate2";
paulson@13796
   239
val LeadsTo_UN = thm "LeadsTo_UN";
paulson@13796
   240
val LeadsTo_Un = thm "LeadsTo_Un";
paulson@13796
   241
val single_LeadsTo_I = thm "single_LeadsTo_I";
paulson@13796
   242
val subset_imp_LeadsTo = thm "subset_imp_LeadsTo";
paulson@13796
   243
val empty_LeadsTo = thm "empty_LeadsTo";
paulson@13796
   244
val LeadsTo_weaken_R = thm "LeadsTo_weaken_R";
paulson@13796
   245
val LeadsTo_weaken_L = thm "LeadsTo_weaken_L";
paulson@13796
   246
val LeadsTo_weaken = thm "LeadsTo_weaken";
paulson@13796
   247
val Always_LeadsTo_weaken = thm "Always_LeadsTo_weaken";
paulson@13796
   248
val LeadsTo_Un_post = thm "LeadsTo_Un_post";
paulson@13796
   249
val LeadsTo_Trans_Un = thm "LeadsTo_Trans_Un";
paulson@13796
   250
val LeadsTo_Un_distrib = thm "LeadsTo_Un_distrib";
paulson@13796
   251
val LeadsTo_UN_distrib = thm "LeadsTo_UN_distrib";
paulson@13796
   252
val LeadsTo_Union_distrib = thm "LeadsTo_Union_distrib";
paulson@13796
   253
val LeadsTo_Basis = thm "LeadsTo_Basis";
paulson@13796
   254
val EnsuresI = thm "EnsuresI";
paulson@13796
   255
val Always_LeadsTo_Basis = thm "Always_LeadsTo_Basis";
paulson@13796
   256
val LeadsTo_Diff = thm "LeadsTo_Diff";
paulson@13796
   257
val LeadsTo_UN_UN = thm "LeadsTo_UN_UN";
paulson@13796
   258
val LeadsTo_UN_UN_noindex = thm "LeadsTo_UN_UN_noindex";
paulson@13796
   259
val all_LeadsTo_UN_UN = thm "all_LeadsTo_UN_UN";
paulson@13796
   260
val LeadsTo_Un_Un = thm "LeadsTo_Un_Un";
paulson@13796
   261
val LeadsTo_cancel2 = thm "LeadsTo_cancel2";
paulson@13796
   262
val LeadsTo_cancel_Diff2 = thm "LeadsTo_cancel_Diff2";
paulson@13796
   263
val LeadsTo_cancel1 = thm "LeadsTo_cancel1";
paulson@13796
   264
val LeadsTo_cancel_Diff1 = thm "LeadsTo_cancel_Diff1";
paulson@13796
   265
val LeadsTo_empty = thm "LeadsTo_empty";
paulson@13796
   266
val PSP_Stable = thm "PSP_Stable";
paulson@13796
   267
val PSP_Stable2 = thm "PSP_Stable2";
paulson@13796
   268
val PSP = thm "PSP";
paulson@13796
   269
val PSP2 = thm "PSP2";
paulson@13796
   270
val PSP_Unless = thm "PSP_Unless";
paulson@13796
   271
val Stable_transient_Always_LeadsTo = thm "Stable_transient_Always_LeadsTo";
paulson@13796
   272
val LeadsTo_wf_induct = thm "LeadsTo_wf_induct";
paulson@13796
   273
val Bounded_induct = thm "Bounded_induct";
paulson@13796
   274
val LessThan_induct = thm "LessThan_induct";
paulson@13796
   275
val integ_0_le_induct = thm "integ_0_le_induct";
paulson@13796
   276
val LessThan_bounded_induct = thm "LessThan_bounded_induct";
paulson@13796
   277
val GreaterThan_bounded_induct = thm "GreaterThan_bounded_induct";
paulson@13796
   278
val Completion = thm "Completion";
paulson@13796
   279
val Finite_completion_lemma = thm "Finite_completion_lemma";
paulson@13796
   280
val Finite_completion = thm "Finite_completion";
paulson@13796
   281
val Stable_completion = thm "Stable_completion";
paulson@13796
   282
val Finite_stable_completion = thm "Finite_stable_completion";
paulson@13796
   283
paulson@13792
   284
(*Union*)
paulson@13792
   285
val Init_SKIP = thm "Init_SKIP";
paulson@13792
   286
val Acts_SKIP = thm "Acts_SKIP";
paulson@13792
   287
val AllowedActs_SKIP = thm "AllowedActs_SKIP";
paulson@13792
   288
val reachable_SKIP = thm "reachable_SKIP";
paulson@13792
   289
val SKIP_in_constrains_iff = thm "SKIP_in_constrains_iff";
paulson@13792
   290
val SKIP_in_Constrains_iff = thm "SKIP_in_Constrains_iff";
paulson@13792
   291
val SKIP_in_stable = thm "SKIP_in_stable";
paulson@13792
   292
val Init_Join = thm "Init_Join";
paulson@13792
   293
val Acts_Join = thm "Acts_Join";
paulson@13792
   294
val AllowedActs_Join = thm "AllowedActs_Join";
paulson@13792
   295
val JN_empty = thm "JN_empty";
paulson@13792
   296
val JN_insert = thm "JN_insert";
paulson@13792
   297
val Init_JN = thm "Init_JN";
paulson@13792
   298
val Acts_JN = thm "Acts_JN";
paulson@13792
   299
val AllowedActs_JN = thm "AllowedActs_JN";
paulson@13792
   300
val JN_cong = thm "JN_cong";
paulson@13792
   301
val Join_commute = thm "Join_commute";
paulson@13792
   302
val Join_assoc = thm "Join_assoc";
paulson@13792
   303
val Join_left_commute = thm "Join_left_commute";
paulson@13792
   304
val Join_SKIP_left = thm "Join_SKIP_left";
paulson@13792
   305
val Join_SKIP_right = thm "Join_SKIP_right";
paulson@13792
   306
val Join_absorb = thm "Join_absorb";
paulson@13792
   307
val Join_left_absorb = thm "Join_left_absorb";
paulson@13792
   308
val Join_ac = thms "Join_ac";
paulson@13792
   309
val JN_absorb = thm "JN_absorb";
paulson@13792
   310
val JN_Un = thm "JN_Un";
paulson@13792
   311
val JN_constant = thm "JN_constant";
paulson@13792
   312
val JN_Join_distrib = thm "JN_Join_distrib";
paulson@13792
   313
val JN_Join_miniscope = thm "JN_Join_miniscope";
paulson@13792
   314
val JN_Join_diff = thm "JN_Join_diff";
paulson@13792
   315
val JN_constrains = thm "JN_constrains";
paulson@13792
   316
val Join_constrains = thm "Join_constrains";
paulson@13792
   317
val Join_unless = thm "Join_unless";
paulson@13792
   318
val Join_constrains_weaken = thm "Join_constrains_weaken";
paulson@13792
   319
val JN_constrains_weaken = thm "JN_constrains_weaken";
paulson@13792
   320
val JN_stable = thm "JN_stable";
paulson@13792
   321
val invariant_JN_I = thm "invariant_JN_I";
paulson@13792
   322
val Join_stable = thm "Join_stable";
paulson@13792
   323
val Join_increasing = thm "Join_increasing";
paulson@13792
   324
val invariant_JoinI = thm "invariant_JoinI";
paulson@13792
   325
val FP_JN = thm "FP_JN";
paulson@13792
   326
val JN_transient = thm "JN_transient";
paulson@13792
   327
val Join_transient = thm "Join_transient";
paulson@13792
   328
val Join_transient_I1 = thm "Join_transient_I1";
paulson@13792
   329
val Join_transient_I2 = thm "Join_transient_I2";
paulson@13792
   330
val JN_ensures = thm "JN_ensures";
paulson@13792
   331
val Join_ensures = thm "Join_ensures";
paulson@13792
   332
val stable_Join_constrains = thm "stable_Join_constrains";
paulson@13792
   333
val stable_Join_Always1 = thm "stable_Join_Always1";
paulson@13792
   334
val stable_Join_Always2 = thm "stable_Join_Always2";
paulson@13792
   335
val stable_Join_ensures1 = thm "stable_Join_ensures1";
paulson@13792
   336
val stable_Join_ensures2 = thm "stable_Join_ensures2";
paulson@13792
   337
val ok_SKIP1 = thm "ok_SKIP1";
paulson@13792
   338
val ok_SKIP2 = thm "ok_SKIP2";
paulson@13792
   339
val ok_Join_commute = thm "ok_Join_commute";
paulson@13792
   340
val ok_commute = thm "ok_commute";
paulson@13792
   341
val ok_sym = thm "ok_sym";
paulson@13792
   342
val ok_iff_OK = thm "ok_iff_OK";
paulson@13792
   343
val ok_Join_iff1 = thm "ok_Join_iff1";
paulson@13792
   344
val ok_Join_iff2 = thm "ok_Join_iff2";
paulson@13792
   345
val ok_Join_commute_I = thm "ok_Join_commute_I";
paulson@13792
   346
val ok_JN_iff1 = thm "ok_JN_iff1";
paulson@13792
   347
val ok_JN_iff2 = thm "ok_JN_iff2";
paulson@13792
   348
val OK_iff_ok = thm "OK_iff_ok";
paulson@13792
   349
val OK_imp_ok = thm "OK_imp_ok";
paulson@13792
   350
val Allowed_SKIP = thm "Allowed_SKIP";
paulson@13792
   351
val Allowed_Join = thm "Allowed_Join";
paulson@13792
   352
val Allowed_JN = thm "Allowed_JN";
paulson@13792
   353
val ok_iff_Allowed = thm "ok_iff_Allowed";
paulson@13792
   354
val OK_iff_Allowed = thm "OK_iff_Allowed";
paulson@13792
   355
val safety_prop_Acts_iff = thm "safety_prop_Acts_iff";
paulson@13792
   356
val safety_prop_AllowedActs_iff_Allowed = thm "safety_prop_AllowedActs_iff_Allowed";
paulson@13792
   357
val Allowed_eq = thm "Allowed_eq";
paulson@13792
   358
val def_prg_Allowed = thm "def_prg_Allowed";
paulson@13792
   359
val safety_prop_constrains = thm "safety_prop_constrains";
paulson@13792
   360
val safety_prop_stable = thm "safety_prop_stable";
paulson@13792
   361
val safety_prop_Int = thm "safety_prop_Int";
paulson@13792
   362
val safety_prop_INTER1 = thm "safety_prop_INTER1";
paulson@13792
   363
val safety_prop_INTER = thm "safety_prop_INTER";
paulson@13792
   364
val def_UNION_ok_iff = thm "def_UNION_ok_iff";
paulson@13792
   365
paulson@13792
   366
(*Comp*)
paulson@13792
   367
val preserves_def = thm "preserves_def";
paulson@13792
   368
val funPair_def = thm "funPair_def";
paulson@13792
   369
val componentI = thm "componentI";
paulson@13792
   370
val component_eq_subset = thm "component_eq_subset";
paulson@13792
   371
val component_SKIP = thm "component_SKIP";
paulson@13792
   372
val component_refl = thm "component_refl";
paulson@13792
   373
val SKIP_minimal = thm "SKIP_minimal";
paulson@13792
   374
val component_Join1 = thm "component_Join1";
paulson@13792
   375
val component_Join2 = thm "component_Join2";
paulson@13792
   376
val Join_absorb1 = thm "Join_absorb1";
paulson@13792
   377
val Join_absorb2 = thm "Join_absorb2";
paulson@13792
   378
val JN_component_iff = thm "JN_component_iff";
paulson@13792
   379
val component_JN = thm "component_JN";
paulson@13792
   380
val component_trans = thm "component_trans";
paulson@13792
   381
val component_antisym = thm "component_antisym";
paulson@13792
   382
val Join_component_iff = thm "Join_component_iff";
paulson@13792
   383
val component_constrains = thm "component_constrains";
paulson@13792
   384
val program_less_le = thm "program_less_le";
paulson@13792
   385
val preservesI = thm "preservesI";
paulson@13792
   386
val preserves_imp_eq = thm "preserves_imp_eq";
paulson@13792
   387
val Join_preserves = thm "Join_preserves";
paulson@13792
   388
val JN_preserves = thm "JN_preserves";
paulson@13792
   389
val SKIP_preserves = thm "SKIP_preserves";
paulson@13792
   390
val funPair_apply = thm "funPair_apply";
paulson@13792
   391
val preserves_funPair = thm "preserves_funPair";
paulson@13792
   392
val funPair_o_distrib = thm "funPair_o_distrib";
paulson@13792
   393
val fst_o_funPair = thm "fst_o_funPair";
paulson@13792
   394
val snd_o_funPair = thm "snd_o_funPair";
paulson@13792
   395
val subset_preserves_o = thm "subset_preserves_o";
paulson@13792
   396
val preserves_subset_stable = thm "preserves_subset_stable";
paulson@13792
   397
val preserves_subset_increasing = thm "preserves_subset_increasing";
paulson@13792
   398
val preserves_id_subset_stable = thm "preserves_id_subset_stable";
paulson@13792
   399
val safety_prop_preserves = thm "safety_prop_preserves";
paulson@13792
   400
val stable_localTo_stable2 = thm "stable_localTo_stable2";
paulson@13792
   401
val Increasing_preserves_Stable = thm "Increasing_preserves_Stable";
paulson@13792
   402
val component_of_imp_component = thm "component_of_imp_component";
paulson@13792
   403
val component_of_refl = thm "component_of_refl";
paulson@13792
   404
val component_of_SKIP = thm "component_of_SKIP";
paulson@13792
   405
val component_of_trans = thm "component_of_trans";
paulson@13792
   406
val strict_component_of_eq = thm "strict_component_of_eq";
paulson@13792
   407
val localize_Init_eq = thm "localize_Init_eq";
paulson@13792
   408
val localize_Acts_eq = thm "localize_Acts_eq";
paulson@13792
   409
val localize_AllowedActs_eq = thm "localize_AllowedActs_eq";
paulson@13792
   410
paulson@13792
   411
(*Guar*)
paulson@13792
   412
val guar_def = thm "guar_def";
paulson@13792
   413
val OK_insert_iff = thm "OK_insert_iff";
paulson@13792
   414
val ex1 = thm "ex1";
paulson@13792
   415
val ex2 = thm "ex2";
paulson@13792
   416
val ex_prop_finite = thm "ex_prop_finite";
paulson@13792
   417
val ex_prop_equiv = thm "ex_prop_equiv";
paulson@13792
   418
val uv1 = thm "uv1";
paulson@13792
   419
val uv2 = thm "uv2";
paulson@13792
   420
val uv_prop_finite = thm "uv_prop_finite";
paulson@13792
   421
val guaranteesI = thm "guaranteesI";
paulson@13792
   422
val guaranteesD = thm "guaranteesD";
paulson@13792
   423
val component_guaranteesD = thm "component_guaranteesD";
paulson@13792
   424
val guarantees_weaken = thm "guarantees_weaken";
paulson@13792
   425
val subset_imp_guarantees_UNIV = thm "subset_imp_guarantees_UNIV";
paulson@13792
   426
val subset_imp_guarantees = thm "subset_imp_guarantees";
paulson@13792
   427
val ex_prop_imp = thm "ex_prop_imp";
paulson@13792
   428
val guarantees_imp = thm "guarantees_imp";
paulson@13792
   429
val ex_prop_equiv2 = thm "ex_prop_equiv2";
paulson@13792
   430
val guarantees_UN_left = thm "guarantees_UN_left";
paulson@13792
   431
val guarantees_Un_left = thm "guarantees_Un_left";
paulson@13792
   432
val guarantees_INT_right = thm "guarantees_INT_right";
paulson@13792
   433
val guarantees_Int_right = thm "guarantees_Int_right";
paulson@13792
   434
val guarantees_Int_right_I = thm "guarantees_Int_right_I";
paulson@13792
   435
val guarantees_INT_right_iff = thm "guarantees_INT_right_iff";
paulson@13792
   436
val shunting = thm "shunting";
paulson@13792
   437
val contrapositive = thm "contrapositive";
paulson@13792
   438
val combining1 = thm "combining1";
paulson@13792
   439
val combining2 = thm "combining2";
paulson@13792
   440
val all_guarantees = thm "all_guarantees";
paulson@13792
   441
val ex_guarantees = thm "ex_guarantees";
paulson@13792
   442
val guarantees_Join_Int = thm "guarantees_Join_Int";
paulson@13792
   443
val guarantees_Join_Un = thm "guarantees_Join_Un";
paulson@13792
   444
val guarantees_JN_INT = thm "guarantees_JN_INT";
paulson@13792
   445
val guarantees_JN_UN = thm "guarantees_JN_UN";
paulson@13792
   446
val guarantees_Join_I1 = thm "guarantees_Join_I1";
paulson@13792
   447
val guarantees_Join_I2 = thm "guarantees_Join_I2";
paulson@13792
   448
val guarantees_JN_I = thm "guarantees_JN_I";
paulson@13792
   449
val Join_welldef_D1 = thm "Join_welldef_D1";
paulson@13792
   450
val Join_welldef_D2 = thm "Join_welldef_D2";
paulson@13792
   451
val refines_refl = thm "refines_refl";
paulson@13792
   452
val ex_refinement_thm = thm "ex_refinement_thm";
paulson@13792
   453
val uv_refinement_thm = thm "uv_refinement_thm";
paulson@13792
   454
val guarantees_equiv = thm "guarantees_equiv";
paulson@13792
   455
val wg_weakest = thm "wg_weakest";
paulson@13792
   456
val wg_guarantees = thm "wg_guarantees";
paulson@13792
   457
val wg_equiv = thm "wg_equiv";
paulson@13792
   458
val component_of_wg = thm "component_of_wg";
paulson@13792
   459
val wg_finite = thm "wg_finite";
paulson@13792
   460
val wg_ex_prop = thm "wg_ex_prop";
paulson@13792
   461
val wx_subset = thm "wx_subset";
paulson@13792
   462
val wx_ex_prop = thm "wx_ex_prop";
paulson@13792
   463
val wx_weakest = thm "wx_weakest";
paulson@13792
   464
val wx'_ex_prop = thm "wx'_ex_prop";
paulson@13792
   465
val wx_equiv = thm "wx_equiv";
paulson@13792
   466
val guarantees_wx_eq = thm "guarantees_wx_eq";
paulson@13792
   467
val stable_guarantees_Always = thm "stable_guarantees_Always";
paulson@13792
   468
val leadsTo_Basis = thm "leadsTo_Basis";
paulson@13792
   469
val constrains_guarantees_leadsTo = thm "constrains_guarantees_leadsTo";
paulson@13792
   470
paulson@13790
   471
(*Extend*)
paulson@13790
   472
val Restrict_iff = thm "Restrict_iff";
paulson@13790
   473
val Restrict_UNIV = thm "Restrict_UNIV";
paulson@13790
   474
val Restrict_empty = thm "Restrict_empty";
paulson@13790
   475
val Restrict_Int = thm "Restrict_Int";
paulson@13790
   476
val Restrict_triv = thm "Restrict_triv";
paulson@13790
   477
val Restrict_subset = thm "Restrict_subset";
paulson@13790
   478
val Restrict_eq_mono = thm "Restrict_eq_mono";
paulson@13790
   479
val Restrict_imageI = thm "Restrict_imageI";
paulson@13790
   480
val Domain_Restrict = thm "Domain_Restrict";
paulson@13790
   481
val Image_Restrict = thm "Image_Restrict";
paulson@13790
   482
val insert_Id_image_Acts = thm "insert_Id_image_Acts";
paulson@13790
   483
val good_mapI = thm "good_mapI";
paulson@13790
   484
val good_map_is_surj = thm "good_map_is_surj";
paulson@13790
   485
val fst_inv_equalityI = thm "fst_inv_equalityI";
paulson@13790
   486
val project_set_iff = thm "project_set_iff";
paulson@13790
   487
val extend_set_mono = thm "extend_set_mono";
paulson@13790
   488
val extend_set_empty = thm "extend_set_empty";
paulson@13790
   489
val project_set_Int_subset = thm "project_set_Int_subset";
paulson@13790
   490
val Init_extend = thm "Init_extend";
paulson@13790
   491
val Init_project = thm "Init_project";
paulson@13790
   492
val Acts_project = thm "Acts_project";
paulson@13790
   493
val project_set_UNIV = thm "project_set_UNIV";
paulson@13790
   494
val project_set_Union = thm "project_set_Union";
paulson@13790
   495
val project_act_mono = thm "project_act_mono";
paulson@13790
   496
val project_constrains_project_set = thm "project_constrains_project_set";
paulson@13790
   497
val project_stable_project_set = thm "project_stable_project_set";
paulson@13790
   498
paulson@13790
   499
paulson@13790
   500
(*Rename*)
paulson@13790
   501
val good_map_bij = thm "good_map_bij";
paulson@13790
   502
val fst_o_inv_eq_inv = thm "fst_o_inv_eq_inv";
paulson@13790
   503
val mem_rename_set_iff = thm "mem_rename_set_iff";
paulson@13790
   504
val extend_set_eq_image = thm "extend_set_eq_image";
paulson@13790
   505
val Init_rename = thm "Init_rename";
paulson@13790
   506
val extend_set_inv = thm "extend_set_inv";
paulson@13790
   507
val bij_extend_act_eq_project_act = thm "bij_extend_act_eq_project_act";
paulson@13790
   508
val bij_extend_act = thm "bij_extend_act";
paulson@13790
   509
val bij_project_act = thm "bij_project_act";
paulson@13790
   510
val bij_inv_project_act_eq = thm "bij_inv_project_act_eq";
paulson@13790
   511
val Acts_project = thm "Acts_project";
paulson@13790
   512
val extend_inv = thm "extend_inv";
paulson@13790
   513
val rename_inv_rename = thm "rename_inv_rename";
paulson@13790
   514
val rename_rename_inv = thm "rename_rename_inv";
paulson@13790
   515
val rename_inv_eq = thm "rename_inv_eq";
paulson@13790
   516
val bij_extend = thm "bij_extend";
paulson@13790
   517
val bij_project = thm "bij_project";
paulson@13790
   518
val inv_project_eq = thm "inv_project_eq";
paulson@13790
   519
val Allowed_rename = thm "Allowed_rename";
paulson@13790
   520
val bij_rename = thm "bij_rename";
paulson@13790
   521
val surj_rename = thm "surj_rename";
paulson@13790
   522
val inj_rename_imp_inj = thm "inj_rename_imp_inj";
paulson@13790
   523
val surj_rename_imp_surj = thm "surj_rename_imp_surj";
paulson@13790
   524
val bij_rename_imp_bij = thm "bij_rename_imp_bij";
paulson@13790
   525
val bij_rename_iff = thm "bij_rename_iff";
paulson@13790
   526
val rename_SKIP = thm "rename_SKIP";
paulson@13790
   527
val rename_Join = thm "rename_Join";
paulson@13790
   528
val rename_JN = thm "rename_JN";
paulson@13790
   529
val rename_constrains = thm "rename_constrains";
paulson@13790
   530
val rename_stable = thm "rename_stable";
paulson@13790
   531
val rename_invariant = thm "rename_invariant";
paulson@13790
   532
val rename_increasing = thm "rename_increasing";
paulson@13790
   533
val reachable_rename_eq = thm "reachable_rename_eq";
paulson@13790
   534
val rename_Constrains = thm "rename_Constrains";
paulson@13790
   535
val rename_Stable = thm "rename_Stable";
paulson@13790
   536
val rename_Always = thm "rename_Always";
paulson@13790
   537
val rename_Increasing = thm "rename_Increasing";
paulson@13790
   538
val rename_transient = thm "rename_transient";
paulson@13790
   539
val rename_ensures = thm "rename_ensures";
paulson@13790
   540
val rename_leadsTo = thm "rename_leadsTo";
paulson@13790
   541
val rename_LeadsTo = thm "rename_LeadsTo";
paulson@13790
   542
val rename_rename_guarantees_eq = thm "rename_rename_guarantees_eq";
paulson@13790
   543
val rename_guarantees_eq_rename_inv = thm "rename_guarantees_eq_rename_inv";
paulson@13790
   544
val rename_preserves = thm "rename_preserves";
paulson@13790
   545
val ok_rename_iff = thm "ok_rename_iff";
paulson@13790
   546
val OK_rename_iff = thm "OK_rename_iff";
paulson@13790
   547
val bij_eq_rename = thm "bij_eq_rename";
paulson@13790
   548
val rename_image_constrains = thm "rename_image_constrains";
paulson@13790
   549
val rename_image_stable = thm "rename_image_stable";
paulson@13790
   550
val rename_image_increasing = thm "rename_image_increasing";
paulson@13790
   551
val rename_image_invariant = thm "rename_image_invariant";
paulson@13790
   552
val rename_image_Constrains = thm "rename_image_Constrains";
paulson@13790
   553
val rename_image_preserves = thm "rename_image_preserves";
paulson@13790
   554
val rename_image_Stable = thm "rename_image_Stable";
paulson@13790
   555
val rename_image_Increasing = thm "rename_image_Increasing";
paulson@13790
   556
val rename_image_Always = thm "rename_image_Always";
paulson@13790
   557
val rename_image_leadsTo = thm "rename_image_leadsTo";
paulson@13790
   558
val rename_image_LeadsTo = thm "rename_image_LeadsTo";
paulson@13790
   559
paulson@13790
   560
paulson@13786
   561
paulson@13786
   562
(*Lift_prog*)
paulson@13786
   563
val sub_def = thm "sub_def";
paulson@13786
   564
val lift_map_def = thm "lift_map_def";
paulson@13786
   565
val drop_map_def = thm "drop_map_def";
paulson@13786
   566
val insert_map_inverse = thm "insert_map_inverse";
paulson@13786
   567
val insert_map_delete_map_eq = thm "insert_map_delete_map_eq";
paulson@13786
   568
val insert_map_inject1 = thm "insert_map_inject1";
paulson@13786
   569
val insert_map_inject2 = thm "insert_map_inject2";
paulson@13786
   570
val insert_map_inject = thm "insert_map_inject";
paulson@13786
   571
val insert_map_inject = thm "insert_map_inject";
paulson@13786
   572
val lift_map_eq_iff = thm "lift_map_eq_iff";
paulson@13786
   573
val drop_map_lift_map_eq = thm "drop_map_lift_map_eq";
paulson@13786
   574
val inj_lift_map = thm "inj_lift_map";
paulson@13786
   575
val lift_map_drop_map_eq = thm "lift_map_drop_map_eq";
paulson@13786
   576
val drop_map_inject = thm "drop_map_inject";
paulson@13786
   577
val surj_lift_map = thm "surj_lift_map";
paulson@13786
   578
val bij_lift_map = thm "bij_lift_map";
paulson@13786
   579
val inv_lift_map_eq = thm "inv_lift_map_eq";
paulson@13786
   580
val inv_drop_map_eq = thm "inv_drop_map_eq";
paulson@13786
   581
val bij_drop_map = thm "bij_drop_map";
paulson@13786
   582
val sub_apply = thm "sub_apply";
paulson@13786
   583
val lift_set_empty = thm "lift_set_empty";
paulson@13786
   584
val lift_set_iff = thm "lift_set_iff";
paulson@13786
   585
val lift_set_iff2 = thm "lift_set_iff2";
paulson@13786
   586
val lift_set_mono = thm "lift_set_mono";
paulson@13786
   587
val lift_set_Un_distrib = thm "lift_set_Un_distrib";
paulson@13786
   588
val lift_set_Diff_distrib = thm "lift_set_Diff_distrib";
paulson@13786
   589
val bij_lift = thm "bij_lift";
paulson@13786
   590
val lift_SKIP = thm "lift_SKIP";
paulson@13786
   591
val lift_Join = thm "lift_Join";
paulson@13786
   592
val lift_JN = thm "lift_JN";
paulson@13786
   593
val lift_constrains = thm "lift_constrains";
paulson@13786
   594
val lift_stable = thm "lift_stable";
paulson@13786
   595
val lift_invariant = thm "lift_invariant";
paulson@13786
   596
val lift_Constrains = thm "lift_Constrains";
paulson@13786
   597
val lift_Stable = thm "lift_Stable";
paulson@13786
   598
val lift_Always = thm "lift_Always";
paulson@13786
   599
val lift_transient = thm "lift_transient";
paulson@13786
   600
val lift_ensures = thm "lift_ensures";
paulson@13786
   601
val lift_leadsTo = thm "lift_leadsTo";
paulson@13786
   602
val lift_LeadsTo = thm "lift_LeadsTo";
paulson@13786
   603
val lift_lift_guarantees_eq = thm "lift_lift_guarantees_eq";
paulson@13786
   604
val lift_guarantees_eq_lift_inv = thm "lift_guarantees_eq_lift_inv";
paulson@13786
   605
val lift_preserves_snd_I = thm "lift_preserves_snd_I";
paulson@13786
   606
val delete_map_eqE = thm "delete_map_eqE";
paulson@13786
   607
val delete_map_eqE = thm "delete_map_eqE";
paulson@13786
   608
val delete_map_neq_apply = thm "delete_map_neq_apply";
paulson@13786
   609
val vimage_o_fst_eq = thm "vimage_o_fst_eq";
paulson@13786
   610
val vimage_sub_eq_lift_set = thm "vimage_sub_eq_lift_set";
paulson@13786
   611
val mem_lift_act_iff = thm "mem_lift_act_iff";
paulson@13786
   612
val preserves_snd_lift_stable = thm "preserves_snd_lift_stable";
paulson@13786
   613
val constrains_imp_lift_constrains = thm "constrains_imp_lift_constrains";
paulson@13786
   614
val insert_map_upd_same = thm "insert_map_upd_same";
paulson@13786
   615
val insert_map_upd = thm "insert_map_upd";
paulson@13786
   616
val insert_map_eq_diff = thm "insert_map_eq_diff";
paulson@13786
   617
val lift_map_eq_diff = thm "lift_map_eq_diff";
paulson@13786
   618
val lift_transient_eq_disj = thm "lift_transient_eq_disj";
paulson@13786
   619
val lift_map_image_Times = thm "lift_map_image_Times";
paulson@13786
   620
val lift_preserves_eq = thm "lift_preserves_eq";
paulson@13786
   621
val lift_preserves_sub = thm "lift_preserves_sub";
paulson@13786
   622
val o_equiv_assoc = thm "o_equiv_assoc";
paulson@13786
   623
val o_equiv_apply = thm "o_equiv_apply";
paulson@13786
   624
val fst_o_lift_map = thm "fst_o_lift_map";
paulson@13786
   625
val snd_o_lift_map = thm "snd_o_lift_map";
paulson@13786
   626
val extend_act_extend_act = thm "extend_act_extend_act";
paulson@13786
   627
val project_act_project_act = thm "project_act_project_act";
paulson@13786
   628
val project_act_extend_act = thm "project_act_extend_act";
paulson@13786
   629
val act_in_UNION_preserves_fst = thm "act_in_UNION_preserves_fst";
paulson@13786
   630
val UNION_OK_lift_I = thm "UNION_OK_lift_I";
paulson@13786
   631
val OK_lift_I = thm "OK_lift_I";
paulson@13786
   632
val Allowed_lift = thm "Allowed_lift";
paulson@13786
   633
val lift_image_preserves = thm "lift_image_preserves";
paulson@13786
   634
paulson@13786
   635
paulson@13786
   636
(*PPROD*)
paulson@13786
   637
val Init_PLam = thm "Init_PLam";
paulson@13786
   638
val PLam_empty = thm "PLam_empty";
paulson@13786
   639
val PLam_SKIP = thm "PLam_SKIP";
paulson@13786
   640
val PLam_insert = thm "PLam_insert";
paulson@13786
   641
val PLam_component_iff = thm "PLam_component_iff";
paulson@13786
   642
val component_PLam = thm "component_PLam";
paulson@13786
   643
val PLam_constrains = thm "PLam_constrains";
paulson@13786
   644
val PLam_stable = thm "PLam_stable";
paulson@13786
   645
val PLam_transient = thm "PLam_transient";
paulson@13786
   646
val PLam_ensures = thm "PLam_ensures";
paulson@13786
   647
val PLam_leadsTo_Basis = thm "PLam_leadsTo_Basis";
paulson@13786
   648
val invariant_imp_PLam_invariant = thm "invariant_imp_PLam_invariant";
paulson@13786
   649
val PLam_preserves_fst = thm "PLam_preserves_fst";
paulson@13786
   650
val PLam_preserves_snd = thm "PLam_preserves_snd";
paulson@13786
   651
val guarantees_PLam_I = thm "guarantees_PLam_I";
paulson@13786
   652
val Allowed_PLam = thm "Allowed_PLam";
paulson@13786
   653
val PLam_preserves = thm "PLam_preserves";
paulson@13786
   654
paulson@13796
   655
(*Follows*)
paulson@13796
   656
val mono_Always_o = thm "mono_Always_o";
paulson@13796
   657
val mono_LeadsTo_o = thm "mono_LeadsTo_o";
paulson@13796
   658
val Follows_constant = thm "Follows_constant";
paulson@13796
   659
val mono_Follows_o = thm "mono_Follows_o";
paulson@13796
   660
val mono_Follows_apply = thm "mono_Follows_apply";
paulson@13796
   661
val Follows_trans = thm "Follows_trans";
paulson@13796
   662
val Follows_Increasing1 = thm "Follows_Increasing1";
paulson@13796
   663
val Follows_Increasing2 = thm "Follows_Increasing2";
paulson@13796
   664
val Follows_Bounded = thm "Follows_Bounded";
paulson@13796
   665
val Follows_LeadsTo = thm "Follows_LeadsTo";
paulson@13796
   666
val Follows_LeadsTo_pfixLe = thm "Follows_LeadsTo_pfixLe";
paulson@13796
   667
val Follows_LeadsTo_pfixGe = thm "Follows_LeadsTo_pfixGe";
paulson@13796
   668
val Always_Follows1 = thm "Always_Follows1";
paulson@13796
   669
val Always_Follows2 = thm "Always_Follows2";
paulson@13796
   670
val increasing_Un = thm "increasing_Un";
paulson@13796
   671
val Increasing_Un = thm "Increasing_Un";
paulson@13796
   672
val Always_Un = thm "Always_Un";
paulson@13796
   673
val Follows_Un_lemma = thm "Follows_Un_lemma";
paulson@13796
   674
val Follows_Un = thm "Follows_Un";
paulson@13796
   675
val increasing_union = thm "increasing_union";
paulson@13796
   676
val Increasing_union = thm "Increasing_union";
paulson@13796
   677
val Always_union = thm "Always_union";
paulson@13796
   678
val Follows_union_lemma = thm "Follows_union_lemma";
paulson@13796
   679
val Follows_union = thm "Follows_union";
paulson@13796
   680
val Follows_setsum = thm "Follows_setsum";
paulson@13796
   681
val Increasing_imp_Stable_pfixGe = thm "Increasing_imp_Stable_pfixGe";
paulson@13796
   682
val LeadsTo_le_imp_pfixGe = thm "LeadsTo_le_imp_pfixGe";
paulson@13796
   683
paulson@13786
   684
paulson@13797
   685
(*Lazy unfolding of actions or of sets*)
paulson@13797
   686
fun simp_of_act def = def RS def_act_simp;
paulson@13797
   687
paulson@13797
   688
fun simp_of_set def = def RS def_set_simp;
paulson@13797
   689
paulson@13797
   690
paulson@13797
   691
(*Combines two invariance ASSUMPTIONS into one.  USEFUL??*)
paulson@13797
   692
val Always_Int_tac = dtac Always_Int_I THEN' assume_tac THEN' etac Always_thin
paulson@13797
   693
paulson@13797
   694
(*Combines a list of invariance THEOREMS into one.*)
paulson@13797
   695
val Always_Int_rule = foldr1 (fn (th1,th2) => [th1,th2] MRS Always_Int_I)
paulson@13797
   696
paulson@13786
   697
(*proves "co" properties when the program is specified*)
paulson@13786
   698
fun gen_constrains_tac(cs,ss) i = 
paulson@13786
   699
   SELECT_GOAL
paulson@13786
   700
      (EVERY [REPEAT (Always_Int_tac 1),
paulson@13786
   701
	      REPEAT (etac Always_ConstrainsI 1
paulson@13786
   702
		      ORELSE
paulson@13786
   703
		      resolve_tac [StableI, stableI,
paulson@13786
   704
				   constrains_imp_Constrains] 1),
paulson@13786
   705
	      rtac constrainsI 1,
paulson@13786
   706
	      full_simp_tac ss 1,
paulson@13786
   707
	      REPEAT (FIRSTGOAL (etac disjE)),
paulson@13786
   708
	      ALLGOALS (clarify_tac cs),
paulson@13786
   709
	      ALLGOALS (asm_lr_simp_tac ss)]) i;
paulson@13786
   710
paulson@13786
   711
(*proves "ensures/leadsTo" properties when the program is specified*)
paulson@13786
   712
fun gen_ensures_tac(cs,ss) sact = 
paulson@13786
   713
    SELECT_GOAL
paulson@13786
   714
      (EVERY [REPEAT (Always_Int_tac 1),
paulson@13786
   715
	      etac Always_LeadsTo_Basis 1 
paulson@13786
   716
	          ORELSE   (*subgoal may involve LeadsTo, leadsTo or ensures*)
paulson@13786
   717
		  REPEAT (ares_tac [LeadsTo_Basis, leadsTo_Basis,
paulson@13786
   718
				    EnsuresI, ensuresI] 1),
paulson@13786
   719
	      (*now there are two subgoals: co & transient*)
paulson@13786
   720
	      simp_tac ss 2,
paulson@13786
   721
	      res_inst_tac [("act", sact)] transientI 2,
paulson@13786
   722
                 (*simplify the command's domain*)
paulson@13786
   723
	      simp_tac (ss addsimps [Domain_def]) 3,
paulson@13786
   724
	      gen_constrains_tac (cs,ss) 1,
paulson@13786
   725
	      ALLGOALS (clarify_tac cs),
paulson@13786
   726
	      ALLGOALS (asm_lr_simp_tac ss)]);
paulson@13786
   727
paulson@13797
   728
fun constrains_tac st = gen_constrains_tac (claset(), simpset()) st;
paulson@13797
   729
paulson@13796
   730
fun ensures_tac sact = gen_ensures_tac (claset(), simpset()) sact;
paulson@13796
   731
paulson@13786
   732
paulson@13786
   733
(*Composition equivalences, from Lift_prog*)
paulson@13786
   734
paulson@13786
   735
fun make_o_equivs th =
paulson@13786
   736
    [th,
paulson@13786
   737
     th RS o_equiv_assoc |> simplify (HOL_ss addsimps [o_assoc]),
paulson@13786
   738
     th RS o_equiv_apply |> simplify (HOL_ss addsimps [o_def, sub_def])];
paulson@13786
   739
paulson@13786
   740
Addsimps (make_o_equivs fst_o_funPair @ make_o_equivs snd_o_funPair);
paulson@13786
   741
paulson@13786
   742
Addsimps (make_o_equivs fst_o_lift_map @ make_o_equivs snd_o_lift_map);