occam-verify-cli 1.0.427 → 1.0.436
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 +1 -1
- package/lib/element/assertion.js +115 -24
- package/lib/element/assumption.js +120 -20
- package/lib/element/axiomLemmaTheoremConjecture.js +118 -30
- package/lib/element/conclusion.js +113 -25
- package/lib/element/declaration.js +112 -37
- package/lib/element/deduction.js +112 -66
- package/lib/element/derivation.js +114 -5
- package/lib/element/equality.js +119 -26
- package/lib/element/equivalence.js +129 -40
- package/lib/element/equivalences.js +122 -7
- package/lib/element/error.js +115 -32
- package/lib/element/frame.js +119 -59
- package/lib/element/hypothesis.js +115 -27
- package/lib/element/judgement.js +120 -33
- package/lib/element/label.js +116 -63
- package/lib/element/lemma.js +1 -9
- package/lib/element/metaLemma.js +1 -8
- package/lib/element/metaLemmaMetatheorem.js +117 -29
- package/lib/element/metaType.js +68 -61
- package/lib/element/metatheorem.js +1 -8
- package/lib/element/metavariable.js +122 -93
- package/lib/element/parameter.js +120 -20
- package/lib/element/premise.js +114 -35
- package/lib/element/procedureCall.js +117 -99
- package/lib/element/procedureReference.js +120 -20
- package/lib/element/proof.js +111 -55
- package/lib/element/property.js +121 -35
- package/lib/element/propertyRelation.js +116 -72
- package/lib/element/reference.js +120 -70
- package/lib/element/rule.js +116 -41
- package/lib/element/section.js +114 -133
- package/lib/element/signature.js +120 -20
- package/lib/element/statement/combinator/bracketed.js +4 -9
- package/lib/element/statement.js +110 -125
- package/lib/element/step.js +115 -27
- package/lib/element/subDerivation.js +111 -43
- package/lib/element/subproof.js +115 -20
- package/lib/element/substitution.js +115 -31
- package/lib/element/substitutions.js +120 -6
- package/lib/element/supposition.js +114 -35
- package/lib/element/term/constructor/bracketed.js +4 -8
- package/lib/element/term.js +111 -98
- package/lib/element/theorem.js +1 -8
- package/lib/element/type.js +71 -91
- package/lib/element/typePrefix.js +120 -20
- package/lib/element/variable.js +116 -111
- package/lib/element.js +67 -0
- package/lib/node/equivalence.js +116 -0
- package/lib/node/{nonsense.js → equivalences.js} +10 -10
- package/lib/node/frame.js +11 -5
- package/lib/node/procedureReference.js +6 -6
- package/lib/node/statement.js +11 -5
- package/lib/node/term.js +8 -1
- package/lib/nonTerminalNodeMap.js +5 -4
- package/lib/process/instantiate.js +13 -38
- package/lib/process/verify.js +22 -29
- package/lib/ruleNames.js +9 -5
- package/lib/utilities/brackets.js +11 -11
- package/lib/utilities/element.js +606 -99
- package/lib/utilities/instance.js +61 -0
- package/lib/utilities/string.js +87 -34
- package/package.json +6 -6
- package/src/context/file.js +1 -1
- package/src/element/assertion.js +4 -16
- package/src/element/assumption.js +5 -12
- package/src/element/axiomLemmaTheoremConjecture.js +4 -16
- package/src/element/conclusion.js +4 -16
- package/src/element/declaration.js +4 -16
- package/src/element/deduction.js +5 -19
- package/src/element/derivation.js +5 -2
- package/src/element/equality.js +4 -16
- package/src/element/equivalence.js +25 -37
- package/src/element/equivalences.js +12 -6
- package/src/element/error.js +4 -24
- package/src/element/frame.js +5 -56
- package/src/element/hypothesis.js +6 -23
- package/src/element/judgement.js +5 -30
- package/src/element/label.js +8 -19
- package/src/element/lemma.js +0 -7
- package/src/element/metaLemma.js +0 -7
- package/src/element/metaLemmaMetatheorem.js +4 -16
- package/src/element/metaType.js +23 -64
- package/src/element/metatheorem.js +0 -7
- package/src/element/metavariable.js +6 -94
- package/src/element/parameter.js +10 -18
- package/src/element/premise.js +4 -31
- package/src/element/procedureCall.js +5 -77
- package/src/element/procedureReference.js +7 -17
- package/src/element/proof.js +5 -17
- package/src/element/property.js +8 -30
- package/src/element/propertyRelation.js +5 -33
- package/src/element/reference.js +8 -72
- package/src/element/rule.js +4 -41
- package/src/element/section.js +4 -129
- package/src/element/signature.js +7 -13
- package/src/element/statement/combinator/bracketed.js +3 -9
- package/src/element/statement.js +3 -126
- package/src/element/step.js +4 -16
- package/src/element/subDerivation.js +5 -3
- package/src/element/subproof.js +5 -12
- package/src/element/substitution.js +4 -24
- package/src/element/substitutions.js +6 -2
- package/src/element/supposition.js +4 -31
- package/src/element/term/constructor/bracketed.js +4 -9
- package/src/element/term.js +6 -59
- package/src/element/theorem.js +0 -7
- package/src/element/type.js +9 -104
- package/src/element/typePrefix.js +8 -13
- package/src/element/variable.js +6 -109
- package/src/element.js +29 -0
- package/src/node/equivalence.js +16 -0
- package/src/node/{nonsense.js → equivalences.js} +2 -2
- package/src/node/frame.js +10 -5
- package/src/node/procedureReference.js +4 -4
- package/src/node/statement.js +10 -5
- package/src/node/term.js +7 -0
- package/src/nonTerminalNodeMap.js +7 -4
- package/src/process/instantiate.js +8 -36
- package/src/process/verify.js +42 -47
- package/src/ruleNames.js +2 -1
- package/src/utilities/brackets.js +13 -13
- package/src/utilities/element.js +760 -139
- package/src/utilities/instance.js +53 -0
- package/src/utilities/string.js +118 -59
|
@@ -8,12 +8,40 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
var _element = /*#__PURE__*/ _interop_require_default(require("../element"));
|
|
11
12
|
var _elements = require("../elements");
|
|
13
|
+
function _assert_this_initialized(self) {
|
|
14
|
+
if (self === void 0) {
|
|
15
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
+
}
|
|
17
|
+
return self;
|
|
18
|
+
}
|
|
19
|
+
function _call_super(_this, derived, args) {
|
|
20
|
+
derived = _get_prototype_of(derived);
|
|
21
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
+
}
|
|
12
23
|
function _class_call_check(instance, Constructor) {
|
|
13
24
|
if (!(instance instanceof Constructor)) {
|
|
14
25
|
throw new TypeError("Cannot call a class as a function");
|
|
15
26
|
}
|
|
16
27
|
}
|
|
28
|
+
function _construct(Parent, args, Class) {
|
|
29
|
+
if (_is_native_reflect_construct()) {
|
|
30
|
+
_construct = Reflect.construct;
|
|
31
|
+
} else {
|
|
32
|
+
_construct = function construct(Parent, args, Class) {
|
|
33
|
+
var a = [
|
|
34
|
+
null
|
|
35
|
+
];
|
|
36
|
+
a.push.apply(a, args);
|
|
37
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
38
|
+
var instance = new Constructor();
|
|
39
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
40
|
+
return instance;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
return _construct.apply(null, arguments);
|
|
44
|
+
}
|
|
17
45
|
function _defineProperties(target, props) {
|
|
18
46
|
for(var i = 0; i < props.length; i++){
|
|
19
47
|
var descriptor = props[i];
|
|
@@ -41,20 +69,99 @@ function _define_property(obj, key, value) {
|
|
|
41
69
|
}
|
|
42
70
|
return obj;
|
|
43
71
|
}
|
|
72
|
+
function _get_prototype_of(o) {
|
|
73
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
74
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
75
|
+
};
|
|
76
|
+
return _get_prototype_of(o);
|
|
77
|
+
}
|
|
78
|
+
function _inherits(subClass, superClass) {
|
|
79
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
80
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
81
|
+
}
|
|
82
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
83
|
+
constructor: {
|
|
84
|
+
value: subClass,
|
|
85
|
+
writable: true,
|
|
86
|
+
configurable: true
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
90
|
+
}
|
|
91
|
+
function _interop_require_default(obj) {
|
|
92
|
+
return obj && obj.__esModule ? obj : {
|
|
93
|
+
default: obj
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function _is_native_function(fn) {
|
|
97
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
98
|
+
}
|
|
99
|
+
function _possible_constructor_return(self, call) {
|
|
100
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
101
|
+
return call;
|
|
102
|
+
}
|
|
103
|
+
return _assert_this_initialized(self);
|
|
104
|
+
}
|
|
105
|
+
function _set_prototype_of(o, p) {
|
|
106
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
107
|
+
o.__proto__ = p;
|
|
108
|
+
return o;
|
|
109
|
+
};
|
|
110
|
+
return _set_prototype_of(o, p);
|
|
111
|
+
}
|
|
112
|
+
function _type_of(obj) {
|
|
113
|
+
"@swc/helpers - typeof";
|
|
114
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
115
|
+
}
|
|
116
|
+
function _wrap_native_super(Class) {
|
|
117
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
118
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
119
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
120
|
+
if (typeof Class !== "function") {
|
|
121
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
122
|
+
}
|
|
123
|
+
if (typeof _cache !== "undefined") {
|
|
124
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
125
|
+
_cache.set(Class, Wrapper);
|
|
126
|
+
}
|
|
127
|
+
function Wrapper() {
|
|
128
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
129
|
+
}
|
|
130
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
131
|
+
constructor: {
|
|
132
|
+
value: Wrapper,
|
|
133
|
+
enumerable: false,
|
|
134
|
+
writable: true,
|
|
135
|
+
configurable: true
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
return _set_prototype_of(Wrapper, Class);
|
|
139
|
+
};
|
|
140
|
+
return _wrap_native_super(Class);
|
|
141
|
+
}
|
|
142
|
+
function _is_native_reflect_construct() {
|
|
143
|
+
try {
|
|
144
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
145
|
+
} catch (_) {}
|
|
146
|
+
return (_is_native_reflect_construct = function() {
|
|
147
|
+
return !!result;
|
|
148
|
+
})();
|
|
149
|
+
}
|
|
44
150
|
var _ProcedureReference;
|
|
45
|
-
var _default = (0, _elements.define)((_ProcedureReference = /*#__PURE__*/ function() {
|
|
46
|
-
|
|
151
|
+
var _default = (0, _elements.define)((_ProcedureReference = /*#__PURE__*/ function(Element) {
|
|
152
|
+
_inherits(ProcedureReference, Element);
|
|
153
|
+
function ProcedureReference(context, string, node, name) {
|
|
47
154
|
_class_call_check(this, ProcedureReference);
|
|
48
|
-
|
|
49
|
-
|
|
155
|
+
var _this;
|
|
156
|
+
_this = _call_super(this, ProcedureReference, [
|
|
157
|
+
context,
|
|
158
|
+
string,
|
|
159
|
+
node
|
|
160
|
+
]);
|
|
161
|
+
_this.name = name;
|
|
162
|
+
return _this;
|
|
50
163
|
}
|
|
51
164
|
_create_class(ProcedureReference, [
|
|
52
|
-
{
|
|
53
|
-
key: "getString",
|
|
54
|
-
value: function getString() {
|
|
55
|
-
return this.string;
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
165
|
{
|
|
59
166
|
key: "getName",
|
|
60
167
|
value: function getName() {
|
|
@@ -74,19 +181,12 @@ var _default = (0, _elements.define)((_ProcedureReference = /*#__PURE__*/ functi
|
|
|
74
181
|
{
|
|
75
182
|
key: "fromJSON",
|
|
76
183
|
value: function fromJSON(json, context) {
|
|
77
|
-
var name = json.name, string = name, procedureReference = new ProcedureReference(string, name);
|
|
78
|
-
return procedureReference;
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
key: "fromProcedureCallNode",
|
|
83
|
-
value: function fromProcedureCallNode(procedureCallNode, context) {
|
|
84
|
-
var procedureName = procedureCallNode.getProcedureName(), name = procedureName, string = name, procedureReference = new ProcedureReference(string, name);
|
|
184
|
+
var name = json.name, string = name, node = null, procedureReference = new ProcedureReference(context, string, node, name);
|
|
85
185
|
return procedureReference;
|
|
86
186
|
}
|
|
87
187
|
}
|
|
88
188
|
]);
|
|
89
189
|
return ProcedureReference;
|
|
90
|
-
}(), _define_property(_ProcedureReference, "name", "ProcedureReference"), _ProcedureReference));
|
|
190
|
+
}(_wrap_native_super(_element.default)), _define_property(_ProcedureReference, "name", "ProcedureReference"), _ProcedureReference));
|
|
91
191
|
|
|
92
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
192
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L3Byb2NlZHVyZVJlZmVyZW5jZS5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IEVsZW1lbnQgZnJvbSBcIi4uL2VsZW1lbnRcIjtcblxuaW1wb3J0IHsgZGVmaW5lIH0gZnJvbSBcIi4uL2VsZW1lbnRzXCI7XG5cbmV4cG9ydCBkZWZhdWx0IGRlZmluZShjbGFzcyBQcm9jZWR1cmVSZWZlcmVuY2UgZXh0ZW5kcyBFbGVtZW50IHtcbiAgY29uc3RydWN0b3IoY29udGV4dCwgc3RyaW5nLCBub2RlLCBuYW1lKSB7XG4gICAgc3VwZXIoY29udGV4dCwgc3RyaW5nLCBub2RlKTtcbiAgICB0aGlzLm5hbWUgPSBuYW1lO1xuICB9XG5cbiAgZ2V0TmFtZSgpIHtcbiAgICByZXR1cm4gdGhpcy5uYW1lO1xuICB9XG5cbiAgdG9KU09OKCkge1xuICAgIGNvbnN0IG5hbWUgPSB0aGlzLm5hbWUsXG4gICAgICAgICAganNvbiA9IHtcbiAgICAgICAgICAgIG5hbWVcbiAgICAgICAgICB9O1xuXG4gICAgcmV0dXJuIGpzb247XG4gIH1cblxuICBzdGF0aWMgbmFtZSA9IFwiUHJvY2VkdXJlUmVmZXJlbmNlXCI7XG5cbiAg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xJQUFJLENBQUNELElBQUk7WUFDbEI7OztZQUVBRSxLQUFBQTttQkFBQUEsU0FBQUE7Z0JBQ0UsSUFBTUYsT0FBTyxJQUFJLENBQUNBLElBQUksRUFDaEJHLE9BQU87b0JBQ0xILE1BQUFBO2dCQUNGO2dCQUVOLE9BQU9HO1lBQ1Q7Ozs7WUFJT0MsS0FBQUE7bUJBQVAsU0FBT0EsU0FBU0QsSUFBSSxFQUFFTixPQUFPO2dCQUMzQixJQUFNLEFBQUVHLE9BQVNHLEtBQVRILE1BQ0ZGLFNBQVNFLE1BQ1RELE9BQU8sTUFDUE0scUJBQXFCLElBQUlULG1CQUFtQkMsU0FBU0MsUUFBUUMsTUFBTUM7Z0JBRXpFLE9BQU9LO1lBQ1Q7Ozs7cUJBNUJxREMsZ0JBQU8sSUFtQjVELHNDQUFPTixRQUFPIn0=
|
package/lib/element/proof.js
CHANGED
|
@@ -8,13 +8,41 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
var
|
|
11
|
+
var _element = /*#__PURE__*/ _interop_require_default(require("../element"));
|
|
12
12
|
var _local = /*#__PURE__*/ _interop_require_default(require("../context/local"));
|
|
13
|
+
var _elements = require("../elements");
|
|
14
|
+
function _assert_this_initialized(self) {
|
|
15
|
+
if (self === void 0) {
|
|
16
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
17
|
+
}
|
|
18
|
+
return self;
|
|
19
|
+
}
|
|
20
|
+
function _call_super(_this, derived, args) {
|
|
21
|
+
derived = _get_prototype_of(derived);
|
|
22
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
23
|
+
}
|
|
13
24
|
function _class_call_check(instance, Constructor) {
|
|
14
25
|
if (!(instance instanceof Constructor)) {
|
|
15
26
|
throw new TypeError("Cannot call a class as a function");
|
|
16
27
|
}
|
|
17
28
|
}
|
|
29
|
+
function _construct(Parent, args, Class) {
|
|
30
|
+
if (_is_native_reflect_construct()) {
|
|
31
|
+
_construct = Reflect.construct;
|
|
32
|
+
} else {
|
|
33
|
+
_construct = function construct(Parent, args, Class) {
|
|
34
|
+
var a = [
|
|
35
|
+
null
|
|
36
|
+
];
|
|
37
|
+
a.push.apply(a, args);
|
|
38
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
39
|
+
var instance = new Constructor();
|
|
40
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
41
|
+
return instance;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return _construct.apply(null, arguments);
|
|
45
|
+
}
|
|
18
46
|
function _defineProperties(target, props) {
|
|
19
47
|
for(var i = 0; i < props.length; i++){
|
|
20
48
|
var descriptor = props[i];
|
|
@@ -42,57 +70,97 @@ function _define_property(obj, key, value) {
|
|
|
42
70
|
}
|
|
43
71
|
return obj;
|
|
44
72
|
}
|
|
73
|
+
function _get_prototype_of(o) {
|
|
74
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
75
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
76
|
+
};
|
|
77
|
+
return _get_prototype_of(o);
|
|
78
|
+
}
|
|
79
|
+
function _inherits(subClass, superClass) {
|
|
80
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
81
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
82
|
+
}
|
|
83
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
84
|
+
constructor: {
|
|
85
|
+
value: subClass,
|
|
86
|
+
writable: true,
|
|
87
|
+
configurable: true
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
91
|
+
}
|
|
45
92
|
function _interop_require_default(obj) {
|
|
46
93
|
return obj && obj.__esModule ? obj : {
|
|
47
94
|
default: obj
|
|
48
95
|
};
|
|
49
96
|
}
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return
|
|
56
|
-
})(nodeInterop);
|
|
57
|
-
}
|
|
58
|
-
function _interop_require_wildcard(obj, nodeInterop) {
|
|
59
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
60
|
-
return obj;
|
|
61
|
-
}
|
|
62
|
-
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
63
|
-
return {
|
|
64
|
-
default: obj
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
68
|
-
if (cache && cache.has(obj)) {
|
|
69
|
-
return cache.get(obj);
|
|
97
|
+
function _is_native_function(fn) {
|
|
98
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
99
|
+
}
|
|
100
|
+
function _possible_constructor_return(self, call) {
|
|
101
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
102
|
+
return call;
|
|
70
103
|
}
|
|
71
|
-
|
|
72
|
-
|
|
104
|
+
return _assert_this_initialized(self);
|
|
105
|
+
}
|
|
106
|
+
function _set_prototype_of(o, p) {
|
|
107
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
108
|
+
o.__proto__ = p;
|
|
109
|
+
return o;
|
|
73
110
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
111
|
+
return _set_prototype_of(o, p);
|
|
112
|
+
}
|
|
113
|
+
function _type_of(obj) {
|
|
114
|
+
"@swc/helpers - typeof";
|
|
115
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
116
|
+
}
|
|
117
|
+
function _wrap_native_super(Class) {
|
|
118
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
119
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
120
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
121
|
+
if (typeof Class !== "function") {
|
|
122
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
83
123
|
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
124
|
+
if (typeof _cache !== "undefined") {
|
|
125
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
126
|
+
_cache.set(Class, Wrapper);
|
|
127
|
+
}
|
|
128
|
+
function Wrapper() {
|
|
129
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
130
|
+
}
|
|
131
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
132
|
+
constructor: {
|
|
133
|
+
value: Wrapper,
|
|
134
|
+
enumerable: false,
|
|
135
|
+
writable: true,
|
|
136
|
+
configurable: true
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
return _set_prototype_of(Wrapper, Class);
|
|
140
|
+
};
|
|
141
|
+
return _wrap_native_super(Class);
|
|
142
|
+
}
|
|
143
|
+
function _is_native_reflect_construct() {
|
|
144
|
+
try {
|
|
145
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
146
|
+
} catch (_) {}
|
|
147
|
+
return (_is_native_reflect_construct = function() {
|
|
148
|
+
return !!result;
|
|
149
|
+
})();
|
|
90
150
|
}
|
|
91
151
|
var _Proof;
|
|
92
|
-
var _default = (0, _elements.define)((_Proof = /*#__PURE__*/ function() {
|
|
93
|
-
|
|
152
|
+
var _default = (0, _elements.define)((_Proof = /*#__PURE__*/ function(Element) {
|
|
153
|
+
_inherits(Proof, Element);
|
|
154
|
+
function Proof(context, string, node, derivation) {
|
|
94
155
|
_class_call_check(this, Proof);
|
|
95
|
-
|
|
156
|
+
var _this;
|
|
157
|
+
_this = _call_super(this, Proof, [
|
|
158
|
+
context,
|
|
159
|
+
string,
|
|
160
|
+
node
|
|
161
|
+
]);
|
|
162
|
+
_this.derivation = derivation;
|
|
163
|
+
return _this;
|
|
96
164
|
}
|
|
97
165
|
_create_class(Proof, [
|
|
98
166
|
{
|
|
@@ -133,20 +201,8 @@ var _default = (0, _elements.define)((_Proof = /*#__PURE__*/ function() {
|
|
|
133
201
|
return verifies;
|
|
134
202
|
}
|
|
135
203
|
}
|
|
136
|
-
], [
|
|
137
|
-
{
|
|
138
|
-
key: "fromProofNode",
|
|
139
|
-
value: function fromProofNode(proofNode, context) {
|
|
140
|
-
var proof = null;
|
|
141
|
-
if (proofNode !== null) {
|
|
142
|
-
var Derivation = _elements.default.Derivation, derivationNode = proofNode.getDerivationNode(), derivation = Derivation.fromDerivationNode(derivationNode, context);
|
|
143
|
-
proof = new Proof(derivation);
|
|
144
|
-
}
|
|
145
|
-
return proof;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
204
|
]);
|
|
149
205
|
return Proof;
|
|
150
|
-
}(), _define_property(_Proof, "name", "Proof"), _Proof));
|
|
206
|
+
}(_wrap_native_super(_element.default)), _define_property(_Proof, "name", "Proof"), _Proof));
|
|
151
207
|
|
|
152
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
208
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L3Byb29mLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgRWxlbWVudCBmcm9tIFwiLi4vZWxlbWVudFwiO1xuaW1wb3J0IExvY2FsQ29udGV4dCBmcm9tIFwiLi4vY29udGV4dC9sb2NhbFwiO1xuXG5pbXBvcnQgeyBkZWZpbmUgfSBmcm9tIFwiLi4vZWxlbWVudHNcIjtcblxuZXhwb3J0IGRlZmF1bHQgZGVmaW5lKGNsYXNzIFByb29mIGV4dGVuZHMgRWxlbWVudCB7XG4gIGNvbnN0cnVjdG9yKGNvbnRleHQsIH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BQU1WLFdBQVdQLFFBQVFLLFdBQVc7b0JBRXBDLElBQUlFLGFBQWEsTUFBTTt3QkFDckIsSUFBTUUsWUFBWSxJQUFJLENBQUNILFlBQVksSUFDN0JZLHNCQUFzQk4sV0FBV04sWUFBWSxJQUM3Q2Esc0NBQXNDRCxvQkFBb0JFLFNBQVMsQ0FBQ1g7d0JBRTFFLElBQUlVLHFDQUFxQzs0QkFDdkNOLFdBQVc7d0JBQ2I7b0JBQ0Y7Z0JBQ0Y7Z0JBRUEsT0FBT0E7WUFDVDs7OztxQkE3Q3dDUSxnQkFBTyxJQStDL0MseUJBQU9DLFFBQU8ifQ==
|
package/lib/element/property.js
CHANGED
|
@@ -8,12 +8,40 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
+
var _element = /*#__PURE__*/ _interop_require_default(require("../element"));
|
|
11
12
|
var _elements = require("../elements");
|
|
13
|
+
function _assert_this_initialized(self) {
|
|
14
|
+
if (self === void 0) {
|
|
15
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
+
}
|
|
17
|
+
return self;
|
|
18
|
+
}
|
|
19
|
+
function _call_super(_this, derived, args) {
|
|
20
|
+
derived = _get_prototype_of(derived);
|
|
21
|
+
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
22
|
+
}
|
|
12
23
|
function _class_call_check(instance, Constructor) {
|
|
13
24
|
if (!(instance instanceof Constructor)) {
|
|
14
25
|
throw new TypeError("Cannot call a class as a function");
|
|
15
26
|
}
|
|
16
27
|
}
|
|
28
|
+
function _construct(Parent, args, Class) {
|
|
29
|
+
if (_is_native_reflect_construct()) {
|
|
30
|
+
_construct = Reflect.construct;
|
|
31
|
+
} else {
|
|
32
|
+
_construct = function construct(Parent, args, Class) {
|
|
33
|
+
var a = [
|
|
34
|
+
null
|
|
35
|
+
];
|
|
36
|
+
a.push.apply(a, args);
|
|
37
|
+
var Constructor = Function.bind.apply(Parent, a);
|
|
38
|
+
var instance = new Constructor();
|
|
39
|
+
if (Class) _set_prototype_of(instance, Class.prototype);
|
|
40
|
+
return instance;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
return _construct.apply(null, arguments);
|
|
44
|
+
}
|
|
17
45
|
function _defineProperties(target, props) {
|
|
18
46
|
for(var i = 0; i < props.length; i++){
|
|
19
47
|
var descriptor = props[i];
|
|
@@ -41,28 +69,100 @@ function _define_property(obj, key, value) {
|
|
|
41
69
|
}
|
|
42
70
|
return obj;
|
|
43
71
|
}
|
|
72
|
+
function _get_prototype_of(o) {
|
|
73
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
74
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
75
|
+
};
|
|
76
|
+
return _get_prototype_of(o);
|
|
77
|
+
}
|
|
78
|
+
function _inherits(subClass, superClass) {
|
|
79
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
80
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
81
|
+
}
|
|
82
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
83
|
+
constructor: {
|
|
84
|
+
value: subClass,
|
|
85
|
+
writable: true,
|
|
86
|
+
configurable: true
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
90
|
+
}
|
|
91
|
+
function _interop_require_default(obj) {
|
|
92
|
+
return obj && obj.__esModule ? obj : {
|
|
93
|
+
default: obj
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
function _is_native_function(fn) {
|
|
97
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
98
|
+
}
|
|
99
|
+
function _possible_constructor_return(self, call) {
|
|
100
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
101
|
+
return call;
|
|
102
|
+
}
|
|
103
|
+
return _assert_this_initialized(self);
|
|
104
|
+
}
|
|
105
|
+
function _set_prototype_of(o, p) {
|
|
106
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
107
|
+
o.__proto__ = p;
|
|
108
|
+
return o;
|
|
109
|
+
};
|
|
110
|
+
return _set_prototype_of(o, p);
|
|
111
|
+
}
|
|
112
|
+
function _type_of(obj) {
|
|
113
|
+
"@swc/helpers - typeof";
|
|
114
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
115
|
+
}
|
|
116
|
+
function _wrap_native_super(Class) {
|
|
117
|
+
var _cache = typeof Map === "function" ? new Map() : undefined;
|
|
118
|
+
_wrap_native_super = function wrapNativeSuper(Class) {
|
|
119
|
+
if (Class === null || !_is_native_function(Class)) return Class;
|
|
120
|
+
if (typeof Class !== "function") {
|
|
121
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
122
|
+
}
|
|
123
|
+
if (typeof _cache !== "undefined") {
|
|
124
|
+
if (_cache.has(Class)) return _cache.get(Class);
|
|
125
|
+
_cache.set(Class, Wrapper);
|
|
126
|
+
}
|
|
127
|
+
function Wrapper() {
|
|
128
|
+
return _construct(Class, arguments, _get_prototype_of(this).constructor);
|
|
129
|
+
}
|
|
130
|
+
Wrapper.prototype = Object.create(Class.prototype, {
|
|
131
|
+
constructor: {
|
|
132
|
+
value: Wrapper,
|
|
133
|
+
enumerable: false,
|
|
134
|
+
writable: true,
|
|
135
|
+
configurable: true
|
|
136
|
+
}
|
|
137
|
+
});
|
|
138
|
+
return _set_prototype_of(Wrapper, Class);
|
|
139
|
+
};
|
|
140
|
+
return _wrap_native_super(Class);
|
|
141
|
+
}
|
|
142
|
+
function _is_native_reflect_construct() {
|
|
143
|
+
try {
|
|
144
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
145
|
+
} catch (_) {}
|
|
146
|
+
return (_is_native_reflect_construct = function() {
|
|
147
|
+
return !!result;
|
|
148
|
+
})();
|
|
149
|
+
}
|
|
44
150
|
var _Property;
|
|
45
|
-
var _default = (0, _elements.define)((_Property = /*#__PURE__*/ function() {
|
|
46
|
-
|
|
151
|
+
var _default = (0, _elements.define)((_Property = /*#__PURE__*/ function(Element) {
|
|
152
|
+
_inherits(Property, Element);
|
|
153
|
+
function Property(context, string, node, name, nominalTypeName) {
|
|
47
154
|
_class_call_check(this, Property);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
155
|
+
var _this;
|
|
156
|
+
_this = _call_super(this, Property, [
|
|
157
|
+
context,
|
|
158
|
+
string,
|
|
159
|
+
node
|
|
160
|
+
]);
|
|
161
|
+
_this.name = name;
|
|
162
|
+
_this.nominalTypeName = nominalTypeName;
|
|
163
|
+
return _this;
|
|
52
164
|
}
|
|
53
165
|
_create_class(Property, [
|
|
54
|
-
{
|
|
55
|
-
key: "getString",
|
|
56
|
-
value: function getString() {
|
|
57
|
-
return this.string;
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
key: "getNode",
|
|
62
|
-
value: function getNode() {
|
|
63
|
-
return this.node;
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
166
|
{
|
|
67
167
|
key: "getName",
|
|
68
168
|
value: function getName() {
|
|
@@ -103,26 +203,12 @@ var _default = (0, _elements.define)((_Property = /*#__PURE__*/ function() {
|
|
|
103
203
|
{
|
|
104
204
|
key: "fromJSON",
|
|
105
205
|
value: function fromJSON(json, context) {
|
|
106
|
-
var name = json.name, nominalTypeName = json.nominalTypeName, string = name, property = new Property(string, name, nominalTypeName);
|
|
107
|
-
return property;
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
key: "fromPropertyRelationNode",
|
|
112
|
-
value: function fromPropertyRelationNode(propertyRelationNode, context) {
|
|
113
|
-
var propertyNode = propertyRelationNode.getPropertyNode(), property = propertyFromPropertyNode(propertyNode, context);
|
|
114
|
-
return property;
|
|
115
|
-
}
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
key: "fromPropertyDeclarationNode",
|
|
119
|
-
value: function fromPropertyDeclarationNode(propertyDeclarationNode, context) {
|
|
120
|
-
var propertyName = propertyDeclarationNode.getPropertyName(), nominalTypeName = propertyDeclarationNode.getNominalTypeName(), name = propertyName, string = name, property = new Property(string, name, nominalTypeName);
|
|
206
|
+
var name = json.name, nominalTypeName = json.nominalTypeName, string = name, node = null, property = new Property(context, string, node, name, nominalTypeName);
|
|
121
207
|
return property;
|
|
122
208
|
}
|
|
123
209
|
}
|
|
124
210
|
]);
|
|
125
211
|
return Property;
|
|
126
|
-
}(), _define_property(_Property, "name", "Property"), _Property));
|
|
212
|
+
}(_wrap_native_super(_element.default)), _define_property(_Property, "name", "Property"), _Property));
|
|
127
213
|
|
|
128
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
214
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9lbGVtZW50L3Byb3BlcnR5LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgRWxlbWVudCBmcm9tIFwiLi4vZWxlbWVudFwiO1xuXG5pbXBvcnQgeyBkZWZpbmUgfSBmcm9tIFwiLi4vZWxlbWVudHNcIjtcblxuZXhwb3J0IGRlZmF1bHQgZGVmaW5lKGNsYXNzIFByb3BlcnR5IGV4dGVuZHMgRWxlbWVudCB7XG4gIGNvbnN0cnVjdG9yKGNvbnRleHQsIHN0cmluZywgbm9kZSwgbmFtZSwgbm9taW5hbFR5cGVOYW1lKSB7XG4gICAgc3VwZXIoY29udGV4dCwgc3RyaW5nLCBub2RlKTtcblxuICAgIHRoaXMubmFtZSA9IG5hbWU7XG4gICAgdGhpcy5ub21pbmFsVHlwZU5hbWUgPSBub21pbmFsVHlwZU5hbWU7XG4gIH1cblxu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