src/HOL/Tools/SMT/z3_isar.ML
changeset 74525 c960bfcb91db
parent 72355 1f959abe99d5
--- a/src/HOL/Tools/SMT/z3_isar.ML	Fri Oct 15 17:45:47 2021 +0200
+++ b/src/HOL/Tools/SMT/z3_isar.ML	Fri Oct 15 19:25:31 2021 +0200
@@ -62,10 +62,9 @@
           end
       end
 
-fun dest_alls (Const (\<^const_name>\<open>Pure.all\<close>, _) $ Abs (abs as (_, T, _))) =
-    let val (s', t') = Term.dest_abs abs in
-      dest_alls t' |>> cons (s', T)
-    end
+fun dest_alls \<^Const_>\<open>Pure.all _ for \<open>t as Abs _\<close>\<close> =
+    let val (v, t') = Term.dest_abs_global t
+    in dest_alls t' |>> cons v end
   | dest_alls t = ([], t)
 
 val reorder_foralls =