src/HOL/Tools/Predicate_Compile/predicate_compile_core.ML
changeset 45906 0aaeb5520f2f
parent 45891 d73605c829cc
child 46219 426ed18eba43
equal deleted inserted replaced
45905:02cc5fa9c5f1 45906:0aaeb5520f2f
   845     val T = fastype_of t
   845     val T = fastype_of t
   846   in
   846   in
   847     case T of
   847     case T of
   848       TFree _ => NONE
   848       TFree _ => NONE
   849     | Type (Tcon, _) =>
   849     | Type (Tcon, _) =>
   850       (case Datatype_Data.get_constrs (Proof_Context.theory_of ctxt) Tcon of
   850       (case Datatype.get_constrs (Proof_Context.theory_of ctxt) Tcon of
   851         NONE => NONE
   851         NONE => NONE
   852       | SOME cs =>
   852       | SOME cs =>
   853         (case strip_comb t of
   853         (case strip_comb t of
   854           (Var _, []) => NONE
   854           (Var _, []) => NONE
   855         | (Free _, []) => NONE
   855         | (Free _, []) => NONE