src/HOL/Tools/function_package/fundef_common.ML
changeset 19922 984ae977f7aa
parent 19781 c62720b20e9a
child 20270 3abe7dae681e
--- a/src/HOL/Tools/function_package/fundef_common.ML	Mon Jun 19 18:02:49 2006 +0200
+++ b/src/HOL/Tools/function_package/fundef_common.ML	Mon Jun 19 18:25:34 2006 +0200
@@ -34,22 +34,20 @@
        glrs: (term list * term list * term * term) list,
        glrs': (term list * term list * term * term) list,
        f_def: thm,
-       used: string list,
-       trees: ctx_tree list
+       ctx: ProofContext.context
      }
 
 
 datatype rec_call_info = 
   RCInfo of
   {
-   RI: thm, 
-   RIvs: (string * typ) list,
-   lRI: thm, 
-   lRIq: thm, 
+   RIvs: (string * typ) list,  (* Call context: fixes and assumes *)
+   CCas: thm list,
+   rcarg: term,                 (* The recursive argument *)
+
+   llRI: thm,
    Gh: thm, 
-   Gh': thm,
-   GmAs: term list,
-   rcarg: term
+   Gh': thm
   } 
      
 datatype clause_info =
@@ -57,31 +55,28 @@
      {
       no: int,
 
+      tree: ctx_tree,
+      case_hyp: thm,
+
       qs: term list, 
       gs: term list,
       lhs: term,
       rhs: term,
 
       cqs: cterm list,
-      cvqs: cterm list,
       ags: thm list,
       
       cqs': cterm list, 
       ags': thm list,
       lhs': term,
       rhs': term,
-      ordcqs': cterm list, 
 
-      GI: thm,
       lGI: thm,
       RCs: rec_call_info list,
 
-      tree: ctx_tree,
-      case_hyp: thm
+      ordcqs': cterm list
      }
 
-type inj_proj = ((term -> term) * (term -> term))
-
 type qgar = (string * typ) list * term list * term list * term
 
 datatype mutual_part =
@@ -115,9 +110,13 @@
   Prep of
      {
       names: naming_context, 
-      complete : term,
-      compat : term list,
-      clauses: clause_info list
+      goal: term,
+      goalI: thm,
+      values: thm list,
+      clauses: clause_info list,
+
+      R_cases: thm,
+      ex1_iff: thm
      }
 
 datatype fundef_result =
@@ -127,7 +126,6 @@
       G : term,
       R : term,
       completeness : thm,
-      compatibility : thm list,
 
       psimps : thm list, 
       subset_pinduct : thm,