src/HOL/Tools/Nitpick/nitpick_hol.ML
changeset 47990 7a642e5c272c
parent 47909 5f1afeebafbc
child 48811 d1688612668d
equal deleted inserted replaced
47989:1e790c27162d 47990:7a642e5c272c
  1731         SOME s' =>
  1731         SOME s' =>
  1732         do_const (depth + 1) Ts (list_comb (Const (s', T), ts)) (s', T) ts
  1732         do_const (depth + 1) Ts (list_comb (Const (s', T), ts)) (s', T) ts
  1733       | NONE =>
  1733       | NONE =>
  1734         let
  1734         let
  1735           fun def_inline_threshold () =
  1735           fun def_inline_threshold () =
  1736             if is_boolean_type (nth_range_type (length ts) T) andalso
  1736             if is_boolean_type (body_type T) andalso
  1737                total_consts <> SOME true then
  1737                total_consts <> SOME true then
  1738               def_inline_threshold_for_booleans
  1738               def_inline_threshold_for_booleans
  1739             else
  1739             else
  1740               def_inline_threshold_for_non_booleans
  1740               def_inline_threshold_for_non_booleans
  1741           val (const, ts) =
  1741           val (const, ts) =