src/HOL/Tools/ATP/atp_problem.ML
changeset 47054 b86864a2b16e
parent 47053 7585d0120f1d
child 47073 c73f7b0c7ebc
equal deleted inserted replaced
47053:7585d0120f1d 47054:b86864a2b16e
   567     val decls = if sorted then func_sigs () @ pred_sigs () else []
   567     val decls = if sorted then func_sigs () @ pred_sigs () else []
   568     val axioms =
   568     val axioms =
   569       filt (formula (curry (op <>) Conjecture)) |> separate [""] |> flat
   569       filt (formula (curry (op <>) Conjecture)) |> separate [""] |> flat
   570     val conjs =
   570     val conjs =
   571       filt (formula (curry (op =) Conjecture)) |> separate [""] |> flat
   571       filt (formula (curry (op =) Conjecture)) |> separate [""] |> flat
   572     (* The second layer of ")." is a temporary workaround for a quirk in SPASS's
       
   573        parser. *)
       
   574     val settings =
   572     val settings =
   575       (if is_lpo then ["set_flag(Ordering, 1).)."] else []) @
   573       (if is_lpo then ["set_flag(Ordering, 1)."] else []) @
   576       (if gen_prec then
   574       (if gen_prec then
   577          [ord_info |> map fst |> rev |> commas
   575          [ord_info |> map fst |> rev |> commas
   578                    |> maybe_enclose "set_precedence(" ")."]
   576                    |> maybe_enclose "set_precedence(" ")."]
   579        else
   577        else
   580          [])
   578          [])