src/Tools/Compute_Oracle/linker.ML
changeset 26336 a0e2b706ce73
parent 25520 e123c81257a5
child 26343 0dd2eab7b296
equal deleted inserted replaced
26335:961bbcc9d85b 26336:a0e2b706ce73
   190     end
   190     end
   191 
   191 
   192 fun substs_of (Instances (_,_,_,substs)) = Substtab.keys substs
   192 fun substs_of (Instances (_,_,_,substs)) = Substtab.keys substs
   193 
   193 
   194 local
   194 local
   195     fun get_thm thmname = PureThy.get_thm (theory "Main") (Name thmname)
   195     fun get_thm thmname = PureThy.get_thm (theory "Main") (Facts.Named (thmname, NONE))
   196     val eq_th = get_thm "HOL.eq_reflection"
   196     val eq_th = get_thm "HOL.eq_reflection"
   197 in
   197 in
   198   fun eq_to_meta th = (eq_th OF [th] handle _ => th)
   198   fun eq_to_meta th = (eq_th OF [th] handle THM _ => th)
   199 end
   199 end
   200 
   200 
   201 
   201 
   202 local
   202 local
   203 
   203