occam-verify-cli 0.0.506 → 0.0.507
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/lib/conclusion.js +5 -160
- package/lib/consequence.js +3 -81
- package/lib/matcher/conclusion.js +194 -0
- package/lib/matcher/consequence.js +194 -0
- package/lib/matcher/premise.js +199 -0
- package/lib/matcher/supposition.js +199 -0
- package/lib/matcher.js +36 -0
- package/lib/metaMatcher/conclusion.js +194 -0
- package/lib/metaMatcher/premise.js +199 -0
- package/lib/metaMatcher.js +36 -0
- package/lib/metaSubstitution.js +7 -6
- package/lib/mixins/matcher.js +109 -0
- package/lib/premise.js +9 -178
- package/lib/ruleNames.js +5 -1
- package/lib/step/metaproof.js +5 -5
- package/lib/substitution.js +7 -6
- package/lib/supposition.js +5 -92
- package/lib/utilities/substitution.js +61 -0
- package/lib/verify/metaproof.js +3 -3
- package/lib/verify/proof.js +3 -3
- package/lib/verify/ruleProof.js +3 -3
- package/package.json +1 -1
- package/src/conclusion.js +6 -277
- package/src/consequence.js +3 -141
- package/src/matcher/conclusion.js +86 -0
- package/src/matcher/consequence.js +89 -0
- package/src/matcher/premise.js +94 -0
- package/src/matcher/supposition.js +97 -0
- package/src/matcher.js +9 -0
- package/src/metaMatcher/conclusion.js +86 -0
- package/src/metaMatcher/premise.js +94 -0
- package/src/metaMatcher.js +9 -0
- package/src/metaSubstitution.js +4 -3
- package/src/mixins/matcher.js +81 -0
- package/src/premise.js +10 -298
- package/src/ruleNames.js +1 -0
- package/src/step/metaproof.js +1 -1
- package/src/substitution.js +3 -2
- package/src/supposition.js +12 -159
- package/src/utilities/{node.js → substitution.js} +4 -74
- package/src/verify/metaproof.js +2 -2
- package/src/verify/proof.js +2 -2
- package/src/verify/ruleProof.js +2 -2
- package/lib/metaSupposition.js +0 -167
- package/lib/utilities/node.js +0 -106
- package/lib/verify/metaSupposition.js +0 -41
- package/src/metaSupposition.js +0 -196
- package/src/verify/metaSupposition.js +0 -44
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MetaproofStep from "../step/metaproof";
|
|
4
|
-
import MetaSupposition from "../metaSupposition";
|
|
5
|
-
import verifyMetastatement from "./metastatement";
|
|
6
|
-
|
|
7
|
-
import { nodeQuery } from "../utilities/query";
|
|
8
|
-
import { nodeAsString } from "../utilities/string";
|
|
9
|
-
|
|
10
|
-
const metastatementNodeQuery = nodeQuery("/metaSupposition/unqualifiedMetastatement!/metastatement!");
|
|
11
|
-
|
|
12
|
-
export default function verifyMetaSupposition(metaSuppositionNode, metaSuppositions, metaproofContext) {
|
|
13
|
-
let metaSuppositionVerified;
|
|
14
|
-
|
|
15
|
-
metaproofContext.begin(metaSuppositionNode);
|
|
16
|
-
|
|
17
|
-
const metaSuppositionString = nodeAsString(metaSuppositionNode);
|
|
18
|
-
|
|
19
|
-
metaproofContext.debug(`Verifying the ${metaSuppositionString} metaSupposition...`);
|
|
20
|
-
|
|
21
|
-
const metastatementNode = metastatementNodeQuery(metaSuppositionNode);
|
|
22
|
-
|
|
23
|
-
if (metastatementNode !== null) {
|
|
24
|
-
const qualified = false,
|
|
25
|
-
metastatementVerified = verifyMetastatement(metastatementNode, qualified, metaproofContext);
|
|
26
|
-
|
|
27
|
-
if (metastatementVerified) {
|
|
28
|
-
const metaproofStep = MetaproofStep.fromMetastatementNode(metastatementNode),
|
|
29
|
-
metaSupposition = MetaSupposition.fromMetastatementNode(metastatementNode);
|
|
30
|
-
|
|
31
|
-
metaSuppositions.push(metaSupposition);
|
|
32
|
-
|
|
33
|
-
metaproofContext.addMetaproofStep(metaproofStep);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
metaSuppositionVerified = true;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
metaSuppositionVerified ?
|
|
40
|
-
metaproofContext.complete(metaSuppositionNode) :
|
|
41
|
-
metaproofContext.halt(metaSuppositionNode);
|
|
42
|
-
|
|
43
|
-
return metaSuppositionVerified;
|
|
44
|
-
}
|