src/Tools/isac/Knowledge/RootRat.thy
author Walther Neuper <neuper@ist.tugraz.at>
Thu, 24 Oct 2013 15:00:44 +0200
changeset 52155 e4ddf21390fd
parent 52125 6f1d3415dc68
child 55444 ede4248a827b
permissions -rw-r--r--
removed all code concerned with "ruleset' = Unsynchronized.ref"
     1 (* Title:  collecting all knowledge for Root and Rational
     2    Author: Richard Lang 02.10 last change by: rlang date: 02.10.20
     3    (c) due to copyright terms
     4 *)
     5 
     6 theory RootRat imports Root Rational begin
     7 
     8 ML {*
     9 val thy = @{theory};
    10 
    11 val rootrat_erls = 
    12   merge_rls "rootrat_erls" Root_erls
    13     (merge_rls "" rational_erls
    14       (append_rls "" e_rls []));
    15 
    16 (*.calculate numeral groundterms.*)
    17 val calculate_RootRat = 
    18   append_rls "calculate_RootRat" calculate_Rational
    19 	    [Thm ("distrib_left",num_str @{thm distrib_left}),
    20 		      (* w*(z1.0 + z2.0) = w * z1.0 + w * z2.0 *)
    21 		     Thm ("mult_1_left",num_str @{thm mult_1_left}),
    22 		      (* 1 * z = z *)
    23 		     Thm ("sym_real_mult_minus1",num_str (@{thm real_mult_minus1} RS @{thm sym})),
    24 		       (* "- z1 = -1 * z1"  *)
    25 		     Calc ("NthRoot.sqrt",eval_sqrt "#sqrt_")
    26 		     ];
    27 *}
    28 setup {* KEStore_Elems.add_rlss 
    29   [("rootrat_erls", (Context.theory_name @{theory}, prep_rls rootrat_erls)), 
    30   ("calculate_RootRat", (Context.theory_name @{theory}, prep_rls calculate_RootRat))] *}
    31 
    32 end