Nominal/Ex/Classical.thy
author Cezary Kaliszyk <kaliszyk@in.tum.de>
Tue, 28 Jun 2011 12:36:34 +0900
changeset 2914 db0786a521fd
parent 2913 bc86f5c3bc65
child 2926 37c0d7953cba
permissions -rw-r--r--
Experiments with res
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
9ffee4eb1ae1 renamed NewParser to Nominal2
Christian Urban <urbanc@in.tum.de>
parents: 2436
diff changeset
     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>
parents: 2454
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
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    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>
parents: 2889
diff changeset
    12
| Cut c::"coname" t1::"trm" n::"name" t2::"trm"             bind n in t1, bind c in t2  
2889
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    13
     ("Cut <_>._ '(_')._" [100,100,100,100] 100)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    14
| NotR n::"name" t::"trm" "coname"                            bind n in t
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    15
     ("NotR '(_')._ _" [100,100,100] 100)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    16
| NotL c::"coname" t::"trm" "name"                            bind c in t   
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    17
     ("NotL <_>._ _" [100,100,100] 100)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    18
| AndR c1::"coname" t1::"trm" c2::"coname" t2::"trm" "coname" bind c1 in t1, bind c2 in t2
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    19
     ("AndR <_>._ <_>._ _" [100,100,100,100,100] 100)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    20
| AndL1 n::"name" t::"trm" "name"                             bind n in t
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    21
     ("AndL1 '(_')._ _" [100,100,100] 100)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    22
| AndL2 n::"name" t::"trm" "name"                             bind n in t
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    23
     ("AndL2 '(_')._ _" [100,100,100] 100)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    24
| OrR1 c::"coname" t::"trm" "coname"                          bind c in t             
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    25
     ("OrR1 <_>._ _" [100,100,100] 100)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    26
| OrR2 c::"coname" t::"trm" "coname"                          bind c in t     
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    27
     ("OrR2 <_>._ _" [100,100,100] 100)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    28
| OrL n1::"name" t1::"trm" n2::"name" t2::"trm" "name"        bind n1 in t1, bind n2 in t2       
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    29
     ("OrL '(_')._ '(_')._ _" [100,100,100,100,100] 100)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    30
| ImpL c::"coname" t1::"trm" n::"name" t2::"trm" "name"       bind c in t1, bind n in t2
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    31
     ("ImpL <_>._ '(_')._ _" [100,100,100,100,100] 100)
2902
9c3f6a4d95d4 another change to the fcb2; this is needed in order to get all proofs through in Lambda.thy
Christian Urban <urbanc@in.tum.de>
parents: 2901
diff changeset
    32
| ImpR n::"name" c::"coname" t::"trm" "coname"                bind n c in t
2889
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
    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
3885dc2669f9 cleaned up (almost completely) the examples
Christian Urban <urbanc@in.tum.de>
parents: 2434
diff changeset
    35
thm trm.distinct
3885dc2669f9 cleaned up (almost completely) the examples
Christian Urban <urbanc@in.tum.de>
parents: 2434
diff changeset
    36
thm trm.induct
3885dc2669f9 cleaned up (almost completely) the examples
Christian Urban <urbanc@in.tum.de>
parents: 2434
diff changeset
    37
thm trm.exhaust
2617
e44551d067e6 properly exported strong exhaust theorem; cleaned up some examples
Christian Urban <urbanc@in.tum.de>
parents: 2454
diff changeset
    38
thm trm.strong_exhaust
e44551d067e6 properly exported strong exhaust theorem; cleaned up some examples
Christian Urban <urbanc@in.tum.de>
parents: 2454
diff changeset
    39
thm trm.strong_exhaust[simplified]
2436
3885dc2669f9 cleaned up (almost completely) the examples
Christian Urban <urbanc@in.tum.de>
parents: 2434
diff changeset
    40
thm trm.fv_defs
3885dc2669f9 cleaned up (almost completely) the examples
Christian Urban <urbanc@in.tum.de>
parents: 2434
diff changeset
    41
thm trm.bn_defs
3885dc2669f9 cleaned up (almost completely) the examples
Christian Urban <urbanc@in.tum.de>
parents: 2434
diff changeset
    42
thm trm.perm_simps
3885dc2669f9 cleaned up (almost completely) the examples
Christian Urban <urbanc@in.tum.de>
parents: 2434
diff changeset
    43
