Meson.is_fol_term now takes a theory as argument. Minor tidying.
authorpaulson
Fri, 02 Mar 2007 12:38:58 +0100
changeset 22383 01e90256550d
parent 22382 dbf09db0a40d
child 22384 33a46e6c7f04
Meson.is_fol_term now takes a theory as argument. Minor tidying.
src/HOL/Tools/res_clause.ML
--- a/src/HOL/Tools/res_clause.ML	Fri Mar 02 12:37:34 2007 +0100
+++ b/src/HOL/Tools/res_clause.ML	Fri Mar 02 12:38:58 2007 +0100
@@ -412,7 +412,8 @@
 
 (* check if a clause is first-order before making a conjecture clause*)
 fun make_conjecture_clause n th =
-  if Meson.is_fol_term (prop_of th) then make_clause(n, "conjecture", th, Conjecture)
+  if Meson.is_fol_term (theory_of_thm th) (prop_of th) 
+  then make_clause(n, "conjecture", th, Conjecture)
   else raise CLAUSE("Goal is not FOL", prop_of th);
   
 fun make_conjecture_clauses_aux _ [] = []
@@ -422,14 +423,14 @@
 val make_conjecture_clauses = make_conjecture_clauses_aux 0
 
 (*before converting an axiom clause to "clause" format, check if it is FOL*)
-fun make_axiom_clause thm (ax_name,cls_id) =
-  if Meson.is_fol_term (prop_of thm) 
-  then (SOME (make_clause(cls_id, ax_name, thm, Axiom)) handle MAKE_CLAUSE => NONE)
+fun make_axiom_clause th (ax_name,cls_id) =
+  if Meson.is_fol_term (theory_of_thm th) (prop_of th) 
+  then (SOME (make_clause(cls_id, ax_name, th, Axiom)) handle MAKE_CLAUSE => NONE)
   else (Output.debug (fn () => ("Omitting " ^ ax_name ^ ": Axiom is not FOL")); NONE)
     
 fun make_axiom_clauses [] = []
-  | make_axiom_clauses ((thm,(name,id))::thms) =
-      case make_axiom_clause thm (name,id) of 
+  | make_axiom_clauses ((th,(name,id))::thms) =
+      case make_axiom_clause th (name,id) of 
           SOME cls => if isTaut cls then make_axiom_clauses thms 
                       else (name,cls) :: make_axiom_clauses thms
         | NONE => make_axiom_clauses thms;