1 (* collecting all knowledge for Root and Rational
7 (c) by Richard Lang, 2003
10 theory RootRat imports Root Rational begin
15 (*-------------------------rules-------------------------*)
17 merge_rls "rootrat_erls" Root_erls
18 (merge_rls "" rational_erls
22 ruleset' := overwritelthy thy (!ruleset',
23 [("rootrat_erls",rootrat_erls) (*FIXXXME:del with rls.rls'*)]);
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}),
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_")
37 ruleset' := overwritelthy thy (!ruleset',
38 [("calculate_RootRat",calculate_RootRat)]);