thm trm.eq_iff
3885dc2669f9 cleaned up (almost completely) the examples
Christian Urban <urbanc@in.tum.de>
parents: 2434
diff changeset
    44
thm trm.fv_bn_eqvt
3885dc2669f9 cleaned up (almost completely) the examples
Christian Urban <urbanc@in.tum.de>
parents: 2434
diff changeset
    45
thm trm.size_eqvt
2617
e44551d067e6 properly exported strong exhaust theorem; cleaned up some examples
Christian Urban <urbanc@in.tum.de>
parents: 2454
diff changeset
    46
thm trm.supp
e44551d067e6 properly exported strong exhaust theorem; cleaned up some examples
Christian Urban <urbanc@in.tum.de>
parents: 2454
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
2913
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    49
lemma Abs_set_fcb2:
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    50
  fixes as bs :: "atom set"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    51
    and x y :: "'b :: fs"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    52
    and c::"'c::fs"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    53
  assumes eq: "[as]set. x = [bs]set. y"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    54
  and fin: "finite as" "finite bs"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    55
  and fcb1: "as \<sharp>* f as x c"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    56
  and fresh1: "as \<sharp>* c"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    57
  and fresh2: "bs \<sharp>* c"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    58
  and perm1: "\<And>p. supp p \<sharp>* c \<Longrightarrow> p \<bullet> (f as x c) = f (p \<bullet> as) (p \<bullet> x) c"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    59
  and perm2: "\<And>p. supp p \<sharp>* c \<Longrightarrow> p \<bullet> (f bs y c) = f (p \<bullet> bs) (p \<bullet> y) c"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    60
  shows "f as x c = f bs y c"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    61
proof -
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    62
  have "supp (as, x, c) supports (f as x c)"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    63
    unfolding  supports_def fresh_def[symmetric]
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    64
    by (simp add: fresh_Pair perm1 fresh_star_def supp_swap swap_fresh_fresh)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    65
  then have fin1: "finite (supp (f as x c))"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    66
    using fin by (auto intro: supports_finite simp add: finite_supp supp_of_finite_sets supp_Pair)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    67
  have "supp (bs, y, c) supports (f bs y c)"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    68
    unfolding  supports_def fresh_def[symmetric]
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    69
    by (simp add: fresh_Pair perm2 fresh_star_def supp_swap swap_fresh_fresh)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    70
  then have fin2: "finite (supp (f bs y c))"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    71
    using fin by (auto intro: supports_finite simp add: finite_supp supp_of_finite_sets supp_Pair)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    72
  obtain q::"perm" where 
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    73
    fr1: "(q \<bullet> as) \<sharp>* (x, c, f as x c, f bs y c)" and 
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    74
    fr2: "supp q \<sharp>* ([as]set. x)" and 
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    75
    inc: "supp q \<subseteq> as \<union> (q \<bullet> as)"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    76
    using at_set_avoiding3[where xs="as" and c="(x, c, f as x c, f bs y c)" and x="[as]set. x"]  
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    77
      fin1 fin2 fin
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    78
    by (auto simp add: supp_Pair finite_supp Abs_fresh_star dest: fresh_star_supp_conv)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    79
  have "[q \<bullet> as]set. (q \<bullet> x) = q \<bullet> ([as]set. x)" by simp
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    80
  also have "\<dots> = [as]set. x"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    81
    by (simp only: fr2 perm_supp_eq)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    82
  finally have "[q \<bullet> as]set. (q \<bullet> x) = [bs]set. y" using eq by simp
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    83
  then obtain r::perm where 
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    84
    qq1: "q \<bullet> x = r \<bullet> y" and 
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    85
    qq2: "q \<bullet> as = r \<bullet> bs" and 
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    86
    qq3: "supp r \<subseteq> (q \<bullet> as) \<union> bs"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    87
    apply(drule_tac sym)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    88
    apply(simp only: Abs_eq_iff2 alphas)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    89
    apply(erule exE)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    90
    apply(erule conjE)+
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    91
    apply(drule_tac x="p" in meta_spec)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    92
    apply(simp add: set_eqvt)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    93
    apply(blast)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    94
    done
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    95
  have "as \<sharp>* f as x c" by (rule fcb1)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    96
  then have "q \<bullet> (as \<sharp>* f as x c)"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    97
    by (simp add: permute_bool_def)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    98
  then have "(q \<bullet> as) \<sharp>* f (q \<bullet> as) (q \<bullet> x) c"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
    99
    apply(simp add: fresh_star_eqvt set_eqvt)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   100
    apply(subst (asm) perm1)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   101
    using inc fresh1 fr1
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   102
    apply(auto simp add: fresh_star_def fresh_Pair)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   103
    done
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   104
  then have "(r \<bullet> bs) \<sharp>* f (r \<bullet> bs) (r \<bullet> y) c" using qq1 qq2 by simp
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   105
  then have "r \<bullet> (bs \<sharp>* f bs y c)"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   106
    apply(simp add: fresh_star_eqvt set_eqvt)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   107
    apply(subst (asm) perm2[symmetric])
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   108
    using qq3 fresh2 fr1
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   109
    apply(auto simp add: set_eqvt fresh_star_def fresh_Pair)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   110
    done
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   111
  then have fcb2: "bs \<sharp>* f bs y c" by (simp add: permute_bool_def)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   112
  have "f as x c = q \<bullet> (f as x c)"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   113
    apply(rule perm_supp_eq[symmetric])
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   114
    using inc fcb1 fr1 by (auto simp add: fresh_star_def)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   115
  also have "\<dots> = f (q \<bullet> as) (q \<bullet> x) c" 
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   116
    apply(rule perm1)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   117
    using inc fresh1 fr1 by (auto simp add: fresh_star_def)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   118
  also have "\<dots> = f (r \<bullet> bs) (r \<bullet> y) c" using qq1 qq2 by simp
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   119
  also have "\<dots> = r \<bullet> (f bs y c)"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   120
    apply(rule perm2[symmetric])
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   121
    using qq3 fresh2 fr1 by (auto simp add: fresh_star_def)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   122
  also have "... = f bs y c"
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   123
    apply(rule perm_supp_eq)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   124
    using qq3 fr1 fcb2 by (auto simp add: fresh_star_def)
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   125
  finally show ?thesis by simp
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   126
qed
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   127
2914
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   128
lemma Abs_res_fcb2:
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   129
  fixes as bs :: "atom set"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   130
    and x y :: "'b :: fs"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   131
    and c::"'c::fs"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   132
  assumes eq: "[as]res. x = [bs]res. y"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   133
  and fin: "finite as" "finite bs"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   134
  and fcb1: "as \<sharp>* f as x c"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   135
  and fresh1: "as \<sharp>* c"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   136
  and fresh2: "bs \<sharp>* c"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   137
  and perm1: "\<And>p. supp p \<sharp>* c \<Longrightarrow> p \<bullet> (f as x c) = f (p \<bullet> as) (p \<bullet> x) c"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   138
  and perm2: "\<And>p. supp p \<sharp>* c \<Longrightarrow> p \<bullet> (f bs y c) = f (p \<bullet> bs) (p \<bullet> y) c"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   139
  shows "f as x c = f bs y c"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   140
