src/HOL/Tools/Nitpick/nitpick_util.ML
changeset 52031 9a9238342963
parent 50557 31313171deb5
child 52174 7fd0b5cfbb79
equal deleted inserted replaced
52030:9f6f0a89d16b 52031:9a9238342963
    50   val plural_s_for_list : 'a list -> string
    50   val plural_s_for_list : 'a list -> string
    51   val serial_commas : string -> string list -> string list
    51   val serial_commas : string -> string list -> string list
    52   val pretty_serial_commas : string -> Pretty.T list -> Pretty.T list
    52   val pretty_serial_commas : string -> Pretty.T list -> Pretty.T list
    53   val parse_bool_option : bool -> string -> string -> bool option
    53   val parse_bool_option : bool -> string -> string -> bool option
    54   val parse_time_option : string -> string -> Time.time option
    54   val parse_time_option : string -> string -> Time.time option
    55   val string_from_time : Time.time -> string
    55   val string_of_time : Time.time -> string
    56   val nat_subscript : int -> string
    56   val nat_subscript : int -> string
    57   val flip_polarity : polarity -> polarity
    57   val flip_polarity : polarity -> polarity
    58   val prop_T : typ
    58   val prop_T : typ
    59   val bool_T : typ
    59   val bool_T : typ
    60   val nat_T : typ
    60   val nat_T : typ
   235   | pretty_serial_commas conj (p :: ps) =
   235   | pretty_serial_commas conj (p :: ps) =
   236     p :: Pretty.str "," :: Pretty.brk 1 :: pretty_serial_commas conj ps
   236     p :: Pretty.str "," :: Pretty.brk 1 :: pretty_serial_commas conj ps
   237 
   237 
   238 val parse_bool_option = Sledgehammer_Util.parse_bool_option
   238 val parse_bool_option = Sledgehammer_Util.parse_bool_option
   239 val parse_time_option = Sledgehammer_Util.parse_time_option
   239 val parse_time_option = Sledgehammer_Util.parse_time_option
   240 val string_from_time = ATP_Util.string_from_time
   240 val string_of_time = ATP_Util.string_of_time
   241 
   241 
   242 val i_subscript = implode o map (prefix "\<^isub>") o Symbol.explode
   242 val i_subscript = implode o map (prefix "\<^isub>") o Symbol.explode
   243 fun nat_subscript n =
   243 fun nat_subscript n =
   244   n |> signed_string_of_int |> print_mode_active Symbol.xsymbolsN ? i_subscript
   244   n |> signed_string_of_int |> print_mode_active Symbol.xsymbolsN ? i_subscript
   245 
   245