src/HOL/Import/proof_kernel.ML
changeset 18489 151e52a4db3f
parent 18358 0a733e11021a
child 18678 dd0c569fa43d
equal deleted inserted replaced
18488:a353a61c4544 18489:151e52a4db3f
  1214 	fn th => eq_set(t_consts,add_consts(prop_of th,[]))
  1214 	fn th => eq_set(t_consts,add_consts(prop_of th,[]))
  1215     end
  1215     end
  1216 
  1216 
  1217 fun split_name str =
  1217 fun split_name str =
  1218     let
  1218     let
  1219 	val sub = Substring.all str
  1219 	val sub = Substring.full str
  1220 	val (f,idx) = apsnd Substring.string (Substring.splitr Char.isDigit sub)
  1220 	val (f,idx) = apsnd Substring.string (Substring.splitr Char.isDigit sub)
  1221 	val (newstr,u) = apboth Substring.string (Substring.splitr (fn c => c = #"_") f)
  1221 	val (newstr,u) = apboth Substring.string (Substring.splitr (fn c => c = #"_") f)
  1222     in
  1222     in
  1223 	if not (idx = "") andalso u = "_"
  1223 	if not (idx = "") andalso u = "_"
  1224 	then SOME (newstr,valOf(Int.fromString idx))
  1224 	then SOME (newstr,valOf(Int.fromString idx))