proof -
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   141
  have "supp (as, x, c) supports (f as x c)"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   142
    unfolding  supports_def fresh_def[symmetric]
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   143
    by (simp add: fresh_Pair perm1 fresh_star_def supp_swap swap_fresh_fresh)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   144
  then have fin1: "finite (supp (f as x c))"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   145
    using fin by (auto intro: supports_finite simp add: finite_supp supp_of_finite_sets supp_Pair)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   146
  have "supp (bs, y, c) supports (f bs y c)"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   147
    unfolding  supports_def fresh_def[symmetric]
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   148
    by (simp add: fresh_Pair perm2 fresh_star_def supp_swap swap_fresh_fresh)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   149
  then have fin2: "finite (supp (f bs y c))"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   150
    using fin by (auto intro: supports_finite simp add: finite_supp supp_of_finite_sets supp_Pair)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   151
  obtain q::"perm" where 
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   152
    fr1: "(q \<bullet> as) \<sharp>* (x, c, f as x c, f bs y c)" and 
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   153
    fr2: "supp q \<sharp>* ([as]res. x)" and 
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   154
    inc: "supp q \<subseteq> as \<union> (q \<bullet> as)"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   155
    using at_set_avoiding3[where xs="as" and c="(x, c, f as x c, f bs y c)" and x="[as]res. x"]  
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   156
      fin1 fin2 fin
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   157
    by (auto simp add: supp_Pair finite_supp Abs_fresh_star dest: fresh_star_supp_conv)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   158
  have "[q \<bullet> as]res. (q \<bullet> x) = q \<bullet> ([as]res. x)" by simp
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   159
  also have "\<dots> = [as]res. x"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   160
    by (simp only: fr2 perm_supp_eq)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   161
  finally have "[q \<bullet> as]res. (q \<bullet> x) = [bs]res. y" using eq by simp
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   162
  then obtain r::perm where 
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   163
    qq1: "q \<bullet> x = r \<bullet> y" and 
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   164
    qq2: "(q \<bullet> as \<inter> supp (q \<bullet> x)) = r \<bullet> (bs \<inter> supp y)" and 
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   165
    qq3: "supp r \<subseteq> bs \<inter> supp y \<union> q \<bullet> as \<inter> supp (q \<bullet> x)"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   166
    apply(drule_tac sym)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   167
    apply(subst(asm) Abs_eq_res_set)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   168
    apply(simp only: Abs_eq_iff2 alphas)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   169
    apply(erule exE)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   170
    apply(erule conjE)+
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   171
    apply(drule_tac x="p" in meta_spec)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   172
    apply(simp add: set_eqvt)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   173
    done
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   174
  have "(as \<inter> supp x) \<sharp>* f (as \<inter> supp x) x c" sorry (* FCB? *)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   175
  then have "q \<bullet> ((as \<inter> supp x) \<sharp>* f (as \<inter> supp x) x c)"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   176
    by (simp add: permute_bool_def)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   177
  then have "(q \<bullet> (as \<inter> supp x)) \<sharp>* f (q \<bullet> (as \<inter> supp x)) (q \<bullet> x) c"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   178
    apply(simp add: fresh_star_eqvt set_eqvt)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   179
    sorry (* perm? *)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   180
  then have "r \<bullet> (bs \<inter> supp y) \<sharp>* f (r \<bullet> (bs \<inter> supp y)) (r \<bullet> y) c" using qq2 apply (simp add: inter_eqvt)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   181
  (* rest similar reversing it other way around... *)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   182
  show ?thesis sorry
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   183
qed
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   184
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   185
2913
bc86f5c3bc65 proved the fcb also for sets (no restriction yet)
Christian Urban <urbanc@in.tum.de>
parents: 2911
diff changeset
   186
