src/HOL/Tools/ATP/atp_util.ML
changeset 80306 c2537860ccf8
parent 79825 cf9becb6403f
equal deleted inserted replaced
80305:95b51df1382e 80306:c2537860ccf8
   415     end
   415     end
   416   | extract_lambda_def _ _ = raise Fail "malformed lifted lambda"
   416   | extract_lambda_def _ _ = raise Fail "malformed lifted lambda"
   417 
   417 
   418 fun short_thm_name ctxt th =
   418 fun short_thm_name ctxt th =
   419   let
   419   let
   420     val long = Thm.get_name_hint th
   420     val long = Thm_Name.short (Thm.get_name_hint th)
   421     val short = Long_Name.base_name long
   421     val short = Long_Name.base_name long
   422   in
   422   in
   423     (case try (singleton (Attrib.eval_thms ctxt)) (Facts.named short, []) of
   423     (case try (singleton (Attrib.eval_thms ctxt)) (Facts.named short, []) of
   424       SOME th' => if Thm.eq_thm_prop (th, th') then short else long
   424       SOME th' => if Thm.eq_thm_prop (th, th') then short else long
   425     | _ => long)
   425     | _ => long)