# HG changeset patch # User blanchet # Date 1357582501 -3600 # Node ID 26936f4ae087c53ee90366cb32844b7771c25bb1 # Parent 37091451ba1a8522f489a4ea7363c412f34527e6 tuned output diff -r 37091451ba1a -r 26936f4ae087 src/HOL/Tools/ATP/atp_problem_generate.ML --- a/src/HOL/Tools/ATP/atp_problem_generate.ML Mon Jan 07 10:17:11 2013 +0100 +++ b/src/HOL/Tools/ATP/atp_problem_generate.ML Mon Jan 07 19:15:01 2013 +0100 @@ -2127,10 +2127,10 @@ (* Each fact is given a unique fact number to avoid name clashes (e.g., because of monomorphization). The TPTP explicitly forbids name clashes, and some of the remote provers might care. *) -fun line_for_fact ctxt prefix encode freshen pos mono type_enc rank +fun line_for_fact ctxt prefix encode alt freshen pos mono type_enc rank (j, {name, stature = (_, status), role, iformula, atomic_types}) = Formula ((prefix ^ (if freshen then string_of_int j ^ "_" else "") ^ - encode name, name), + encode name, alt name), role, iformula |> formula_from_iformula ctxt mono type_enc @@ -2728,14 +2728,14 @@ |> lines_for_sym_decl_table ctxt mono type_enc mono_Ts val num_facts = length facts val fact_lines = - map (line_for_fact ctxt fact_prefix ascii_of (not exporter) + map (line_for_fact ctxt fact_prefix ascii_of I (not exporter) (not exporter) mono type_enc (rank_of_fact_num num_facts)) (0 upto num_facts - 1 ~~ facts) val subclass_lines = maps (lines_for_subclass_pair type_enc) subclass_pairs val tcon_lines = map (line_for_tcon_clause type_enc) tcon_clauses val helper_lines = 0 upto length helpers - 1 ~~ helpers - |> map (line_for_fact ctxt helper_prefix I false true mono type_enc + |> map (line_for_fact ctxt helper_prefix I (K "") false true mono type_enc (K default_rank)) val free_type_lines = lines_for_free_types type_enc (facts @ conjs) val conj_lines = map (line_for_conjecture ctxt mono type_enc) conjs