2903
e26c6c728b9e only one of the fcb precondistions are needed (probably the same with the perm-conditions)
Christian Urban <urbanc@in.tum.de>
parents: 2902
diff changeset
   187
lemma Abs_lst_fcb2:
e26c6c728b9e only one of the fcb precondistions are needed (probably the same with the perm-conditions)
Christian Urban <urbanc@in.tum.de>
parents: 2902
diff changeset
   188
  fixes as bs :: "atom list"
e26c6c728b9e only one of the fcb precondistions are needed (probably the same with the perm-conditions)
Christian Urban <urbanc@in.tum.de>
parents: 2902
diff changeset
   189
    and x y :: "'b :: fs"
e26c6c728b9e only one of the fcb precondistions are needed (probably the same with the perm-conditions)
Christian Urban <urbanc@in.tum.de>
parents: 2902
diff changeset
   190
    and c::"'c::fs"
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   191
  assumes eq: "[as]lst. x = [bs]lst. y"
2903
e26c6c728b9e only one of the fcb precondistions are needed (probably the same with the perm-conditions)
Christian Urban <urbanc@in.tum.de>
parents: 2902
diff changeset
   192
  and fcb1: "(set as) \<sharp>* f as x c"
e26c6c728b9e only one of the fcb precondistions are needed (probably the same with the perm-conditions)
Christian Urban <urbanc@in.tum.de>
parents: 2902
diff changeset
   193
  and fresh1: "set as \<sharp>* c"
e26c6c728b9e only one of the fcb precondistions are needed (probably the same with the perm-conditions)
Christian Urban <urbanc@in.tum.de>
parents: 2902
diff changeset
   194
  and fresh2: "set bs \<sharp>* c"
e26c6c728b9e only one of the fcb precondistions are needed (probably the same with the perm-conditions)
Christian Urban <urbanc@in.tum.de>
parents: 2902
diff changeset
   195
  and perm1: "\<And>p. supp p \<sharp>* c \<Longrightarrow> p \<bullet> (f as x c) = f (p \<bullet> as) (p \<bullet> x) c"
e26c6c728b9e only one of the fcb precondistions are needed (probably the same with the perm-conditions)
Christian Urban <urbanc@in.tum.de>
parents: 2902
diff changeset
   196
  and perm2: "\<And>p. supp p \<sharp>* c \<Longrightarrow> p \<bullet> (f bs y c) = f (p \<bullet> bs) (p \<bullet> y) c"
