occam-verify-cli 1.0.574 → 1.0.575
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/ephemeral.js +10 -5
- package/lib/context/file/nominal.js +4 -4
- package/lib/context/liminal.js +10 -5
- package/lib/context/literal.js +9 -5
- package/lib/context/nominal.js +4 -3
- package/lib/context/scoped.js +5 -5
- package/lib/context.js +80 -0
- package/lib/element/proofAssertion/supposition.js +11 -8
- package/lib/element/signature.js +7 -6
- package/lib/element/variable.js +1 -2
- package/lib/utilities/context.js +1 -9
- package/lib/utilities/unification.js +15 -10
- package/package.json +2 -2
- package/src/context/ephemeral.js +3 -5
- package/src/context/file/nominal.js +1 -4
- package/src/context/liminal.js +3 -5
- package/src/context/literal.js +1 -5
- package/src/context/nominal.js +2 -1
- package/src/context/scoped.js +2 -5
- package/src/context.js +8 -0
- package/src/element/proofAssertion/supposition.js +9 -7
- package/src/element/signature.js +6 -5
- package/src/element/variable.js +0 -1
- package/src/utilities/context.js +0 -8
- package/src/utilities/unification.js +14 -11
- package/lib/context/synthetic.js +0 -171
- package/src/context/synthetic.js +0 -47
package/src/context/synthetic.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import { Context, contextUtilities } from "occam-languages";
|
|
4
|
-
|
|
5
|
-
const { chainContext } = contextUtilities;
|
|
6
|
-
|
|
7
|
-
export default class SyntheticContext extends Context {
|
|
8
|
-
constructor(context, generalContext, specificContext) {
|
|
9
|
-
super(context);
|
|
10
|
-
|
|
11
|
-
this.generalContext = generalContext;
|
|
12
|
-
this.specificContext = specificContext;
|
|
13
|
-
|
|
14
|
-
return chainContext(this);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
getGeneralContext() {
|
|
18
|
-
return this.generalContext;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
getSpecificContext() {
|
|
22
|
-
return this.specificContext;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
findTermByTermNode(termNode) { return this.specificContext.findTermByTermNode(termNode); }
|
|
26
|
-
|
|
27
|
-
findFrameByFrameNode(frameNode) { return this.specificContext.findFrameByFrameNode(frameNode); }
|
|
28
|
-
|
|
29
|
-
findTypeByNominalTypeName(nominalTypeName) { return this.specificContext.findTypeByNominalTypeName(nominalTypeName); }
|
|
30
|
-
|
|
31
|
-
isTypePresentByNominalTypeName(nominalTypeName) { return this.specificContext.isTypePresentByNominalTypeName(nominalTypeName); }
|
|
32
|
-
|
|
33
|
-
findVariableByVariableIdentifier(variableIdentifier) { return this.generalContext.findVariableByVariableIdentifier(variableIdentifier); }
|
|
34
|
-
|
|
35
|
-
findMetavariableByMetavariableName(metavariableName) { return this.generalContext.findMetavariableByMetavariableName(metavariableName); }
|
|
36
|
-
|
|
37
|
-
isVariablePresentByVariableIdentifier(variableIdentifier) { this.generalContext.isVariablePresentByVariableIdentifier(variableIdentifier); }
|
|
38
|
-
|
|
39
|
-
isMetavariablePresentByMetavariableName(metavariableName) { this.generalContext.isMetavariablePresentByMetavariableName(metavariableName); }
|
|
40
|
-
|
|
41
|
-
static fromNothing(generalContext, specificContext) {
|
|
42
|
-
const context = specificContext, ///
|
|
43
|
-
syntheticContext = new SyntheticContext(context, generalContext, specificContext);
|
|
44
|
-
|
|
45
|
-
return syntheticContext;
|
|
46
|
-
}
|
|
47
|
-
}
|