src/HOL/Import/import_package.ML
changeset 17652 b1ef33ebfa17
parent 17644 bd59bfd4bf37
child 17657 2f5f595eb618
equal deleted inserted replaced
17651:a6499b0c5a40 17652:b1ef33ebfa17
    51 	    val thm = snd (ProofKernel.to_isa_thm hol4thm)
    51 	    val thm = snd (ProofKernel.to_isa_thm hol4thm)
    52 	    val rew = ProofKernel.rewrite_hol4_term (concl_of thm) thy
    52 	    val rew = ProofKernel.rewrite_hol4_term (concl_of thm) thy
    53 	    val thm = equal_elim rew thm
    53 	    val thm = equal_elim rew thm
    54 	    val prew = ProofKernel.rewrite_hol4_term prem thy
    54 	    val prew = ProofKernel.rewrite_hol4_term prem thy
    55 	    val prem' = #2 (Logic.dest_equals (prop_of prew))
    55 	    val prem' = #2 (Logic.dest_equals (prop_of prew))
       
    56             val _ = message ("Import proved " ^ (string_of_thm thm))    
    56             val thm = Drule.disambiguate_frees thm
    57             val thm = Drule.disambiguate_frees thm
    57 	    val _ = message ("Import proved " ^ (string_of_thm thm))  
    58 	    val _ = message ("Disambiguate: " ^ (string_of_thm thm))  
    58 	in
    59 	in
    59 	    case Shuffler.set_prop thy prem' [("",thm)] of
    60 	    case Shuffler.set_prop thy prem' [("",thm)] of
    60 		SOME (_,thm) =>
    61 		SOME (_,thm) =>
    61 		let
    62 		let
    62 		    val _ = if prem' aconv (prop_of thm)
    63 		    val _ = if prem' aconv (prop_of thm)