e26c6c728b9e only one of the fcb precondistions are needed (probably the same with the perm-conditions)
Christian Urban <urbanc@in.tum.de>
parents: 2902
diff changeset
   197
  shows "f as x c = f bs y c"
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   198
proof -
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   199
  have "supp (as, x, c) supports (f as x c)"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   200
    unfolding  supports_def fresh_def[symmetric]
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   201
    by (simp add: fresh_Pair perm1 fresh_star_def supp_swap swap_fresh_fresh)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   202
  then have fin1: "finite (supp (f as x c))"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   203
    by (auto intro: supports_finite simp add: finite_supp)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   204
  have "supp (bs, y, c) supports (f bs y c)"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   205
    unfolding  supports_def fresh_def[symmetric]
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   206
    by (simp add: fresh_Pair perm2 fresh_star_def supp_swap swap_fresh_fresh)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   207
  then have fin2: "finite (supp (f bs y c))"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   208
    by (auto intro: supports_finite simp add: finite_supp)
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   209
  obtain q::"perm" where 
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   210
    fr1: "(q \<bullet> (set as)) \<sharp>* (x, c, f as x c, f bs y c)" and 
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   211
    fr2: "supp q \<sharp>* Abs_lst as x" and 
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   212
    inc: "supp q \<subseteq> (set as) \<union> q \<bullet> (set as)"
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   213
    using at_set_avoiding3[where xs="set as" and c="(x, c, f as x c, f bs y c)" and x="[as]lst. x"]  
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   214
      fin1 fin2
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   215
    by (auto simp add: supp_Pair finite_supp Abs_fresh_star dest: fresh_star_supp_conv)
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   216
  have "Abs_lst (q \<bullet> as) (q \<bullet> x) = q \<bullet> Abs_lst as x" by simp
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   217
  also have "\<dots> = Abs_lst as x"
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   218
    by (simp only: fr2 perm_supp_eq)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   219
  finally have "Abs_lst (q \<bullet> as) (q \<bullet> x) = Abs_lst bs y" using eq by simp
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   220
  then obtain r::perm where 
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   221
    qq1: "q \<bullet> x = r \<bullet> y" and 
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   222
    qq2: "q \<bullet> as = r \<bullet> bs" and 
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   223
    qq3: "supp r \<subseteq> (q \<bullet> (set as)) \<union> set bs"
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   224
    apply(drule_tac sym)
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   225
    apply(simp only: Abs_eq_iff2 alphas)
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   226
    apply(erule exE)
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   227
    apply(erule conjE)+
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   228
    apply(drule_tac x="p" in meta_spec)
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   229
    apply(simp add: set_eqvt)
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   230
    apply(blast)
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   231
    done
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   232
  have "(set as) \<sharp>* f as x c" by (rule fcb1)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   233
  then have "q \<bullet> ((set as) \<sharp>* f as x c)"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   234
    by (simp add: permute_bool_def)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   235
  then have "set (q \<bullet> as) \<sharp>* f (q \<bullet> as) (q \<bullet> x) c"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   236
    apply(simp add: fresh_star_eqvt set_eqvt)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   237
    apply(subst (asm) perm1)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   238
    using inc fresh1 fr1
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   239
    apply(auto simp add: fresh_star_def fresh_Pair)
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   240
    done
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   241
  then have "set (r \<bullet> bs) \<sharp>* f (r \<bullet> bs) (r \<bullet> y) c" using qq1 qq2 by simp
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   242
  then have "r \<bullet> ((set bs) \<sharp>* f bs y c)"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   243
    apply(simp add: fresh_star_eqvt set_eqvt)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   244
    apply(subst (asm) perm2[symmetric])
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   245
    using qq3 fresh2 fr1
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   246
    apply(auto simp add: set_eqvt fresh_star_def fresh_Pair)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   247
    done
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   248
  then have fcb2: "(set bs) \<sharp>* f bs y c" by (simp add: permute_bool_def)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   249
  have "f as x c = q \<bullet> (f as x c)"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   250
    apply(rule perm_supp_eq[symmetric])
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   251
    using inc fcb1 fr1 by (auto simp add: fresh_star_def)
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   252
  also have "\<dots> = f (q \<bullet> as) (q \<bullet> x) c" 
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   253
    apply(rule perm1)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   254
    using inc fresh1 fr1 by (auto simp add: fresh_star_def)
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   255
  also have "\<dots> = f (r \<bullet> bs) (r \<bullet> y) c" using qq1 qq2 by simp
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   256
  also have "\<dots> = r \<bullet> (f bs y c)"
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   257
    apply(rule perm2[symmetric])
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   258
    using qq3 fresh2 fr1 by (auto simp add: fresh_star_def)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   259
  also have "... = f bs y c"
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   260
    apply(rule perm_supp_eq)
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   261
    using qq3 fr1 fcb2 by (auto simp add: fresh_star_def)
