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
6 theory RootRat imports Root Rational begin
12 merge_rls "rootrat_erls" Root_erls
13 (merge_rls "" rational_erls
14 (append_rls "" e_rls []));
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}),
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_")
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))] *}