occam-verify-cli 0.0.989 → 0.0.991

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.
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ import metaLevelUnifier from "../unifier/metaLevel";
4
+
5
+ export default function unifyComplexSubstitutionStatementWithSimpleSubstitutionStatement(simpleSubstitutionStatementNode, complexSubstitutionStatementNode, substitutions, localContextA, localContextB) {
6
+ let simpleSubstitutionStatementUnifiedWithComplexSubstitutionStatement;
7
+
8
+ const simpleSubstitutionStatementString = localContextB.nodeAsString(simpleSubstitutionStatementNode),
9
+ complexSubstitutionStatementString = localContextB.nodeAsString(complexSubstitutionStatementNode);
10
+
11
+ localContextB.trace(`Unifying the simple substitution's '${simpleSubstitutionStatementString}' statement with the complex substitution's '${complexSubstitutionStatementString}' statement...`, simpleSubstitutionStatementNode);
12
+
13
+ const nodeA = complexSubstitutionStatementNode, ///
14
+ nodeB = simpleSubstitutionStatementNode; ///
15
+
16
+ localContextA = localContextB; ///
17
+
18
+ const unified = metaLevelUnifier.unify(nodeA, nodeB, substitutions, localContextA, localContextB);
19
+
20
+ simpleSubstitutionStatementUnifiedWithComplexSubstitutionStatement = unified; ///
21
+
22
+ if (simpleSubstitutionStatementUnifiedWithComplexSubstitutionStatement) {
23
+ localContextB.trace(`...unified the simple substitution's '${simpleSubstitutionStatementString}' statement with the complex substitution's '${complexSubstitutionStatementString}' statement.`, simpleSubstitutionStatementNode);
24
+ }
25
+
26
+ return simpleSubstitutionStatementUnifiedWithComplexSubstitutionStatement;
27
+ }
@@ -12,6 +12,10 @@ export default function verifySubproofAssertion(subproofAssertionNode, assignmen
12
12
 
13
13
  const subproofAssertionString = localContext.nodeAsString(subproofAssertionNode);
14
14
 
15
+ assignments = null; ///
16
+
17
+ stated = true; ///
18
+
15
19
  localContext.trace(`Verifying the '${subproofAssertionString}' subproof assertion...`, subproofAssertionNode);
16
20
 
17
21
  const verified = metaLevelVerifier.verify(subproofAssertionNode, assignments, stated, localContext);
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "default", {
6
- enumerable: true,
7
- get: function() {
8
- return unifyComplexSubstitutionStatementWithSimpleSubstitutionStatement;
9
- }
10
- });
11
- var _metaLevel = /*#__PURE__*/ _interop_require_default(require("../unifier/metaLevel"));
12
- function _interop_require_default(obj) {
13
- return obj && obj.__esModule ? obj : {
14
- default: obj
15
- };
16
- }
17
- function unifyComplexSubstitutionStatementWithSimpleSubstitutionStatement(complexSubstitutionStatementNode, simpleSubstitutionStatementNode, substitutions, localContextA, localContextB) {
18
- var complexSubstitutionStatementWithSimpleSubstitutionStatement;
19
- var complexSubstitutionStatementString = localContextB.nodeAsString(complexSubstitutionStatementNode), simpleSubstitutionStatementString = localContextB.nodeAsString(simpleSubstitutionStatementNode);
20
- localContextB.trace("Unifying the complex substitution's '".concat(complexSubstitutionStatementString, "' statement with the simple substitution's '").concat(simpleSubstitutionStatementString, "' statement..."), simpleSubstitutionStatementNode);
21
- var nodeA = complexSubstitutionStatementNode, nodeB = simpleSubstitutionStatementNode; ///
22
- localContextA = localContextB; ///
23
- var unified = _metaLevel.default.unify(nodeA, nodeB, substitutions, localContextA, localContextB);
24
- complexSubstitutionStatementWithSimpleSubstitutionStatement = unified; ///
25
- if (complexSubstitutionStatementWithSimpleSubstitutionStatement) {
26
- localContextB.trace("...unified the complex substitution's '".concat(complexSubstitutionStatementString, "' statement with the simple substitution's '").concat(simpleSubstitutionStatementString, "' statement."), simpleSubstitutionStatementNode);
27
- }
28
- return complexSubstitutionStatementWithSimpleSubstitutionStatement;
29
- }
30
-
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91bmlmeS9jb21wbGV4U3Vic3RpdHV0aW9uU3RhdGVtZW50V2l0aFNpbXBsZVN1YnN0aXR1dGlvblN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FBRztJQUUzRSxJQUFJUCw2REFBNkQ7UUFDL0RELGNBQWNLLEtBQUssQ0FBQyxBQUFDLDBDQUEwSEQsT0FBakZGLG9DQUFtQyxnREFBZ0YsT0FBbENFLG1DQUFrQyxpQkFBZVA7SUFDbE07SUFFQSxPQUFPSTtBQUNUIn0=
@@ -1,27 +0,0 @@
1
- "use strict";
2
-
3
- import metaLevelUnifier from "../unifier/metaLevel";
4
-
5
- export default function unifyComplexSubstitutionStatementWithSimpleSubstitutionStatement(complexSubstitutionStatementNode, simpleSubstitutionStatementNode, substitutions, localContextA, localContextB) {
6
- let complexSubstitutionStatementWithSimpleSubstitutionStatement;
7
-
8
- const complexSubstitutionStatementString = localContextB.nodeAsString(complexSubstitutionStatementNode),
9
- simpleSubstitutionStatementString = localContextB.nodeAsString(simpleSubstitutionStatementNode);
10
-
11
- localContextB.trace(`Unifying the complex substitution's '${complexSubstitutionStatementString}' statement with the simple substitution's '${simpleSubstitutionStatementString}' statement...`, simpleSubstitutionStatementNode);
12
-
13
- const nodeA = complexSubstitutionStatementNode, ///
14
- nodeB = simpleSubstitutionStatementNode; ///
15
-
16
- localContextA = localContextB; ///
17
-
18
- const unified = metaLevelUnifier.unify(nodeA, nodeB, substitutions, localContextA, localContextB);
19
-
20
- complexSubstitutionStatementWithSimpleSubstitutionStatement = unified; ///
21
-
22
- if (complexSubstitutionStatementWithSimpleSubstitutionStatement) {
23
- localContextB.trace(`...unified the complex substitution's '${complexSubstitutionStatementString}' statement with the simple substitution's '${simpleSubstitutionStatementString}' statement.`, simpleSubstitutionStatementNode);
24
- }
25
-
26
- return complexSubstitutionStatementWithSimpleSubstitutionStatement;
27
- }