Moving wrappers out of Lift.
authorCezary Kaliszyk <kaliszyk@in.tum.de>
Tue, 02 Mar 2010 15:10:47 +0100
changeset 1308 80dabcaafc38
parent 1304 dc65319809cc
child 1309 b395b902cf0d
Moving wrappers out of Lift.
Nominal/Fv.thy
Nominal/Rsp.thy
--- a/Nominal/Fv.thy	Tue Mar 02 14:51:40 2010 +0100
+++ b/Nominal/Fv.thy	Tue Mar 02 15:10:47 2010 +0100
@@ -443,4 +443,13 @@
 1 *})
 done*)
 
+ML {*
+fun dtyp_no_of_typ _ (TFree (n, _)) = error "dtyp_no_of_typ: Illegal free"
+  | dtyp_no_of_typ _ (TVar _) = error "dtyp_no_of_typ: Illegal schematic"
+  | dtyp_no_of_typ dts (Type (tname, Ts)) =
+      case try (find_index (curry op = tname o fst)) dts of
+        NONE => error "dtyp_no_of_typ: Illegal recursion"
+      | SOME i => i
+*}
+
 end
--- a/Nominal/Rsp.thy	Tue Mar 02 14:51:40 2010 +0100
+++ b/Nominal/Rsp.thy	Tue Mar 02 15:10:47 2010 +0100
@@ -175,4 +175,9 @@
 end
 *}
 
+ML {*
+fun build_bv_eqvt perms simps inducts (t, n) =
+  build_eqvts Binding.empty [t] [nth perms n] simps (nth inducts n)
+*}
+
 end