src/Tools/isac/Knowledge/Isac.thy
branchisac-update-Isa09-2
changeset 37954 4022d670753c
parent 37947 22235e4dbe5f
child 37965 9c11005c33b8
equal deleted inserted replaced
37953:369b3012f6f6 37954:4022d670753c
     1 (* theory collecting all knowledge defined so far
     1 (* theory collecting all knowledge defined so far
     2    WN.11.00
     2    WN.11.00
     3  *)
     3  *)
     4 
     4 
     5 Isac = PolyMinus + PolyEq + Vect + DiffApp + Biegelinie + AlgEin
     5 theory Isac imports PolyMinus PolyEq Vect DiffApp Biegelinie AlgEin
     6        + (*InsSort +*) Test + 
     6        (*InsSort +*) Test begin
     7 
     7 
     8 end
     8 text {* dependencies alternative to those defined by R.Lang during his thesis:
     9 
       
    10 (* dependencies alternative to those defined by R.Lang during his thesis:
       
    11 
     9 
    12    Poly				Root
    10    Poly				Root
    13      |\__________		 |
    11      |\__________		 |
    14      |		 \ 		 |
    12      |		 \ 		 |
    15      |		Rational	 |
    13      |		Rational	 |
    16      |		  |		 |
    14      |		  |		 |
    17    PolyEq	RatEq		RootEq
    15    PolyEq	RatEq		RootEq
    18       \         /  \           /
    16       \         /  \           /
    19        \       /    \         /
    17        \       /    \         /
    20 	RatPolyEq    RatRootEq    etc.
    18 	RatPolyEq    RatRootEq    etc.
    21 *)
    19 *}
       
    20 
       
    21 ML {*
       
    22 (**.set up a list for getting guh + theID for a thm (defined in isabelle).**)
       
    23 
       
    24 (*.get all theorems used by isac and defined in isabelle.*)
       
    25 local
       
    26     val isacrlsthms = ((gen_distinct eq_thmI) o (map rep_thm_G') o flat o 
       
    27 		       (map (thms_of_rls o #2 o #2))) (!ruleset');
       
    28     val isacthms = (flat o (map (PureThy.all_thms_of o #2))) 
       
    29                        (*WN100827 TODOOOOO*)(!theory');
       
    30 in
       
    31     val rlsthmsNOTisac = gen_diff eq_thmI (isacrlsthms, isacthms);
       
    32 end;
       
    33 
       
    34 (*.set up the list using 'val first_isac_thy' (see ListC.ML).*)
       
    35 isab_thm_thy := make_isab rlsthmsNOTisac
       
    36 			  ((#ancestors o rep_theory) first_isac_thy);
       
    37 
       
    38 
       
    39 (*.create the hierarchy of theory elements from IsacKnowledge
       
    40    including thms from Isabelle used in rls;
       
    41    elements store_*d in any *.ML are not overwritten.*)
       
    42 
       
    43 thehier := the_hier (!thehier) (collect_thydata ());
       
    44 writeln("----------------------------------\n" ^
       
    45 	"*** insert: not found ... IS OK : \n" ^
       
    46 	"comes from fill_parents           \n" ^
       
    47 	"----------------------------------\n");
       
    48 *}
       
    49 
       
    50 end