eyemind 0.3.0 → 0.3.1

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
@@ -14,7 +14,7 @@ JavaScript library, and a browser application, with no dependencies.
14
14
  The guide shows how to run programs, write rules, check proofs, use the
15
15
  library and develop eyemind; the playground runs programs in your browser;
16
16
  the specification defines the language, its canonical text, the proof format
17
- and the C1–C8 checks. The examples are 94 runnable programs, each with a card
17
+ and the C1–C9 checks. The examples are 94 runnable programs, each with a card
18
18
  deck and saved conclusions, proofs and check reports. The conformance suite
19
19
  has 1283 cases that test any implementation of the specification through its
20
20
  command line; run it [in your browser](https://eyereasoner.github.io/eyemind/playground/conformance).
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.0
5
+ Version: eyemind 0.3.1
6
6
  ```
7
7
 
8
8
  This document specifies the syntax and meaning of eyemind programs and data
@@ -74,8 +74,9 @@ proof.
74
74
  - [11.7 C6 Boundary consistency](#117-c6-boundary-consistency)
75
75
  - [11.8 C7 Relevance](#118-c7-relevance)
76
76
  - [11.9 C8 Witness integrity](#119-c8-witness-integrity)
77
- - [11.10 Counts and validity](#1110-counts-and-validity)
78
- - [11.11 Scope of a valid proof](#1111-scope-of-a-valid-proof)
77
+ - [11.10 C9 Search closure](#1110-c9-search-closure)
78
+ - [11.11 Counts and validity](#1111-counts-and-validity)
79
+ - [11.12 Scope of a valid proof](#1112-scope-of-a-valid-proof)
79
80
  - [12. Check Reports](#12-check-reports)
80
81
  - [12.1 JSON form](#121-json-form)
81
82
  - [13. Command-Line Interface](#13-command-line-interface)
@@ -809,7 +810,7 @@ infinite closure. A finite model does not ensure search termination:
809
810
  recurs indefinitely. Exceeding a resource bound raises an error (Section
810
811
  8.3). Contradictions halt without completing the closure (Section 8.5).
811
812
  A valid proof establishes only its claims subject to its trusted boundaries
812
- (Section 11.11), not completeness of the model or the answers. Its search
813
+ (Section 11.12), not completeness of the model or the answers. Its search
813
814
  certificate settles the negations and collections it can (Section 10.4).
814
815
 
815
816
  ## 8. Evaluation and Conclusions
@@ -954,7 +955,7 @@ justified: by a fact or rule of the program, by a derived fact (whose own
954
955
  record is kept), by a primitive, by a control, by an absence (a negation) or
955
956
  by a collection (`findall`). For each conclusion the first derivation found is
956
957
  recorded. Each negation and collection of a proof gets the search certificate
957
- that settles it (Sections 10.4 and 11.7) whenever Section 11.7 allows one. A
958
+ that settles it (Sections 10.4 and 11.10) whenever Section 11.10 allows one. A
958
959
  table holds every answer of its call, so it can search beyond where the run
959
960
  stopped, as under `once`; a boundary whose tables would meet an error, or
960
961
  exceed `max_inferences` calls and answers (Section 8.3), stays trusted. A
@@ -1193,7 +1194,7 @@ proof's negations and collections:
1193
1194
 
1194
1195
  A table exists for each call to a relation that a backward rule defines or
1195
1196
  forward rules conclude, made by those searches or by the closure checks of
1196
- Section 11.7; a call to a relation defined by facts alone needs none. A
1197
+ Section 11.10; a call to a relation defined by facts alone needs none. A
1197
1198
  listing exists for each relation forward rules conclude that a table or a
1198
1199
  closure check consults. A reasoner writes only the tables and listings of
1199
1200
  the boundaries it settles: listings first, in the order first consulted,
@@ -1210,8 +1211,8 @@ A checker is given a program, a proof document and, when the proof answers
1210
1211
  goals asked from outside the program, those goals. It MUST NOT call a
1211
1212
  reasoner to supply a missing step; it MAY recompute primitives, and it MAY
1212
1213
  expand a call one level against the program with every inner call answered
1213
- by the search certificate (Section 11.7). It
1214
- establishes eight conditions and records each failure with its condition, a
1214
+ by the search certificate (Section 11.10). It
1215
+ establishes nine conditions and records each failure with its condition, a
1215
1216
  detail and, where there is one, the term concerned.
1216
1217
 
1217
1218
  ### 11.1 Reading the document
@@ -1270,7 +1271,7 @@ failure, whose conclusion is the goal of that step.
1270
1271
  no bindings and no uses and a goal that is a primitive; an `'absent'` or
1271
1272
  `'collected'` step MUST have no bindings and no uses and a goal that is a
1272
1273
  negation or a `findall`, respectively. A step that fails C3 is not a trusted
1273
- boundary: it counts in neither `trusted` nor C6.
1274
+ boundary: it counts in neither `trusted`, C6 nor C9.
1274
1275
 
1275
1276
  ### 11.5 C4 Coverage
1276
1277
 
@@ -1300,62 +1301,11 @@ proof fail on an implementation other than the one that made it.
1300
1301
 
1301
1302
  ### 11.7 C6 Boundary consistency
1302
1303
 
1303
- A negation or collection is a **boundary**. A checker first tries to
1304
- **settle** each well-formed boundary step (Section 11.4) with the search
1305
- certificate, by searching its goal `G` as Section 8.1 does, except that:
1304
+ A negation or collection is a **boundary**. A boundary that its search
1305
+ certificate settles or refutes is checked by C9 (Section 11.10); C6
1306
+ confronts every other well-formed boundary step with the evidence at hand.
1306
1307
 
1307
- - a call to a relation that a backward rule defines or forward rules
1308
- conclude is answered by the table whose call is identical to it up to
1309
- renaming, each answer renamed apart in turn, and a call to a relation
1310
- defined by facts alone by those facts, in clause order;
1311
- - a negation inside the search treats its unbound variables as anonymous.
1312
-
1313
- The **expansion** of a call is the search of Section 8.1 taken one level:
1314
- the facts in the listing of its relation, in order, then the program's facts
1315
- and backward rules of that name and arity, in clause order, each rule's body
1316
- searched in its place, inner calls answered as above. The boundary's search
1317
- **rests on** each table and listing it consults, and on those its tables and
1318
- the closure checks of its listings consult, transitively. The boundary is
1319
- settled when:
1320
-
1321
- 1. each table it rests on equals its expansion: the same number of answers,
1322
- each identical up to renaming of variables to the answer in the same
1323
- position;
1324
- 2. each listing it rests on has a step for each fact, every fact of the
1325
- listed name and arity and ground, and is **closed**: for each forward
1326
- rule with a head of that relation, each solution of the rule's body under
1327
- the certificate, with the rule's witnesses bound to their Skolem terms
1328
- (Section 8.2), gives head instances of that relation that are listed or
1329
- are ground facts of the program;
1330
- 3. no table it rests on depends on itself through the tables its expansion
1331
- consults;
1332
- 4. its outcome agrees: for a negation, `G` has no solution; for a collection
1333
- `findall(T, G, L)`, `L` is an instance of the list of the instances of
1334
- `T`, one per solution of `G`, in order, each renamed apart;
1335
- 5. no collection or `once` within its search, a table it rests on or a
1336
- closure check uses a table whose answers rest on a listing, since the
1337
- order of derived facts cannot be checked this way; and its search reaches
1338
- no source inspection and no clause appended by a template, and it
1339
- consults no listing whose relation a forward rule with a template head
1340
- or captures concludes (Section 6.2).
1341
-
1342
- For example, the absence `not(nonpacifist('ada'))` rests on the table
1343
- `searched(nonpacifist('ada'), [])` and the listing `derived(nonpacifist(A),
1344
- [nonpacifist('nixon')])`. The table equals its expansion: the listed fact
1345
- does not match the call, and no backward rule defines `nonpacifist/1`. The
1346
- listing is closed: the only rule concluding `nonpacifist/1` derives
1347
- `nonpacifist('nixon')`, which is listed, and that fact has its own step.
1348
-
1349
- A boundary fails C6 when its certificate is wrong: a table differs from its
1350
- expansion, a listed fact has no step or another name or arity, a listing is
1351
- not closed, tables depend on themselves, a search leads to an error, or a
1352
- negation's goal has a solution. Each wrong table or listing is reported once,
1353
- for the first boundary resting on it. A boundary whose certificate is
1354
- missing, incomplete or not applicable under item 5, or a collection whose
1355
- list does not agree, is not settled. A boundary that is not settled is
1356
- trusted, including one that fails C6.
1357
-
1358
- A trusted boundary that is not settled cannot be proved, but the evidence at
1308
+ A boundary that is not settled cannot be proved, but the evidence at
1359
1309
  hand can refute it. The evidence for a goal is: when the goal is a ground
1360
1310
  primitive, the goal itself if it holds, and otherwise the recomputed fact
1361
1311
  that it fails; when it is a control, none, and the boundary is left
@@ -1422,7 +1372,65 @@ even when the body leaves it unbound; its value comes from the uses, which
1422
1372
  other conditions check. A step with no witnesses in its own forward head or enclosing generators is
1423
1373
  not covered by C8.
1424
1374
 
1425
- ### 11.10 Counts and validity
1375
+ ### 11.10 C9 Search closure
1376
+
1377
+ A checker tries to **settle** each well-formed boundary step (Sections 11.4
1378
+ and 11.7) with the search certificate, by searching its goal `G` as Section
1379
+ 8.1 does, except that:
1380
+
1381
+ - a call to a relation that a backward rule defines or forward rules
1382
+ conclude is answered by the table whose call is identical to it up to
1383
+ renaming, each answer renamed apart in turn, and a call to a relation
1384
+ defined by facts alone by those facts, in clause order;
1385
+ - a negation inside the search treats its unbound variables as anonymous.
1386
+
1387
+ The **expansion** of a call is the search of Section 8.1 taken one level:
1388
+ the facts in the listing of its relation, in order, then the program's facts
1389
+ and backward rules of that name and arity, in clause order, each rule's body
1390
+ searched in its place, inner calls answered as above. The boundary's search
1391
+ **rests on** each table and listing it consults, and on those its tables and
1392
+ the closure checks of its listings consult, transitively. The boundary is
1393
+ settled when:
1394
+
1395
+ 1. each table it rests on equals its expansion: the same number of answers,
1396
+ each identical up to renaming of variables to the answer in the same
1397
+ position;
1398
+ 2. each listing it rests on has a step for each fact, every fact of the
1399
+ listed name and arity and ground, and is **closed**: for each forward
1400
+ rule with a head of that relation, each solution of the rule's body under
1401
+ the certificate, with the rule's witnesses bound to their Skolem terms
1402
+ (Section 8.2), gives head instances of that relation that are listed or
1403
+ are ground facts of the program;
1404
+ 3. no table it rests on depends on itself through the tables its expansion
1405
+ consults;
1406
+ 4. its outcome agrees: for a negation, `G` has no solution; for a collection
1407
+ `findall(T, G, L)`, `L` is an instance of the list of the instances of
1408
+ `T`, one per solution of `G`, in order, each renamed apart;
1409
+ 5. no collection or `once` within its search, a table it rests on or a
1410
+ closure check uses a table whose answers rest on a listing, since the
1411
+ order of derived facts cannot be checked this way; and its search reaches
1412
+ no source inspection and no clause appended by a template, and it
1413
+ consults no listing whose relation a forward rule with a template head
1414
+ or captures concludes (Section 6.2).
1415
+
1416
+ For example, the absence `not(nonpacifist('ada'))` rests on the table
1417
+ `searched(nonpacifist('ada'), [])` and the listing `derived(nonpacifist(A),
1418
+ [nonpacifist('nixon')])`. The table equals its expansion: the listed fact
1419
+ does not match the call, and no backward rule defines `nonpacifist/1`. The
1420
+ listing is closed: the only rule concluding `nonpacifist/1` derives
1421
+ `nonpacifist('nixon')`, which is listed, and that fact has its own step.
1422
+
1423
+ A boundary fails C9 when its certificate is wrong: a table differs from its
1424
+ expansion, a listed fact has no step or another name or arity, a listing is
1425
+ not closed, tables depend on themselves, a search leads to an error, or a
1426
+ negation's goal has a solution. Each wrong table or listing is reported once,
1427
+ for the first boundary resting on it. A boundary whose certificate is
1428
+ missing, incomplete or not applicable under item 5, or a collection whose
1429
+ list does not agree, is not settled. A boundary that is not settled is
1430
+ trusted, including one that fails C9; C6 confronts each boundary C9 neither
1431
+ settled nor refuted with the evidence (Section 11.7).
1432
+
1433
+ ### 11.11 Counts and validity
1426
1434
 
1427
1435
  | Condition | Covered |
1428
1436
  | --- | --- |
@@ -1431,20 +1439,21 @@ not covered by C8.
1431
1439
  | C3 justification | steps |
1432
1440
  | C4 coverage | claims plus uses |
1433
1441
  | C5 re_decision | `'builtin'` and `'control'` steps that passed C5 |
1434
- | C6 boundary_consistency | boundaries settled, failed or decided |
1442
+ | C6 boundary_consistency | boundaries not settled that the evidence decided |
1435
1443
  | C7 relevance | claims plus steps |
1436
1444
  | C8 witness_integrity | `clause` steps with witnesses in their forward head or enclosing generators that passed C8 |
1445
+ | C9 search_closure | boundaries their search certificate settled or refuted |
1437
1446
 
1438
1447
  A check also counts the **steps** it read, the **claims**, the `clause` steps
1439
1448
  **verified** by C1, the `source` inspection steps also **verified** by C1,
1440
1449
  the `'builtin'` steps **recomputed** by C5, the
1441
1450
  `'control'` steps **composed** by C5, and the `'absent'` and `'collected'`
1442
- steps **trusted**, those C6 did not settle.
1451
+ steps **trusted**, those C9 did not settle.
1443
1452
 
1444
1453
  A proof is **valid** when no condition failed. A valid proof with trusted
1445
1454
  boundaries is valid *conditional on* them.
1446
1455
 
1447
- ### 11.11 Scope of a valid proof
1456
+ ### 11.12 Scope of a valid proof
1448
1457
 
1449
1458
  A valid proof establishes that each of its claims follows from the program
1450
1459
  by the recorded steps, given its trusted boundaries; a settled boundary is
@@ -1459,14 +1468,14 @@ A check report is a document (Section 9.1) beginning with the proof's claims,
1459
1468
  in proof order, in canonical text, one per line, followed by a blank line and
1460
1469
  the following report facts, one per line:
1461
1470
 
1462
- 1. `condition(Id, Name, Outcome, Covered)` for C1 to C8, where `Outcome` is
1471
+ 1. `condition(Id, Name, Outcome, Covered)` for C1 to C9, where `Outcome` is
1463
1472
  `'ok'` or `failed(N)`, `N` the number of that condition's failures;
1464
1473
  2. `failure(Condition, Subject, Detail)` per failure, where `Subject` is the
1465
1474
  term concerned or `'proof_document'`, and `Detail` an atom;
1466
1475
  3. `obligation(Kind, 'theory_scoped', Goal)` per trusted boundary, in step
1467
1476
  order, where `Kind` is `'absent'` or `'collected'`;
1468
1477
  4. `steps(N)`, `verified(N)`, `recomputed(N)`, `composed(N)`, `trusted(N)`,
1469
- `claims(N)`, the counts of Section 11.10;
1478
+ `claims(N)`, the counts of Section 11.11;
1470
1479
  5. `verdict(V)`, where `V` is `failed(N)` when `N` failures were recorded,
1471
1480
  otherwise `'checked_with_obligations'` when there are obligations,
1472
1481
  otherwise `'checked'`.
@@ -1476,15 +1485,16 @@ report is valid with no obligations. A valid report with obligations MUST
1476
1485
  label them as conditional on those obligations. A failed report MUST label
1477
1486
  them as unverified claims; their inclusion does not validate them. A valid
1478
1487
  report with no claims MUST say it establishes no conclusions. Comments also
1479
- explain the C1-C8 order, failures and obligations when present, the statistics,
1488
+ explain the C1-C9 order, failures and obligations when present, the statistics,
1480
1489
  and that the verdict does not establish completeness. Comments are informative
1481
1490
  and MAY be worded differently. They are ignored when the document is read.
1482
1491
 
1483
1492
  Failures are listed in the order they are found: those of reading the
1484
1493
  document (Section 11.1), in document order; C4 for each claim, in claim
1485
1494
  order; then for each step, in document order, C4 for its uses and the C1, C3,
1486
- C5 or C8 failure of its justification; C6 for each boundary, in step order,
1487
- those of its search certificate in the order found; C7 for each claim, then
1495
+ C5 or C8 failure of its justification; for each boundary, in step order, the
1496
+ C9 failures of its search certificate in the order found, or else its C6
1497
+ failure; C7 for each claim, then
1488
1498
  for each step, then for each table and listing, in document order; and C2.
1489
1499
 
1490
1500
  `Detail` is informative text identifying what failed; its wording is not
@@ -1659,7 +1669,7 @@ including proofs, reports, goals and `facts_from` input, MUST be read as data
1659
1669
  without executing code. A deployment accepting untrusted documents SHOULD
1660
1670
  bound their size, nesting depth, processing time and memory, in addition to
1661
1671
  the reasoning bounds of Section 8.3. A valid proof establishes only the
1662
- claims and assumptions described in Section 11.11.
1672
+ claims and assumptions described in Section 11.12.
1663
1673
 
1664
1674
  ## Appendix A. Document Grammar
1665
1675
 
@@ -1742,8 +1752,8 @@ Its check report (Section 12):
1742
1752
  type('socrates', 'mortal')
1743
1753
  type('socrates', 'human')
1744
1754
 
1745
- // C1-C8: resolution, acyclicity, justification, coverage,
1746
- // re-decision, boundary consistency, relevance and witness integrity.
1755
+ // C1-C9: resolution, acyclicity, justification, coverage, re-decision,
1756
+ // boundary consistency, relevance, witness integrity and search closure.
1747
1757
  condition('C1', 'resolution', 'ok', 3)
1748
1758
  condition('C2', 'well_founded', 'ok', 3)
1749
1759
  condition('C3', 'justification', 'ok', 3)
@@ -1752,6 +1762,7 @@ condition('C5', 're_decision', 'ok', 0)
1752
1762
  condition('C6', 'boundary_consistency', 'ok', 0)
1753
1763
  condition('C7', 'relevance', 'ok', 5)
1754
1764
  condition('C8', 'witness_integrity', 'ok', 0)
1765
+ condition('C9', 'search_closure', 'ok', 0)
1755
1766
 
1756
1767
  // Proof statistics: recorded steps and how they were checked.
1757
1768
  steps(3)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eyemind",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
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/cli.js CHANGED
@@ -9,7 +9,7 @@ export const HELP = `Usage: eyemind [OPTION ...] [FILE ...]
9
9
  Programs are JavaScript; forward rules run to a fixpoint.
10
10
  -p, --proof Print the claims with clause(...) and step(...) records
11
11
  -c, --prove-and-check Generate a proof and check it against the input program
12
- --check-proof FILE Print checked answers and a C1-C8 report (- for stdin)
12
+ --check-proof FILE Print checked answers and a C1-C9 report (- for stdin)
13
13
  --json Print the check report as JSON instead
14
14
  --goal GOAL Ask a backward goal after forward reasoning; with
15
15
  --check-proof, the goal the proof answers
package/src/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // Facts and rules are JavaScript. Forward rules materialize conclusions until
4
4
  // a fixpoint, backward rules are decided when a goal asks for them, and every
5
5
  // answer can come with a proof that a separate checker verifies against the
6
- // program, condition by condition (C1-C8).
6
+ // program, condition by condition (C1-C9).
7
7
  export { VERSION } from './version.js';
8
8
  export { Result, run, unusedClauses } from './engine.js';
9
9
  export { readGoal } from './goals.js';
package/src/proof.js CHANGED
@@ -1,4 +1,4 @@
1
- // Proof documents: rendering, and checking C1-C8 against the source program.
1
+ // Proof documents: rendering, and checking C1-C9 against the source program.
2
2
  //
3
3
  // A proof document is JavaScript source, one expression per line: first the
4
4
  // claims, then clause(N, Display) for every source clause the proof cites,
@@ -300,7 +300,7 @@ export function checkRendered(program, checkable, goals = null, allowTrusted = t
300
300
  }
301
301
 
302
302
  // Settle each negation and collection that is well formed by its search
303
- // certificate (C6), before the steps are checked: a settled one is no
303
+ // certificate (C9), before the steps are checked: a settled one is no
304
304
  // obligation.
305
305
  function settleBoundaries(program, steps, certificate, spellings) {
306
306
  const settler = new Settler(program, {
@@ -328,7 +328,7 @@ function check(program, claims, steps, certificate, goals, allowTrusted, fail, s
328
328
  }
329
329
  }
330
330
  const tally = checkSteps(program, steps, allowTrusted, fail, spellings, name, settlement.outcomes);
331
- const confronted = checkBoundaries(program, steps, tally.boundaries, fail, settlement.outcomes, spellings);
331
+ const [confronted, closed] = checkBoundaries(program, steps, tally.boundaries, fail, settlement.outcomes, spellings);
332
332
  checkRelevance(program, claims, steps, goals || [], fail, spellings, settlement, certificate);
333
333
  checkWellFounded(steps, fail, spellings);
334
334
  let uses = 0;
@@ -343,6 +343,7 @@ function check(program, claims, steps, certificate, goals, allowTrusted, fail, s
343
343
  { id: 'C6', name: 'boundary_consistency', covered: confronted, failed: failed('C6') },
344
344
  { id: 'C7', name: 'relevance', covered: claims.length + steps.size, failed: failed('C7') },
345
345
  { id: 'C8', name: 'witness_integrity', covered: tally.witnessed, failed: failed('C8') },
346
+ { id: 'C9', name: 'search_closure', covered: closed, failed: failed('C9') },
346
347
  ];
347
348
  return {
348
349
  valid: !fail.items.length,
@@ -694,12 +695,13 @@ function checkWitnesses(clause, head, names, env) {
694
695
  return text(listFromItems(expected)) === text(firing);
695
696
  }
696
697
 
697
- // C6: a boundary its search certificate settles holds; one whose certificate
698
- // fails does not. Without a certificate a boundary cannot be proved, but
699
- // evidence at hand can refute it. An absence fails when a source fact, a step
700
- // of this certificate or a recomputed primitive is a solution; a collection
701
- // fails when such a solution is missing from its list. Returns how many
702
- // boundaries a certificate or the evidence could speak for.
698
+ // C9 and C6. A boundary its search certificate settles holds, and one whose
699
+ // certificate is wrong fails C9. Without a settling certificate a boundary
700
+ // cannot be proved, but evidence at hand can refute it (C6). An absence fails
701
+ // when a source fact, a step of this certificate or a recomputed primitive is
702
+ // a solution; a collection fails when such a solution is missing from its
703
+ // list. Returns how many boundaries the evidence could speak for, and how
704
+ // many their certificates settled or refuted.
703
705
  function checkBoundaries(program, steps, boundaries, fail, outcomes, spellings) {
704
706
  const stepGoals = new Map();
705
707
  for (const step of steps.values()) {
@@ -711,6 +713,7 @@ function checkBoundaries(program, steps, boundaries, fail, outcomes, spellings)
711
713
  }
712
714
  let serial = 0;
713
715
  let confronted = 0;
716
+ let closed = 0;
714
717
  const nextSerial = () => ++serial;
715
718
 
716
719
  // Each solution of a simple goal that the evidence shows, or null when the
@@ -746,8 +749,8 @@ function checkBoundaries(program, steps, boundaries, fail, outcomes, spellings)
746
749
  for (const boundary of boundaries) {
747
750
  const outcome = outcomes.get(spellings.spell(boundary));
748
751
  if (outcome !== undefined && outcome.status !== 'unsettled') {
749
- confronted++;
750
- for (const [detail, term] of outcome.failures) fail.add('C6', detail, term);
752
+ closed++;
753
+ for (const [detail, term] of outcome.failures) fail.add('C9', detail, term);
751
754
  continue;
752
755
  }
753
756
  if (isTerm(boundary, 'not', 1)) {
@@ -786,7 +789,7 @@ function checkBoundaries(program, steps, boundaries, fail, outcomes, spellings)
786
789
  }
787
790
  }
788
791
  }
789
- return confronted;
792
+ return [confronted, closed];
790
793
  }
791
794
 
792
795
  // C7: the certificate answers the question that was asked and carries nothing
@@ -923,8 +926,8 @@ export function checkReport(report) {
923
926
  : report.trusted.length ? '// Answers checked subject to the obligations below.'
924
927
  : '// Checked answers: these follow from the input program.';
925
928
  const lines = [heading, ...report.answers, '',
926
- '// C1-C8: resolution, acyclicity, justification, coverage,',
927
- '// re-decision, boundary consistency, relevance and witness integrity.'];
929
+ '// C1-C9: resolution, acyclicity, justification, coverage, re-decision,',
930
+ '// boundary consistency, relevance, witness integrity and search closure.'];
928
931
  let previous = null;
929
932
  for (const fact of facts) {
930
933
  if (fact.name === 'failure' && previous !== 'failure') {
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.0';
2
+ export const VERSION = '0.3.1';