src/Tools/Compute_Oracle/compute.ML
changeset 26674 fe93963ed76d
parent 26626 c6231d64d264
child 28290 4cc2b6046258
equal deleted inserted replaced
26673:cda3df424bad 26674:fe93963ed76d
   638     val thy = 
   638     val thy = 
   639         let
   639         let
   640             val thy1 = theory_of_theorem th
   640             val thy1 = theory_of_theorem th
   641             val thy2 = theory_of_thm th'
   641             val thy2 = theory_of_thm th'
   642         in
   642         in
   643             if Context.subthy (thy1, thy2) then thy2 
   643             if Theory.subthy (thy1, thy2) then thy2 
   644             else if Context.subthy (thy2, thy1) then thy1 else
   644             else if Theory.subthy (thy2, thy1) then thy1 else
   645             raise Compute "modus_ponens: theorems are not compatible with each other"
   645             raise Compute "modus_ponens: theorems are not compatible with each other"
   646         end 
   646         end 
   647     val th' = make_theorem computer th' []
   647     val th' = make_theorem computer th' []
   648     val varsubst = varsubst_of_theorem th
   648     val varsubst = varsubst_of_theorem th
   649     fun run vars_allowed t =
   649     fun run vars_allowed t =