occam-verify-cli 1.0.476 → 1.0.479
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/context/file.js +8 -2
- package/lib/context/scoped.js +9 -3
- package/lib/element/assertion/contained.js +3 -3
- package/lib/element/assertion/defined.js +46 -6
- package/lib/element/assertion/property.js +45 -5
- package/lib/element/assertion/satisfies.js +45 -5
- package/lib/element/assertion/subproof.js +4 -4
- package/lib/element/assertion/type.js +45 -5
- package/lib/element/assumption.js +4 -4
- package/lib/element/combinator/bracketed.js +3 -3
- package/lib/element/combinator.js +3 -3
- package/lib/element/conclusion.js +3 -3
- package/lib/element/constructor/bracketed.js +45 -5
- package/lib/element/constructor.js +3 -3
- package/lib/element/declaration/combinator.js +3 -4
- package/lib/element/declaration/complexType.js +3 -4
- package/lib/element/declaration/constructor.js +3 -4
- package/lib/element/declaration/metavariable.js +3 -4
- package/lib/element/declaration/simpleType.js +3 -4
- package/lib/element/declaration/typePrefix.js +3 -4
- package/lib/element/declaration/variable.js +3 -4
- package/lib/element/deduction.js +3 -3
- package/lib/element/derivation.js +5 -4
- package/lib/element/equality.js +4 -4
- package/lib/element/equivalence.js +5 -4
- package/lib/element/equivalences.js +5 -4
- package/lib/element/error.js +3 -3
- package/lib/element/frame.js +6 -5
- package/lib/element/hypothesis.js +3 -3
- package/lib/element/judgement.js +4 -4
- package/lib/element/label.js +3 -3
- package/lib/element/metaType.js +3 -3
- package/lib/element/metavariable.js +47 -6
- package/lib/element/parameter.js +3 -3
- package/lib/element/procedureCall.js +3 -3
- package/lib/element/procedureReference.js +3 -3
- package/lib/element/proof.js +3 -3
- package/lib/element/proofAssertion/premise.js +3 -4
- package/lib/element/proofAssertion/step.js +45 -5
- package/lib/element/proofAssertion/supposition.js +3 -4
- package/lib/element/property.js +3 -3
- package/lib/element/propertyRelation.js +3 -3
- package/lib/element/reference.js +4 -4
- package/lib/element/rule.js +48 -6
- package/lib/element/section.js +3 -3
- package/lib/element/signature.js +6 -5
- package/lib/element/statement.js +5 -4
- package/lib/element/subDerivation.js +5 -4
- package/lib/element/subproof.js +4 -4
- package/lib/element/substitution/frame.js +3 -4
- package/lib/element/substitution/reference.js +3 -4
- package/lib/element/substitution/statement.js +45 -5
- package/lib/element/substitution/term.js +3 -4
- package/lib/element/substitutions.js +5 -4
- package/lib/element/term.js +5 -4
- package/lib/element/topLevelAssertion/axiom.js +3 -4
- package/lib/element/topLevelAssertion/conjecture.js +3 -4
- package/lib/element/topLevelAssertion/lemma.js +3 -4
- package/lib/element/topLevelAssertion/theorem.js +3 -4
- package/lib/element/topLevelMetaAssertion/metaLemma.js +3 -4
- package/lib/element/topLevelMetaAssertion/metatheorem.js +3 -4
- package/lib/element/type.js +5 -4
- package/lib/element/typePrefix.js +3 -3
- package/lib/element/variable.js +4 -4
- package/lib/elements.js +27 -0
- package/lib/metaTypes.js +10 -5
- package/lib/node/argument.js +4 -9
- package/lib/node/assertion.js +4 -9
- package/lib/node/assumption.js +6 -11
- package/lib/node/body.js +4 -9
- package/lib/node/combinator.js +4 -9
- package/lib/node/conclusion.js +4 -9
- package/lib/node/constructor.js +4 -9
- package/lib/node/declaration.js +4 -9
- package/lib/node/deduction.js +4 -9
- package/lib/node/derivation.js +4 -9
- package/lib/node/document.js +4 -9
- package/lib/node/equality.js +4 -9
- package/lib/node/equivalence.js +4 -9
- package/lib/node/equivalences.js +4 -9
- package/lib/node/error.js +4 -9
- package/lib/node/frame.js +4 -9
- package/lib/node/header.js +4 -9
- package/lib/node/hypothesis.js +4 -9
- package/lib/node/judgement.js +4 -9
- package/lib/node/label.js +4 -9
- package/lib/node/labels.js +4 -9
- package/lib/node/metaArgument.js +4 -9
- package/lib/node/metaType.js +4 -9
- package/lib/node/metavariable.js +4 -9
- package/lib/node/parameter.js +4 -9
- package/lib/node/parenthesisedLabel.js +4 -9
- package/lib/node/parenthesisedLabels.js +4 -9
- package/lib/node/placeholder.js +4 -9
- package/lib/node/procedureCall.js +4 -9
- package/lib/node/procedureReference.js +4 -9
- package/lib/node/proof.js +4 -9
- package/lib/node/proofAssertion.js +4 -9
- package/lib/node/property.js +4 -9
- package/lib/node/propertyRelation.js +4 -9
- package/lib/node/qualification.js +4 -9
- package/lib/node/reference.js +4 -9
- package/lib/node/rule.js +4 -9
- package/lib/node/section.js +4 -9
- package/lib/node/signature.js +4 -9
- package/lib/node/statement.js +4 -9
- package/lib/node/subDerivation.js +4 -9
- package/lib/node/subproof.js +4 -9
- package/lib/node/substitution.js +4 -9
- package/lib/node/term.js +4 -9
- package/lib/node/topLevelAssertion.js +4 -9
- package/lib/node/topLevelMetaAssertion.js +4 -9
- package/lib/node/type.js +4 -9
- package/lib/node/typePrefix.js +4 -9
- package/lib/node/types.js +4 -9
- package/lib/node/variable.js +4 -9
- package/lib/nominal/parser.js +3 -3
- package/lib/types.js +8 -3
- package/lib/utilities/element.js +62 -57
- package/lib/utilities/json.js +37 -32
- package/lib/utilities/unification.js +11 -6
- package/lib/utilities/validation.js +8 -3
- package/package.json +6 -6
- package/src/context/file.js +3 -1
- package/src/context/scoped.js +3 -1
- package/src/element/assertion/contained.js +1 -2
- package/src/element/assertion/defined.js +2 -4
- package/src/element/assertion/property.js +2 -4
- package/src/element/assertion/satisfies.js +2 -3
- package/src/element/assertion/subproof.js +2 -3
- package/src/element/assertion/type.js +2 -4
- package/src/element/assumption.js +2 -3
- package/src/element/combinator/bracketed.js +1 -1
- package/src/element/combinator.js +2 -3
- package/src/element/conclusion.js +2 -3
- package/src/element/constructor/bracketed.js +2 -3
- package/src/element/constructor.js +2 -3
- package/src/element/declaration/combinator.js +1 -3
- package/src/element/declaration/complexType.js +1 -3
- package/src/element/declaration/constructor.js +1 -4
- package/src/element/declaration/metavariable.js +1 -3
- package/src/element/declaration/simpleType.js +1 -3
- package/src/element/declaration/typePrefix.js +1 -3
- package/src/element/declaration/variable.js +1 -3
- package/src/element/deduction.js +2 -3
- package/src/element/derivation.js +4 -3
- package/src/element/equality.js +2 -3
- package/src/element/equivalence.js +3 -3
- package/src/element/equivalences.js +3 -3
- package/src/element/error.js +2 -2
- package/src/element/frame.js +3 -3
- package/src/element/hypothesis.js +2 -3
- package/src/element/judgement.js +2 -3
- package/src/element/label.js +2 -3
- package/src/element/metaType.js +2 -2
- package/src/element/metavariable.js +4 -3
- package/src/element/parameter.js +2 -2
- package/src/element/procedureCall.js +2 -3
- package/src/element/procedureReference.js +2 -2
- package/src/element/proof.js +2 -3
- package/src/element/proofAssertion/premise.js +1 -4
- package/src/element/proofAssertion/step.js +2 -4
- package/src/element/proofAssertion/supposition.js +1 -4
- package/src/element/property.js +2 -2
- package/src/element/propertyRelation.js +2 -2
- package/src/element/reference.js +2 -3
- package/src/element/rule.js +5 -3
- package/src/element/section.js +2 -2
- package/src/element/signature.js +3 -3
- package/src/element/statement.js +3 -3
- package/src/element/subDerivation.js +4 -3
- package/src/element/subproof.js +2 -3
- package/src/element/substitution/frame.js +1 -4
- package/src/element/substitution/reference.js +1 -4
- package/src/element/substitution/statement.js +2 -4
- package/src/element/substitution/term.js +1 -4
- package/src/element/substitutions.js +3 -3
- package/src/element/term.js +3 -3
- package/src/element/topLevelAssertion/axiom.js +1 -3
- package/src/element/topLevelAssertion/conjecture.js +1 -3
- package/src/element/topLevelAssertion/lemma.js +1 -3
- package/src/element/topLevelAssertion/theorem.js +1 -3
- package/src/element/topLevelMetaAssertion/metaLemma.js +1 -3
- package/src/element/topLevelMetaAssertion/metatheorem.js +1 -3
- package/src/element/type.js +3 -3
- package/src/element/typePrefix.js +2 -2
- package/src/element/variable.js +2 -3
- package/src/elements.js +13 -0
- package/src/metaTypes.js +1 -1
- package/src/node/argument.js +1 -1
- package/src/node/assertion.js +1 -1
- package/src/node/assumption.js +2 -2
- package/src/node/body.js +1 -1
- package/src/node/combinator.js +1 -1
- package/src/node/conclusion.js +1 -1
- package/src/node/constructor.js +1 -1
- package/src/node/declaration.js +1 -1
- package/src/node/deduction.js +1 -1
- package/src/node/derivation.js +1 -1
- package/src/node/document.js +1 -1
- package/src/node/equality.js +1 -2
- package/src/node/equivalence.js +1 -1
- package/src/node/equivalences.js +1 -1
- package/src/node/error.js +1 -1
- package/src/node/frame.js +1 -1
- package/src/node/header.js +1 -1
- package/src/node/hypothesis.js +1 -1
- package/src/node/judgement.js +1 -1
- package/src/node/label.js +1 -1
- package/src/node/labels.js +1 -1
- package/src/node/metaArgument.js +1 -1
- package/src/node/metaType.js +1 -1
- package/src/node/metavariable.js +1 -1
- package/src/node/parameter.js +1 -1
- package/src/node/parenthesisedLabel.js +1 -1
- package/src/node/parenthesisedLabels.js +1 -1
- package/src/node/placeholder.js +1 -1
- package/src/node/procedureCall.js +1 -1
- package/src/node/procedureReference.js +1 -1
- package/src/node/proof.js +1 -1
- package/src/node/proofAssertion.js +1 -1
- package/src/node/property.js +1 -1
- package/src/node/propertyRelation.js +1 -1
- package/src/node/qualification.js +1 -1
- package/src/node/reference.js +1 -1
- package/src/node/rule.js +1 -1
- package/src/node/section.js +1 -1
- package/src/node/signature.js +1 -1
- package/src/node/statement.js +1 -1
- package/src/node/subDerivation.js +1 -1
- package/src/node/subproof.js +1 -1
- package/src/node/substitution.js +1 -1
- package/src/node/term.js +1 -1
- package/src/node/topLevelAssertion.js +1 -1
- package/src/node/topLevelMetaAssertion.js +1 -1
- package/src/node/type.js +1 -1
- package/src/node/typePrefix.js +1 -1
- package/src/node/types.js +1 -1
- package/src/node/variable.js +1 -1
- package/src/nominal/parser.js +1 -1
- package/src/types.js +1 -1
- package/src/utilities/element.js +1 -1
- package/src/utilities/json.js +1 -1
- package/src/utilities/unification.js +2 -1
- package/src/utilities/validation.js +1 -1
- package/lib/nonTerminalNode.js +0 -222
- package/src/nonTerminalNode.js +0 -136
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { elements } from "occam-furtle";
|
|
4
|
-
|
|
5
3
|
import Declaration from "../declaration";
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
import { define } from "../../elements";
|
|
8
6
|
|
|
9
7
|
export default define(class MetavariableDeclaration extends Declaration {
|
|
10
8
|
constructor(context, string, node, metavariable) {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { elements } from "occam-furtle";
|
|
4
|
-
|
|
5
3
|
import Declaration from "../declaration";
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
import { define } from "../../elements";
|
|
8
6
|
|
|
9
7
|
export default define(class SimpleTypeDeclaration extends Declaration {
|
|
10
8
|
constructor(context, string, node, type, prefixed) {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { elements } from "occam-furtle";
|
|
4
|
-
|
|
5
3
|
import Declaration from "../declaration";
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
import { define } from "../../elements";
|
|
8
6
|
|
|
9
7
|
export default define(class TypePrefixDeclaration extends Declaration {
|
|
10
8
|
constructor(context, string, node, typePrefix) {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { elements } from "occam-furtle";
|
|
4
|
-
|
|
5
3
|
import Declaration from "../declaration";
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
import { define } from "../../elements";
|
|
8
6
|
|
|
9
7
|
export default define(class VariableDeclaration extends Declaration {
|
|
10
8
|
constructor(context, string, node, variable) {
|
package/src/element/deduction.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
+
import { define } from "../elements";
|
|
5
6
|
import { attempt } from "../utilities/context";
|
|
6
7
|
import { termsFromJSON, framesFromJSON, statementFromJSON, termsToTermsJSON, framesToFramesJSON, statementToStatementJSON } from "../utilities/json";
|
|
7
8
|
|
|
8
|
-
const { define } = elements;
|
|
9
|
-
|
|
10
9
|
export default define(class Deduction extends Element {
|
|
11
10
|
constructor(context, string, node, statement) {
|
|
12
11
|
super(context, string, node);
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { arrayUtilities } from "necessary";
|
|
4
|
-
import { Element, elements } from "occam-furtle";
|
|
5
5
|
|
|
6
6
|
import assignAssignments from "../process/assign";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import { define } from "../elements";
|
|
9
|
+
|
|
10
|
+
const { last } = arrayUtilities;
|
|
10
11
|
|
|
11
12
|
export default define(class Derivation extends Element {
|
|
12
13
|
constructor(context, string, node, subproofOrProofAssertions) {
|
package/src/element/equality.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
+
import { define } from "../elements";
|
|
5
6
|
import { equateTerms } from "../process/equate";
|
|
6
7
|
import { equalityAssignmentFromEquality, variableAssignmentFromVariable } from "../process/assign";
|
|
7
8
|
|
|
8
|
-
const { define } = elements;
|
|
9
|
-
|
|
10
9
|
export default define(class Equality extends Element {
|
|
11
10
|
constructor(context, string, node, leftTerm, rightTerm) {
|
|
12
11
|
super(context, string, node);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { arrayUtilities } from "necessary";
|
|
4
|
-
import { Element, elements } from "occam-furtle";
|
|
5
5
|
|
|
6
|
+
import { define } from "../elements";
|
|
6
7
|
import { literally } from "../utilities/context";
|
|
7
8
|
import { termsStringFromTerms } from "../utilities/string";
|
|
8
9
|
import { instantiateEquivalence } from "../process/instantiate";
|
|
9
10
|
import { stripBracketsFromTermNode } from "../utilities/brackets";
|
|
10
11
|
import { equivalenceFromEquivalenceNode } from "../utilities/element";
|
|
11
12
|
|
|
12
|
-
const {
|
|
13
|
-
{ compress } = arrayUtilities;
|
|
13
|
+
const { compress } = arrayUtilities;
|
|
14
14
|
|
|
15
15
|
export default define(class Equivalence extends Element {
|
|
16
16
|
constructor(context, string, node, terms) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { arrayUtilities } from "necessary";
|
|
4
|
-
import { Element, elements } from "occam-furtle";
|
|
5
5
|
|
|
6
|
+
import { define } from "../elements";
|
|
6
7
|
import { EMPTY_STRING } from "../constants";
|
|
7
8
|
import { variablesFromTerm } from "./term";
|
|
8
9
|
|
|
9
|
-
const {
|
|
10
|
-
{ push, separate } = arrayUtilities;
|
|
10
|
+
const { push, separate } = arrayUtilities;
|
|
11
11
|
|
|
12
12
|
export default define(class Equivalences extends Element {
|
|
13
13
|
constructor(context, string, node, array) {
|
package/src/element/error.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { define } from "../elements";
|
|
6
6
|
|
|
7
7
|
export default define(class Error extends Element {
|
|
8
8
|
constructor(context, string, node) {
|
package/src/element/frame.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { arrayUtilities } from "necessary";
|
|
4
|
-
import { Element, elements } from "occam-furtle";
|
|
5
5
|
|
|
6
|
+
import { define } from "../elements";
|
|
6
7
|
import { FRAME_META_TYPE_NAME } from "../metaTypeNames";
|
|
7
8
|
import { assumptionsStringFromAssumptions } from "../utilities/string";
|
|
8
9
|
|
|
9
|
-
const { first } = arrayUtilities
|
|
10
|
-
{ define } = elements;
|
|
10
|
+
const { first } = arrayUtilities;
|
|
11
11
|
|
|
12
12
|
export default define(class Frame extends Element {
|
|
13
13
|
constructor(context, string, node, assumptions) {
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
5
|
import assignAssignments from "../process/assign";
|
|
6
6
|
|
|
7
|
+
import { define } from "../elements";
|
|
7
8
|
import { statementFromJSON, statementToStatementJSON } from "../utilities/json";
|
|
8
9
|
|
|
9
|
-
const { define } = elements;
|
|
10
|
-
|
|
11
10
|
export default define(class Hypothesis extends Element {
|
|
12
11
|
constructor(context, string, node, statement) {
|
|
13
12
|
super(context, string, node);
|
package/src/element/judgement.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
+
import { define } from "../elements";
|
|
5
6
|
import { judgementAssignmentFromJudgement } from "../process/assign";
|
|
6
7
|
|
|
7
|
-
const { define } = elements;
|
|
8
|
-
|
|
9
8
|
export default define(class Judgement extends Element {
|
|
10
9
|
constructor(context, string, node, frame, assumption) {
|
|
11
10
|
super(context, string, node);
|
package/src/element/label.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
+
import { define } from "../elements";
|
|
5
6
|
import { metavariableFromJSON, metavariableToMetavariableJSON } from "../utilities/json";
|
|
6
7
|
|
|
7
|
-
const { define } = elements;
|
|
8
|
-
|
|
9
8
|
export default define(class Label extends Element {
|
|
10
9
|
constructor(context, string, node, metavariable) {
|
|
11
10
|
super(context, string, node);
|
package/src/element/metaType.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { define } from "../elements";
|
|
6
6
|
|
|
7
7
|
export default define(class MetaType extends Element {
|
|
8
8
|
constructor(context, string, node, name) {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
+
import elements from "../elements";
|
|
6
|
+
|
|
7
|
+
import { define } from "../elements";
|
|
5
8
|
import { EMPTY_STRING } from "../constants";
|
|
6
9
|
import { synthetically } from "../utilities/context";
|
|
7
10
|
import { typeToTypeJSON } from "../utilities/json";
|
|
8
11
|
import { metaTypeToMetaTypeJSON } from "../utilities/json";
|
|
9
12
|
import { unifyMetavariable, unifyMetavariableIntrinsically } from "../process/unify";
|
|
10
13
|
|
|
11
|
-
const { define } = elements;
|
|
12
|
-
|
|
13
14
|
export default define(class Metavariable extends Element {
|
|
14
15
|
constructor(context, string, node, name, type, metaType) {
|
|
15
16
|
super(context, string, node);
|
package/src/element/parameter.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { define } from "../elements";
|
|
6
6
|
|
|
7
7
|
export default define(class Parameter extends Element {
|
|
8
8
|
constructor(context, string, node, name, identifier) {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { Expressions } from "occam-furtle";
|
|
4
|
-
import { Element, elements } from "occam-furtle";
|
|
5
5
|
|
|
6
|
+
import { define } from "../elements";
|
|
6
7
|
import { parametersFromJSON, procedureReferenceFromJSON, parametersToParametersJSON, procedureReferenceToProcedureReferenceJSON } from "../utilities/json";
|
|
7
8
|
|
|
8
|
-
const { define } = elements;
|
|
9
|
-
|
|
10
9
|
export default define(class ProcedureCall extends Element {
|
|
11
10
|
constructor(context, string, node, parameters, procedureReference) {
|
|
12
11
|
super(context, string, node);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { define } from "../elements";
|
|
6
6
|
|
|
7
7
|
export default define(class ProcedureReference extends Element {
|
|
8
8
|
constructor(context, string, node, name) {
|
package/src/element/proof.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
5
|
import { scope } from "../utilities/context";
|
|
6
|
-
|
|
7
|
-
const { define } = elements;
|
|
6
|
+
import { define } from "../elements";
|
|
8
7
|
|
|
9
8
|
export default define(class Proof extends Element {
|
|
10
9
|
constructor(context, string, node, derivation) {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { elements } from "occam-furtle";
|
|
4
|
-
|
|
5
3
|
import ProofAssertion from "../proofAssertion";
|
|
6
4
|
import assignAssignments from "../../process/assign";
|
|
7
5
|
|
|
6
|
+
import { define } from "../../elements";
|
|
8
7
|
import { attempt, synthetically } from "../../utilities/context";
|
|
9
8
|
import { termsFromJSON,
|
|
10
9
|
framesFromJSON,
|
|
@@ -15,8 +14,6 @@ import { termsFromJSON,
|
|
|
15
14
|
statementToStatementJSON,
|
|
16
15
|
procedureCallToProcedureCallJSON } from "../../utilities/json";
|
|
17
16
|
|
|
18
|
-
const { define } = elements;
|
|
19
|
-
|
|
20
17
|
export default define(class Premise extends ProofAssertion {
|
|
21
18
|
constructor(context, string, node, statement, procedureCall) {
|
|
22
19
|
super(context, string, node, statement);
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import elements from "../../elements";
|
|
5
4
|
import ProofAssertion from "../proofAssertion";
|
|
6
5
|
|
|
6
|
+
import { define } from "../../elements";
|
|
7
7
|
import { unifyStatements } from "../../utilities/unification";
|
|
8
8
|
import { attempt, liminally } from "../../utilities/context";
|
|
9
9
|
import { propertyAssertionFromStatement } from "../../utilities/statement";
|
|
10
10
|
|
|
11
|
-
const { define } = elements;
|
|
12
|
-
|
|
13
11
|
export default define(class Step extends ProofAssertion {
|
|
14
12
|
constructor(context, string, node, statement, reference, satisfiesAssertion) {
|
|
15
13
|
super(context, string, node, statement);
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { elements } from "occam-furtle";
|
|
4
|
-
|
|
5
3
|
import ProofAssertion from "../proofAssertion";
|
|
6
4
|
import assignAssignments from "../../process/assign";
|
|
7
5
|
|
|
6
|
+
import { define } from "../../elements";
|
|
8
7
|
import { attempt, synthetically } from "../../utilities/context";
|
|
9
8
|
import { termsFromJSON,
|
|
10
9
|
framesFromJSON,
|
|
@@ -15,8 +14,6 @@ import { termsFromJSON,
|
|
|
15
14
|
statementToStatementJSON,
|
|
16
15
|
procedureCallToProcedureCallJSON } from "../../utilities/json";
|
|
17
16
|
|
|
18
|
-
const { define } = elements;
|
|
19
|
-
|
|
20
17
|
export default define(class Supposition extends ProofAssertion {
|
|
21
18
|
constructor(context, string, node, statement, procedureCall) {
|
|
22
19
|
super(context, string, node, statement);
|
package/src/element/property.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { define } from "../elements";
|
|
6
6
|
|
|
7
7
|
export default define(class Property extends Element {
|
|
8
8
|
constructor(context, string, node, name, nominalTypeName) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { define } from "../elements";
|
|
6
6
|
|
|
7
7
|
export default define(class PropertyRelation extends Element {
|
|
8
8
|
constructor(context, string, node, property, term) {
|
package/src/element/reference.js
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
+
import { define } from "../elements";
|
|
5
6
|
import { attempt } from "../utilities/context";
|
|
6
7
|
import { REFERENCE_META_TYPE_NAME } from "../metaTypeNames";
|
|
7
8
|
import { findMetaTypeByMetaTypeName } from "../metaTypes";
|
|
8
9
|
import { unifyMetavariableIntrinsically } from "../process/unify";
|
|
9
10
|
import { metavariableFromJSON, metavariableToMetavariableJSON } from "../utilities/json";
|
|
10
11
|
|
|
11
|
-
const { define } = elements;
|
|
12
|
-
|
|
13
12
|
export default define(class Reference extends Element {
|
|
14
13
|
constructor(context, string, node, metavariable) {
|
|
15
14
|
super(context, string, node);
|
package/src/element/rule.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { arrayUtilities } from "necessary";
|
|
4
|
-
|
|
5
|
+
|
|
6
|
+
import elements from "../elements";
|
|
5
7
|
|
|
6
8
|
import { scope } from "../utilities/context";
|
|
9
|
+
import { define } from "../elements";
|
|
7
10
|
import { labelsFromJSON,
|
|
8
11
|
premisesFromJSON,
|
|
9
12
|
conclusionFromJSON,
|
|
@@ -11,8 +14,7 @@ import { labelsFromJSON,
|
|
|
11
14
|
premisesToPremisesJSON,
|
|
12
15
|
conclusionToConclusionJSON } from "../utilities/json";
|
|
13
16
|
|
|
14
|
-
const {
|
|
15
|
-
{ reverse, extract, backwardsEvery } = arrayUtilities;
|
|
17
|
+
const { reverse, extract, backwardsEvery } = arrayUtilities;
|
|
16
18
|
|
|
17
19
|
export default define(class Rule extends Element {
|
|
18
20
|
constructor(context, string, node, proof, labels, premises, conclusion) {
|
package/src/element/section.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
import { define } from "../elements";
|
|
6
6
|
|
|
7
7
|
export default define(class Section extends Element {
|
|
8
8
|
constructor(context, string, node, hypotheses, axiom, lemma, theorem, conjecture) {
|
package/src/element/signature.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { arrayUtilities } from "necessary";
|
|
4
|
-
import { Element, elements } from "occam-furtle";
|
|
5
5
|
|
|
6
|
+
import { define } from "../elements";
|
|
6
7
|
import { synthetically } from "../utilities/context";
|
|
7
8
|
import { signatureStringFromTerms } from "../utilities/string";
|
|
8
9
|
import { termsFromJSON, termsToTermsJSON } from "../utilities/json";
|
|
9
10
|
|
|
10
|
-
const {
|
|
11
|
-
{ match, compare, correlate } = arrayUtilities;
|
|
11
|
+
const { match, compare, correlate } = arrayUtilities;
|
|
12
12
|
|
|
13
13
|
export default define(class Signature extends Element {
|
|
14
14
|
constructor(context, string, node, terms) {
|
package/src/element/statement.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { arrayUtilities } from "necessary";
|
|
4
|
-
import { Element, elements } from "occam-furtle";
|
|
5
5
|
|
|
6
|
+
import { define } from "../elements";
|
|
6
7
|
import { unifyStatement } from "../process/unify";
|
|
7
8
|
import { validateStatements } from "../utilities/validation";
|
|
8
9
|
import { STATEMENT_META_TYPE_NAME } from "../metaTypeNames";
|
|
9
10
|
|
|
10
|
-
const {
|
|
11
|
-
{ match, backwardsSome } = arrayUtilities;
|
|
11
|
+
const { match, backwardsSome } = arrayUtilities;
|
|
12
12
|
|
|
13
13
|
export default define(class Statement extends Element {
|
|
14
14
|
constructor(context, string, node) {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { arrayUtilities } from "necessary";
|
|
4
|
-
import { Element, elements } from "occam-furtle";
|
|
5
5
|
|
|
6
6
|
import assignAssignments from "../process/assign";
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
import { define } from "../elements";
|
|
9
|
+
|
|
10
|
+
const { last } = arrayUtilities;
|
|
10
11
|
|
|
11
12
|
export default define(class SubDerivation extends Element {
|
|
12
13
|
constructor(context, string, node, subproofOrProofAssertions) {
|
package/src/element/subproof.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { Element
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
4
4
|
|
|
5
5
|
import { scope } from "../utilities/context";
|
|
6
|
-
|
|
7
|
-
const { define } = elements;
|
|
6
|
+
import { define } from "../elements";
|
|
8
7
|
|
|
9
8
|
export default define(class Subproof extends Element {
|
|
10
9
|
constructor(context, string, node, suppositions, subDerivation) {
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { elements } from "occam-furtle";
|
|
4
|
-
|
|
5
3
|
import Substitution from "../substitution";
|
|
6
4
|
|
|
5
|
+
import { define } from "../../elements";
|
|
7
6
|
import { literally } from "../../utilities/context";
|
|
8
7
|
import { instantiateFrameSubstitution } from "../../process/instantiate";
|
|
9
8
|
import { frameSubstitutionStringFromFrameAndMetavariable } from "../../utilities/string";
|
|
10
9
|
import { frameSubstitutionFromStatementNode, frameSubstitutionFromFrameSubstitutionNode } from "../../utilities/element";
|
|
11
10
|
|
|
12
|
-
const { define } = elements;
|
|
13
|
-
|
|
14
11
|
export default define(class FrameSubstitution extends Substitution {
|
|
15
12
|
constructor(context, string, node, targetFrame, replacementFrame) {
|
|
16
13
|
super(context, string, node);
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { elements } from "occam-furtle";
|
|
4
|
-
|
|
5
3
|
import Substitution from "../substitution";
|
|
6
4
|
|
|
5
|
+
import { define } from "../../elements";
|
|
7
6
|
import { literally } from "../../utilities/context";
|
|
8
7
|
import { instantiateReferenceSubstitution } from "../../process/instantiate";
|
|
9
8
|
import { referenceSubstitutionFromReferenceSubstitutionNode } from "../../utilities/element";
|
|
10
9
|
import { referenceSubstitutionStringFromReferenceAndMetavariable } from "../../utilities/string";
|
|
11
10
|
|
|
12
|
-
const { define } = elements;
|
|
13
|
-
|
|
14
11
|
export default define(class ReferenceSubstitution extends Substitution {
|
|
15
12
|
constructor(context, string, node, targetReference, replacementReference) {
|
|
16
13
|
super(context, string, node);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import elements from "../../elements";
|
|
5
4
|
import Substitution from "../substitution";
|
|
6
5
|
|
|
6
|
+
import { define } from "../../elements";
|
|
7
7
|
import { literally } from "../../utilities/context";
|
|
8
8
|
import { unifySubstitution } from "../../process/unify";
|
|
9
9
|
import { stripBracketsFromStatement } from "../../utilities/brackets";
|
|
@@ -12,8 +12,6 @@ import { statementSubstitutionFromStatementSubstitutionNode } from "../../utilit
|
|
|
12
12
|
import { statementToStatementJSON, metavariableToMetavariableJSON } from "../../utilities/json";
|
|
13
13
|
import { statementSubstitutionStringFromStatementAndMetavariable, statementSubstitutionStringFromStatementMetavariableAndSubstitution } from "../../utilities/string";
|
|
14
14
|
|
|
15
|
-
const { define } = elements;
|
|
16
|
-
|
|
17
15
|
export default define(class StatementSubstitution extends Substitution {
|
|
18
16
|
constructor(context, string, node, resolved, substitution, targetStatement, replacementStatement) {
|
|
19
17
|
super(context, string, node);
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { elements } from "occam-furtle";
|
|
4
|
-
|
|
5
3
|
import Substitution from "../substitution";
|
|
6
4
|
|
|
5
|
+
import { define } from "../../elements";
|
|
7
6
|
import { literally } from "../../utilities/context";
|
|
8
7
|
import { stripBracketsFromTerm } from "../../utilities/brackets";
|
|
9
8
|
import { instantiateTermSubstitution } from "../../process/instantiate";
|
|
10
9
|
import { termSubstitutionStringFromTermAndVariable } from "../../utilities/string";
|
|
11
10
|
import { termSubstitutionFromStatementNode, termSubstitutionFromTermSubstitutionNode } from "../../utilities/element";
|
|
12
11
|
|
|
13
|
-
const { define } = elements;
|
|
14
|
-
|
|
15
12
|
export default define(class TermSubstitution extends Substitution {
|
|
16
13
|
constructor(context, string, node, targetTerm, replacementTerm) {
|
|
17
14
|
super(context, string, node);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { arrayUtilities } from "necessary";
|
|
4
|
-
import { Element, elements } from "occam-furtle";
|
|
5
5
|
|
|
6
|
+
import { define } from "../elements";
|
|
6
7
|
import { EMPTY_STRING } from "../constants";
|
|
7
8
|
import { substitutionsStringFromSubstitutions } from "../utilities/string";
|
|
8
9
|
|
|
9
|
-
const {
|
|
10
|
-
{ find, first, clear, prune, filter, extract, compress, correlate } = arrayUtilities;
|
|
10
|
+
const { find, first, clear, prune, filter, extract, compress, correlate } = arrayUtilities;
|
|
11
11
|
|
|
12
12
|
export default define(class Substitutions extends Element {
|
|
13
13
|
constructor(context, string, node, array, savedArray) {
|
package/src/element/term.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
import { Element } from "occam-furtle";
|
|
3
4
|
import { arrayUtilities } from "necessary";
|
|
4
|
-
import { Element, elements } from "occam-furtle";
|
|
5
5
|
|
|
6
|
+
import { define } from "../elements";
|
|
6
7
|
import { validateTerms } from "../utilities/validation";
|
|
7
8
|
import { typeToTypeJSON } from "../utilities/json";
|
|
8
9
|
|
|
9
|
-
const {
|
|
10
|
-
{ filter, compress } = arrayUtilities;
|
|
10
|
+
const { filter, compress } = arrayUtilities;
|
|
11
11
|
|
|
12
12
|
export default define(class Term extends Element {
|
|
13
13
|
constructor(context, string, node, type) {
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { elements } from "occam-furtle";
|
|
4
|
-
|
|
5
3
|
import TopLevelAssertion from "../../node/topLevelAssertion";
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
import { define } from "../../elements";
|
|
8
6
|
|
|
9
7
|
export default define(class Axiom extends TopLevelAssertion {
|
|
10
8
|
isSatisfiable() {
|