src/HOL/Tools/Nitpick/nitpick_hol.ML
changeset 65458 cf504b7a7aa7
parent 65049 928156a95e1a
child 67703 8c4806fe827f
equal deleted inserted replaced
65457:2bf0d2fcd506 65458:cf504b7a7aa7
  1358 
  1358 
  1359 fun all_nondefs_of ctxt subst =
  1359 fun all_nondefs_of ctxt subst =
  1360   ctxt |> Spec_Rules.get
  1360   ctxt |> Spec_Rules.get
  1361        |> filter (curry (op =) Spec_Rules.Unknown o fst)
  1361        |> filter (curry (op =) Spec_Rules.Unknown o fst)
  1362        |> maps (snd o snd)
  1362        |> maps (snd o snd)
  1363        |> filter_out (is_built_in_theory o Thm.theory_id_of_thm)
  1363        |> filter_out (is_built_in_theory o Thm.theory_id)
  1364        |> map (subst_atomic subst o Thm.prop_of)
  1364        |> map (subst_atomic subst o Thm.prop_of)
  1365 
  1365 
  1366 fun arity_of_built_in_const (s, T) =
  1366 fun arity_of_built_in_const (s, T) =
  1367   if s = @{const_name If} then
  1367   if s = @{const_name If} then
  1368     if nth_range_type 3 T = @{typ bool} then NONE else SOME 3
  1368     if nth_range_type 3 T = @{typ bool} then NONE else SOME 3