src/HOL/Tools/Nitpick/nitpick_util.ML
changeset 40341 03156257040f
parent 39134 917b4b6ba3d2
child 40627 becf5d5187cc
equal deleted inserted replaced
40340:d1c14898fd04 40341:03156257040f
    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 nat_subscript : int -> string
    56   val nat_subscript : int -> string
    56   val flip_polarity : polarity -> polarity
    57   val flip_polarity : polarity -> polarity
    57   val prop_T : typ
    58   val prop_T : typ
    58   val bool_T : typ
    59   val bool_T : typ
    59   val nat_T : typ
    60   val nat_T : typ
   235   | pretty_serial_commas conj (p :: ps) =
   236   | pretty_serial_commas conj (p :: ps) =
   236     p :: Pretty.str "," :: Pretty.brk 1 :: pretty_serial_commas conj ps
   237     p :: Pretty.str "," :: Pretty.brk 1 :: pretty_serial_commas conj ps
   237 
   238 
   238 val parse_bool_option = Sledgehammer_Util.parse_bool_option
   239 val parse_bool_option = Sledgehammer_Util.parse_bool_option
   239 val parse_time_option = Sledgehammer_Util.parse_time_option
   240 val parse_time_option = Sledgehammer_Util.parse_time_option
       
   241 val string_from_time = Sledgehammer_Util.string_from_time
   240 
   242 
   241 val i_subscript = implode o map (prefix "\<^isub>") o explode
   243 val i_subscript = implode o map (prefix "\<^isub>") o explode
   242 fun be_subscript s = "\<^bsub>" ^ s ^ "\<^esub>"
   244 fun be_subscript s = "\<^bsub>" ^ s ^ "\<^esub>"
   243 fun nat_subscript n =
   245 fun nat_subscript n =
   244   let val s = signed_string_of_int n in
   246   let val s = signed_string_of_int n in