src/Pure/global_theory.ML
changeset 70431 dbb32c2d5c2c
parent 70430 6ec97dc6670e
child 70459 f0a445c5a82c
equal deleted inserted replaced
70430:6ec97dc6670e 70431:dbb32c2d5c2c
   122 val unofficial1 = Name_Flags {pre = true, official = false};
   122 val unofficial1 = Name_Flags {pre = true, official = false};
   123 val unofficial2 = Name_Flags {pre = false, official = false};
   123 val unofficial2 = Name_Flags {pre = false, official = false};
   124 
   124 
   125 fun name_thm No_Name_Flags _ thm = thm
   125 fun name_thm No_Name_Flags _ thm = thm
   126   | name_thm (Name_Flags {pre, official}) name thm = thm
   126   | name_thm (Name_Flags {pre, official}) name thm = thm
   127       |> (official andalso not (pre andalso Thm.derivation_name thm <> "")) ?
   127       |> (official andalso (not pre orelse Thm.derivation_name thm = "")) ?
   128           Thm.name_derivation name
   128           Thm.name_derivation name
   129       |> (name <> "" andalso not (pre andalso Thm.has_name_hint thm)) ?
   129       |> (name <> "" andalso (not pre orelse not (Thm.has_name_hint thm))) ?
   130           Thm.put_name_hint name;
   130           Thm.put_name_hint name;
   131 
   131 
   132 end;
   132 end;
   133 
   133 
   134 fun name_multi name [x] = [(name, x)]
   134 fun name_multi name [x] = [(name, x)]