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 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.1
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
- `3 + 4` gives the integer 7, but `1 < 2` gives a boolean, which is not a term.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyemind",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "A dependency-free JavaScript rule language with forward and backward reasoning and checkable proofs.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
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.1';
2
+ export const VERSION = '0.2.2';