test/Tools/isac/Knowledge/integrate.thy
author wneuper <Walther.Neuper@jku.at>
Sat, 08 Oct 2022 11:40:48 +0200
changeset 60559 aba19e46dd84
parent 60558 2350ba2640fd
child 60586 007ef64dbb08
permissions -rw-r--r--
follow up 5: cleanup
     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 @{context}
    18   [MethodC.prep_input @{theory "Isac_Knowledge"} "met_testint" [] MethodC.id_empty
    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.empty, prls = Rule_Set.empty,
    22 	        crls = Atools_erls, errpats = [], nrls = Rule_Set.empty},
    23 	      @{thm integration_test.simps})]\<close>
    24 
    25 end