Nominal/Ex/Lambda_add.thy
changeset 2752 9f44608ea28d
parent 2739 b5ffcb30b6d0
child 2896 59be22e05a0a
--- a/Nominal/Ex/Lambda_add.thy	Thu Mar 31 15:25:35 2011 +0200
+++ b/Nominal/Ex/Lambda_add.thy	Wed Apr 06 13:47:08 2011 +0100
@@ -3,6 +3,15 @@
 begin
 
 nominal_primrec
+  addlam :: "lam \<Rightarrow> lam"
+where
+  "fv \<noteq> x \<Longrightarrow> addlam (Var x) = Lam [fv]. App (Var fv) (Var x)"
+| "addlam (App t1 t2) = App t1 t2"
+| "addlam (Lam [x]. t) = Lam [x].t"
+oops
+
+
+nominal_primrec
   addlam_pre :: "lam \<Rightarrow> lam \<Rightarrow> lam"
 where
   "fv \<noteq> x \<Longrightarrow> addlam_pre (Var x) (Lam [fv].it) = Lam [fv]. App (Var fv) (Var x)"