equal
deleted
inserted
replaced
155 Const (@{const_name "relcompp"}, _) $ Const (@{const_name HOL.eq}, _) $ _ => |
155 Const (@{const_name "relcompp"}, _) $ Const (@{const_name HOL.eq}, _) $ _ => |
156 let |
156 let |
157 val thm = |
157 val thm = |
158 pcr_cr_eq |
158 pcr_cr_eq |
159 |> Conv.fconv_rule (Conv.arg_conv (Conv.rewr_conv eq_OO_meta)) |
159 |> Conv.fconv_rule (Conv.arg_conv (Conv.rewr_conv eq_OO_meta)) |
160 |> mk_HOL_eq |
160 |> HOLogic.mk_obj_eq |
161 |> singleton (Variable.export lthy orig_lthy) |
161 |> singleton (Variable.export lthy orig_lthy) |
162 val lthy = (#notes config ? (Local_Theory.note |
162 val lthy = (#notes config ? (Local_Theory.note |
163 ((Binding.qualify_name true qty_name "pcr_cr_eq", []), [thm]) #> snd)) lthy |
163 ((Binding.qualify_name true qty_name "pcr_cr_eq", []), [thm]) #> snd)) lthy |
164 in |
164 in |
165 (thm, lthy) |
165 (thm, lthy) |