src/HOL/Import/hol4rews.ML
changeset 32957 675c0c7e6a37
parent 32740 9dd0a2f83429
child 32960 69916a850301
equal deleted inserted replaced
32956:c39860141415 32957:675c0c7e6a37
   384     val rews = HOL4Rewrites.get thy;
   384     val rews = HOL4Rewrites.get thy;
   385     val pending = HOL4Pending.get thy;
   385     val pending = HOL4Pending.get thy;
   386     fun process ((bthy,bthm), hth as (_,thm)) thy =
   386     fun process ((bthy,bthm), hth as (_,thm)) thy =
   387       let
   387       let
   388         val thm1 = rewrite_rule (map (Thm.transfer thy) rews) (Thm.transfer thy thm);
   388         val thm1 = rewrite_rule (map (Thm.transfer thy) rews) (Thm.transfer thy thm);
   389         val thm2 = standard thm1;
   389         val thm2 = Drule.standard thm1;
   390       in
   390       in
   391         thy
   391         thy
   392         |> PureThy.store_thm (Binding.name bthm, thm2)
   392         |> PureThy.store_thm (Binding.name bthm, thm2)
   393         |> snd
   393         |> snd
   394         |> add_hol4_theorem bthy bthm hth
   394         |> add_hol4_theorem bthy bthm hth