occam-verify-cli 0.0.1020 → 0.0.1021
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/assertion/subproof.js +4 -4
- package/lib/constructor.js +5 -46
- package/lib/context/file.js +4 -44
- package/lib/declaration/metavariable.js +3 -3
- package/lib/declaration/type.js +3 -3
- package/lib/declaration/variable.js +4 -44
- package/lib/derivation.js +4 -4
- package/lib/metaType.js +127 -4
- package/lib/metaTypeNames.js +2 -2
- package/lib/metaTypes.js +5 -12
- package/lib/metavariable.js +5 -5
- package/lib/premise.js +3 -3
- package/lib/statement/qualified.js +3 -3
- package/lib/statement/unqualified.js +5 -4
- package/lib/supposition.js +3 -3
- package/lib/term.js +3 -4
- package/lib/variable.js +6 -46
- package/lib/verify/declaration.js +4 -4
- package/lib/verify/frame.js +4 -5
- package/package.json +1 -1
- package/src/assertion/subproof.js +3 -2
- package/src/constructor.js +3 -2
- package/src/context/file.js +3 -2
- package/src/declaration/metavariable.js +3 -2
- package/src/declaration/type.js +3 -2
- package/src/declaration/variable.js +4 -2
- package/src/derivation.js +3 -2
- package/src/metaType.js +32 -0
- package/src/metaTypeNames.js +1 -1
- package/src/metaTypes.js +1 -3
- package/src/metavariable.js +5 -3
- package/src/premise.js +3 -2
- package/src/statement/qualified.js +5 -3
- package/src/statement/unqualified.js +5 -2
- package/src/supposition.js +3 -2
- package/src/term.js +2 -2
- package/src/variable.js +7 -5
- package/src/verify/declaration.js +1 -1
- package/src/verify/frame.js +1 -2
- package/lib/metaType/frame.js +0 -111
- package/lib/metaType/reference.js +0 -111
- package/lib/metaType/statement.js +0 -111
- package/src/metaType/frame.js +0 -18
- package/src/metaType/reference.js +0 -18
- package/src/metaType/statement.js +0 -18
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "default", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return _default;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
var _metaType = /*#__PURE__*/ _interop_require_default(require("../metaType"));
|
|
12
|
-
var _metaTypeNames = require("../metaTypeNames");
|
|
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
|
-
}
|
|
23
|
-
function _class_call_check(instance, Constructor) {
|
|
24
|
-
if (!(instance instanceof Constructor)) {
|
|
25
|
-
throw new TypeError("Cannot call a class as a function");
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function _defineProperties(target, props) {
|
|
29
|
-
for(var i = 0; i < props.length; i++){
|
|
30
|
-
var descriptor = props[i];
|
|
31
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
32
|
-
descriptor.configurable = true;
|
|
33
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
34
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
38
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
39
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
40
|
-
return Constructor;
|
|
41
|
-
}
|
|
42
|
-
function _get_prototype_of(o) {
|
|
43
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
44
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
45
|
-
};
|
|
46
|
-
return _get_prototype_of(o);
|
|
47
|
-
}
|
|
48
|
-
function _inherits(subClass, superClass) {
|
|
49
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
50
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
51
|
-
}
|
|
52
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
53
|
-
constructor: {
|
|
54
|
-
value: subClass,
|
|
55
|
-
writable: true,
|
|
56
|
-
configurable: true
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
60
|
-
}
|
|
61
|
-
function _interop_require_default(obj) {
|
|
62
|
-
return obj && obj.__esModule ? obj : {
|
|
63
|
-
default: obj
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function _possible_constructor_return(self, call) {
|
|
67
|
-
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
68
|
-
return call;
|
|
69
|
-
}
|
|
70
|
-
return _assert_this_initialized(self);
|
|
71
|
-
}
|
|
72
|
-
function _set_prototype_of(o, p) {
|
|
73
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
74
|
-
o.__proto__ = p;
|
|
75
|
-
return o;
|
|
76
|
-
};
|
|
77
|
-
return _set_prototype_of(o, p);
|
|
78
|
-
}
|
|
79
|
-
function _type_of(obj) {
|
|
80
|
-
"@swc/helpers - typeof";
|
|
81
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
82
|
-
}
|
|
83
|
-
function _is_native_reflect_construct() {
|
|
84
|
-
try {
|
|
85
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
86
|
-
} catch (_) {}
|
|
87
|
-
return (_is_native_reflect_construct = function() {
|
|
88
|
-
return !!result;
|
|
89
|
-
})();
|
|
90
|
-
}
|
|
91
|
-
var StatementMetaType = /*#__PURE__*/ function(MetaType) {
|
|
92
|
-
_inherits(StatementMetaType, MetaType);
|
|
93
|
-
function StatementMetaType() {
|
|
94
|
-
_class_call_check(this, StatementMetaType);
|
|
95
|
-
return _call_super(this, StatementMetaType, arguments);
|
|
96
|
-
}
|
|
97
|
-
_create_class(StatementMetaType, null, [
|
|
98
|
-
{
|
|
99
|
-
key: "fromNothing",
|
|
100
|
-
value: function fromNothing() {
|
|
101
|
-
var name = _metaTypeNames.STATEMENT_META_TYPE_NAME, statementMetaType = new StatementMetaType(name);
|
|
102
|
-
return statementMetaType;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
]);
|
|
106
|
-
return StatementMetaType;
|
|
107
|
-
}(_metaType.default);
|
|
108
|
-
var statementMetaType = StatementMetaType.fromNothing();
|
|
109
|
-
var _default = statementMetaType;
|
|
110
|
-
|
|
111
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tZXRhVHlwZS9zdGF0ZW1lbnQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBNZXRhVHlwZSBmcm9tIFwiLi4vbWV0YVR5cGVcIjtcblxuaW1wb3J0IHsgU1RBVEVNRU5UX01FVEFfVFlQRV9OQU1FIH0gZnJvbSBcIi4uL21ldGFUeXBlTmFtZXNcIjtcblxuY2xhc3MgU3RhdGVtZW50TWV0YVR5cGUgZXh0ZW5kcyBNZXRhVHlwZSB7XG4gIHN0YXRpYyBmcm9tTm90aGluZygpIHtcbiAgICBjb25zdCBuYW1lID0gU1RBVEVNRU5UX01FVEFfVFlQRV9OQU1FLFxuICAgICAgICAgIHN0YXRlbWVudE1ldGFUeXBlID0gbmV3IFN0YXRlbWVudE1ldGFUeXBlKG5hbWUpO1xuXG4gICAgcmV0dXJuIHN0YXRlbWVudE1ldGFUeXBlO1xuICB9XG59XG5cbmNvbnN0IHN0YXRlbWVudE1ldGFUeXBlID0gU3RhdGVtZW50TWV0YVR5cGUuZnJvbU5vdGhpbmcoKTtcblxuZXhwb3J0IGRlZmF1bHQgc3RhdGVtZW50TWV0YVR5cGU7XG4iXSwibmFtZXMiOlsiU3RhdGVtZW50TWV0YVR5cGUiLCJmcm9tTm90aGluZyIsIm5hbWUiLCJTVEFURU1FTlRfTUVUQV9UWVBFX05BTUUiLCJzdGF0ZW1lbnRNZXRhVHlwZSIsIk1ldGFUeXBlIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFpQkE7OztlQUFBOzs7K0RBZnFCOzZCQUVvQjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUV6QyxJQUFBLEFBQU1BLGtDQUFOO2NBQU1BO2FBQUFBO2dDQUFBQTtpQ0FBQUE7O2tCQUFBQTs7WUFDR0MsS0FBQUE7bUJBQVAsU0FBT0E7Z0JBQ0wsSUFBTUMsT0FBT0MsdUNBQXdCLEVBQy9CQyxvQkFBb0IsSUFIeEJKLGtCQUc4Q0U7Z0JBRWhELE9BQU9FO1lBQ1Q7OztXQU5JSjtFQUEwQkssaUJBQVE7QUFTeEMsSUFBTUQsb0JBQW9CSixrQkFBa0JDLFdBQVc7SUFFdkQsV0FBZUcifQ==
|
package/src/metaType/frame.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MetaType from "../metaType";
|
|
4
|
-
|
|
5
|
-
import { FRAME_META_TYPE_NAME } from "../metaTypeNames";
|
|
6
|
-
|
|
7
|
-
class FrameMetaType extends MetaType {
|
|
8
|
-
static fromNothing() {
|
|
9
|
-
const name = FRAME_META_TYPE_NAME,
|
|
10
|
-
frameMetaType = new FrameMetaType(name);
|
|
11
|
-
|
|
12
|
-
return frameMetaType;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const frameMetaType = FrameMetaType.fromNothing();
|
|
17
|
-
|
|
18
|
-
export default frameMetaType;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MetaType from "../metaType";
|
|
4
|
-
|
|
5
|
-
import { REFERENCE_META_TYPE_NAME } from "../metaTypeNames";
|
|
6
|
-
|
|
7
|
-
class ReferenceMetaType extends MetaType {
|
|
8
|
-
static fromNothing() {
|
|
9
|
-
const name = REFERENCE_META_TYPE_NAME,
|
|
10
|
-
referenceMetaType = new ReferenceMetaType(name);
|
|
11
|
-
|
|
12
|
-
return referenceMetaType;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const referenceMetaType = ReferenceMetaType.fromNothing();
|
|
17
|
-
|
|
18
|
-
export default referenceMetaType;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
import MetaType from "../metaType";
|
|
4
|
-
|
|
5
|
-
import { STATEMENT_META_TYPE_NAME } from "../metaTypeNames";
|
|
6
|
-
|
|
7
|
-
class StatementMetaType extends MetaType {
|
|
8
|
-
static fromNothing() {
|
|
9
|
-
const name = STATEMENT_META_TYPE_NAME,
|
|
10
|
-
statementMetaType = new StatementMetaType(name);
|
|
11
|
-
|
|
12
|
-
return statementMetaType;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const statementMetaType = StatementMetaType.fromNothing();
|
|
17
|
-
|
|
18
|
-
export default statementMetaType;
|