eyemind 0.8.15 → 0.8.16

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/LS-SPEC.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```text
4
4
  Title: The Logic Script (LS) Language and Proof Format
5
- Version: eyemind 0.8.15
5
+ Version: eyemind 0.8.16
6
6
  ```
7
7
 
8
8
  This document specifies Logic Script (LS): the syntax and meaning of its
package/README.md CHANGED
@@ -13,7 +13,7 @@ program, a JavaScript library and a browser application.
13
13
  [Playground](https://eyereasoner.github.io/eyemind/playground/) · [Examples](https://eyereasoner.github.io/eyemind/examples/) · [Specification](https://eyereasoner.github.io/eyemind/LS-SPEC) · [Conformance](https://eyereasoner.github.io/eyemind/conformance/)
14
14
 
15
15
  The examples are 158 runnable programs, each with a card deck and saved
16
- conclusions; all but one streamed example also save proofs and check reports. The specification defines the language,
16
+ conclusions; all but the two streamed examples also save proofs and check reports. The specification defines the language,
17
17
  the proof format and how a proof is checked; its conformance suite has
18
18
  1247 cases that test language and proof behavior, and runs
19
19
  [in your browser](https://eyereasoner.github.io/eyemind/playground/conformance).
@@ -52,32 +52,42 @@ the proof format and how a proof is checked; its conformance suite has
52
52
 
53
53
  ## Why eyemind?
54
54
 
55
- 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.
56
-
57
- 1. **The proof covers everything that went into the answer.**
58
- - Most engines show an answer, or at best a trace you have to trust.
59
- - eyemind proofs include the hard parts:
60
- - "nothing matched" (negation and collections), decided from complete answer tables whose listings of derived facts must be closed;
61
- - what a rule says exists, as the Skolem term of that rule firing;
62
- - whether each answer really answers the question asked, and whether every answer of the question is there.
63
- - A forged proof must never pass the check, so a result is something you can hand to someone who does not trust your engine.
64
- 2. **Logic Script programs are JavaScript scripts.**
65
- - There is no syntax to learn, no parser to install and no dependency.
66
- - The same program runs on the command line, as a library and in a browser tab.
67
- - Conclusions and proofs are data that is read back into terms without being run.
68
- 3. **Forward and backward reasoning in one program.**
69
- - Classic Datalog is forward-only and has no function terms; Prolog is backward-only.
70
- - eyemind does both: forward rounds compute what follows, backward search answers questions, the two call each other, and what a rule says exists becomes a Skolem term.
71
- 4. **A specification written for other implementers.**
72
- - The specification and its black-box [conformance suite](https://eyereasoner.github.io/eyemind/conformance/) let someone else build an independent LS implementation and test it.
73
- - Agreement between independent implementations is what makes a proof worth more than "trust our code".
74
- 5. **Exact numbers.** Integers are BigInts and are never silently turned into floats.
75
-
76
- When eyemind is not the right tool:
77
-
78
- - If you do not need proofs, use the mature tools: SWI-Prolog and XSB have tabling, and Soufflé is fast at scale.
79
- - N3 and SRL are designed around RDF and Web data. eyemind does not compete there: it reads them, and compiles them to LS (see [Other formats](#other-formats)).
80
- - eyemind is for cases where someone else has to be able to check why a conclusion holds: audits, compliance, and decisions between parties that do not trust each other.
55
+ eyemind adds no new logic: as in Datalog, Prolog, N3 and SRL, rules run to a
56
+ least fixpoint, with stratified negation and collection. What it adds is
57
+ evidence. Every conclusion can come with a proof that a separate checker
58
+ verifies against your program, without running the reasoner.
59
+
60
+ 1. **Proofs that cover the whole answer.** Most engines give an answer, or a
61
+ trace you have to trust. An eyemind proof also justifies the hard parts:
62
+ - that nothing matched, for negation and collections, from complete answer
63
+ tables whose listings of derived facts must be closed;
64
+ - what a rule says exists, as the Skolem term of its firing;
65
+ - that each answer answers the question asked, and that none is missing.
66
+
67
+ A forged proof must never pass the check, so you can hand a result to
68
+ someone who does not trust your engine.
69
+ 2. **Programs are JavaScript.** No syntax to learn, no parser to install, no
70
+ dependencies. One program runs on the command line, as a library and in a
71
+ browser tab; conclusions and proofs are data, read back without being run.
72
+ 3. **Forward and backward reasoning together.** Datalog is forward-only and
73
+ has no function terms; Prolog is backward-only. In eyemind, forward rounds
74
+ derive what follows, backward search answers questions, and each calls the
75
+ other.
76
+ 4. **Your formats, the same proofs.** RDF 1.2, N3, SRL, Logical English and
77
+ the OWL 2 RL, SKOS, QUDT and SHACL profiles compile to LS, so their
78
+ conclusions get the same checkable proofs.
79
+ 5. **Written for other implementers.** The specification and its black-box
80
+ [conformance suite](https://eyereasoner.github.io/eyemind/conformance/) let
81
+ others build an independent LS implementation. Agreement between
82
+ implementations is what makes a proof worth more than "trust our code".
83
+ 6. **Exact numbers.** Integers are BigInts and never silently become floats.
84
+
85
+ **When to use something else.** If you do not need proofs, mature tools are
86
+ faster: SWI-Prolog and XSB have tabling, and Soufflé scales. N3 and SRL are
87
+ built for Web data; eyemind reads and compiles them rather than competing
88
+ (see [Other formats](#other-formats)). eyemind is for conclusions someone else
89
+ must be able to check: audits, compliance, and decisions between parties that
90
+ do not trust each other.
81
91
 
82
92
  ## Install and run
83
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyemind",
3
- "version": "0.8.15",
3
+ "version": "0.8.16",
4
4
  "description": "A dependency-free Logic Script (LS) reasoner with forward and backward reasoning, checkable proofs, and RDF 1.2, Notation3 (N3), SPARQL 1.2 RL (SRL) and Logical English (LE) interoperability.",
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.8.15';
2
+ export const VERSION = '0.8.16';