2909
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   262
  finally show ?thesis by simp
de5c9a0040ec fcb for multible (list) binders; at the moment all of them have to have the same sort (at-class); this should also work for set binders, but not yet for restriction.
Christian Urban <urbanc@in.tum.de>
parents: 2904
diff changeset
   263
qed
2892
a9f3600c9ae6 Speed-up the completeness proof.
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2891
diff changeset
   264
2911
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   265
lemma Abs_lst1_fcb2:
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   266
  fixes a b :: "atom"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   267
    and x y :: "'b :: fs"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   268
    and c::"'c :: fs"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   269
  assumes e: "(Abs_lst [a] x) = (Abs_lst [b] y)"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   270
  and fcb1: "a \<sharp> f a x c"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   271
  and fresh: "{a, b} \<sharp>* c"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   272
  and perm1: "\<And>p. supp p \<sharp>* c \<Longrightarrow> p \<bullet> (f a x c) = f (p \<bullet> a) (p \<bullet> x) c"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   273
  and perm2: "\<And>p. supp p \<sharp>* c \<Longrightarrow> p \<bullet> (f b y c) = f (p \<bullet> b) (p \<bullet> y) c"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   274
  shows "f a x c = f b y c"
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   275
using e
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   276
apply(drule_tac Abs_lst_fcb2[where c="c" and f="\<lambda>(as::atom list) . f (hd as)"])
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   277
apply(simp_all)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   278
using fcb1 fresh perm1 perm2
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   279
apply(simp_all add: fresh_star_def)
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   280
done
567967bc94cc streamlined the fcb-proof and made fcb1 a special case of fcb
Christian Urban <urbanc@in.tum.de>
parents: 2910
diff changeset
   281
2904
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   282
lemma supp_zero_perm_zero:
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   283
  shows "supp (p :: perm) = {} \<longleftrightarrow> p = 0"
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   284
  by (metis supp_perm_singleton supp_zero_perm)
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   285
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   286
lemma permute_atom_list_id:
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   287
  shows "p \<bullet> l = l \<longleftrightarrow> supp p \<inter> set l = {}"
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   288
  by (induct l) (auto simp add: supp_Nil supp_perm)
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   289
2914
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   290
lemma permute_length_eq:
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   291
  shows "p \<bullet> xs = ys \<Longrightarrow> length xs = length ys"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   292
  by (auto simp add: length_eqvt[symmetric] permute_pure)
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   293
2904
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   294
lemma Abs_lst_binder_length:
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   295
  shows "[xs]lst. T = [ys]lst. S \<Longrightarrow> length xs = length ys"
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   296
  by (auto simp add: Abs_eq_iff alphas length_eqvt[symmetric] permute_pure)
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   297
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   298
lemma Abs_lst_binder_eq:
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   299
  shows "Abs_lst l T = Abs_lst l S \<longleftrightarrow> T = S"
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   300
  by (rule, simp_all add: Abs_eq_iff2 alphas)
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   301
     (metis fresh_star_zero inf_absorb1 permute_atom_list_id supp_perm_eq
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   302
       supp_zero_perm_zero)
eb322a392461 equality of lst_binder and a few helper lemmas
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2903
diff changeset
   303
2914
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   304
lemma in_permute_list:
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   305
  shows "py \<bullet> p \<bullet> xs = px \<bullet> xs \<Longrightarrow>  x \<in> set xs \<Longrightarrow> py \<bullet> p \<bullet> x = px \<bullet> x"
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   306
  by (induct xs) auto
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   307
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   308
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   309
db0786a521fd Experiments with res
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2913
diff changeset
   310
