occam-verify-cli 1.0.984 → 1.0.985
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/action/verify.js +22 -27
- package/lib/constants.js +1 -41
- package/lib/index.js +1 -2
- package/lib/utilities/fileContext.js +3 -8
- package/lib/utilities/releaseContext.js +2 -2
- package/package.json +5 -6
- package/src/action/verify.js +8 -18
- package/src/constants.js +0 -10
- package/src/index.js +0 -2
- package/src/utilities/fileContext.js +1 -2
- package/src/utilities/releaseContext.js +1 -1
- package/lib/context/aphasic.js +0 -27
- package/lib/context/bounded.js +0 -244
- package/lib/context/branching.js +0 -61
- package/lib/context/file/nominal.js +0 -586
- package/lib/context/illative.js +0 -28
- package/lib/context/liminal.js +0 -200
- package/lib/context/literal.js +0 -44
- package/lib/context/mnemic.js +0 -454
- package/lib/context/nested.js +0 -31
- package/lib/context/nominal.js +0 -57
- package/lib/context/phaneric.js +0 -44
- package/lib/context/thetic.js +0 -28
- package/lib/context.js +0 -445
- package/lib/element/assertion/contained.js +0 -218
- package/lib/element/assertion/defined.js +0 -213
- package/lib/element/assertion/property.js +0 -176
- package/lib/element/assertion/signature.js +0 -170
- package/lib/element/assertion/subproof.js +0 -220
- package/lib/element/assertion/type.js +0 -227
- package/lib/element/assertion.js +0 -49
- package/lib/element/assumption/metaLevel.js +0 -244
- package/lib/element/assumption.js +0 -252
- package/lib/element/combinator/bracketed.js +0 -36
- package/lib/element/combinator.js +0 -104
- package/lib/element/conclusion.js +0 -131
- package/lib/element/constructor/bracketed.js +0 -57
- package/lib/element/constructor.js +0 -129
- package/lib/element/declaration/combinator.js +0 -58
- package/lib/element/declaration/complexType.js +0 -180
- package/lib/element/declaration/constructor.js +0 -93
- package/lib/element/declaration/metavariable.js +0 -77
- package/lib/element/declaration/property.js +0 -88
- package/lib/element/declaration/simpleType.js +0 -148
- package/lib/element/declaration/typePrefix.js +0 -53
- package/lib/element/declaration/variable.js +0 -99
- package/lib/element/declaration.js +0 -15
- package/lib/element/deduction.js +0 -131
- package/lib/element/derivation.js +0 -46
- package/lib/element/equality.js +0 -211
- package/lib/element/equivalence.js +0 -200
- package/lib/element/error.js +0 -27
- package/lib/element/frame.js +0 -238
- package/lib/element/hypothesis.js +0 -135
- package/lib/element/judgement.js +0 -212
- package/lib/element/label.js +0 -135
- package/lib/element/metaType.js +0 -57
- package/lib/element/metavariable.js +0 -452
- package/lib/element/parameter.js +0 -69
- package/lib/element/procedureCall.js +0 -116
- package/lib/element/procedureReference.js +0 -56
- package/lib/element/proof.js +0 -52
- package/lib/element/proofAssertion/premise.js +0 -238
- package/lib/element/proofAssertion/step.js +0 -235
- package/lib/element/proofAssertion/supposition.js +0 -249
- package/lib/element/proofAssertion.js +0 -56
- package/lib/element/property.js +0 -176
- package/lib/element/propertyRelation.js +0 -132
- package/lib/element/reference.js +0 -227
- package/lib/element/rule.js +0 -242
- package/lib/element/section.js +0 -64
- package/lib/element/signature.js +0 -195
- package/lib/element/statement.js +0 -228
- package/lib/element/subDerivation.js +0 -46
- package/lib/element/subproof.js +0 -91
- package/lib/element/substitution/frame.js +0 -256
- package/lib/element/substitution/reference.js +0 -192
- package/lib/element/substitution/statement.js +0 -294
- package/lib/element/substitution/term.js +0 -266
- package/lib/element/substitution.js +0 -183
- package/lib/element/term.js +0 -217
- package/lib/element/topLevelAssertion/axiom.js +0 -158
- package/lib/element/topLevelAssertion/conjecture.js +0 -42
- package/lib/element/topLevelAssertion/lemma.js +0 -39
- package/lib/element/topLevelAssertion/theorem.js +0 -42
- package/lib/element/topLevelAssertion.js +0 -286
- package/lib/element/topLevelMetaAssertion/metaLemma.js +0 -42
- package/lib/element/topLevelMetaAssertion/metatheorem.js +0 -42
- package/lib/element/topLevelMetaAssertion.js +0 -179
- package/lib/element/type.js +0 -240
- package/lib/element/typePrefix.js +0 -85
- package/lib/element/variable.js +0 -206
- package/lib/elements.js +0 -27
- package/lib/metaTypeNames.js +0 -26
- package/lib/metaTypes.js +0 -66
- package/lib/node/argument.js +0 -31
- package/lib/node/assertion/contained.js +0 -51
- package/lib/node/assertion/defined.js +0 -47
- package/lib/node/assertion/property.js +0 -36
- package/lib/node/assertion/signature.js +0 -32
- package/lib/node/assertion/subproof.js +0 -28
- package/lib/node/assertion/type.js +0 -32
- package/lib/node/assertion.js +0 -18
- package/lib/node/assumption/metaLevel.js +0 -27
- package/lib/node/assumption.js +0 -27
- package/lib/node/body/axiom.js +0 -23
- package/lib/node/body/conjecture.js +0 -23
- package/lib/node/body/lemma.js +0 -23
- package/lib/node/body/metaLemma.js +0 -23
- package/lib/node/body/metatheorem.js +0 -23
- package/lib/node/body/rule.js +0 -44
- package/lib/node/body/theorem.js +0 -23
- package/lib/node/body.js +0 -31
- package/lib/node/combinator.js +0 -23
- package/lib/node/conclusion.js +0 -27
- package/lib/node/constructor.js +0 -23
- package/lib/node/declaration/combinator.js +0 -28
- package/lib/node/declaration/complexType.js +0 -72
- package/lib/node/declaration/constructor.js +0 -47
- package/lib/node/declaration/metavariable.js +0 -36
- package/lib/node/declaration/property.js +0 -44
- package/lib/node/declaration/simpleType.js +0 -72
- package/lib/node/declaration/typePrefix.js +0 -32
- package/lib/node/declaration/variable.js +0 -51
- package/lib/node/declaration.js +0 -18
- package/lib/node/deduction.js +0 -27
- package/lib/node/derivation.js +0 -26
- package/lib/node/document.js +0 -18
- package/lib/node/equality.js +0 -33
- package/lib/node/equivalence.js +0 -23
- package/lib/node/equivalences.js +0 -18
- package/lib/node/error.js +0 -18
- package/lib/node/frame.js +0 -38
- package/lib/node/header/axiom.js +0 -28
- package/lib/node/header/conjecture.js +0 -23
- package/lib/node/header/lemma.js +0 -23
- package/lib/node/header/metaLemma.js +0 -23
- package/lib/node/header/metatheorem.js +0 -23
- package/lib/node/header/rule.js +0 -23
- package/lib/node/header/theorem.js +0 -23
- package/lib/node/header.js +0 -47
- package/lib/node/hypothesis.js +0 -27
- package/lib/node/judgement.js +0 -31
- package/lib/node/label.js +0 -23
- package/lib/node/labels.js +0 -23
- package/lib/node/metaArgument.js +0 -23
- package/lib/node/metaType.js +0 -30
- package/lib/node/metavariable.js +0 -39
- package/lib/node/parameter.js +0 -47
- package/lib/node/parenthesisedLabel.js +0 -23
- package/lib/node/parenthesisedLabels.js +0 -27
- package/lib/node/placeholder.js +0 -18
- package/lib/node/procedureCall.js +0 -31
- package/lib/node/procedureReference.js +0 -30
- package/lib/node/proof.js +0 -23
- package/lib/node/proofAssertion/premise.js +0 -28
- package/lib/node/proofAssertion/step.js +0 -52
- package/lib/node/proofAssertion/supposition.js +0 -28
- package/lib/node/proofAssertion.js +0 -27
- package/lib/node/property.js +0 -30
- package/lib/node/propertyRelation.js +0 -31
- package/lib/node/qualification.js +0 -27
- package/lib/node/reference.js +0 -23
- package/lib/node/rule.js +0 -43
- package/lib/node/section.js +0 -39
- package/lib/node/signature.js +0 -23
- package/lib/node/statement.js +0 -103
- package/lib/node/subDerivation.js +0 -26
- package/lib/node/subproof.js +0 -35
- package/lib/node/substitution/frame.js +0 -40
- package/lib/node/substitution/reference.js +0 -40
- package/lib/node/substitution/statement.js +0 -60
- package/lib/node/substitution/term.js +0 -40
- package/lib/node/substitution.js +0 -18
- package/lib/node/term.js +0 -60
- package/lib/node/topLevelAssertion/axiom.js +0 -26
- package/lib/node/topLevelAssertion/conjecture.js +0 -26
- package/lib/node/topLevelAssertion/lemma.js +0 -26
- package/lib/node/topLevelAssertion/theorem.js +0 -26
- package/lib/node/topLevelAssertion.js +0 -46
- package/lib/node/topLevelMetaAssertion/metaLemma.js +0 -26
- package/lib/node/topLevelMetaAssertion/metatheorem.js +0 -26
- package/lib/node/topLevelMetaAssertion.js +0 -42
- package/lib/node/type.js +0 -60
- package/lib/node/typePrefix.js +0 -30
- package/lib/node/types.js +0 -23
- package/lib/node/variable.js +0 -30
- package/lib/nominal/lexer.js +0 -15
- package/lib/nominal/parser.js +0 -24
- package/lib/nonTerminalNodeMap.js +0 -189
- package/lib/pass/zip.js +0 -23
- package/lib/preamble.js +0 -73
- package/lib/process/assign.js +0 -62
- package/lib/process/discharge.js +0 -38
- package/lib/process/equate.js +0 -73
- package/lib/process/instantiate.js +0 -261
- package/lib/process/unification.js +0 -228
- package/lib/process/unify.js +0 -336
- package/lib/process/validate.js +0 -135
- package/lib/process/validation.js +0 -291
- package/lib/process/verify.js +0 -205
- package/lib/ruleNames.js +0 -350
- package/lib/tokenTypes.js +0 -22
- package/lib/utilities/assignment.js +0 -47
- package/lib/utilities/bnf.js +0 -21
- package/lib/utilities/brackets.js +0 -77
- package/lib/utilities/breakPoint.js +0 -38
- package/lib/utilities/context.js +0 -220
- package/lib/utilities/element.js +0 -1851
- package/lib/utilities/equivalence.js +0 -27
- package/lib/utilities/equivalences.js +0 -134
- package/lib/utilities/instance.js +0 -44
- package/lib/utilities/json.js +0 -1109
- package/lib/utilities/string.js +0 -231
- package/lib/utilities/substitutions.js +0 -86
- package/lib/utilities/synoptic.js +0 -159
- package/lib/utilities/type.js +0 -27
- package/src/context/aphasic.js +0 -15
- package/src/context/bounded.js +0 -362
- package/src/context/branching.js +0 -69
- package/src/context/file/nominal.js +0 -955
- package/src/context/illative.js +0 -17
- package/src/context/liminal.js +0 -280
- package/src/context/literal.js +0 -42
- package/src/context/mnemic.js +0 -778
- package/src/context/nested.js +0 -21
- package/src/context/nominal.js +0 -62
- package/src/context/phaneric.js +0 -43
- package/src/context/thetic.js +0 -17
- package/src/context.js +0 -722
- package/src/element/assertion/contained.js +0 -313
- package/src/element/assertion/defined.js +0 -310
- package/src/element/assertion/property.js +0 -252
- package/src/element/assertion/signature.js +0 -239
- package/src/element/assertion/subproof.js +0 -335
- package/src/element/assertion/type.js +0 -328
- package/src/element/assertion.js +0 -65
- package/src/element/assumption/metaLevel.js +0 -373
- package/src/element/assumption.js +0 -374
- package/src/element/combinator/bracketed.js +0 -32
- package/src/element/combinator.js +0 -145
- package/src/element/conclusion.js +0 -185
- package/src/element/constructor/bracketed.js +0 -68
- package/src/element/constructor.js +0 -188
- package/src/element/declaration/combinator.js +0 -66
- package/src/element/declaration/complexType.js +0 -257
- package/src/element/declaration/constructor.js +0 -122
- package/src/element/declaration/metavariable.js +0 -93
- package/src/element/declaration/property.js +0 -108
- package/src/element/declaration/simpleType.js +0 -208
- package/src/element/declaration/typePrefix.js +0 -58
- package/src/element/declaration/variable.js +0 -130
- package/src/element/declaration.js +0 -7
- package/src/element/deduction.js +0 -185
- package/src/element/derivation.js +0 -57
- package/src/element/equality.js +0 -325
- package/src/element/equivalence.js +0 -276
- package/src/element/error.js +0 -26
- package/src/element/frame.js +0 -356
- package/src/element/hypothesis.js +0 -186
- package/src/element/judgement.js +0 -303
- package/src/element/label.js +0 -186
- package/src/element/metaType.js +0 -75
- package/src/element/metavariable.js +0 -662
- package/src/element/parameter.js +0 -90
- package/src/element/procedureCall.js +0 -159
- package/src/element/procedureReference.js +0 -71
- package/src/element/proof.js +0 -61
- package/src/element/proofAssertion/premise.js +0 -354
- package/src/element/proofAssertion/step.js +0 -271
- package/src/element/proofAssertion/supposition.js +0 -377
- package/src/element/proofAssertion.js +0 -74
- package/src/element/property.js +0 -258
- package/src/element/propertyRelation.js +0 -193
- package/src/element/reference.js +0 -345
- package/src/element/rule.js +0 -358
- package/src/element/section.js +0 -78
- package/src/element/signature.js +0 -292
- package/src/element/statement.js +0 -358
- package/src/element/subDerivation.js +0 -56
- package/src/element/subproof.js +0 -116
- package/src/element/substitution/frame.js +0 -392
- package/src/element/substitution/reference.js +0 -274
- package/src/element/substitution/statement.js +0 -452
- package/src/element/substitution/term.js +0 -407
- package/src/element/substitution.js +0 -261
- package/src/element/term.js +0 -339
- package/src/element/topLevelAssertion/axiom.js +0 -244
- package/src/element/topLevelAssertion/conjecture.js +0 -40
- package/src/element/topLevelAssertion/lemma.js +0 -42
- package/src/element/topLevelAssertion/theorem.js +0 -40
- package/src/element/topLevelAssertion.js +0 -436
- package/src/element/topLevelMetaAssertion/metaLemma.js +0 -40
- package/src/element/topLevelMetaAssertion/metatheorem.js +0 -40
- package/src/element/topLevelMetaAssertion.js +0 -276
- package/src/element/type.js +0 -374
- package/src/element/typePrefix.js +0 -113
- package/src/element/variable.js +0 -259
- package/src/elements.js +0 -13
- package/src/metaTypeNames.js +0 -5
- package/src/metaTypes.js +0 -71
- package/src/node/argument.js +0 -30
- package/src/node/assertion/contained.js +0 -53
- package/src/node/assertion/defined.js +0 -46
- package/src/node/assertion/property.js +0 -30
- package/src/node/assertion/signature.js +0 -23
- package/src/node/assertion/subproof.js +0 -16
- package/src/node/assertion/type.js +0 -23
- package/src/node/assertion.js +0 -7
- package/src/node/assumption/metaLevel.js +0 -23
- package/src/node/assumption.js +0 -23
- package/src/node/body/axiom.js +0 -7
- package/src/node/body/conjecture.js +0 -7
- package/src/node/body/lemma.js +0 -7
- package/src/node/body/metaLemma.js +0 -7
- package/src/node/body/metatheorem.js +0 -7
- package/src/node/body/rule.js +0 -42
- package/src/node/body/theorem.js +0 -7
- package/src/node/body.js +0 -30
- package/src/node/combinator.js +0 -16
- package/src/node/conclusion.js +0 -23
- package/src/node/constructor.js +0 -16
- package/src/node/declaration/combinator.js +0 -16
- package/src/node/declaration/complexType.js +0 -88
- package/src/node/declaration/constructor.js +0 -46
- package/src/node/declaration/metavariable.js +0 -30
- package/src/node/declaration/property.js +0 -42
- package/src/node/declaration/simpleType.js +0 -87
- package/src/node/declaration/typePrefix.js +0 -24
- package/src/node/declaration/variable.js +0 -53
- package/src/node/declaration.js +0 -7
- package/src/node/deduction.js +0 -23
- package/src/node/derivation.js +0 -19
- package/src/node/document.js +0 -7
- package/src/node/equality.js +0 -35
- package/src/node/equivalence.js +0 -16
- package/src/node/equivalences.js +0 -7
- package/src/node/error.js +0 -7
- package/src/node/frame.js +0 -40
- package/src/node/header/axiom.js +0 -16
- package/src/node/header/conjecture.js +0 -7
- package/src/node/header/lemma.js +0 -7
- package/src/node/header/metaLemma.js +0 -7
- package/src/node/header/metatheorem.js +0 -7
- package/src/node/header/rule.js +0 -7
- package/src/node/header/theorem.js +0 -7
- package/src/node/header.js +0 -54
- package/src/node/hypothesis.js +0 -23
- package/src/node/judgement.js +0 -30
- package/src/node/label.js +0 -16
- package/src/node/labels.js +0 -16
- package/src/node/metaArgument.js +0 -16
- package/src/node/metaType.js +0 -26
- package/src/node/metavariable.js +0 -42
- package/src/node/parameter.js +0 -51
- package/src/node/parenthesisedLabel.js +0 -16
- package/src/node/parenthesisedLabels.js +0 -23
- package/src/node/placeholder.js +0 -7
- package/src/node/procedureCall.js +0 -30
- package/src/node/procedureReference.js +0 -26
- package/src/node/proof.js +0 -16
- package/src/node/proofAssertion/premise.js +0 -16
- package/src/node/proofAssertion/step.js +0 -52
- package/src/node/proofAssertion/supposition.js +0 -16
- package/src/node/proofAssertion.js +0 -23
- package/src/node/property.js +0 -28
- package/src/node/propertyRelation.js +0 -30
- package/src/node/qualification.js +0 -23
- package/src/node/reference.js +0 -16
- package/src/node/rule.js +0 -51
- package/src/node/section.js +0 -44
- package/src/node/signature.js +0 -16
- package/src/node/statement.js +0 -167
- package/src/node/subDerivation.js +0 -19
- package/src/node/subproof.js +0 -35
- package/src/node/substitution/frame.js +0 -37
- package/src/node/substitution/reference.js +0 -38
- package/src/node/substitution/statement.js +0 -70
- package/src/node/substitution/term.js +0 -38
- package/src/node/substitution.js +0 -7
- package/src/node/term.js +0 -75
- package/src/node/topLevelAssertion/axiom.js +0 -13
- package/src/node/topLevelAssertion/conjecture.js +0 -13
- package/src/node/topLevelAssertion/lemma.js +0 -13
- package/src/node/topLevelAssertion/theorem.js +0 -13
- package/src/node/topLevelAssertion.js +0 -58
- package/src/node/topLevelMetaAssertion/metaLemma.js +0 -13
- package/src/node/topLevelMetaAssertion/metatheorem.js +0 -13
- package/src/node/topLevelMetaAssertion.js +0 -51
- package/src/node/type.js +0 -74
- package/src/node/typePrefix.js +0 -26
- package/src/node/types.js +0 -16
- package/src/node/variable.js +0 -26
- package/src/nominal/lexer.js +0 -5
- package/src/nominal/parser.js +0 -12
- package/src/nonTerminalNodeMap.js +0 -261
- package/src/pass/zip.js +0 -19
- package/src/preamble.js +0 -64
- package/src/process/assign.js +0 -53
- package/src/process/discharge.js +0 -33
- package/src/process/equate.js +0 -94
- package/src/process/instantiate.js +0 -198
- package/src/process/unification.js +0 -332
- package/src/process/unify.js +0 -504
- package/src/process/validate.js +0 -174
- package/src/process/validation.js +0 -410
- package/src/process/verify.js +0 -299
- package/src/ruleNames.js +0 -86
- package/src/tokenTypes.js +0 -4
- package/src/utilities/assignment.js +0 -57
- package/src/utilities/bnf.js +0 -20
- package/src/utilities/brackets.js +0 -87
- package/src/utilities/breakPoint.js +0 -29
- package/src/utilities/context.js +0 -223
- package/src/utilities/element.js +0 -2293
- package/src/utilities/equivalence.js +0 -25
- package/src/utilities/equivalences.js +0 -158
- package/src/utilities/instance.js +0 -40
- package/src/utilities/json.js +0 -1273
- package/src/utilities/string.js +0 -282
- package/src/utilities/substitutions.js +0 -93
- package/src/utilities/synoptic.js +0 -135
- package/src/utilities/type.js +0 -19
|
@@ -1,354 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import ProofAssertion from "../proofAssertion";
|
|
4
|
-
|
|
5
|
-
import { define } from "../../elements";
|
|
6
|
-
import { instantiatePremise } from "../../process/instantiate";
|
|
7
|
-
import { procedureCallFromPremiseNode } from "../../utilities/element";
|
|
8
|
-
import { breakPointFromJSON, breakPointToBreakPointJSON } from "../../utilities/breakPoint";
|
|
9
|
-
import { declare, attempt, reconcile, serialise, unserialise, instantiate } from "../../utilities/context";
|
|
10
|
-
|
|
11
|
-
export default define(class Premise extends ProofAssertion {
|
|
12
|
-
constructor(context, string, node, breakPoint, statement, procedureCall) {
|
|
13
|
-
super(context, string, node, breakPoint, statement);
|
|
14
|
-
|
|
15
|
-
this.procedureCall = procedureCall;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
getProcedureCall() {
|
|
19
|
-
return this.procedureCall;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
getPremiseNode() {
|
|
23
|
-
const node = this.getNode(),
|
|
24
|
-
premiseNode = node; ///
|
|
25
|
-
|
|
26
|
-
return premiseNode;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
getStatementNode() {
|
|
30
|
-
const premiseNode = this.getPremiseNode(),
|
|
31
|
-
statementNode = premiseNode.getStatementNode();
|
|
32
|
-
|
|
33
|
-
return statementNode;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
findSubproofAssertion() {
|
|
37
|
-
let subproofAssertion = null;
|
|
38
|
-
|
|
39
|
-
const statementNode = this.getStatementNode();
|
|
40
|
-
|
|
41
|
-
if (statementNode !== null) {
|
|
42
|
-
const subproofAssertionNode = statementNode.getSubproofAssertionNode();
|
|
43
|
-
|
|
44
|
-
if (subproofAssertionNode !== null) {
|
|
45
|
-
const context = this.getContext();
|
|
46
|
-
|
|
47
|
-
subproofAssertion = context.findAssertionByAssertionNode(subproofAssertionNode);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
return subproofAssertion;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
async verify(context) {
|
|
55
|
-
let verifies = false;
|
|
56
|
-
|
|
57
|
-
await this.break(context);
|
|
58
|
-
|
|
59
|
-
const premiseString = this.getString();
|
|
60
|
-
|
|
61
|
-
context.trace(`Verifying the '${premiseString}' premise...`);
|
|
62
|
-
|
|
63
|
-
const statement = this.getStatement(),
|
|
64
|
-
procedureCall = this.getProcedureCall();
|
|
65
|
-
|
|
66
|
-
if ((statement !== null) || (procedureCall !== null)) {
|
|
67
|
-
declare((context) => {
|
|
68
|
-
const validates = this.validate(context);
|
|
69
|
-
|
|
70
|
-
if (validates) {
|
|
71
|
-
verifies = true;
|
|
72
|
-
}
|
|
73
|
-
}, context);
|
|
74
|
-
} else {
|
|
75
|
-
context.debug(`Unable to validate the '${premiseString}' premise because it is nonsense.`);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return verifies;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
validate(context) {
|
|
82
|
-
let validates = false;
|
|
83
|
-
|
|
84
|
-
const premiseString = this.getString(); ///
|
|
85
|
-
|
|
86
|
-
context.trace(`Validatting the '${premiseString}' premise...`);
|
|
87
|
-
|
|
88
|
-
attempt((context) => {
|
|
89
|
-
const statement = this.getStatement(),
|
|
90
|
-
procedureCall = this.getProcedureCall();
|
|
91
|
-
|
|
92
|
-
if (statement !== null) {
|
|
93
|
-
const statementValidates = this.validateStatement(context);
|
|
94
|
-
|
|
95
|
-
if (statementValidates) {
|
|
96
|
-
validates = true;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (procedureCall !== null) {
|
|
101
|
-
const procedureCallValidates = this.validateProcedureCall(context);
|
|
102
|
-
|
|
103
|
-
if (procedureCallValidates) {
|
|
104
|
-
validates = true;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
if (validates) {
|
|
109
|
-
this.commit(context);
|
|
110
|
-
}
|
|
111
|
-
}, context);
|
|
112
|
-
|
|
113
|
-
if (validates) {
|
|
114
|
-
context.debug(`...validated the '${premiseString}' premise.`);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return validates;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
validateStatement(context) {
|
|
121
|
-
let statementValidates = false;
|
|
122
|
-
|
|
123
|
-
const premiseString = this.getString();
|
|
124
|
-
|
|
125
|
-
context.trace(`Validating the '${premiseString}' premise's statsement... `);
|
|
126
|
-
|
|
127
|
-
let statement;
|
|
128
|
-
|
|
129
|
-
statement = this.getStatement();
|
|
130
|
-
|
|
131
|
-
statement = statement.validate(context); ///
|
|
132
|
-
|
|
133
|
-
if (statement !== null) {
|
|
134
|
-
statementValidates = true;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
if (statementValidates) {
|
|
138
|
-
context.debug(`...validated the '${premiseString}' premise's statement. `);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return statementValidates;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
validateProcedureCall(context) {
|
|
145
|
-
let procedureCallValidates = false;
|
|
146
|
-
|
|
147
|
-
const premiseString = this.getString(); ///
|
|
148
|
-
|
|
149
|
-
context.trace(`Validatting the '${premiseString}' premise's procedure call...`);
|
|
150
|
-
|
|
151
|
-
const procedureCall = this.procedureCall.validate(context);
|
|
152
|
-
|
|
153
|
-
if (procedureCall !== null) {
|
|
154
|
-
procedureCallValidates = true;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
if (procedureCallValidates) {
|
|
158
|
-
context.debug(`...validated the '${premiseString}' premise's procedure call.`);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
return procedureCallValidates;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
async unifyIndependently(context) {
|
|
165
|
-
let unifiesIndependently = false;
|
|
166
|
-
|
|
167
|
-
const premiseString = this.getString(); ///
|
|
168
|
-
|
|
169
|
-
context.trace(`Unifying the '${premiseString}' premise independently...`);
|
|
170
|
-
|
|
171
|
-
await reconcile(async (context) => {
|
|
172
|
-
const statement = this.getStatement(),
|
|
173
|
-
procedureCall = this.getProcedureCall();
|
|
174
|
-
|
|
175
|
-
if (statement !== null) {
|
|
176
|
-
const premiseContext = this.getContext(),
|
|
177
|
-
generalContext = premiseContext, ///
|
|
178
|
-
specificContext = context, ///
|
|
179
|
-
statementUnifiesIndependently = statement.unifyIndependently(generalContext, specificContext);
|
|
180
|
-
|
|
181
|
-
if (statementUnifiesIndependently) {
|
|
182
|
-
unifiesIndependently = true;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
if (procedureCall !== null) {
|
|
187
|
-
const procedureCallResolvedIndependently = await procedureCall.unifyIndependently(context);
|
|
188
|
-
|
|
189
|
-
if (procedureCallResolvedIndependently) {
|
|
190
|
-
unifiesIndependently = true;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}, context);
|
|
194
|
-
|
|
195
|
-
if (unifiesIndependently) {
|
|
196
|
-
context.debug(`...unified the '${premiseString}' premise independently.`);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
return unifiesIndependently;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
unifySubproof(subproof, context) {
|
|
203
|
-
let subproofUnifies = false;
|
|
204
|
-
|
|
205
|
-
const premiseString = this.getString(), ///
|
|
206
|
-
subproofString = subproof.getString();
|
|
207
|
-
|
|
208
|
-
context.trace(`Unifying the '${subproofString}' subproof with the '${premiseString}' premise...`);
|
|
209
|
-
|
|
210
|
-
const subproofAssertion = this.findSubproofAssertion();
|
|
211
|
-
|
|
212
|
-
if (subproofAssertion !== null) {
|
|
213
|
-
const premiseContext = this.getContext(),
|
|
214
|
-
generalContext = premiseContext, ///
|
|
215
|
-
spsecfiicContext = context; ///
|
|
216
|
-
|
|
217
|
-
subproofUnifies = subproofAssertion.unifySubproof(subproof, generalContext, spsecfiicContext);
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
if (subproofUnifies) {
|
|
221
|
-
context.debug(`...unified the '${subproofString}' subproof with the '${premiseString}' premise.`);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
return subproofUnifies;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
unifyProofAssertion(proofAssertion, context) {
|
|
228
|
-
let proofAssertionUnifies = false;
|
|
229
|
-
|
|
230
|
-
const premiseString = this.getString(), ///
|
|
231
|
-
proofAssertionString = proofAssertion.getString();
|
|
232
|
-
|
|
233
|
-
context.trace(`Unifying the '${proofAssertionString}' proof assertion with the '${premiseString}' premise...`);
|
|
234
|
-
|
|
235
|
-
const proofAssertionContext = proofAssertion.getContext(),
|
|
236
|
-
premiseContext = this.getContext(), ///
|
|
237
|
-
generalContext = premiseContext, ///
|
|
238
|
-
specificContext = proofAssertionContext; ///
|
|
239
|
-
|
|
240
|
-
reconcile((specificContext) => {
|
|
241
|
-
const statement = proofAssertion.getStatement(),
|
|
242
|
-
statementUnifies = this.unifyStatement(statement, generalContext, specificContext);
|
|
243
|
-
|
|
244
|
-
if (statementUnifies) {
|
|
245
|
-
specificContext.commit(context);
|
|
246
|
-
|
|
247
|
-
proofAssertionUnifies = true;
|
|
248
|
-
}
|
|
249
|
-
}, specificContext);
|
|
250
|
-
|
|
251
|
-
if (proofAssertionUnifies) {
|
|
252
|
-
context.debug(`...unified the '${proofAssertionString}' proof assertion with the '${premiseString}' premise.`);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
return proofAssertionUnifies;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
unifySubproofOrProofAssertion(subproofOrProofAssertion, context) {
|
|
259
|
-
let subproofOrProofAssertionUnifies;
|
|
260
|
-
|
|
261
|
-
const premiseString = this.getString(), ///
|
|
262
|
-
subproofOrProofAssertionString = subproofOrProofAssertion.getString();
|
|
263
|
-
|
|
264
|
-
context.trace(`Unifying the '${subproofOrProofAssertionString}' subproof or proof assertion with the '${premiseString}' premise...`);
|
|
265
|
-
|
|
266
|
-
const subproofOrProofAssertionProofAssertion = subproofOrProofAssertion.isProofAssertion(),
|
|
267
|
-
proofAssertion = subproofOrProofAssertionProofAssertion ?
|
|
268
|
-
subproofOrProofAssertion :
|
|
269
|
-
null,
|
|
270
|
-
subproof = subproofOrProofAssertionProofAssertion ?
|
|
271
|
-
null :
|
|
272
|
-
subproofOrProofAssertion;
|
|
273
|
-
|
|
274
|
-
reconcile((context) => {
|
|
275
|
-
if (proofAssertion !== null) {
|
|
276
|
-
const proofAssertionUnifies = this.unifyProofAssertion(proofAssertion, context);
|
|
277
|
-
|
|
278
|
-
if (proofAssertionUnifies) {
|
|
279
|
-
subproofOrProofAssertionUnifies = true;
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
if (subproof !== null) {
|
|
284
|
-
const subproofUnifies = this.unifySubproof(subproof, context);
|
|
285
|
-
|
|
286
|
-
if (subproofUnifies) {
|
|
287
|
-
subproofOrProofAssertionUnifies = true;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (subproofOrProofAssertionUnifies) {
|
|
292
|
-
context.commit();
|
|
293
|
-
}
|
|
294
|
-
}, context);
|
|
295
|
-
|
|
296
|
-
if (subproofOrProofAssertionUnifies) {
|
|
297
|
-
context.debug(`...unified the '${subproofOrProofAssertionString}' subproof or proof assertion with the '${premiseString}' premise.`);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
return subproofOrProofAssertionUnifies;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
toJSON() {
|
|
304
|
-
const context = this.getContext();
|
|
305
|
-
|
|
306
|
-
return serialise((context) => {
|
|
307
|
-
const string = this.getString();
|
|
308
|
-
|
|
309
|
-
let breakPoint;
|
|
310
|
-
|
|
311
|
-
breakPoint = this.getBreakPoint();
|
|
312
|
-
|
|
313
|
-
const breakPointJSON = breakPointToBreakPointJSON(breakPoint);
|
|
314
|
-
|
|
315
|
-
breakPoint = breakPointJSON; ///
|
|
316
|
-
|
|
317
|
-
const json = {
|
|
318
|
-
context,
|
|
319
|
-
string,
|
|
320
|
-
breakPoint
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
return json;
|
|
324
|
-
}, context);
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
static name = "Premise";
|
|
328
|
-
|
|
329
|
-
static fromJSON(json, context) {
|
|
330
|
-
let premise;
|
|
331
|
-
|
|
332
|
-
instantiate((context) => {
|
|
333
|
-
unserialise((json, context) => {
|
|
334
|
-
const { string } = json,
|
|
335
|
-
premiseNode = instantiatePremise(string, context),
|
|
336
|
-
node = premiseNode, ///
|
|
337
|
-
breakPoint = breakPointFromJSON(json),
|
|
338
|
-
statement = statementFromPremiseNode(premiseNode, context),
|
|
339
|
-
procedureCall = procedureCallFromPremiseNode(premiseNode, context);
|
|
340
|
-
|
|
341
|
-
premise = new Premise(context, string, node, breakPoint, statement, procedureCall);
|
|
342
|
-
}, json, context);
|
|
343
|
-
}, context);
|
|
344
|
-
|
|
345
|
-
return premise;
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
|
|
349
|
-
function statementFromPremiseNode(premiseNode, context) {
|
|
350
|
-
const statementNode = premiseNode.getStatementNode(),
|
|
351
|
-
statement = context.findStatementByStatementNode(statementNode);
|
|
352
|
-
|
|
353
|
-
return statement;
|
|
354
|
-
}
|
|
@@ -1,271 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { arrayUtilities } from "necessary";
|
|
4
|
-
import { asynchronousUtilities } from "occam-languages";
|
|
5
|
-
|
|
6
|
-
import elements from "../../elements";
|
|
7
|
-
import ProofAssertion from "../proofAssertion";
|
|
8
|
-
|
|
9
|
-
import { define } from "../../elements";
|
|
10
|
-
import { unifySteps } from "../../process/unification";
|
|
11
|
-
import { derive, declare, attempt, reconcile } from "../../utilities/context";
|
|
12
|
-
|
|
13
|
-
const { asyncSome } = asynchronousUtilities,
|
|
14
|
-
{ backwardsSome } = arrayUtilities;
|
|
15
|
-
|
|
16
|
-
export default define(class Step extends ProofAssertion {
|
|
17
|
-
constructor(context, string, node, breakPoint, statement, reference, signatureAssertion) {
|
|
18
|
-
super(context, string, node, breakPoint, statement);
|
|
19
|
-
|
|
20
|
-
this.reference = reference;
|
|
21
|
-
this.signatureAssertion = signatureAssertion;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
getReference() {
|
|
25
|
-
return this.reference;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
getSignatureAssertion() {
|
|
29
|
-
return this.signatureAssertion;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
getStepNode() {
|
|
33
|
-
const node = this.getNode(),
|
|
34
|
-
stepNode = node; ///
|
|
35
|
-
|
|
36
|
-
return stepNode;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
getStatementNode() {
|
|
40
|
-
const statement = this.getStatement(),
|
|
41
|
-
statementNode = statement.getNode();
|
|
42
|
-
|
|
43
|
-
return statementNode;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
isQualified() {
|
|
47
|
-
const qualified = ((this.reference !== null) || (this.signatureAssertion !== null));
|
|
48
|
-
|
|
49
|
-
return qualified;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
isUnqualified() {
|
|
53
|
-
const qualified = this.isQualified(),
|
|
54
|
-
unqualified = !qualified;
|
|
55
|
-
|
|
56
|
-
return unqualified;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
compareTermAndPropertyRelation(term, propertyRelation, context) {
|
|
60
|
-
let comparesToTermAndPropertyRelation = false;
|
|
61
|
-
|
|
62
|
-
const { PropertyAssertion } = elements,
|
|
63
|
-
statement = this.getStatement(),
|
|
64
|
-
propertyAssertion = PropertyAssertion.fromStatement(statement, context);
|
|
65
|
-
|
|
66
|
-
if (propertyAssertion !== null) {
|
|
67
|
-
comparesToTermAndPropertyRelation = propertyAssertion.compareTermAndPropertyRelation(term, propertyRelation, context);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return comparesToTermAndPropertyRelation;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
compareSubproofOrProofAssertions(subproofOrProofAssertions, context) {
|
|
74
|
-
let comparesToSubproofOrProofAssertions;
|
|
75
|
-
|
|
76
|
-
const step = this; ///
|
|
77
|
-
|
|
78
|
-
comparesToSubproofOrProofAssertions = backwardsSome(subproofOrProofAssertions, (subproofOrProofAssertion) => {
|
|
79
|
-
const subproofOrProofAssertionComparesToStatement = subproofOrProofAssertion.compareStep(step, context);
|
|
80
|
-
|
|
81
|
-
if (subproofOrProofAssertionComparesToStatement) {
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
return comparesToSubproofOrProofAssertions;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
async verify(context) {
|
|
90
|
-
let verifies = false;
|
|
91
|
-
|
|
92
|
-
await this.break(context);
|
|
93
|
-
|
|
94
|
-
const stepString = this.getString(); ///
|
|
95
|
-
|
|
96
|
-
context.trace(`Verifying the '${stepString}' step...`);
|
|
97
|
-
|
|
98
|
-
const statement = this.getStatement();
|
|
99
|
-
|
|
100
|
-
if (statement !== null) {
|
|
101
|
-
const qualified = this.isQualified(),
|
|
102
|
-
stated = qualified; ///
|
|
103
|
-
|
|
104
|
-
await (stated ? declare : derive)(async (context) => {
|
|
105
|
-
const validates = this.validate(context);
|
|
106
|
-
|
|
107
|
-
if (validates) {
|
|
108
|
-
context = this.getContext();
|
|
109
|
-
|
|
110
|
-
const unifiies = await this.unify(context);
|
|
111
|
-
|
|
112
|
-
if (unifiies) {
|
|
113
|
-
verifies = true;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}, context)
|
|
117
|
-
} else {
|
|
118
|
-
context.debug(`Unable to verify the '${stepString}' step because it is nonsense.`);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
if (verifies) {
|
|
122
|
-
context.debug(`...verified the '${stepString}' step.`);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
return verifies;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
validate(context) {
|
|
129
|
-
let validates = false;
|
|
130
|
-
|
|
131
|
-
const stepString = this.getString(); ///
|
|
132
|
-
|
|
133
|
-
context.trace(`Validating the '${stepString}' step...`);
|
|
134
|
-
|
|
135
|
-
attempt((context) => {
|
|
136
|
-
const statementValidates = this.validateStatement(context);
|
|
137
|
-
|
|
138
|
-
if (statementValidates) {
|
|
139
|
-
const referenceValidates = this.validateReference(context);
|
|
140
|
-
|
|
141
|
-
if (referenceValidates) {
|
|
142
|
-
const signatureAssertionValidates = this.validateSignatureAssertion(context);
|
|
143
|
-
|
|
144
|
-
if (signatureAssertionValidates) {
|
|
145
|
-
validates = true;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
if (validates) {
|
|
151
|
-
this.commit(context);
|
|
152
|
-
}
|
|
153
|
-
}, context);
|
|
154
|
-
|
|
155
|
-
if (validates) {
|
|
156
|
-
context.debug(`...validated the '${stepString}' step.`);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
return validates;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
validateStatement(context) {
|
|
163
|
-
let statementValidates = false;
|
|
164
|
-
|
|
165
|
-
const stepString = this.getString();
|
|
166
|
-
|
|
167
|
-
context.trace(`Validating the '${stepString}' step's statement... `);
|
|
168
|
-
|
|
169
|
-
let statement;
|
|
170
|
-
|
|
171
|
-
statement = this.getStatement();
|
|
172
|
-
|
|
173
|
-
statement = statement.validate(context); ///
|
|
174
|
-
|
|
175
|
-
if (statement !== null) {
|
|
176
|
-
statementValidates = true;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
if (statementValidates) {
|
|
180
|
-
context.debug(`...validated the '${stepString}' step's statement. `);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
return statementValidates;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
validateReference(context) {
|
|
187
|
-
let referenceValidates = false;
|
|
188
|
-
|
|
189
|
-
if (this.reference !== null) {
|
|
190
|
-
const stepString = this.getString(), ///
|
|
191
|
-
referenceString = this.reference.getString();
|
|
192
|
-
|
|
193
|
-
context.trace(`Validating the '${stepString}' step's '${referenceString}' reference... `);
|
|
194
|
-
|
|
195
|
-
const reference = this.reference.validate(context);
|
|
196
|
-
|
|
197
|
-
if (reference !== null) {
|
|
198
|
-
this.reference = reference;
|
|
199
|
-
|
|
200
|
-
referenceValidates = true;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
if (referenceValidates) {
|
|
204
|
-
context.debug(`...validated the '${stepString}' step's '${referenceString}' reference. `);
|
|
205
|
-
}
|
|
206
|
-
} else {
|
|
207
|
-
referenceValidates = true;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
return referenceValidates;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
validateSignatureAssertion(context) {
|
|
214
|
-
let signatureAssertionValidates = false;
|
|
215
|
-
|
|
216
|
-
if (this.signatureAssertion !== null) {
|
|
217
|
-
const stepString = this.getString(), ///
|
|
218
|
-
signatureAssertionString = this.signatureAssertion.getString();
|
|
219
|
-
|
|
220
|
-
context.trace(`Validating the '${stepString}' step's '${signatureAssertionString}' signature assertion... `);
|
|
221
|
-
|
|
222
|
-
const signatureAssertion = this.signatureAssertion.validate(context);
|
|
223
|
-
|
|
224
|
-
if (signatureAssertion !== null) {
|
|
225
|
-
this.signatureAssertion = signatureAssertion;
|
|
226
|
-
|
|
227
|
-
signatureAssertionValidates = true;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
if (signatureAssertionValidates) {
|
|
231
|
-
context.debug(`...validated the '${stepString}' step's '${signatureAssertionString}' signature assertion. `);
|
|
232
|
-
}
|
|
233
|
-
} else {
|
|
234
|
-
signatureAssertionValidates = true;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
return signatureAssertionValidates;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
async unify(context) {
|
|
241
|
-
let unifies = false;
|
|
242
|
-
|
|
243
|
-
const stepString = this.getString(); ///
|
|
244
|
-
|
|
245
|
-
context.trace(`Unifying the '${stepString}' step...`);
|
|
246
|
-
|
|
247
|
-
const step = this; ///
|
|
248
|
-
|
|
249
|
-
await asyncSome(unifySteps, async (unifyStep) => {
|
|
250
|
-
let stepUnifies;
|
|
251
|
-
|
|
252
|
-
await reconcile(async (context) => {
|
|
253
|
-
stepUnifies = await unifyStep(step, context);
|
|
254
|
-
}, context);
|
|
255
|
-
|
|
256
|
-
if (stepUnifies) {
|
|
257
|
-
unifies = true;
|
|
258
|
-
|
|
259
|
-
return true;
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
if (unifies) {
|
|
264
|
-
context.debug(`...unified the '${stepString}' step.`);
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
return unifies;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
static name = "Step";
|
|
271
|
-
});
|