src/Tools/isac/Knowledge/RootRat.thy
author wneuper <walther.neuper@jku.at>
Mon, 19 Jul 2021 18:29:46 +0200
changeset 60337 cbad4e18e91b
parent 60331 40eb8aa2b0d6
child 60341 59106f9e08cc
permissions -rw-r--r--
cleanup after "eliminate ThmC.numerals_to_Free"
     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 \<open>
     9 val thy = @{theory};
    10 
    11 val rootrat_erls = 
    12   Rule_Set.merge "rootrat_erls" Root_erls
    13     (Rule_Set.merge "" rational_erls
    14       (Rule_Set.append_rules "" Rule_Set.empty []));
    15 
    16 (*.calculate numeral groundterms.*)
    17 val calculate_RootRat = 
    18   Rule_Set.append_rules "calculate_RootRat" calculate_Rational
    19 	    [\<^rule_thm>\<open>distrib_left\<close>,
    20 		      (* w*(z1.0 + z2.0) = w * z1.0 + w * z2.0 *)
    21 		     \<^rule_thm>\<open>mult_1_left\<close>,
    22 		      (* 1 * z = z *)
    23 		      Rule.Thm ("real_mult_minus1_sym",  (@{thm real_mult_minus1_sym})),
    24 	        (*"\<not>(z is_const) ==> - (z::real) = -1 * z"*)
    25 		     Rule.Eval ("NthRoot.sqrt", eval_sqrt "#sqrt_")
    26 		     ];
    27 
    28 val prep_rls' = Auto_Prog.prep_rls @{theory};
    29 \<close>
    30 rule_set_knowledge
    31   rootrat_erls = \<open>prep_rls' rootrat_erls\<close> and
    32   calculate_RootRat = \<open>prep_rls' calculate_RootRat\<close>
    33 ML \<open>
    34 \<close> ML \<open>
    35 \<close> ML \<open>
    36 \<close>
    37 end