2899
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   311
nominal_primrec 
2889
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   312
  crename :: "trm \<Rightarrow> coname \<Rightarrow> coname \<Rightarrow> trm"  ("_[_\<turnstile>c>_]" [100,100,100] 100) 
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   313
where
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   314
  "(Ax x a)[d\<turnstile>c>e] = (if a=d then Ax x e else Ax x a)" 
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   315
| "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])" 
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   316
| "(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)" 
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   317
| "atom a \<sharp> (d, e) \<Longrightarrow> (NotL <a>.M x)[d\<turnstile>c>e] = (NotL <a>.(M[d\<turnstile>c>e]) x)" 
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   318
| "\<lbrakk>atom a \<sharp> (d, e); atom b \<sharp> (d, e)\<rbrakk> \<Longrightarrow> (AndR <a>.M <b>.N c)[d\<turnstile>c>e] = 
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   319
          (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)" 
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   320
| "(AndL1 (x).M y)[d\<turnstile>c>e] = AndL1 (x).(M[d\<turnstile>c>e]) y"
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   321
| "(AndL2 (x).M y)[d\<turnstile>c>e] = AndL2 (x).(M[d\<turnstile>c>e]) y"
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   322
| "atom a \<sharp> (d, e) \<Longrightarrow> (OrR1 <a>.M b)[d\<turnstile>c>e] = 
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   323
          (if b=d then OrR1 <a>.(M[d\<turnstile>c>e]) e else OrR1 <a>.(M[d\<turnstile>c>e]) b)"
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   324
| "atom a \<sharp> (d, e) \<Longrightarrow> (OrR2 <a>.M b)[d\<turnstile>c>e] = 
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   325
          (if b=d then OrR2 <a>.(M[d\<turnstile>c>e]) e else OrR2 <a>.(M[d\<turnstile>c>e]) b)"
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   326
| "(OrL (x).M (y).N z)[d\<turnstile>c>e] = OrL (x).(M[d\<turnstile>c>e]) (y).(N[d\<turnstile>c>e]) z"
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   327
| "atom a \<sharp> (d, e) \<Longrightarrow> (ImpR (x).<a>.M b)[d\<turnstile>c>e] = 
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   328
          (if b=d then ImpR (x).<a>.(M[d\<turnstile>c>e]) e else ImpR (x).<a>.(M[d\<turnstile>c>e]) b)"
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   329
| "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"
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   330
  apply(simp only: eqvt_def)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   331
  apply(simp only: crename_graph_def)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   332
  apply (rule, perm_simp, rule)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   333
  apply(rule TrueI)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   334
  -- "covered all cases"
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   335
  apply(case_tac x)
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   336
  apply(rule_tac y="a" and c="(b, c)" in trm.strong_exhaust)
2892
a9f3600c9ae6 Speed-up the completeness proof.
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2891
diff changeset
   337
  apply (simp_all add: fresh_star_def)[12]
a9f3600c9ae6 Speed-up the completeness proof.
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2891
diff changeset
   338
  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>
parents: 2889
diff changeset
   339
  -- "compatibility"
2889
0435c4dfd6f6 expanded the example
Christian Urban <urbanc@in.tum.de>
parents: 2617
diff changeset
   340
  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>
parents: 2889
diff changeset
   341
  apply(rule conjI)
2892
a9f3600c9ae6 Speed-up the completeness proof.
Cezary Kaliszyk <kaliszyk@in.tum.de>
parents: 2891
diff changeset
   342
  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>
parents: 2899
diff changeset
   343
  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>
parents: 2889
diff changeset
   344
  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>
parents: 2899
diff changeset
   345
  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>
parents: 2899
diff changeset
   346
  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>
parents: 2899
diff changeset
   347
  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>
parents: 2892
diff changeset
   348
  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>
parents: 2899
diff changeset
   349
  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>
parents: 2892
diff changeset
   350
  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>
parents: 2899
diff changeset
   351
  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>
parents: 2899
diff changeset
   352
  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>
