test/Tools/isac/Knowledge/integrate.thy
author Walther Neuper <walther.neuper@jku.at>
Sat, 04 Apr 2020 12:11:32 +0200
changeset 59850 f3cac3053e7b
parent 59637 8881c5d28f82
child 59852 ea7e6679080e
permissions -rw-r--r--
separate Rule_Set from Rule
     1 
     2 theory integrate
     3 imports Isac.Build_Thydata
     4 begin
     5 
     6 ML \<open>
     7 "----------- method analog to rls 'integration' ---------";
     8 "----------- method analog to rls 'integration' ---------";
     9 "----------- method analog to rls 'integration' ---------";
    10 \<close>
    11 partial_function (tailrec) integration_test :: "real \<Rightarrow> real \<Rightarrow> real"
    12   where
    13 "integration_test f_f v_v =
    14   (((Rewrite_Set_Inst [(''bdv'',v_v)] ''integration_rules'') #>
    15     (Rewrite_Set_Inst [(''bdv'',v_v)] ''add_new_c'')         #>
    16     (Rewrite_Set_Inst [(''bdv'',v_v)] ''simplify_Integral'')) (f_f::real))"
    17 setup \<open>KEStore_Elems.add_mets
    18   [Specify.prep_met @{theory "Isac_Knowledge"} "met_testint" [] Celem.e_metID
    19 	    (["diff","integration","test"],
    20 	      [("#Given" ,["functionTerm f_f", "integrateBy v_v"]), ("#Find", ["antiDerivative F_F"])],
    21 	      {rew_ord'="tless_true", rls'=Atools_erls, calc = [], srls = Rule_Set.e_rls, prls = Rule_Set.e_rls,
    22 	        crls = Atools_erls, errpats = [], nrls = Rule_Set.e_rls},
    23 	      @{thm integration_test.simps})]\<close>
    24 
    25 end