| 1 |
|
| 2 |
OGATA |
| 3 |
===== |
| 4 |
|
| 5 |
Pat(rick) Brown - Ireland, Dublin, CafeOBJ in discrete math - |
| 6 |
logical approach to discrete math |
| 7 |
|
| 8 |
|
| 9 |
MIT Scheme |
| 10 |
|
| 11 |
|
| 12 |
* p.2: description of rewriting logic should be improved |
| 13 |
rewriting logic is used for |
| 14 |
|
| 15 |
rewriting logic != rewriting engine |
| 16 |
|
| 17 |
rewriting engine is used in all areas (also order logic rewriting) |
| 18 |
rewriting logic is used only for transitions |
| 19 |
|
| 20 |
We need to describe what is "rewriting logic" and have a separate |
| 21 |
point on "rewriting" as engine. |
| 22 |
|
| 23 |
* behavioral logic - mention what which connection to co-algebra |
| 24 |
|
| 25 |
* chpater 2 - start with mod! |
| 26 |
metnion that ! tight semantics ... some short comment |
| 27 |
|
| 28 |
* p.5: use "mixfix" instead of "infix" |
| 29 |
|
| 30 |
* p.8: "the last equation in each models" -> model ... |
| 31 |
|
| 32 |
* p.8: == is not about behaviour, but about "equal by rewriting" |
| 33 |
remove the "behavioral" ... just remove what is written before |
| 34 |
|
| 35 |
* p.8: make clear that it is normally *NOT* recommendable to use == |
| 36 |
especially =/= which is dangerous |
| 37 |
Here we have to made clear that this is only a very restricted usage |
| 38 |
for literals |
| 39 |
|
| 40 |
|
| 41 |
open PNAT . |
| 42 |
op a : -> Nat . |
| 43 |
red not ( a == 0 ) . |
| 44 |
close. |
| 45 |
|
| 46 |
reduces to true ... because it is only equivalence via rewriting. |
| 47 |
|
| 48 |
|
| 49 |
* p.8 parametrized modules: mention templates in C++ ???? |
| 50 |
|
| 51 |
* p.8 before after :: is not "sort" but "module" !!! |
| 52 |
|
| 53 |
* p.10 bottom: |
| 54 |
mixing protecting(STATE) |
| 55 |
with State => State transitions |
| 56 |
we actually have two "interpretations": |
| 57 |
- trans are on the "meta" level and we do not use rewriting logic |
| 58 |
we are protecting STATE |
| 59 |
- trans are part of a new algebra with trans (rewriting logic) |
| 60 |
we should use "extending" |
| 61 |
|
| 62 |
|
| 63 |
* p.10 bottom: |
| 64 |
if _ then _ else _ fi |
| 65 |
instead of .... |
| 66 |
|
| 67 |
* difference between == and = |
| 68 |
== reduction of terms to syntactical smae term => true else false |
| 69 |
= .. if no eq eqaution then the term is returned "as"is" |
| 70 |
(a = b) |
| 71 |
|
| 72 |
|
| 73 |
* new commands -> ask Sawada ... |
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
SAWADA |
| 79 |
====== |
| 80 |
p 10 renaming fst -> fst.clstate |
| 81 |
|
| 82 |
currently this is *ignored* but *no* warning/error!!! |
| 83 |
|
| 84 |
two things to be fixed: |
| 85 |
- if ignored then still a warning should be given |
| 86 |
- support dots in names |
| 87 |
|
| 88 |
|
| 89 |
------------- |
| 90 |
|
| 91 |
DONE |
| 92 |
mail from Sawada-san concerning operator precedence: |
| 93 |
|
| 94 |
(1) standard form: ex. op foo : S1 .. Sk -> S |
| 95 |
precedence = 0 |
| 96 |
(2) unary operator: ex. op unary_ : S1 -> S |
| 97 |
precedence = 15 |
| 98 |
(3) mix-fix with first & last tokens are both arguments: ex. op _ arg-or-op _ : |
| 99 |
S1 .. Sn -> S |
| 100 |
precedence = 41 |
| 101 |
(4) otherwise (constant operator, operators of the form like "begin__end") |
| 102 |
precedence = 0 |
| 103 |
|
| 104 |
--------------- |
| 105 |
|
| 106 |
comments from Sawada-san 2013-10-30 |
| 107 |
|
| 108 |
(DONE) |
| 109 |
(1) on-the-fly declarations (on p.21) |
| 110 |
The description of on-the-fly constant "`a:Nat" declaration |
| 111 |
|
| 112 |
"On-the-fly declaration of constants are done the same way, where |
| 113 |
the <name> is a con- |
| 114 |
stant name as in \a:Nat‘. Using this construct is equivalent to |
| 115 |
defining an operator |
| 116 |
op <name> : -> <sort> " |
| 117 |
|
| 118 |
is not incorrect, but I feel it is better to stress the fact |
| 119 |
that the declaration is effective |
| 120 |
only within the current context (axioms or a term). |
| 121 |
|
| 122 |
(2) obsolete commands/switches |
| 123 |
There seems to be some commands which don't work properly and are now |
| 124 |
almost obsolete. One of them is the command 'save-system' which |
| 125 |
tries to dump the |
| 126 |
executable image of the interpreter for later use. But I feel |
| 127 |
nobody use this command any more. |
| 128 |
And there would be other commands/switches which don't have |
| 129 |
significant value no more. |
| 130 |
I would like to list these things up and discuss the treatment |
| 131 |
of them with you. |
| 132 |
|
| 133 |
(3) putting some useful tips into the manual |
| 134 |
I think veteran users have many useful tips for avoiding troubles |
| 135 |
with the system or |
| 136 |
for enhancing productivity of their work. These are valuable |
| 137 |
information for novice users. |
| 138 |
Including tips might not fit the aim of the reference manual, though. |
| 139 |
|
| 140 |
----------------- |
| 141 |
|
| 142 |
|