parents: 2899
diff changeset
   353
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
2901
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   354
  apply(elim conjE)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   355
  apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   356
  apply(subgoal_tac "eqvt_at crename_sumC (Ma, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   357
  apply(erule Abs_lst1_fcb2)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   358
  apply(simp add: Abs_fresh_iff)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   359
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   360
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   361
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   362
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   363
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   364
  apply(elim conjE)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   365
  apply(erule_tac c="(da,ea)" in Abs_lst1_fcb2)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   366
  apply(simp add: Abs_fresh_iff)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   367
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   368
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   369
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   370
  apply(rule conjI)
2899
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   371
  apply(elim conjE)
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   372
  apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
2901
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   373
  apply(subgoal_tac "eqvt_at crename_sumC (Ma, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   374
  apply(erule Abs_lst1_fcb2)
2899
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   375
  apply(simp add: Abs_fresh_iff)
2901
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   376
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   377
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   378
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   379
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   380
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   381
  apply(erule conjE)+
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   382
  apply(subgoal_tac "eqvt_at crename_sumC (N, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   383
  apply(subgoal_tac "eqvt_at crename_sumC (Na, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   384
  apply(erule Abs_lst1_fcb2)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   385
  apply(simp add: Abs_fresh_iff)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   386
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   387
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   388
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   389
  apply(blast)
2899
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   390
  apply(blast)
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   391
  apply(elim conjE)
2901
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   392
  apply(erule_tac c="(da,ea)" in Abs_lst1_fcb2)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   393
  apply(simp add: Abs_fresh_iff)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   394
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   395
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   396
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   397
  apply(elim conjE)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   398
  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>
parents: 2892
diff changeset
   399
  apply(simp add: Abs_fresh_iff)
2901
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   400
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   401
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   402
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   403
  apply(elim conjE)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   404
  apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   405
  apply(subgoal_tac "eqvt_at crename_sumC (Ma, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   406
  apply(erule Abs_lst1_fcb2)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   407
  apply(simp add: Abs_fresh_iff)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   408
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   409
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   410
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   411
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   412
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   413
  apply(erule conjE)+
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   414
  apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   415
  apply(subgoal_tac "eqvt_at crename_sumC (Ma, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   416
  apply(erule Abs_lst1_fcb2)
2899
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   417
  apply(simp add: Abs_fresh_iff)
2901
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   418
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   419
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   420
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   421
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   422
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   423
  apply(rule conjI)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   424
  apply(erule conjE)+
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   425
  apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   426
  apply(subgoal_tac "eqvt_at crename_sumC (Ma, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   427
  apply(erule Abs_lst1_fcb2)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   428
  apply(simp add: Abs_fresh_iff)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   429
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   430
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   431
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   432
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   433
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   434
  apply(erule conjE)+
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   435
  apply(subgoal_tac "eqvt_at crename_sumC (N, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   436
  apply(subgoal_tac "eqvt_at crename_sumC (Na, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   437
  apply(erule Abs_lst1_fcb2)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   438
  apply(simp add: Abs_fresh_iff)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   439
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   440
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   441
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   442
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   443
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   444
  defer
2899
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   445
  apply(erule conjE)+
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   446
  apply(rule conjI)
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   447
  apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
2901
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   448
  apply(subgoal_tac "eqvt_at crename_sumC (Ma, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   449
  apply(erule Abs_lst1_fcb2)
2899
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   450
  apply(simp add: Abs_fresh_iff)
2901
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   451
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   452
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   453
  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>
parents: 2892
diff changeset
   454
  apply(blast)
2901
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   455
  apply(blast)  
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   456
  apply(subgoal_tac "eqvt_at crename_sumC (N, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   457
  apply(subgoal_tac "eqvt_at crename_sumC (Na, da, ea)")
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   458
  apply(erule Abs_lst1_fcb2)
2899
fe290b4e508f except for the interated binder case, finished definition in Calssical.thy
Christian Urban <urbanc@in.tum.de>
parents: 2892
diff changeset
   459
  apply(simp add: Abs_fresh_iff)
2901
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   460
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   461
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   462
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   463
  apply(blast)
754aa24006c8 did all cases, except the multiple binder case
Christian Urban <urbanc@in.tum.de>
parents: 2900
diff changeset
   464
  apply(blast)
2910
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   465
  apply(subgoal_tac "eqvt_at crename_sumC (M, da, ea)")
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   466
  apply(subgoal_tac "eqvt_at crename_sumC (Ma, da, ea)")
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   467
  apply(erule conjE)+
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   468
  apply(erule Abs_lst_fcb2)
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   469
  apply(simp add: Abs_fresh_star)
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   470
  apply(simp add: Abs_fresh_star)
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   471
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   472
  apply(simp add: fresh_at_base fresh_star_def fresh_Pair)
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   473
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   474
  apply(simp add: eqvt_at_def atom_eqvt fresh_star_Pair perm_supp_eq)
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   475
  apply(blast)
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   476
  apply(blast)
ae6455351572 completed proof in Classical; the fcb lemma works for any list of atoms (despite what was written earlier)
Christian Urban <urbanc@in.tum.de>
parents: 2909
diff changeset
   477
  done
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
   478
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
   479
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
   480
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
   481
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
   482