src/Tools/isac/Knowledge/RootRat.thy
author Walther Neuper <neuper@ist.tugraz.at>
Thu, 02 Sep 2010 15:11:23 +0200
branchisac-update-Isa09-2
changeset 37974 ececb894db9c
parent 37972 66fc615a1e89
child 37982 66f3570ba808
permissions -rw-r--r--
cleanup within Knowledge/Poly, start with Scripts
     1 (* collecting all knowledge for Root and Rational
     2    created by: rlang 
     3          date: 02.10
     4    changed by: rlang
     5    last change by: rlang
     6              date: 02.10.20
     7    (c) by Richard Lang, 2003
     8 *)
     9 
    10 theory RootRat imports Root Rational begin
    11 
    12 ML {*
    13 val thy = @{theory};
    14 
    15 (*-------------------------rules-------------------------*)
    16 val rootrat_erls = 
    17     merge_rls "rootrat_erls" Root_erls
    18      (merge_rls "" rational_erls
    19       (append_rls "" e_rls
    20 		[]));
    21 
    22 ruleset' := overwritelthy thy (!ruleset',
    23 	     [("rootrat_erls",rootrat_erls) (*FIXXXME:del with rls.rls'*)]);
    24 
    25 (*.calculate numeral groundterms.*)
    26 val calculate_RootRat = 
    27     append_rls "calculate_RootRat" calculate_Rational
    28 	       [Thm ("right_distrib",num_str @{thm right_distrib}),
    29 		(* w*(z1.0 + z2.0) = w * z1.0 + w * z2.0 *)
    30 		Thm ("mult_1_left",num_str @{thm mult_1_left}),
    31 		(* 1 * z = z *)
    32 		Thm ("sym_real_mult_minus1",
    33                       num_str (@{thm real_mult_minus1} RS @{thm sym})),
    34 		(* "- z1 = -1 * z1"  *)
    35 		Calc ("Root.sqrt",eval_sqrt "#sqrt_")
    36 		];
    37 ruleset' := overwritelthy thy (!ruleset',
    38 			[("calculate_RootRat",calculate_RootRat)]);
    39 *}
    40 
    41 end