1792
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
1 |
theory Classical
|
2454
|
2 |
imports "../Nominal2"
|
1792
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
3 |
begin
|
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
4 |
|
2617
e44551d067e6
properly exported strong exhaust theorem; cleaned up some examples
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
5 |
(* example from Urban's PhD *)
|
1792
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
6 |
|
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
7 |
atom_decl name
|
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
8 |
atom_decl coname
|
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
9 |
|
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
10 |
nominal_datatype trm =
|
2889
|
11 |
Ax "name" "coname"
|
2891
304dfe6cc83a
the simplifier can simplify "sort (atom a)" if a is a concrete atom type declared with atom_decl
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
12 |
| Cut c::"coname" t1::"trm" n::"name" t2::"trm" bind n in t1, bind c in t2
|
2889
|
13 |
("Cut <_>._ '(_')._" [100,100,100,100] 100)
|
|
14 |
| NotR n::"name" t::"trm" "coname" bind n in t
|
|
15 |
("NotR '(_')._ _" [100,100,100] 100)
|
|
16 |
| NotL c::"coname" t::"trm" "name" bind c in t
|
|
17 |
("NotL <_>._ _" [100,100,100] 100)
|
|
18 |
| AndR c1::"coname" t1::"trm" c2::"coname" t2::"trm" "coname" bind c1 in t1, bind c2 in t2
|
|
19 |
("AndR <_>._ <_>._ _" [100,100,100,100,100] 100)
|
|
20 |
| AndL1 n::"name" t::"trm" "name" bind n in t
|
|
21 |
("AndL1 '(_')._ _" [100,100,100] 100)
|
|
22 |
| AndL2 n::"name" t::"trm" "name" bind n in t
|
|
23 |
("AndL2 '(_')._ _" [100,100,100] 100)
|
|
24 |
| OrR1 c::"coname" t::"trm" "coname" bind c in t
|
|
25 |
("OrR1 <_>._ _" [100,100,100] 100)
|
|
26 |
| OrR2 c::"coname" t::"trm" "coname" bind c in t
|
|
27 |
("OrR2 <_>._ _" [100,100,100] 100)
|
|
28 |
| OrL n1::"name" t1::"trm" n2::"name" t2::"trm" "name" bind n1 in t1, bind n2 in t2
|
|
29 |
("OrL '(_')._ '(_')._ _" [100,100,100,100,100] 100)
|
|
30 |
| ImpL c::"coname" t1::"trm" n::"name" t2::"trm" "name" bind c in t1, bind n in t2
|
|
31 |
("ImpL <_>._ '(_')._ _" [100,100,100,100,100] 100)
|
|
32 |
| ImpR c::"coname" n::"name" t::"trm" "coname" bind n c in t
|
|
33 |
("ImpR '(_').<_>._ _" [100,100,100,100] 100)
|
1792
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
34 |
|
2436
|
35 |
thm trm.distinct
|
|
36 |
thm trm.induct
|
|
37 |
thm trm.exhaust
|
2617
e44551d067e6
properly exported strong exhaust theorem; cleaned up some examples
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
38 |
thm trm.strong_exhaust
|
e44551d067e6
properly exported strong exhaust theorem; cleaned up some examples
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
39 |
thm trm.strong_exhaust[simplified]
|
2436
|
40 |
thm trm.fv_defs
|
|
41 |
thm trm.bn_defs
|
|
42 |
thm trm.perm_simps
|
|
43 |
thm trm.eq_iff
|
|
44 |
thm trm.fv_bn_eqvt
|
|
45 |
thm trm.size_eqvt
|
2617
e44551d067e6
properly exported strong exhaust theorem; cleaned up some examples
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
46 |
thm trm.supp
|
e44551d067e6
properly exported strong exhaust theorem; cleaned up some examples
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
47 |
thm trm.supp[simplified]
|
1792
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
48 |
|
2900
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
49 |
lemma Abs_lst1_fcb2:
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
50 |
fixes a b :: "'a :: at"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
51 |
and S T :: "'b :: fs"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
52 |
and c::"'c::fs"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
53 |
assumes e: "(Abs_lst [atom a] T) = (Abs_lst [atom b] S)"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
54 |
and fcb: "\<And>a T. atom a \<sharp> f a T c"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
55 |
and fresh: "{atom a, atom b} \<sharp>* c"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
56 |
and p1: "\<And>p. supp p \<sharp>* c \<Longrightarrow> p \<bullet> (f a T c) = f (p \<bullet> a) (p \<bullet> T) c"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
57 |
and p2: "\<And>p. supp p \<sharp>* c \<Longrightarrow> p \<bullet> (f b S c) = f (p \<bullet> b) (p \<bullet> S) c"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
58 |
shows "f a T c = f b S c"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
59 |
proof -
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
60 |
have fin1: "finite (supp (f a T c))"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
61 |
apply(rule_tac S="supp (a, T, c)" in supports_finite)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
62 |
apply(simp add: supports_def)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
63 |
apply(simp add: fresh_def[symmetric])
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
64 |
apply(clarify)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
65 |
apply(subst p1)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
66 |
apply(simp add: supp_swap fresh_star_def)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
67 |
apply(simp add: swap_fresh_fresh fresh_Pair)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
68 |
apply(simp add: finite_supp)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
69 |
done
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
70 |
have fin2: "finite (supp (f b S c))"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
71 |
apply(rule_tac S="supp (b, S, c)" in supports_finite)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
72 |
apply(simp add: supports_def)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
73 |
apply(simp add: fresh_def[symmetric])
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
74 |
apply(clarify)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
75 |
apply(subst p2)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
76 |
apply(simp add: supp_swap fresh_star_def)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
77 |
apply(simp add: swap_fresh_fresh fresh_Pair)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
78 |
apply(simp add: finite_supp)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
79 |
done
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
80 |
obtain d::"'a::at" where fr: "atom d \<sharp> (a, b, S, T, c, f a T c, f b S c)"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
81 |
using obtain_fresh'[where x="(a, b, S, T, c, f a T c, f b S c)"]
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
82 |
apply(auto simp add: finite_supp supp_Pair fin1 fin2)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
83 |
done
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
84 |
have "(a \<leftrightarrow> d) \<bullet> (Abs_lst [atom a] T) = (b \<leftrightarrow> d) \<bullet> (Abs_lst [atom b] S)"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
85 |
apply(simp (no_asm_use) only: flip_def)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
86 |
apply(subst swap_fresh_fresh)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
87 |
apply(simp add: Abs_fresh_iff)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
88 |
using fr
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
89 |
apply(simp add: Abs_fresh_iff)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
90 |
apply(subst swap_fresh_fresh)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
91 |
apply(simp add: Abs_fresh_iff)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
92 |
using fr
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
93 |
apply(simp add: Abs_fresh_iff)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
94 |
apply(rule e)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
95 |
done
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
96 |
then have "Abs_lst [atom d] ((a \<leftrightarrow> d) \<bullet> T) = Abs_lst [atom d] ((b \<leftrightarrow> d) \<bullet> S)"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
97 |
apply (simp add: swap_atom flip_def)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
98 |
done
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
99 |
then have eq: "(a \<leftrightarrow> d) \<bullet> T = (b \<leftrightarrow> d) \<bullet> S"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
100 |
by (simp add: Abs1_eq_iff)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
101 |
have "f a T c = (a \<leftrightarrow> d) \<bullet> f a T c"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
102 |
unfolding flip_def
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
103 |
apply(rule sym)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
104 |
apply(rule swap_fresh_fresh)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
105 |
using fcb[where a="a"]
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
106 |
apply(simp)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
107 |
using fr
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
108 |
apply(simp add: fresh_Pair)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
109 |
done
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
110 |
also have "... = f d ((a \<leftrightarrow> d) \<bullet> T) c"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
111 |
unfolding flip_def
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
112 |
apply(subst p1)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
113 |
using fresh fr
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
114 |
apply(simp add: supp_swap fresh_star_def fresh_Pair)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
115 |
apply(simp)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
116 |
done
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
117 |
also have "... = f d ((b \<leftrightarrow> d) \<bullet> S) c" using eq by simp
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
118 |
also have "... = (b \<leftrightarrow> d) \<bullet> f b S c"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
119 |
unfolding flip_def
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
120 |
apply(subst p2)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
121 |
using fresh fr
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
122 |
apply(simp add: supp_swap fresh_star_def fresh_Pair)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
123 |
apply(simp)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
124 |
done
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
125 |
also have "... = f b S c"
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
126 |
apply(rule flip_fresh_fresh)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
127 |
using fcb[where a="b"]
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
128 |
apply(simp)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
129 |
using fr
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
130 |
apply(simp add: fresh_Pair)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
131 |
done
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
132 |
finally show ?thesis by simp
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
133 |
qed
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
134 |
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
135 |
|
2899
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
136 |
lemma swap_at_base_sort:
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
137 |
"sort_of (atom a) \<noteq> sort_of (atom x) \<Longrightarrow> sort_of (atom b) \<noteq> sort_of (atom x)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
138 |
\<Longrightarrow> (atom a \<rightleftharpoons> atom b) \<bullet> x = x"
|
2892
|
139 |
by (rule swap_fresh_fresh) (simp_all add: fresh_at_base(1))
|
|
140 |
|
2899
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
141 |
nominal_primrec
|
2889
|
142 |
crename :: "trm \<Rightarrow> coname \<Rightarrow> coname \<Rightarrow> trm" ("_[_\<turnstile>c>_]" [100,100,100] 100)
|
|
143 |
where
|
|
144 |
"(Ax x a)[d\<turnstile>c>e] = (if a=d then Ax x e else Ax x a)"
|
|
145 |
| "atom a \<sharp> (d, e) \<Longrightarrow> (Cut <a>.M (x).N)[d\<turnstile>c>e] = Cut <a>.(M[d\<turnstile>c>e]) (x).(N[d\<turnstile>c>e])"
|
|
146 |
| "(NotR (x).M a)[d\<turnstile>c>e] = (if a=d then NotR (x).(M[d\<turnstile>c>e]) e else NotR (x).(M[d\<turnstile>c>e]) a)"
|
|
147 |
| "atom a \<sharp> (d, e) \<Longrightarrow> (NotL <a>.M x)[d\<turnstile>c>e] = (NotL <a>.(M[d\<turnstile>c>e]) x)"
|
|
148 |
| "\<lbrakk>atom a \<sharp> (d, e); atom b \<sharp> (d, e)\<rbrakk> \<Longrightarrow> (AndR <a>.M <b>.N c)[d\<turnstile>c>e] =
|
|
149 |
(if c=d then AndR <a>.(M[d\<turnstile>c>e]) <b>.(N[d \<turnstile>c>e]) e else AndR <a>.(M[d\<turnstile>c>e]) <b>.(N[d\<turnstile>c>e]) c)"
|
|
150 |
| "(AndL1 (x).M y)[d\<turnstile>c>e] = AndL1 (x).(M[d\<turnstile>c>e]) y"
|
|
151 |
| "(AndL2 (x).M y)[d\<turnstile>c>e] = AndL2 (x).(M[d\<turnstile>c>e]) y"
|
|
152 |
| "atom a \<sharp> (d, e) \<Longrightarrow> (OrR1 <a>.M b)[d\<turnstile>c>e] =
|
|
153 |
(if b=d then OrR1 <a>.(M[d\<turnstile>c>e]) e else OrR1 <a>.(M[d\<turnstile>c>e]) b)"
|
|
154 |
| "atom a \<sharp> (d, e) \<Longrightarrow> (OrR2 <a>.M b)[d\<turnstile>c>e] =
|
|
155 |
(if b=d then OrR2 <a>.(M[d\<turnstile>c>e]) e else OrR2 <a>.(M[d\<turnstile>c>e]) b)"
|
|
156 |
| "(OrL (x).M (y).N z)[d\<turnstile>c>e] = OrL (x).(M[d\<turnstile>c>e]) (y).(N[d\<turnstile>c>e]) z"
|
|
157 |
| "atom a \<sharp> (d, e) \<Longrightarrow> (ImpR (x).<a>.M b)[d\<turnstile>c>e] =
|
|
158 |
(if b=d then ImpR (x).<a>.(M[d\<turnstile>c>e]) e else ImpR (x).<a>.(M[d\<turnstile>c>e]) b)"
|
|
159 |
| "atom a \<sharp> (d, e) \<Longrightarrow> (ImpL <a>.M (x).N y)[d\<turnstile>c>e] = ImpL <a>.(M[d\<turnstile>c>e]) (x).(N[d\<turnstile>c>e]) y"
|
|
160 |
apply(simp only: eqvt_def)
|
|
161 |
apply(simp only: crename_graph_def)
|
|
162 |
apply (rule, perm_simp, rule)
|
|
163 |
apply(rule TrueI)
|
|
164 |
-- "covered all cases"
|
|
165 |
apply(case_tac x)
|
|
166 |
apply(rule_tac y="a" and c="(b, c)" in trm.strong_exhaust)
|
2892
|
167 |
apply (simp_all add: fresh_star_def)[12]
|
|
168 |
apply(metis)+
|
2891
304dfe6cc83a
the simplifier can simplify "sort (atom a)" if a is a concrete atom type declared with atom_decl
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
169 |
-- "compatibility"
|
2889
|
170 |
apply(simp_all)
|
2891
304dfe6cc83a
the simplifier can simplify "sort (atom a)" if a is a concrete atom type declared with atom_decl
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
171 |
apply(rule conjI)
|
2892
|
172 |
apply(elim conjE)
|
2900
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
173 |
apply(erule_tac c="(da,ea)" in Abs_lst1_fcb2)
|
2891
304dfe6cc83a
the simplifier can simplify "sort (atom a)" if a is a concrete atom type declared with atom_decl
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
174 |
apply(simp add: Abs_fresh_iff)
|
2900
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
175 |
apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
176 |
apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
177 |
apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
|
2899
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
178 |
apply(elim conjE)
|
2900
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
179 |
apply(erule_tac c="(da,ea)" in Abs_lst1_fcb2)
|
2899
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
180 |
apply(simp add: Abs_fresh_iff)
|
2900
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
181 |
apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
182 |
apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
183 |
apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
|
d66430c7c4f1
an alternative FCB for Abs_lst1; seems simpler but not as simple as I thought; not sure whether it generalises to multiple binders.
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
184 |
-- "old fcb"
|
2899
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
185 |
apply(elim conjE)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
186 |
apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
187 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
188 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
189 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
190 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
191 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
192 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
193 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
194 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
195 |
apply(blast)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
196 |
apply(elim conjE)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
197 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
198 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
199 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
200 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
201 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
202 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
203 |
apply(simp add: fresh_Pair)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
204 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
205 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
206 |
apply(erule conjE)+
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
207 |
apply(rule conjI)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
208 |
apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
209 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
210 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
211 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
212 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
213 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
214 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
215 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
216 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
217 |
apply(blast)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
218 |
apply(subgoal_tac "eqvt_at crename_sumC (N, da, ea)")
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
219 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
220 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
221 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
222 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
223 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
224 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
225 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
226 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
227 |
apply(blast)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
228 |
apply(elim conjE)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
229 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
230 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
231 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
232 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
233 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
234 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
235 |
apply(simp add: fresh_Pair)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
236 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
237 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
238 |
apply(elim conjE)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
239 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
240 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
241 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
242 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
243 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
244 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
245 |
apply(simp add: fresh_Pair)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
246 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
247 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
248 |
apply(erule conjE)+
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
249 |
apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
250 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
251 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
252 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
253 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
254 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
255 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
256 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
257 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
258 |
apply(blast)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
259 |
apply(erule conjE)+
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
260 |
apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
261 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
262 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
263 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
264 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
265 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
266 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
267 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
268 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
269 |
apply(blast)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
270 |
apply(rule conjI)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
271 |
apply(elim conjE)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
272 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
273 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
274 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
275 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
276 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
277 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
278 |
apply(simp add: eqvt_at_def swap_at_base_sort)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
279 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
280 |
apply(elim conjE)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
281 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
282 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
283 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
284 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
285 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
286 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
287 |
apply(simp add: fresh_Pair)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
288 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
289 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
290 |
apply(erule conjE)+
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
291 |
defer
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
292 |
apply(elim conjE)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
293 |
apply(rule conjI)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
294 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
295 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
296 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
297 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
298 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
299 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
300 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
301 |
apply simp
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
302 |
apply(erule Abs_lst1_fcb)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
303 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
304 |
apply(simp add: Abs_fresh_iff)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
305 |
apply(erule fresh_eqvt_at)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
306 |
apply(simp add: finite_supp)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
307 |
apply(simp add: fresh_Pair fresh_at_base(1))
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
308 |
apply(simp add: fresh_Pair)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
309 |
apply(simp add: eqvt_at_def swap_at_base_sort swap_fresh_fresh)
|
fe290b4e508f
except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
diff
changeset
|
310 |
apply simp
|
2889
|
311 |
oops
|
1792
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
312 |
|
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
313 |
end
|
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
314 |
|
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
315 |
|
c29a139410d2
properly separated the example from my PhD and gave the correct alpha-equivalence relation (according to the paper)
Christian Urban <urbanc@in.tum.de>
parents:
diff
changeset
|
316 |
|