src/HOL/Analysis/measurable.ML
changeset 81954 6f2bcdfa9a19
parent 78801 42ae6e0ecfd4
--- a/src/HOL/Analysis/measurable.ML	Wed Jan 22 21:35:05 2025 +0100
+++ b/src/HOL/Analysis/measurable.ML	Wed Jan 22 22:22:19 2025 +0100
@@ -125,7 +125,7 @@
   | _ => raise (TERM ("not a measurability predicate", [t])))
 
 fun not_measurable_prop n thm =
-  if length (Thm.prems_of thm) < n then false
+  if Thm.nprems_of thm < n then false
   else
     (case nth_hol_goal thm n of
       \<^Const_>\<open>Set.member _ for _ \<^Const_>\<open>sets _ for _\<close>\<close> => false