all_cases / all_inducts;
authorwenzelm
Thu, 24 Feb 2000 16:00:09 +0100
changeset 8293 4a0e17cf8f70
parent 8292 93e125b21220
child 8294 c50607ff9704
all_cases / all_inducts;
src/HOL/Tools/inductive_package.ML
--- a/src/HOL/Tools/inductive_package.ML	Thu Feb 24 15:59:44 2000 +0100
+++ b/src/HOL/Tools/inductive_package.ML	Thu Feb 24 16:00:09 2000 +0100
@@ -37,7 +37,8 @@
       induct: thm, intrs: thm list, mk_cases: string -> thm, mono: thm, unfold: thm}
   val print_inductives: theory -> unit
   val cases_of: Sign.sg -> string -> thm
-  val cases: Sign.sg -> thm list
+  val all_cases: Sign.sg -> thm list
+  val all_inducts: Sign.sg -> thm list
   val mono_add_global: theory attribute
   val mono_del_global: theory attribute
   val get_monos: theory -> thm list
@@ -105,7 +106,7 @@
   in InductiveData.put tab_monos thy end;
 
 
-(* cases rules *)
+(* cases and induct rules *)
 
 fun cases_of sg name =
   let
@@ -119,7 +120,8 @@
     | Some thm => thm)
   end;
 
-fun cases sg = flat (map (#elims o #2 o #2) (Symtab.dest (#1 (InductiveData.get_sg sg))));
+fun all_cases sg = flat (map (#elims o #2 o #2) (Symtab.dest (#1 (InductiveData.get_sg sg))));
+fun all_inducts sg = map (#induct o #2 o #2) (Symtab.dest (#1 (InductiveData.get_sg sg)));