occam-verify-cli 0.0.265 → 0.0.266
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.
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
const verifyMetaproof = require("
|
|
4
|
-
verifyConclusion = require("
|
|
5
|
-
verifyPremiseOrPremises = require("
|
|
3
|
+
const verifyMetaproof = require("../verify/metaproof"),
|
|
4
|
+
verifyConclusion = require("../verify/conclusion"),
|
|
5
|
+
verifyPremiseOrPremises = require("../verify/premiseOrPremises");
|
|
6
6
|
|
|
7
|
-
const { nodeQuery } = require("
|
|
7
|
+
const { nodeQuery } = require("../utilities/query");
|
|
8
8
|
|
|
9
9
|
const metaproofNodeQuery = nodeQuery("/rule/metaproof!"),
|
|
10
10
|
conclusionNodeQuery = nodeQuery("/conditionalInference/conclusion!"),
|
|
11
11
|
premiseOrPremisesNodeQuery = nodeQuery("/conditionalInference/premise|premises!");
|
|
12
12
|
|
|
13
13
|
function verifyConditionalInference(ruleNode, premises, conclusions, context) {
|
|
14
|
-
let
|
|
14
|
+
let conditionalInferenceVerified = false;
|
|
15
15
|
|
|
16
16
|
const inferenceConditionalNode = inferenceConditionalNodeQuery(ruleNode);
|
|
17
17
|
|
|
@@ -35,11 +35,11 @@ function verifyConditionalInference(ruleNode, premises, conclusions, context) {
|
|
|
35
35
|
if (metaproofVerified) {
|
|
36
36
|
ruleVerified = true;
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
conditionalInferenceVerified = conclusionVerified;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
return
|
|
42
|
+
return conditionalInferenceVerified;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
module.exports = verifyConditionalInference;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "occam-verify-cli",
|
|
3
3
|
"author": "James Smith",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.266",
|
|
5
5
|
"license": "MIT, Anti-996",
|
|
6
6
|
"homepage": "https://github.com/djalbat/occam-verify-cli",
|
|
7
7
|
"description": "Occam's Verifier",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"argumentative": "^2.0.15",
|
|
14
14
|
"necessary": "^11.0.40",
|
|
15
|
-
"occam-custom-grammars": "^5.0.
|
|
15
|
+
"occam-custom-grammars": "^5.0.347",
|
|
16
16
|
"occam-dom": "^3.0.171",
|
|
17
17
|
"occam-grammar-utilities": "^7.0.66",
|
|
18
|
-
"occam-grammars": "^1.0.
|
|
18
|
+
"occam-grammars": "^1.0.314",
|
|
19
19
|
"occam-open-cli": "^5.0.37",
|
|
20
20
|
"occam-parsers": "^16.0.122"
|
|
21
21
|
},
|