src/HOL/Import/proof_kernel.ML
changeset 18728 6790126ab5f6
parent 18678 dd0c569fa43d
child 18929 d81435108688
equal deleted inserted replaced
18727:caf9bc780c80 18728:6790126ab5f6
  1986 			   end
  1986 			   end
  1987 
  1987 
  1988 	    val thy1 = foldr (fn(name,thy)=>
  1988 	    val thy1 = foldr (fn(name,thy)=>
  1989 				snd (get_defname thyname name thy)) thy1 names
  1989 				snd (get_defname thyname name thy)) thy1 names
  1990 	    fun new_name name = fst (get_defname thyname name thy1)
  1990 	    fun new_name name = fst (get_defname thyname name thy1)
  1991 	    val (thy',res) = SpecificationPackage.add_specification_i NONE
  1991 	    val (thy',res) = SpecificationPackage.add_specification NONE
  1992 				 (map (fn name => (new_name name,name,false)) names)
  1992 				 (map (fn name => (new_name name,name,false)) names)
  1993 				 (thy1,th)
  1993 				 (thy1,th)
  1994 	    val res' = Drule.freeze_all res
  1994 	    val res' = Drule.freeze_all res
  1995 	    val hth = HOLThm(rens,res')
  1995 	    val hth = HOLThm(rens,res')
  1996 	    val rew = rewrite_hol4_term (concl_of res') thy'
  1996 	    val rew = rewrite_hol4_term (concl_of res') thy'