src/HOL/Tools/TFL/casesplit.ML
changeset 58111 82db9ad610b9
parent 55236 8d61b0aa7a0d
child 58112 8081087096ad
equal deleted inserted replaced
58110:019c0211ed1f 58111:82db9ad610b9
    22     let
    22     let
    23       val ty_str = case ty of
    23       val ty_str = case ty of
    24                      Type(ty_str, _) => ty_str
    24                      Type(ty_str, _) => ty_str
    25                    | TFree(s,_)  => error ("Free type: " ^ s)
    25                    | TFree(s,_)  => error ("Free type: " ^ s)
    26                    | TVar((s,i),_) => error ("Free variable: " ^ s)
    26                    | TVar((s,i),_) => error ("Free variable: " ^ s)
    27       val {induct, ...} = Datatype.the_info thy ty_str
    27       val {induct, ...} = Datatype_Data.the_info thy ty_str
    28     in
    28     in
    29       cases_thm_of_induct_thm induct
    29       cases_thm_of_induct_thm induct
    30     end;
    30     end;
    31 
    31 
    32 
    32