walther@59882
|
1 |
(* Title: BaseDefinitions/celem-7.sml
|
walther@59882
|
2 |
Author: Walther Neuper
|
walther@59882
|
3 |
(c) due to copyright terms
|
walther@59882
|
4 |
|
walther@59882
|
5 |
*)
|
walther@59893
|
6 |
signature COMPUTER_ALGEBRA_SYSTEM__COMMAND_DEF =
|
walther@59882
|
7 |
sig
|
walther@59896
|
8 |
type T
|
walther@59896
|
9 |
(*type cas_elem*)
|
walther@59896
|
10 |
val equal: T * T -> bool
|
walther@59896
|
11 |
(*val cas_eq: T * T -> bool*)
|
walther@59896
|
12 |
|
walther@59882
|
13 |
(* ---- for tests only: shifted from below to remove the Warning "unused" at fun.def. --------- *)
|
walther@59882
|
14 |
(*NONE*)
|
walther@59886
|
15 |
(*/-------------------------------------------------------- ! aktivate for Test_Isac BEGIN ---\* )
|
walther@59882
|
16 |
(*NONE*)
|
walther@59886
|
17 |
( *\--- ! aktivate for Test_Isac END ----------------------------------------------------------/*)
|
walther@59882
|
18 |
end
|
walther@59882
|
19 |
|
walther@59882
|
20 |
(**)
|
walther@59893
|
21 |
structure CAS_Def(**): COMPUTER_ALGEBRA_SYSTEM__COMMAND_DEF(**) =
|
walther@59882
|
22 |
struct
|
walther@59882
|
23 |
(**)
|
walther@59882
|
24 |
|
walther@59884
|
25 |
(* association list with cas-commands, for generating a complete calc-head *)
|
walther@59884
|
26 |
type generate_fn =
|
walther@59884
|
27 |
(term list -> (* the arguments of the cas-command, eg. (x+1=2, x) *)
|
walther@59884
|
28 |
(term * (* description of an element *)
|
walther@59884
|
29 |
term list) (* value of the element (always put into a list) *)
|
walther@59884
|
30 |
list) (* of elements in the formalization *)
|
walther@59896
|
31 |
type T =
|
walther@59884
|
32 |
(term * (* cas-command, eg. 'solve' *)
|
walther@59903
|
33 |
(Spec.T * (* theory, problem, method *)
|
walther@59884
|
34 |
generate_fn))
|
walther@59896
|
35 |
fun equal ((t1, (_, _)) : T, (t2, (_, _)) : T) = t1 = t2
|
walther@59882
|
36 |
|
walther@59882
|
37 |
(**)end(**)
|