test/Tools/isac/MathEngBasic/tactic.sml
author Walther Neuper <walther.neuper@jku.at>
Sat, 04 Apr 2020 12:11:32 +0200
changeset 59850 f3cac3053e7b
parent 59728 f47a69ee4504
child 59851 4dd533681fef
permissions -rw-r--r--
separate Rule_Set from Rule
walther@59728
     1
(* Title:  "MathEngBasic/tactic.sml"
walther@59728
     2
   Author: Walther Neuper
walther@59728
     3
   (c) due to copyright terms
walther@59728
     4
*)
walther@59728
     5
walther@59728
     6
"-----------------------------------------------------------------------------------------------";
walther@59728
     7
"table of contents -----------------------------------------------------------------------------";
walther@59728
     8
"-----------------------------------------------------------------------------------------------";
walther@59728
     9
"-----------------------------------------------------------------------------------------------";
walther@59728
    10
"----------- fun result, fun creates_assms ---------------------------------------------------";
walther@59728
    11
"-----------------------------------------------------------------------------------------------";
walther@59728
    12
"-----------------------------------------------------------------------------------------------";
walther@59728
    13
"-----------------------------------------------------------------------------------------------";
walther@59728
    14
walther@59728
    15
"----------- fun result, fun creates_assms ---------------------------------------------------";
walther@59728
    16
"----------- fun result, fun creates_assms ---------------------------------------------------";
walther@59728
    17
"----------- fun result, fun creates_assms ---------------------------------------------------";
walther@59728
    18
val thm'' = ("real_mult_div_cancel2", @{thm real_mult_div_cancel2});
walther@59728
    19
val (f, res) = (@{term "a * x / (b * x) :: real"}, (@{term "a / b :: real"}, [@{term "k \<noteq> (0 :: real)"}]: term list))
walther@59728
    20
;
walther@59850
    21
Rewrite': theory' * Rule_Def.rew_ord' * rls * bool * thm'' * term * result -> T;
walther@59728
    22
val tac = Rewrite' ("Diff", "dummy_ord", e_rls, true, thm'', f, res)
walther@59728
    23
;
walther@59728
    24
if (Tactic.result tac |> term2str) = "a / b" then () else error "creates_assms CHANGED";
walther@59728
    25
if (Tactic.creates_assms tac |> terms2str) = "[\"k \<noteq> 0\"]" then () else error "creates_assms CHANGED";