Nominal/Lift.thy
changeset 1497 1c9931e5039a
parent 1494 923413256cbb
child 1498 2ff84b1f551f
--- a/Nominal/Lift.thy	Thu Mar 18 07:43:44 2010 +0100
+++ b/Nominal/Lift.thy	Thu Mar 18 08:03:42 2010 +0100
@@ -27,5 +27,26 @@
 end
 *}
 
+ML {*
+fun define_fv_alpha_export dt binds bns ctxt =
+let
+  val (((fv_ts_loc, fv_def_loc), alpha), ctxt') =
+    define_fv_alpha dt binds bns ctxt;
+  val alpha_ts_loc = #preds alpha
+  val alpha_induct_loc = #induct alpha
+  val alpha_intros_loc = #intrs alpha;
+  val alpha_cases_loc = #elims alpha
+  val morphism = ProofContext.export_morphism ctxt' ctxt;
+  val fv_ts = map (Morphism.term morphism) fv_ts_loc;
+  val fv_def = Morphism.fact morphism fv_def_loc;
+  val alpha_ts = map (Morphism.term morphism) alpha_ts_loc;
+  val alpha_induct = Morphism.thm morphism alpha_induct_loc;
+  val alpha_intros = Morphism.fact morphism alpha_intros_loc
+  val alpha_cases = Morphism.fact morphism alpha_cases_loc
+in
+  (((fv_ts, fv_def), ((alpha_ts, alpha_intros), (alpha_cases, alpha_induct))), ctxt')
+end;
+*}
+
 end