1440
+ − 1
theory Abs
1804
+ − 2
imports "../Nominal-General/Nominal2_Atoms"
+ − 3
"../Nominal-General/Nominal2_Eqvt"
+ − 4
"../Nominal-General/Nominal2_Supp"
+ − 5
"Quotient"
1933
9eab1dfc14d2
moved lemmas from FSet.thy to do with atom to Nominal2_Base, and to do with 'a::at set to Nominal2_Atoms; moved Nominal2_Eqvt.thy one up to be loaded before Nominal2_Atoms
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 6
"Quotient_List"
1804
+ − 7
"Quotient_Product"
1440
+ − 8
begin
+ − 9
+ − 10
fun
+ − 11
alpha_gen
+ − 12
where
+ − 13
alpha_gen[simp del]:
1465
+ − 14
"alpha_gen (bs, x) R f pi (cs, y) \<longleftrightarrow>
+ − 15
f x - bs = f y - cs \<and>
+ − 16
(f x - bs) \<sharp>* pi \<and>
+ − 17
R (pi \<bullet> x) y \<and>
+ − 18
pi \<bullet> bs = cs"
1440
+ − 19
1557
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 20
fun
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 21
alpha_res
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 22
where
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 23
alpha_res[simp del]:
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 24
"alpha_res (bs, x) R f pi (cs, y) \<longleftrightarrow>
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 25
f x - bs = f y - cs \<and>
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 26
(f x - bs) \<sharp>* pi \<and>
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 27
R (pi \<bullet> x) y"
1440
+ − 28
1557
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 29
fun
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 30
alpha_lst
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 31
where
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 32
alpha_lst[simp del]:
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 33
"alpha_lst (bs, x) R f pi (cs, y) \<longleftrightarrow>
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 34
f x - set bs = f y - set cs \<and>
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 35
(f x - set bs) \<sharp>* pi \<and>
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 36
R (pi \<bullet> x) y \<and>
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 37
pi \<bullet> bs = cs"
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 38
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 39
lemmas alphas = alpha_gen.simps alpha_res.simps alpha_lst.simps
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 40
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 41
notation
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 42
alpha_gen ("_ \<approx>gen _ _ _ _" [100, 100, 100, 100, 100] 100) and
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 43
alpha_res ("_ \<approx>res _ _ _ _" [100, 100, 100, 100, 100] 100) and
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 44
alpha_lst ("_ \<approx>lst _ _ _ _" [100, 100, 100, 100, 100] 100)
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 45
2385
+ − 46
section {* Mono *}
+ − 47
1557
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 48
lemma [mono]:
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 49
shows "R1 \<le> R2 \<Longrightarrow> alpha_gen bs R1 \<le> alpha_gen bs R2"
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 50
and "R1 \<le> R2 \<Longrightarrow> alpha_res bs R1 \<le> alpha_res bs R2"
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 51
and "R1 \<le> R2 \<Longrightarrow> alpha_lst cs R1 \<le> alpha_lst cs R2"
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 52
by (case_tac [!] bs, case_tac [!] cs)
fee2389789ad
moved infinite_Un into mainstream Isabelle; moved permute_boolI/E lemmas
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 53
(auto simp add: le_fun_def le_bool_def alphas)
1440
+ − 54
2385
+ − 55
section {* Equivariance *}
+ − 56
+ − 57
lemma alpha_eqvt[eqvt]:
2311
+ − 58
shows "(bs, x) \<approx>gen R f q (cs, y) \<Longrightarrow> (p \<bullet> bs, p \<bullet> x) \<approx>gen (p \<bullet> R) (p \<bullet> f) (p \<bullet> q) (p \<bullet> cs, p \<bullet> y)"
+ − 59
and "(bs, x) \<approx>res R f q (cs, y) \<Longrightarrow> (p \<bullet> bs, p \<bullet> x) \<approx>res (p \<bullet> R) (p \<bullet> f) (p \<bullet> q) (p \<bullet> cs, p \<bullet> y)"
+ − 60
and "(ds, x) \<approx>lst R f q (es, y) \<Longrightarrow> (p \<bullet> ds, p \<bullet> x) \<approx>lst (p \<bullet> R) (p \<bullet> f) (p \<bullet> q) (p \<bullet> es, p \<bullet> y)"
+ − 61
unfolding alphas
+ − 62
unfolding permute_eqvt[symmetric]
+ − 63
unfolding set_eqvt[symmetric]
+ − 64
unfolding permute_fun_app_eq[symmetric]
+ − 65
unfolding Diff_eqvt[symmetric]
+ − 66
by (auto simp add: permute_bool_def fresh_star_permute_iff)
+ − 67
2385
+ − 68
+ − 69
section {* Equivalence *}
+ − 70
+ − 71
lemma alpha_refl:
2311
+ − 72
assumes a: "R x x"
+ − 73
shows "(bs, x) \<approx>gen R f 0 (bs, x)"
+ − 74
and "(bs, x) \<approx>res R f 0 (bs, x)"
+ − 75
and "(cs, x) \<approx>lst R f 0 (cs, x)"
+ − 76
using a
+ − 77
unfolding alphas
+ − 78
unfolding fresh_star_def
+ − 79
by (simp_all add: fresh_zero_perm)
+ − 80
2385
+ − 81
lemma alpha_sym:
2311
+ − 82
assumes a: "R (p \<bullet> x) y \<Longrightarrow> R (- p \<bullet> y) x"
+ − 83
shows "(bs, x) \<approx>gen R f p (cs, y) \<Longrightarrow> (cs, y) \<approx>gen R f (- p) (bs, x)"
+ − 84
and "(bs, x) \<approx>res R f p (cs, y) \<Longrightarrow> (cs, y) \<approx>res R f (- p) (bs, x)"
+ − 85
and "(ds, x) \<approx>lst R f p (es, y) \<Longrightarrow> (es, y) \<approx>lst R f (- p) (ds, x)"
+ − 86
unfolding alphas fresh_star_def
+ − 87
using a
+ − 88
by (auto simp add: fresh_minus_perm)
+ − 89
2385
+ − 90
lemma alpha_trans:
+ − 91
assumes a: "\<lbrakk>R (p \<bullet> x) y; R (q \<bullet> y) z\<rbrakk> \<Longrightarrow> R ((q + p) \<bullet> x) z"
+ − 92
shows "\<lbrakk>(bs, x) \<approx>gen R f p (cs, y); (cs, y) \<approx>gen R f q (ds, z)\<rbrakk> \<Longrightarrow> (bs, x) \<approx>gen R f (q + p) (ds, z)"
+ − 93
and "\<lbrakk>(bs, x) \<approx>res R f p (cs, y); (cs, y) \<approx>res R f q (ds, z)\<rbrakk> \<Longrightarrow> (bs, x) \<approx>res R f (q + p) (ds, z)"
+ − 94
and "\<lbrakk>(es, x) \<approx>lst R f p (gs, y); (gs, y) \<approx>lst R f q (hs, z)\<rbrakk> \<Longrightarrow> (es, x) \<approx>lst R f (q + p) (hs, z)"
+ − 95
using a
+ − 96
unfolding alphas fresh_star_def
+ − 97
by (simp_all add: fresh_plus_perm)
+ − 98
+ − 99
lemma alpha_sym_eqvt:
2311
+ − 100
assumes a: "R (p \<bullet> x) y \<Longrightarrow> R y (p \<bullet> x)"
+ − 101
and b: "p \<bullet> R = R"
+ − 102
shows "(bs, x) \<approx>gen R f p (cs, y) \<Longrightarrow> (cs, y) \<approx>gen R f (- p) (bs, x)"
+ − 103
and "(bs, x) \<approx>res R f p (cs, y) \<Longrightarrow> (cs, y) \<approx>res R f (- p) (bs, x)"
2313
+ − 104
and "(ds, x) \<approx>lst R f p (es, y) \<Longrightarrow> (es, y) \<approx>lst R f (- p) (ds, x)"
2385
+ − 105
apply(auto intro!: alpha_sym)
2313
+ − 106
apply(drule_tac [!] a)
+ − 107
apply(rule_tac [!] p="p" in permute_boolE)
+ − 108
apply(perm_simp add: permute_minus_cancel b)
+ − 109
apply(assumption)
+ − 110
apply(perm_simp add: permute_minus_cancel b)
+ − 111
apply(assumption)
+ − 112
apply(perm_simp add: permute_minus_cancel b)
+ − 113
apply(assumption)
+ − 114
done
2311
+ − 115
2313
+ − 116
lemma alpha_gen_trans_eqvt:
+ − 117
assumes b: "(cs, y) \<approx>gen R f q (ds, z)"
+ − 118
and a: "(bs, x) \<approx>gen R f p (cs, y)"
+ − 119
and d: "q \<bullet> R = R"
+ − 120
and c: "\<lbrakk>R (p \<bullet> x) y; R y (- q \<bullet> z)\<rbrakk> \<Longrightarrow> R (p \<bullet> x) (- q \<bullet> z)"
+ − 121
shows "(bs, x) \<approx>gen R f (q + p) (ds, z)"
2385
+ − 122
apply(rule alpha_trans)
2313
+ − 123
defer
+ − 124
apply(rule a)
+ − 125
apply(rule b)
+ − 126
apply(drule c)
+ − 127
apply(rule_tac p="q" in permute_boolE)
+ − 128
apply(perm_simp add: permute_minus_cancel d)
+ − 129
apply(assumption)
+ − 130
apply(rotate_tac -1)
+ − 131
apply(drule_tac p="q" in permute_boolI)
+ − 132
apply(perm_simp add: permute_minus_cancel d)
+ − 133
apply(simp add: permute_eqvt[symmetric])
+ − 134
done
+ − 135
+ − 136
lemma alpha_res_trans_eqvt:
+ − 137
assumes b: "(cs, y) \<approx>res R f q (ds, z)"
+ − 138
and a: "(bs, x) \<approx>res R f p (cs, y)"
+ − 139
and d: "q \<bullet> R = R"
+ − 140
and c: "\<lbrakk>R (p \<bullet> x) y; R y (- q \<bullet> z)\<rbrakk> \<Longrightarrow> R (p \<bullet> x) (- q \<bullet> z)"
+ − 141
shows "(bs, x) \<approx>res R f (q + p) (ds, z)"
2385
+ − 142
apply(rule alpha_trans)
2313
+ − 143
defer
+ − 144
apply(rule a)
+ − 145
apply(rule b)
+ − 146
apply(drule c)
+ − 147
apply(rule_tac p="q" in permute_boolE)
+ − 148
apply(perm_simp add: permute_minus_cancel d)
+ − 149
apply(assumption)
+ − 150
apply(rotate_tac -1)
+ − 151
apply(drule_tac p="q" in permute_boolI)
+ − 152
apply(perm_simp add: permute_minus_cancel d)
+ − 153
apply(simp add: permute_eqvt[symmetric])
+ − 154
done
+ − 155
+ − 156
lemma alpha_lst_trans_eqvt:
+ − 157
assumes b: "(cs, y) \<approx>lst R f q (ds, z)"
+ − 158
and a: "(bs, x) \<approx>lst R f p (cs, y)"
+ − 159
and d: "q \<bullet> R = R"
+ − 160
and c: "\<lbrakk>R (p \<bullet> x) y; R y (- q \<bullet> z)\<rbrakk> \<Longrightarrow> R (p \<bullet> x) (- q \<bullet> z)"
+ − 161
shows "(bs, x) \<approx>lst R f (q + p) (ds, z)"
2385
+ − 162
apply(rule alpha_trans)
2313
+ − 163
defer
+ − 164
apply(rule a)
+ − 165
apply(rule b)
+ − 166
apply(drule c)
+ − 167
apply(rule_tac p="q" in permute_boolE)
+ − 168
apply(perm_simp add: permute_minus_cancel d)
+ − 169
apply(assumption)
+ − 170
apply(rotate_tac -1)
+ − 171
apply(drule_tac p="q" in permute_boolI)
+ − 172
apply(perm_simp add: permute_minus_cancel d)
+ − 173
apply(simp add: permute_eqvt[symmetric])
+ − 174
done
+ − 175
+ − 176
lemmas alpha_trans_eqvt = alpha_gen_trans_eqvt alpha_res_trans_eqvt alpha_lst_trans_eqvt
+ − 177
2311
+ − 178
+ − 179
section {* General Abstractions *}
+ − 180
1440
+ − 181
fun
+ − 182
alpha_abs
+ − 183
where
1666
+ − 184
[simp del]:
1558
+ − 185
"alpha_abs (bs, x) (cs, y) \<longleftrightarrow> (\<exists>p. (bs, x) \<approx>gen (op=) supp p (cs, y))"
1440
+ − 186
1657
+ − 187
fun
+ − 188
alpha_abs_lst
+ − 189
where
1666
+ − 190
[simp del]:
1657
+ − 191
"alpha_abs_lst (bs, x) (cs, y) \<longleftrightarrow> (\<exists>p. (bs, x) \<approx>lst (op=) supp p (cs, y))"
+ − 192
+ − 193
fun
+ − 194
alpha_abs_res
+ − 195
where
1666
+ − 196
[simp del]:
1657
+ − 197
"alpha_abs_res (bs, x) (cs, y) \<longleftrightarrow> (\<exists>p. (bs, x) \<approx>res (op=) supp p (cs, y))"
+ − 198
1440
+ − 199
notation
1666
+ − 200
alpha_abs (infix "\<approx>abs" 50) and
+ − 201
alpha_abs_lst (infix "\<approx>abs'_lst" 50) and
+ − 202
alpha_abs_res (infix "\<approx>abs'_res" 50)
1657
+ − 203
+ − 204
lemmas alphas_abs = alpha_abs.simps alpha_abs_res.simps alpha_abs_lst.simps
+ − 205
2385
+ − 206
1657
+ − 207
lemma alphas_abs_refl:
+ − 208
shows "(bs, x) \<approx>abs (bs, x)"
+ − 209
and "(bs, x) \<approx>abs_res (bs, x)"
+ − 210
and "(cs, x) \<approx>abs_lst (cs, x)"
+ − 211
unfolding alphas_abs
+ − 212
unfolding alphas
+ − 213
unfolding fresh_star_def
+ − 214
by (rule_tac [!] x="0" in exI)
+ − 215
(simp_all add: fresh_zero_perm)
+ − 216
+ − 217
lemma alphas_abs_sym:
+ − 218
shows "(bs, x) \<approx>abs (cs, y) \<Longrightarrow> (cs, y) \<approx>abs (bs, x)"
+ − 219
and "(bs, x) \<approx>abs_res (cs, y) \<Longrightarrow> (cs, y) \<approx>abs_res (bs, x)"
+ − 220
and "(ds, x) \<approx>abs_lst (es, y) \<Longrightarrow> (es, y) \<approx>abs_lst (ds, x)"
+ − 221
unfolding alphas_abs
+ − 222
unfolding alphas
+ − 223
unfolding fresh_star_def
+ − 224
by (erule_tac [!] exE, rule_tac [!] x="-p" in exI)
+ − 225
(auto simp add: fresh_minus_perm)
1440
+ − 226
1657
+ − 227
lemma alphas_abs_trans:
+ − 228
shows "\<lbrakk>(bs, x) \<approx>abs (cs, y); (cs, y) \<approx>abs (ds, z)\<rbrakk> \<Longrightarrow> (bs, x) \<approx>abs (ds, z)"
+ − 229
and "\<lbrakk>(bs, x) \<approx>abs_res (cs, y); (cs, y) \<approx>abs_res (ds, z)\<rbrakk> \<Longrightarrow> (bs, x) \<approx>abs_res (ds, z)"
+ − 230
and "\<lbrakk>(es, x) \<approx>abs_lst (gs, y); (gs, y) \<approx>abs_lst (hs, z)\<rbrakk> \<Longrightarrow> (es, x) \<approx>abs_lst (hs, z)"
+ − 231
unfolding alphas_abs
+ − 232
unfolding alphas
+ − 233
unfolding fresh_star_def
+ − 234
apply(erule_tac [!] exE, erule_tac [!] exE)
+ − 235
apply(rule_tac [!] x="pa + p" in exI)
+ − 236
by (simp_all add: fresh_plus_perm)
+ − 237
+ − 238
lemma alphas_abs_eqvt:
+ − 239
shows "(bs, x) \<approx>abs (cs, y) \<Longrightarrow> (p \<bullet> bs, p \<bullet> x) \<approx>abs (p \<bullet> cs, p \<bullet> y)"
+ − 240
and "(bs, x) \<approx>abs_res (cs, y) \<Longrightarrow> (p \<bullet> bs, p \<bullet> x) \<approx>abs_res (p \<bullet> cs, p \<bullet> y)"
+ − 241
and "(ds, x) \<approx>abs_lst (es, y) \<Longrightarrow> (p \<bullet> ds, p \<bullet> x) \<approx>abs_lst (p \<bullet> es, p \<bullet> y)"
+ − 242
unfolding alphas_abs
+ − 243
unfolding alphas
+ − 244
unfolding set_eqvt[symmetric]
+ − 245
unfolding supp_eqvt[symmetric]
+ − 246
unfolding Diff_eqvt[symmetric]
+ − 247
apply(erule_tac [!] exE)
+ − 248
apply(rule_tac [!] x="p \<bullet> pa" in exI)
+ − 249
by (auto simp add: fresh_star_permute_iff permute_eqvt[symmetric])
+ − 250
+ − 251
quotient_type
+ − 252
'a abs_gen = "(atom set \<times> 'a::pt)" / "alpha_abs"
+ − 253
and 'b abs_res = "(atom set \<times> 'b::pt)" / "alpha_abs_res"
+ − 254
and 'c abs_lst = "(atom list \<times> 'c::pt)" / "alpha_abs_lst"
+ − 255
apply(rule_tac [!] equivpI)
1440
+ − 256
unfolding reflp_def symp_def transp_def
1657
+ − 257
by (auto intro: alphas_abs_sym alphas_abs_refl alphas_abs_trans simp only:)
1440
+ − 258
+ − 259
quotient_definition
1932
+ − 260
Abs ("[_]set. _" [60, 60] 60)
+ − 261
where
1558
+ − 262
"Abs::atom set \<Rightarrow> ('a::pt) \<Rightarrow> 'a abs_gen"
1440
+ − 263
is
+ − 264
"Pair::atom set \<Rightarrow> ('a::pt) \<Rightarrow> (atom set \<times> 'a)"
+ − 265
1657
+ − 266
quotient_definition
1932
+ − 267
Abs_res ("[_]res. _" [60, 60] 60)
+ − 268
where
1657
+ − 269
"Abs_res::atom set \<Rightarrow> ('a::pt) \<Rightarrow> 'a abs_res"
+ − 270
is
+ − 271
"Pair::atom set \<Rightarrow> ('a::pt) \<Rightarrow> (atom set \<times> 'a)"
+ − 272
+ − 273
quotient_definition
1932
+ − 274
Abs_lst ("[_]lst. _" [60, 60] 60)
+ − 275
where
1657
+ − 276
"Abs_lst::atom list \<Rightarrow> ('a::pt) \<Rightarrow> 'a abs_lst"
+ − 277
is
+ − 278
"Pair::atom list \<Rightarrow> ('a::pt) \<Rightarrow> (atom list \<times> 'a)"
+ − 279
1440
+ − 280
lemma [quot_respect]:
1657
+ − 281
shows "(op= ===> op= ===> alpha_abs) Pair Pair"
+ − 282
and "(op= ===> op= ===> alpha_abs_res) Pair Pair"
+ − 283
and "(op= ===> op= ===> alpha_abs_lst) Pair Pair"
+ − 284
unfolding fun_rel_def
2385
+ − 285
by (auto intro: alphas_abs_refl)
1440
+ − 286
+ − 287
lemma [quot_respect]:
1657
+ − 288
shows "(op= ===> alpha_abs ===> alpha_abs) permute permute"
+ − 289
and "(op= ===> alpha_abs_res ===> alpha_abs_res) permute permute"
+ − 290
and "(op= ===> alpha_abs_lst ===> alpha_abs_lst) permute permute"
+ − 291
unfolding fun_rel_def
+ − 292
by (auto intro: alphas_abs_eqvt simp only: Pair_eqvt)
1440
+ − 293
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 294
lemma abs_exhausts:
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 295
shows "(\<And>as (x::'a::pt). y1 = Abs as x \<Longrightarrow> P1) \<Longrightarrow> P1"
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 296
and "(\<And>as (x::'a::pt). y2 = Abs_res as x \<Longrightarrow> P2) \<Longrightarrow> P2"
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 297
and "(\<And>as (x::'a::pt). y3 = Abs_lst as x \<Longrightarrow> P3) \<Longrightarrow> P3"
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 298
by (lifting prod.exhaust[where 'a="atom set" and 'b="'a"]
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 299
prod.exhaust[where 'a="atom set" and 'b="'a"]
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 300
prod.exhaust[where 'a="atom list" and 'b="'a"])
1440
+ − 301
1662
+ − 302
lemma abs_eq_iff:
+ − 303
shows "Abs bs x = Abs cs y \<longleftrightarrow> (bs, x) \<approx>abs (cs, y)"
+ − 304
and "Abs_res bs x = Abs_res cs y \<longleftrightarrow> (bs, x) \<approx>abs_res (cs, y)"
+ − 305
and "Abs_lst ds x = Abs_lst hs y \<longleftrightarrow> (ds, x) \<approx>abs_lst (hs, y)"
2385
+ − 306
unfolding alphas_abs by (lifting alphas_abs)
1662
+ − 307
1558
+ − 308
instantiation abs_gen :: (pt) pt
1440
+ − 309
begin
+ − 310
+ − 311
quotient_definition
1558
+ − 312
"permute_abs_gen::perm \<Rightarrow> ('a::pt abs_gen) \<Rightarrow> 'a abs_gen"
1440
+ − 313
is
+ − 314
"permute:: perm \<Rightarrow> (atom set \<times> 'a::pt) \<Rightarrow> (atom set \<times> 'a::pt)"
+ − 315
1657
+ − 316
lemma permute_Abs[simp]:
1558
+ − 317
fixes x::"'a::pt"
1440
+ − 318
shows "(p \<bullet> (Abs as x)) = Abs (p \<bullet> as) (p \<bullet> x)"
1657
+ − 319
by (lifting permute_prod.simps[where 'a="atom set" and 'b="'a"])
1440
+ − 320
+ − 321
instance
+ − 322
apply(default)
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 323
apply(case_tac [!] x rule: abs_exhausts(1))
1657
+ − 324
apply(simp_all)
+ − 325
done
+ − 326
+ − 327
end
+ − 328
+ − 329
instantiation abs_res :: (pt) pt
+ − 330
begin
+ − 331
+ − 332
quotient_definition
+ − 333
"permute_abs_res::perm \<Rightarrow> ('a::pt abs_res) \<Rightarrow> 'a abs_res"
+ − 334
is
+ − 335
"permute:: perm \<Rightarrow> (atom set \<times> 'a::pt) \<Rightarrow> (atom set \<times> 'a::pt)"
+ − 336
+ − 337
lemma permute_Abs_res[simp]:
+ − 338
fixes x::"'a::pt"
+ − 339
shows "(p \<bullet> (Abs_res as x)) = Abs_res (p \<bullet> as) (p \<bullet> x)"
+ − 340
by (lifting permute_prod.simps[where 'a="atom set" and 'b="'a"])
+ − 341
+ − 342
instance
+ − 343
apply(default)
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 344
apply(case_tac [!] x rule: abs_exhausts(2))
1657
+ − 345
apply(simp_all)
+ − 346
done
+ − 347
+ − 348
end
+ − 349
+ − 350
instantiation abs_lst :: (pt) pt
+ − 351
begin
+ − 352
+ − 353
quotient_definition
+ − 354
"permute_abs_lst::perm \<Rightarrow> ('a::pt abs_lst) \<Rightarrow> 'a abs_lst"
+ − 355
is
+ − 356
"permute:: perm \<Rightarrow> (atom list \<times> 'a::pt) \<Rightarrow> (atom list \<times> 'a::pt)"
+ − 357
+ − 358
lemma permute_Abs_lst[simp]:
+ − 359
fixes x::"'a::pt"
+ − 360
shows "(p \<bullet> (Abs_lst as x)) = Abs_lst (p \<bullet> as) (p \<bullet> x)"
+ − 361
by (lifting permute_prod.simps[where 'a="atom list" and 'b="'a"])
+ − 362
+ − 363
instance
+ − 364
apply(default)
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 365
apply(case_tac [!] x rule: abs_exhausts(3))
1440
+ − 366
apply(simp_all)
+ − 367
done
+ − 368
+ − 369
end
+ − 370
1657
+ − 371
lemmas permute_abs = permute_Abs permute_Abs_res permute_Abs_lst
+ − 372
2385
+ − 373
1662
+ − 374
lemma abs_swap1:
+ − 375
assumes a1: "a \<notin> (supp x) - bs"
+ − 376
and a2: "b \<notin> (supp x) - bs"
+ − 377
shows "Abs bs x = Abs ((a \<rightleftharpoons> b) \<bullet> bs) ((a \<rightleftharpoons> b) \<bullet> x)"
+ − 378
and "Abs_res bs x = Abs_res ((a \<rightleftharpoons> b) \<bullet> bs) ((a \<rightleftharpoons> b) \<bullet> x)"
+ − 379
unfolding abs_eq_iff
+ − 380
unfolding alphas_abs
+ − 381
unfolding alphas
+ − 382
unfolding supp_eqvt[symmetric] Diff_eqvt[symmetric]
+ − 383
unfolding fresh_star_def fresh_def
+ − 384
unfolding swap_set_not_in[OF a1 a2]
+ − 385
using a1 a2
+ − 386
by (rule_tac [!] x="(a \<rightleftharpoons> b)" in exI)
+ − 387
(auto simp add: supp_perm swap_atom)
+ − 388
+ − 389
lemma abs_swap2:
+ − 390
assumes a1: "a \<notin> (supp x) - (set bs)"
+ − 391
and a2: "b \<notin> (supp x) - (set bs)"
+ − 392
shows "Abs_lst bs x = Abs_lst ((a \<rightleftharpoons> b) \<bullet> bs) ((a \<rightleftharpoons> b) \<bullet> x)"
+ − 393
unfolding abs_eq_iff
+ − 394
unfolding alphas_abs
+ − 395
unfolding alphas
+ − 396
unfolding supp_eqvt[symmetric] Diff_eqvt[symmetric] set_eqvt[symmetric]
+ − 397
unfolding fresh_star_def fresh_def
+ − 398
unfolding swap_set_not_in[OF a1 a2]
+ − 399
using a1 a2
+ − 400
by (rule_tac [!] x="(a \<rightleftharpoons> b)" in exI)
+ − 401
(auto simp add: supp_perm swap_atom)
+ − 402
+ − 403
lemma abs_supports:
+ − 404
shows "((supp x) - as) supports (Abs as x)"
+ − 405
and "((supp x) - as) supports (Abs_res as x)"
2385
+ − 406
and "((supp x) - set bs) supports (Abs_lst bs x)"
1662
+ − 407
unfolding supports_def
+ − 408
unfolding permute_abs
+ − 409
by (simp_all add: abs_swap1[symmetric] abs_swap2[symmetric])
1657
+ − 410
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 411
function
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 412
supp_gen :: "('a::pt) abs_gen \<Rightarrow> atom set"
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 413
where
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 414
"supp_gen (Abs as x) = supp x - as"
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 415
apply(case_tac x rule: abs_exhausts(1))
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 416
apply(simp)
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 417
apply(simp add: abs_eq_iff alphas_abs alphas)
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 418
done
1657
+ − 419
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 420
termination supp_gen
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 421
by (auto intro!: local.termination)
1440
+ − 422
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 423
function
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 424
supp_res :: "('a::pt) abs_res \<Rightarrow> atom set"
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 425
where
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 426
"supp_res (Abs_res as x) = supp x - as"
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 427
apply(case_tac x rule: abs_exhausts(2))
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 428
apply(simp)
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 429
apply(simp add: abs_eq_iff alphas_abs alphas)
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 430
done
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 431
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 432
termination supp_res
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 433
by (auto intro!: local.termination)
1440
+ − 434
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 435
function
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 436
supp_lst :: "('a::pt) abs_lst \<Rightarrow> atom set"
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 437
where
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 438
"supp_lst (Abs_lst cs x) = (supp x) - (set cs)"
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 439
apply(case_tac x rule: abs_exhausts(3))
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 440
apply(simp)
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 441
apply(simp add: abs_eq_iff alphas_abs alphas)
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 442
done
1440
+ − 443
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 444
termination supp_lst
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 445
by (auto intro!: local.termination)
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 446
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 447
lemma [eqvt]:
1657
+ − 448
shows "(p \<bullet> supp_gen x) = supp_gen (p \<bullet> x)"
+ − 449
and "(p \<bullet> supp_res y) = supp_res (p \<bullet> y)"
+ − 450
and "(p \<bullet> supp_lst z) = supp_lst (p \<bullet> z)"
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 451
apply(case_tac x rule: abs_exhausts(1))
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 452
apply(simp add: supp_eqvt Diff_eqvt)
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 453
apply(case_tac y rule: abs_exhausts(2))
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 454
apply(simp add: supp_eqvt Diff_eqvt)
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 455
apply(case_tac z rule: abs_exhausts(3))
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 456
apply(simp add: supp_eqvt Diff_eqvt set_eqvt)
1440
+ − 457
done
+ − 458
1657
+ − 459
lemma aux_fresh:
+ − 460
shows "a \<sharp> Abs bs x \<Longrightarrow> a \<sharp> supp_gen (Abs bs x)"
+ − 461
and "a \<sharp> Abs_res bs x \<Longrightarrow> a \<sharp> supp_res (Abs_res bs x)"
+ − 462
and "a \<sharp> Abs_lst cs x \<Longrightarrow> a \<sharp> supp_lst (Abs_lst cs x)"
1932
+ − 463
by (rule_tac [!] fresh_fun_eqvt_app)
+ − 464
(simp_all add: eqvts_raw)
1657
+ − 465
+ − 466
lemma supp_abs_subset1:
+ − 467
assumes a: "finite (supp x)"
1440
+ − 468
shows "(supp x) - as \<subseteq> supp (Abs as x)"
1657
+ − 469
and "(supp x) - as \<subseteq> supp (Abs_res as x)"
+ − 470
and "(supp x) - (set bs) \<subseteq> supp (Abs_lst bs x)"
+ − 471
unfolding supp_conv_fresh
1932
+ − 472
by (auto dest!: aux_fresh)
+ − 473
(simp_all add: fresh_def supp_finite_atom_set a)
1440
+ − 474
1657
+ − 475
lemma supp_abs_subset2:
+ − 476
assumes a: "finite (supp x)"
1440
+ − 477
shows "supp (Abs as x) \<subseteq> (supp x) - as"
1657
+ − 478
and "supp (Abs_res as x) \<subseteq> (supp x) - as"
+ − 479
and "supp (Abs_lst bs x) \<subseteq> (supp x) - (set bs)"
1932
+ − 480
by (rule_tac [!] supp_is_subset)
+ − 481
(simp_all add: abs_supports a)
1478
+ − 482
1657
+ − 483
lemma abs_finite_supp:
+ − 484
assumes a: "finite (supp x)"
1478
+ − 485
shows "supp (Abs as x) = (supp x) - as"
1657
+ − 486
and "supp (Abs_res as x) = (supp x) - as"
+ − 487
and "supp (Abs_lst bs x) = (supp x) - (set bs)"
1932
+ − 488
by (rule_tac [!] subset_antisym)
+ − 489
(simp_all add: supp_abs_subset1[OF a] supp_abs_subset2[OF a])
1440
+ − 490
1657
+ − 491
lemma supp_abs:
1440
+ − 492
fixes x::"'a::fs"
+ − 493
shows "supp (Abs as x) = (supp x) - as"
1657
+ − 494
and "supp (Abs_res as x) = (supp x) - as"
+ − 495
and "supp (Abs_lst bs x) = (supp x) - (set bs)"
1932
+ − 496
by (rule_tac [!] abs_finite_supp)
+ − 497
(simp_all add: finite_supp)
1440
+ − 498
1558
+ − 499
instance abs_gen :: (fs) fs
1440
+ − 500
apply(default)
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 501
apply(case_tac x rule: abs_exhausts(1))
1657
+ − 502
apply(simp add: supp_abs finite_supp)
1440
+ − 503
done
+ − 504
1657
+ − 505
instance abs_res :: (fs) fs
+ − 506
apply(default)
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 507
apply(case_tac x rule: abs_exhausts(2))
1657
+ − 508
apply(simp add: supp_abs finite_supp)
+ − 509
done
+ − 510
+ − 511
instance abs_lst :: (fs) fs
+ − 512
apply(default)
1686
7b3dd407f6b3
got rid of the aux-function on the raw level, by defining it with function on the quotient level
Christian Urban <urbanc@in.tum.de>
diff
changeset
+ − 513
apply(case_tac x rule: abs_exhausts(3))
1657
+ − 514
apply(simp add: supp_abs finite_supp)
1440
+ − 515
done
+ − 516
1657
+ − 517
lemma abs_fresh_iff:
+ − 518
fixes x::"'a::fs"
+ − 519
shows "a \<sharp> Abs bs x \<longleftrightarrow> a \<in> bs \<or> (a \<notin> bs \<and> a \<sharp> x)"
+ − 520
and "a \<sharp> Abs_res bs x \<longleftrightarrow> a \<in> bs \<or> (a \<notin> bs \<and> a \<sharp> x)"
+ − 521
and "a \<sharp> Abs_lst cs x \<longleftrightarrow> a \<in> (set cs) \<or> (a \<notin> (set cs) \<and> a \<sharp> x)"
+ − 522
unfolding fresh_def
+ − 523
unfolding supp_abs
+ − 524
by auto
1460
+ − 525
2385
+ − 526
fun
+ − 527
prod_fv :: "('a \<Rightarrow> atom set) \<Rightarrow> ('b \<Rightarrow> atom set) \<Rightarrow> ('a \<times> 'b) \<Rightarrow> atom set"
+ − 528
where
+ − 529
"prod_fv fv1 fv2 (x, y) = fv1 x \<union> fv2 y"
+ − 530
+ − 531
definition
+ − 532
prod_alpha :: "('a \<Rightarrow> 'a \<Rightarrow> bool) \<Rightarrow> ('b \<Rightarrow> 'b \<Rightarrow> bool) \<Rightarrow> ('a \<times> 'b \<Rightarrow> 'a \<times> 'b \<Rightarrow> bool)"
+ − 533
where
+ − 534
"prod_alpha = prod_rel"
+ − 535
+ − 536
lemma [quot_respect]:
+ − 537
shows "((R1 ===> op =) ===> (R2 ===> op =) ===> prod_rel R1 R2 ===> op =) prod_fv prod_fv"
+ − 538
by auto
+ − 539
+ − 540
lemma [quot_preserve]:
+ − 541
assumes q1: "Quotient R1 abs1 rep1"
+ − 542
and q2: "Quotient R2 abs2 rep2"
+ − 543
shows "((abs1 ---> id) ---> (abs2 ---> id) ---> prod_fun rep1 rep2 ---> id) prod_fv = prod_fv"
+ − 544
by (simp add: expand_fun_eq Quotient_abs_rep[OF q1] Quotient_abs_rep[OF q2])
+ − 545
+ − 546
lemma [mono]:
+ − 547
shows "A <= B \<Longrightarrow> C <= D ==> prod_alpha A C <= prod_alpha B D"
+ − 548
unfolding prod_alpha_def
+ − 549
by auto
+ − 550
+ − 551
lemma [eqvt]:
+ − 552
shows "p \<bullet> prod_alpha A B x y = prod_alpha (p \<bullet> A) (p \<bullet> B) (p \<bullet> x) (p \<bullet> y)"
+ − 553
unfolding prod_alpha_def
+ − 554
unfolding prod_rel.simps
+ − 555
by (perm_simp) (rule refl)
+ − 556
+ − 557
lemma [eqvt]:
+ − 558
shows "p \<bullet> prod_fv A B (x, y) = prod_fv (p \<bullet> A) (p \<bullet> B) (p \<bullet> x, p \<bullet> y)"
+ − 559
unfolding prod_fv.simps
+ − 560
by (perm_simp) (rule refl)
+ − 561
+ − 562
2435
+ − 563
(* Below seems to be not needed *)
1440
+ − 564
2435
+ − 565
(*
1657
+ − 566
lemma Abs_eq_iff:
+ − 567
shows "Abs bs x = Abs cs y \<longleftrightarrow> (\<exists>p. (bs, x) \<approx>gen (op =) supp p (cs, y))"
1675
+ − 568
and "Abs_res bs x = Abs_res cs y \<longleftrightarrow> (\<exists>p. (bs, x) \<approx>res (op =) supp p (cs, y))"
+ − 569
and "Abs_lst bsl x = Abs_lst csl y \<longleftrightarrow> (\<exists>p. (bsl, x) \<approx>lst (op =) supp p (csl, y))"
+ − 570
by (lifting alphas_abs)
2435
+ − 571
*)
1744
+ − 572
2302
+ − 573
1440
+ − 574
end
+ − 575