occam-verify-cli 0.0.484 → 0.0.486
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/antecedent.js +2 -2
- package/lib/premise.js +2 -2
- package/lib/verify/antecedent.js +12 -9
- package/lib/verify/axiom.js +1 -1
- package/lib/verify/conclusion.js +10 -11
- package/lib/verify/conditionalIndicative.js +13 -9
- package/lib/verify/consequent.js +10 -11
- package/lib/verify/derivation.js +54 -39
- package/lib/verify/metaDerivation.js +53 -38
- package/lib/verify/metastatement/unqualified.js +7 -16
- package/lib/verify/premiseOrPremises.js +4 -4
- package/lib/verify/statement/unqualified.js +7 -16
- package/package.json +3 -3
- package/src/antecedent.js +1 -1
- package/src/premise.js +2 -2
- package/src/verify/antecedent.js +14 -11
- package/src/verify/axiom.js +1 -1
- package/src/verify/conclusion.js +10 -12
- package/src/verify/conditionalIndicative.js +20 -12
- package/src/verify/consequent.js +10 -12
- package/src/verify/derivation.js +79 -53
- package/src/verify/metaDerivation.js +78 -52
- package/src/verify/metastatement/unqualified.js +6 -12
- package/src/verify/premiseOrPremises.js +3 -4
- package/src/verify/statement/unqualified.js +6 -12
- package/lib/verify/conditinalIndicative.js +0 -37
- package/lib/verify/metastatement.js +0 -19
- package/src/verify/conditinalIndicative.js +0 -37
- package/src/verify/metastatement.js +0 -15
|
@@ -1,19 +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 verifyMetastatement;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
function verifyMetastatement(metastatementNode, metaproofContext) {
|
|
12
|
-
var metastatementVerified;
|
|
13
|
-
metaproofContext.begin(metastatementNode);
|
|
14
|
-
metastatementVerified = true; ///
|
|
15
|
-
metastatementVerified ? metaproofContext.complete(metastatementNode) : metaproofContext.halt(metastatementNode);
|
|
16
|
-
return metastatementVerified;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy92ZXJpZnkvbWV0YXN0YXRlbWVudC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gdmVyaWZ5TWV0YXN0YXRlbWVudChtZXRhc3RhdGVtZW50Tm9kZSwgbWV0YXByb29mQ29udGV4dCkge1xuICBsZXQgbWV0YXN0YXRlbWVudFZlcmlmaWVkO1xuXG4gIG1ldGFwcm9vZkNvbnRleHQuYmVnaW4obWV0YXN0YXRlbWVudE5vZGUpO1xuXG4gIG1ldGFzdGF0ZW1lbnRWZXJpZmllZCA9IHRydWU7IC8vL1xuXG4gIG1ldGFzdGF0ZW1lbnRWZXJpZmllZCA/XG4gICAgbWV0YXByb29mQ29udGV4dC5jb21wbGV0ZShtZXRhc3RhdGVtZW50Tm9kZSkgOlxuICAgICAgbWV0YXByb29mQ29udGV4dC5oYWx0KG1ldGFzdGF0ZW1lbnROb2RlKTtcblxuICByZXR1cm4gbWV0YXN0YXRlbWVudFZlcmlmaWVkO1xufVxuIl0sIm5hbWVzIjpbInZlcmlmeU1ldGFzdGF0ZW1lbnQiLCJtZXRhc3RhdGVtZW50Tm9kZSIsIm1ldGFwcm9vZkNvbnRleHQiLCJtZXRhc3RhdGVtZW50VmVyaWZpZWQiLCJiZWdpbiIsImNvbXBsZXRlIiwiaGFsdCJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBRUE7OztlQUF3QkE7OztBQUFULFNBQVNBLG9CQUFvQkMsaUJBQWlCLEVBQUVDLGdCQUFnQixFQUFFO0lBQy9FLElBQUlDO0lBRUpELGlCQUFpQkUsS0FBSyxDQUFDSDtJQUV2QkUsd0JBQXdCLElBQUksRUFBRSxHQUFHO0lBRWpDQSx3QkFDRUQsaUJBQWlCRyxRQUFRLENBQUNKLHFCQUN4QkMsaUJBQWlCSSxJQUFJLENBQUNMLGtCQUFrQjtJQUU1QyxPQUFPRTtBQUNUIn0=
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import verifyConsequent from "../verify/consequent";
|
|
4
|
-
import verifyAntecedent from "../verify/antecedent";
|
|
5
|
-
|
|
6
|
-
import { nodeQuery, nodesQuery } from "../utilities/query";
|
|
7
|
-
|
|
8
|
-
const consequentNodeQuery = nodeQuery("/conditionalIndicative/consequent!"),
|
|
9
|
-
antecedentsNodeQuery = nodesQuery("/conditionalIndicative/antecedent");
|
|
10
|
-
|
|
11
|
-
export default function verifyConditionalIndicative(conditionalIndicativeNode, antecedents, consequents, proofContext) {
|
|
12
|
-
let conditionalIndicativeVerified = false;
|
|
13
|
-
|
|
14
|
-
proofContext.begin(conditionalIndicativeNode);
|
|
15
|
-
|
|
16
|
-
const consequentNode = consequentNodeQuery(conditionalIndicativeNode),
|
|
17
|
-
antecedentNodes = antecedentsNodeQuery(conditionalIndicativeNode),
|
|
18
|
-
antecedentsVerified = antecedentNodes.every((antecedentNode) => {
|
|
19
|
-
const antecedentVerified = verifyAntecedent(antecedentNode, antecedents, proofContext);
|
|
20
|
-
|
|
21
|
-
if (antecedentVerified) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
if (antecedentsVerified) {
|
|
27
|
-
const consequentVerified = verifyConsequent(consequentNode, consequents, proofContext);
|
|
28
|
-
|
|
29
|
-
conditionalIndicativeVerified = consequentVerified; ///
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
conditionalIndicativeVerified ?
|
|
33
|
-
proofContext.complete(conditionalIndicativeNode) :
|
|
34
|
-
proofContext.halt(conditionalIndicativeNode);
|
|
35
|
-
|
|
36
|
-
return conditionalIndicativeVerified;
|
|
37
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
export default function verifyMetastatement(metastatementNode, metaproofContext) {
|
|
4
|
-
let metastatementVerified;
|
|
5
|
-
|
|
6
|
-
metaproofContext.begin(metastatementNode);
|
|
7
|
-
|
|
8
|
-
metastatementVerified = true; ///
|
|
9
|
-
|
|
10
|
-
metastatementVerified ?
|
|
11
|
-
metaproofContext.complete(metastatementNode) :
|
|
12
|
-
metaproofContext.halt(metastatementNode);
|
|
13
|
-
|
|
14
|
-
return metastatementVerified;
|
|
15
|
-
}
|