src/HOL/Tools/BNF/bnf_def.ML
changeset 59281 1b4dc8a9f7d9
parent 59133 347fece4a85e
child 59580 cbc38731d42f
equal deleted inserted replaced
59280:2949ace404c3 59281:1b4dc8a9f7d9
   827 
   827 
   828     val Calpha_params = map TVar (Term.add_tvarsT Calpha []);
   828     val Calpha_params = map TVar (Term.add_tvarsT Calpha []);
   829 
   829 
   830     val bnf_T = Morphism.typ phi T_rhs;
   830     val bnf_T = Morphism.typ phi T_rhs;
   831     val bad_args = Term.add_tfreesT bnf_T [];
   831     val bad_args = Term.add_tfreesT bnf_T [];
   832     val _ = if null bad_args then () else error ("Locally fixed type arguments " ^
   832     val _ = null bad_args orelse error ("Locally fixed type arguments " ^
   833       commas_quote (map (Syntax.string_of_typ no_defs_lthy o TFree) bad_args));
   833       commas_quote (map (Syntax.string_of_typ no_defs_lthy o TFree) bad_args));
   834 
   834 
   835     val bnf_sets =
   835     val bnf_sets =
   836       map2 (normalize_set Calpha_params) alphas (map (Morphism.term phi) bnf_set_terms);
   836       map2 (normalize_set Calpha_params) alphas (map (Morphism.term phi) bnf_set_terms);
   837     val bnf_bd =
   837     val bnf_bd =