eyemind 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SPEC.md +9 -3
- package/package.json +1 -1
- package/src/version.js +1 -1
package/SPEC.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
```text
|
|
4
4
|
Title: The eyemind Rule Language and Proof Format
|
|
5
|
-
Version: eyemind 0.2.
|
|
5
|
+
Version: eyemind 0.2.2
|
|
6
6
|
```
|
|
7
7
|
|
|
8
8
|
This document specifies the syntax and meaning of eyemind programs and data
|
|
@@ -289,8 +289,14 @@ of `_` followed by digits, which negation treats as anonymous.
|
|
|
289
289
|
Operators do not construct logical terms. An operator applied to a variable,
|
|
290
290
|
compound or predicate constructor, such as `X + 1` or `X > 1`, MUST raise
|
|
291
291
|
an error identifying the term form to write: `add(X, 1)` or `gt(X, 1)`.
|
|
292
|
-
Operators on ordinary JavaScript values keep their JavaScript meaning
|
|
293
|
-
|
|
292
|
+
Operators on ordinary JavaScript values keep their JavaScript meaning and
|
|
293
|
+
are evaluated by JavaScript before any term exists: `3 + 4` reaches the
|
|
294
|
+
implementation as the number 7, and `1 < 2` as a boolean, which is not a
|
|
295
|
+
term. Such a result is converted by the rules above like any other
|
|
296
|
+
number, so JavaScript arithmetic can lose integer precision, as in
|
|
297
|
+
`2 ** 60 + 1`, or the distinction between integers and floats, as in
|
|
298
|
+
`0.5 + 0.5`, which gives the integer 1. Programs SHOULD compute with `is`
|
|
299
|
+
and the arithmetic functions of Section 5, such as `is(Y, add(3, 4))`.
|
|
294
300
|
|
|
295
301
|
### 3.4 Statements
|
|
296
302
|
|
package/package.json
CHANGED
package/src/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// The release this checkout is; ./release keeps it in step with package.json.
|
|
2
|
-
export const VERSION = '0.2.
|
|
2
|
+
export const VERSION = '0.2.2';
|