proper term operation Term.dest_abs;
authorwenzelm
Mon, 04 Oct 2021 19:12:24 +0200
changeset 74447 5f9c51c2fc0a
parent 74446 2fdf37577f7b
child 74448 2fd74a2c4e1c
proper term operation Term.dest_abs;
src/Tools/Code/code_thingol.ML
--- a/src/Tools/Code/code_thingol.ML	Mon Oct 04 18:19:16 2021 +0200
+++ b/src/Tools/Code/code_thingol.ML	Mon Oct 04 19:12:24 2021 +0200
@@ -622,7 +622,7 @@
       pair (IVar (SOME v))
   | translate_term ctxt algbr eqngr permissive some_thm (Abs (v, ty, t), some_abs) =
       let
-        val (v', t') = Syntax_Trans.variant_abs (Name.desymbolize (SOME false) v, ty, t);
+        val (v', t') = Term.dest_abs (Name.desymbolize (SOME false) v, ty, t);
         val v'' = if Term.used_free v' t' then SOME v' else NONE
       in
         translate_typ ctxt algbr eqngr permissive ty