equal
deleted
inserted
replaced
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 |