src/Tools/isac/Knowledge/RootRat.thy
author Walther Neuper <wneuper@ist.tugraz.at>
Thu, 22 Dec 2016 11:36:20 +0100
changeset 59279 255c853ea2f0
parent 55444 ede4248a827b
child 59374 e09675b375fd
permissions -rw-r--r--
renamed Ctree.ptree --> Ctree.ctree
neuper@42318
     1
(* Title:  collecting all knowledge for Root and Rational
neuper@42318
     2
   Author: Richard Lang 02.10 last change by: rlang date: 02.10.20
neuper@42318
     3
   (c) due to copyright terms
neuper@37906
     4
*)
neuper@37906
     5
neuper@37954
     6
theory RootRat imports Root Rational begin
neuper@37906
     7
neuper@37954
     8
ML {*
neuper@37972
     9
val thy = @{theory};
neuper@37972
    10
neuper@37954
    11
val rootrat_erls = 
neuper@42318
    12
  merge_rls "rootrat_erls" Root_erls
neuper@42318
    13
    (merge_rls "" rational_erls
neuper@42318
    14
      (append_rls "" e_rls []));
neuper@37954
    15
neuper@37954
    16
(*.calculate numeral groundterms.*)
neuper@37954
    17
val calculate_RootRat = 
neuper@42318
    18
  append_rls "calculate_RootRat" calculate_Rational
neuper@52062
    19
	    [Thm ("distrib_left",num_str @{thm distrib_left}),
neuper@42318
    20
		      (* w*(z1.0 + z2.0) = w * z1.0 + w * z2.0 *)
neuper@42318
    21
		     Thm ("mult_1_left",num_str @{thm mult_1_left}),
neuper@42318
    22
		      (* 1 * z = z *)
neuper@42318
    23
		     Thm ("sym_real_mult_minus1",num_str (@{thm real_mult_minus1} RS @{thm sym})),
neuper@42318
    24
		       (* "- z1 = -1 * z1"  *)
neuper@42318
    25
		     Calc ("NthRoot.sqrt",eval_sqrt "#sqrt_")
neuper@42318
    26
		     ];
s1210629013@55444
    27
s1210629013@55444
    28
val prep_rls' = prep_rls @{theory};
neuper@37954
    29
*}
neuper@52125
    30
setup {* KEStore_Elems.add_rlss 
s1210629013@55444
    31
  [("rootrat_erls", (Context.theory_name @{theory}, prep_rls' rootrat_erls)), 
s1210629013@55444
    32
  ("calculate_RootRat", (Context.theory_name @{theory}, prep_rls' calculate_RootRat))] *}
neuper@37906
    33
neuper@37906
    34
end