Quot/Examples/LamEx.thy
changeset 758 3104d62e7a16
parent 705 f51c6069cd17
child 766 df053507edba
--- a/Quot/Examples/LamEx.thy	Wed Dec 16 14:28:48 2009 +0100
+++ b/Quot/Examples/LamEx.thy	Thu Dec 17 14:58:33 2009 +0100
@@ -1,5 +1,5 @@
 theory LamEx
-imports Nominal "../QuotList"
+imports Nominal "../QuotMain" "../QuotList"
 begin
 
 atom_decl name
@@ -165,46 +165,46 @@
 
 
 lemma pi_var: "(pi\<Colon>('x \<times> 'x) list) \<bullet> Var a = Var (pi \<bullet> a)"
-apply (tactic {* lift_tac @{context} @{thm pi_var_com} 1 *})
+apply (lifting pi_var_com)
 done
 
 lemma pi_app: "(pi\<Colon>('x \<times> 'x) list) \<bullet> App (x\<Colon>lam) (xa\<Colon>lam) = App (pi \<bullet> x) (pi \<bullet> xa)"
-apply (tactic {* lift_tac @{context} @{thm pi_app_com} 1 *})
+apply (lifting pi_app_com)
 done
 
 lemma pi_lam: "(pi\<Colon>('x \<times> 'x) list) \<bullet> Lam (a\<Colon>name) (x\<Colon>lam) = Lam (pi \<bullet> a) (pi \<bullet> x)"
-apply (tactic {* lift_tac @{context} @{thm pi_lam_com} 1 *})
+apply (lifting pi_lam_com)
 done
 
 lemma fv_var: "fv (Var (a\<Colon>name)) = {a}"
-apply (tactic {* lift_tac @{context} @{thm rfv_var} 1 *})
+apply (lifting rfv_var)
 done
 
 lemma fv_app: "fv (App (x\<Colon>lam) (xa\<Colon>lam)) = fv x \<union> fv xa"
-apply (tactic {* lift_tac @{context} @{thm rfv_app} 1 *})
+apply (lifting rfv_app)
 done
 
 lemma fv_lam: "fv (Lam (a\<Colon>name) (x\<Colon>lam)) = fv x - {a}"
-apply (tactic {* lift_tac @{context} @{thm rfv_lam} 1 *})
+apply (lifting rfv_lam)
 done
 
 lemma a1: "(a\<Colon>name) = (b\<Colon>name) \<Longrightarrow> Var a = Var b"
-apply (tactic {* lift_tac @{context} @{thm a1} 1 *})
+apply (lifting a1)
 done
 
 lemma a2: "\<lbrakk>(x\<Colon>lam) = (xa\<Colon>lam); (xb\<Colon>lam) = (xc\<Colon>lam)\<rbrakk> \<Longrightarrow> App x xb = App xa xc"
-apply (tactic {* lift_tac @{context} @{thm a2} 1 *})
+apply (lifting a2)
 done
 
 lemma a3: "\<lbrakk>(x\<Colon>lam) = [(a\<Colon>name, b\<Colon>name)] \<bullet> (xa\<Colon>lam); a \<notin> fv (Lam b x)\<rbrakk> \<Longrightarrow> Lam a x = Lam b xa"
-apply (tactic {* lift_tac @{context} @{thm a3} 1 *})
+apply (lifting a3)
 done
 
 lemma alpha_cases: "\<lbrakk>a1 = a2; \<And>a b. \<lbrakk>a1 = Var a; a2 = Var b; a = b\<rbrakk> \<Longrightarrow> P;
      \<And>x xa xb xc. \<lbrakk>a1 = App x xb; a2 = App xa xc; x = xa; xb = xc\<rbrakk> \<Longrightarrow> P;
      \<And>x a b xa. \<lbrakk>a1 = Lam a x; a2 = Lam b xa; x = [(a, b)] \<bullet> xa; a \<notin> fv (Lam b x)\<rbrakk> \<Longrightarrow> P\<rbrakk>
     \<Longrightarrow> P"
-apply (tactic {* lift_tac @{context} @{thm alpha.cases} 1 *})
+apply (lifting alpha.cases)
 done
 
 lemma alpha_induct: "\<lbrakk>(qx\<Colon>lam) = (qxa\<Colon>lam); \<And>(a\<Colon>name) b\<Colon>name. a = b \<Longrightarrow> (qxb\<Colon>lam \<Rightarrow> lam \<Rightarrow> bool) (Var a) (Var b);
@@ -212,16 +212,16 @@
      \<And>(x\<Colon>lam) (a\<Colon>name) (b\<Colon>name) xa\<Colon>lam.
         \<lbrakk>x = [(a, b)] \<bullet> xa; qxb x ([(a, b)] \<bullet> xa); a \<notin> fv (Lam b x)\<rbrakk> \<Longrightarrow> qxb (Lam a x) (Lam b xa)\<rbrakk>
     \<Longrightarrow> qxb qx qxa"
-apply (tactic {* lift_tac @{context} @{thm alpha.induct} 1 *})
+apply (lifting alpha.induct)
 done
 
 lemma var_inject: "(Var a = Var b) = (a = b)"
-apply (tactic {* lift_tac @{context} @{thm rvar_inject} 1 *})
+apply (lifting rvar_inject)
 done
 
 lemma lam_induct:" \<lbrakk>\<And>name. P (Var name); \<And>lam1 lam2. \<lbrakk>P lam1; P lam2\<rbrakk> \<Longrightarrow> P (App lam1 lam2);
               \<And>name lam. P lam \<Longrightarrow> P (Lam name lam)\<rbrakk> \<Longrightarrow> P lam"
-apply (tactic {* lift_tac @{context} @{thm rlam.induct} 1 *})
+apply (lifting rlam.induct)
 done
 
 lemma var_supp: