src/HOL/Tools/BNF/bnf_fp_def_sugar.ML
changeset 61259 6dc3d5d50e57
parent 61246 077b88f9ec16
child 61301 484f7878ede4
equal deleted inserted replaced
61258:2be9ea29f9ec 61259:6dc3d5d50e57
  1921       ||>> mk_TFrees nn
  1921       ||>> mk_TFrees nn
  1922       ||>> mk_TFrees nn
  1922       ||>> mk_TFrees nn
  1923       ||>> variant_tfrees fp_b_names;
  1923       ||>> variant_tfrees fp_b_names;
  1924 
  1924 
  1925     fun add_fake_type spec =
  1925     fun add_fake_type spec =
  1926       Typedecl.basic_typedecl true (type_binding_of_spec spec, num_As, mixfix_of_spec spec);
  1926       Typedecl.basic_typedecl {final = true}
       
  1927         (type_binding_of_spec spec, num_As, mixfix_of_spec spec);
  1927 
  1928 
  1928     val (fake_T_names, fake_lthy) = fold_map add_fake_type specs no_defs_lthy;
  1929     val (fake_T_names, fake_lthy) = fold_map add_fake_type specs no_defs_lthy;
  1929 
  1930 
  1930     val qsoty = quote o Syntax.string_of_typ fake_lthy;
  1931     val qsoty = quote o Syntax.string_of_typ fake_lthy;
  1931 
  1932