eyemind 0.3.8 → 0.3.10

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/README.md CHANGED
@@ -34,7 +34,7 @@ The playground runs programs in your browser; the specification defines the lang
34
34
 
35
35
  ## Why eyemind?
36
36
 
37
- Prolog, Datalog, N3 and SRL already exist, and eyemind adds no new logic: rules run to a least fixpoint, with stratified negation and aggregation. What it adds is that it does not stop at the answer. Every conclusion can come with a proof that a separate checker verifies against your program, without calling the reasoner.
37
+ Prolog, Datalog, N3 and SRL already exist, and eyemind adds no new logic: rules run to a least fixpoint, with stratified negation and collection. What it adds is that it does not stop at the answer. Every conclusion can come with a proof that a separate checker verifies against your program, without calling the reasoner.
38
38
 
39
39
  1. **The proof covers everything that went into the answer.**
40
40
  - Most engines show an answer, or at best a trace you have to trust.
@@ -121,7 +121,7 @@ Now add `fact(parent('carol', 'dave'))`, or remove a rule, and watch which answe
121
121
  | `contradiction(...Body)` | Stop with exit code 65 when `Body` holds: an integrity constraint. |
122
122
  | `facts_from(path)`, `facts_from({text})` | State every expression of a document as a fact, without running it. |
123
123
 
124
- **An array is a conjunction:** `implies([p(X), q(X)], [r(X), s(X)])`. Disjunction is `or(A, B)` and negation `not(G)`, alongside `call`, `once` and `findall`.
124
+ **An array is a conjunction:** `implies([p(X), q(X)], [r(X), s(X)])`. Disjunction is `or(A, B)`, negation is `not(G)`, and collection is `findall(T, G, L)`, alongside `call` and `once`.
125
125
 
126
126
  ### Terms and names
127
127
 
@@ -194,7 +194,7 @@ The statement chooses the direction:
194
194
 
195
195
  Forward rules suit closures and classifications: `implies([path(X, Y), edge(Y, Z)], path(X, Z))` terminates on a cyclic graph. Backward rules suit computations driven by their inputs, such as arithmetic recursion and list processing. Backward chaining keeps no table of answers, so a backward rule that calls itself with the same goal runs until a bound stops it; such recursion belongs in a forward rule.
196
196
 
197
- The two work together: a forward rule's premise can call a backward definition, and a backward goal sees the facts forward rules derived. Forward rules run stratum by stratum, so a negation or `findall` waits until everything it inspects is final. `--max-depth`, `--max-iterations` and `--max-inferences` bound a run, and exceeding one is an error, never a partial answer. [SPEC §8](https://eyereasoner.github.io/eyemind/SPEC#8-evaluation-and-conclusions) defines the details.
197
+ The two work together: a forward rule's premise can call a backward definition, and a backward goal sees the facts forward rules derived. Forward rules run stratum by stratum, so a negation or collection waits until everything it inspects is final. `--max-depth`, `--max-iterations` and `--max-inferences` bound a run, and exceeding one is an error, never a partial answer. [SPEC §8](https://eyereasoner.github.io/eyemind/SPEC#8-evaluation-and-conclusions) defines the details.
198
198
 
199
199
  ## Proofs, and what checking one means
200
200
 
@@ -249,7 +249,7 @@ A failed check gives `failure(Condition, Conclusion, Detail)` facts, `verdict(fa
249
249
 
250
250
  ### Why negation and collection are safe
251
251
 
252
- `not(G)` concludes from what is *absent* and `findall(T, G, L)` from *everything* present, so both are only right once nothing more can be derived:
252
+ A negation `not(G)` concludes from what is *absent* and a collection `findall(T, G, L)` from *everything* present, so both are only right once nothing more can be derived:
253
253
 
254
254
  - **Ask only once the answer is final.** Rules are ranked so that everything a negation or collection inspects reaches its fixpoint first; a program with no such ranking, such as `implies(not(q), p)` with `implies(p, q)`, is rejected.
255
255
  - **Negate only what is bound.** The variables of `not(G)` must be bound when it runs; write `not(q(X, _))` for "no value at all".
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.3.8
5
+ Version: eyemind 0.3.10
6
6
  ```
7
7
 
8
8
  This document specifies the syntax and meaning of eyemind programs and data
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyemind",
3
- "version": "0.3.8",
3
+ "version": "0.3.10",
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.3.8';
2
+ export const VERSION = '0.3.10';