occam-verify-cli 1.0.382 → 1.0.385

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.
Files changed (227) hide show
  1. package/lib/action/verify.js +2 -1
  2. package/lib/context/file.js +2 -2
  3. package/lib/context/release.js +2 -2
  4. package/lib/mixins/statement/verify.js +3 -3
  5. package/lib/mixins/step/unify.js +4 -4
  6. package/lib/mixins/term/verify.js +4 -4
  7. package/lib/ontology/assertion/contained.js +316 -0
  8. package/lib/ontology/assertion/defined.js +290 -0
  9. package/lib/ontology/assertion/property.js +271 -0
  10. package/lib/ontology/assertion/satisfies.js +254 -0
  11. package/lib/ontology/assertion/subproof.js +186 -0
  12. package/lib/ontology/assertion/type.js +252 -0
  13. package/lib/{dom → ontology}/axiom.js +3 -3
  14. package/lib/{dom → ontology}/combinator/bracketed.js +4 -4
  15. package/lib/ontology/combinator.js +141 -0
  16. package/lib/ontology/conclusion.js +172 -0
  17. package/lib/{dom → ontology}/conjecture.js +3 -3
  18. package/lib/{dom → ontology}/constructor/bracketed.js +5 -5
  19. package/lib/ontology/constructor.js +171 -0
  20. package/lib/ontology/declaration/combinator.js +168 -0
  21. package/lib/ontology/declaration/complexType.js +346 -0
  22. package/lib/ontology/declaration/constructor.js +199 -0
  23. package/lib/ontology/declaration/metavariable.js +209 -0
  24. package/lib/ontology/declaration/simpleType.js +243 -0
  25. package/lib/ontology/declaration/typePrefix.js +181 -0
  26. package/lib/ontology/declaration/variable.js +197 -0
  27. package/lib/ontology/declaration.js +360 -0
  28. package/lib/ontology/deduction.js +186 -0
  29. package/lib/ontology/derivation.js +155 -0
  30. package/lib/ontology/equality.js +288 -0
  31. package/lib/{dom → ontology}/error.js +3 -3
  32. package/lib/ontology/frame.js +362 -0
  33. package/lib/ontology/hypothesis.js +190 -0
  34. package/lib/ontology/judgement.js +241 -0
  35. package/lib/ontology/label.js +199 -0
  36. package/lib/{dom → ontology}/lemma.js +3 -3
  37. package/lib/{dom → ontology}/metaLemma.js +3 -3
  38. package/lib/{dom → ontology}/metaType.js +3 -3
  39. package/lib/{dom → ontology}/metatheorem.js +3 -3
  40. package/lib/ontology/metavariable.js +504 -0
  41. package/lib/{dom → ontology}/parameter.js +3 -3
  42. package/lib/ontology/premise.js +271 -0
  43. package/lib/ontology/procedureCall.js +243 -0
  44. package/lib/{dom → ontology}/procedureReference.js +3 -3
  45. package/lib/{dom → ontology}/proof.js +4 -4
  46. package/lib/ontology/property.js +166 -0
  47. package/lib/ontology/propertyRelation.js +202 -0
  48. package/lib/ontology/reference.js +293 -0
  49. package/lib/ontology/rule.js +375 -0
  50. package/lib/ontology/section.js +255 -0
  51. package/lib/ontology/signature.js +220 -0
  52. package/lib/{dom → ontology}/statement.js +3 -3
  53. package/lib/ontology/step.js +283 -0
  54. package/lib/ontology/subDerivation.js +147 -0
  55. package/lib/ontology/subproof.js +266 -0
  56. package/lib/ontology/substitution/frame.js +216 -0
  57. package/lib/{dom → ontology}/substitution/reference.js +3 -3
  58. package/lib/{dom → ontology}/substitution/statement.js +3 -3
  59. package/lib/ontology/substitution/term.js +230 -0
  60. package/lib/ontology/substitution.js +207 -0
  61. package/lib/ontology/supposition.js +283 -0
  62. package/lib/ontology/term.js +339 -0
  63. package/lib/{dom → ontology}/theorem.js +3 -3
  64. package/lib/ontology/topLevelAssertion.js +432 -0
  65. package/lib/ontology/topLevelMetaAssertion.js +235 -0
  66. package/lib/ontology/type.js +556 -0
  67. package/lib/ontology/typePrefix.js +99 -0
  68. package/lib/ontology/variable.js +331 -0
  69. package/lib/ontology.js +27 -0
  70. package/lib/preamble.js +60 -60
  71. package/lib/prepare.js +25 -0
  72. package/lib/unifier/intrinsicLevel.js +3 -3
  73. package/lib/unifier/metaLevel.js +7 -7
  74. package/lib/unifier/metavariable.js +3 -3
  75. package/lib/unifier/statementWithCombinator.js +5 -5
  76. package/lib/unifier/termWithConstructor.js +3 -3
  77. package/lib/utilities/brackets.js +5 -5
  78. package/lib/utilities/context.js +12 -12
  79. package/lib/utilities/fileSystem.js +2 -2
  80. package/lib/utilities/json.js +30 -30
  81. package/lib/utilities/node.js +7 -7
  82. package/lib/utilities/release.js +12 -4
  83. package/lib/utilities/releaseContext.js +1 -1
  84. package/lib/utilities/substitutions.js +6 -6
  85. package/lib/utilities/type.js +2 -2
  86. package/lib/verifier/combinator.js +4 -4
  87. package/lib/verifier/constructor.js +3 -3
  88. package/lib/verifier/topLevel.js +18 -18
  89. package/package.json +1 -1
  90. package/src/action/verify.js +2 -0
  91. package/src/context/file.js +1 -1
  92. package/src/context/release.js +1 -1
  93. package/src/mixins/statement/verify.js +2 -2
  94. package/src/mixins/step/unify.js +3 -3
  95. package/src/mixins/term/verify.js +3 -3
  96. package/src/{dom → ontology}/assertion/contained.js +4 -4
  97. package/src/{dom → ontology}/assertion/defined.js +6 -6
  98. package/src/{dom → ontology}/assertion/property.js +5 -5
  99. package/src/{dom → ontology}/assertion/satisfies.js +5 -5
  100. package/src/{dom → ontology}/assertion/subproof.js +4 -4
  101. package/src/{dom → ontology}/assertion/type.js +5 -5
  102. package/src/{dom → ontology}/axiom.js +2 -2
  103. package/src/{dom → ontology}/combinator/bracketed.js +4 -4
  104. package/src/{dom → ontology}/combinator.js +4 -4
  105. package/src/{dom → ontology}/conclusion.js +4 -4
  106. package/src/{dom → ontology}/conjecture.js +2 -2
  107. package/src/{dom → ontology}/constructor/bracketed.js +5 -5
  108. package/src/{dom → ontology}/constructor.js +5 -5
  109. package/src/{dom → ontology}/declaration/combinator.js +4 -4
  110. package/src/{dom → ontology}/declaration/complexType.js +4 -4
  111. package/src/{dom → ontology}/declaration/constructor.js +4 -4
  112. package/src/{dom → ontology}/declaration/metavariable.js +5 -5
  113. package/src/{dom → ontology}/declaration/simpleType.js +4 -4
  114. package/src/{dom → ontology}/declaration/typePrefix.js +4 -4
  115. package/src/{dom → ontology}/declaration/variable.js +4 -4
  116. package/src/{dom → ontology}/declaration.js +5 -5
  117. package/src/{dom → ontology}/deduction.js +4 -4
  118. package/src/{dom → ontology}/derivation.js +4 -4
  119. package/src/{dom → ontology}/equality.js +6 -6
  120. package/src/{dom → ontology}/error.js +2 -2
  121. package/src/{dom → ontology}/frame.js +6 -6
  122. package/src/{dom → ontology}/hypothesis.js +5 -6
  123. package/src/{dom → ontology}/judgement.js +5 -5
  124. package/src/{dom → ontology}/label.js +4 -4
  125. package/src/{dom → ontology}/lemma.js +2 -2
  126. package/src/{dom → ontology}/metaLemma.js +2 -2
  127. package/src/{dom → ontology}/metaType.js +2 -2
  128. package/src/{dom → ontology}/metatheorem.js +2 -2
  129. package/src/{dom → ontology}/metavariable.js +8 -8
  130. package/src/{dom → ontology}/parameter.js +2 -2
  131. package/src/{dom → ontology}/premise.js +5 -5
  132. package/src/{dom → ontology}/procedureCall.js +5 -5
  133. package/src/{dom → ontology}/procedureReference.js +2 -2
  134. package/src/{dom → ontology}/proof.js +4 -4
  135. package/src/{dom → ontology}/property.js +4 -4
  136. package/src/{dom → ontology}/propertyRelation.js +4 -4
  137. package/src/{dom → ontology}/reference.js +6 -6
  138. package/src/{dom → ontology}/rule.js +7 -7
  139. package/src/{dom → ontology}/section.js +8 -8
  140. package/src/{dom → ontology}/signature.js +4 -4
  141. package/src/{dom → ontology}/statement.js +2 -2
  142. package/src/{dom → ontology}/step.js +4 -4
  143. package/src/{dom → ontology}/subDerivation.js +4 -4
  144. package/src/{dom → ontology}/subproof.js +5 -5
  145. package/src/{dom → ontology}/substitution/frame.js +4 -4
  146. package/src/{dom → ontology}/substitution/reference.js +2 -2
  147. package/src/{dom → ontology}/substitution/statement.js +2 -2
  148. package/src/{dom → ontology}/substitution/term.js +5 -5
  149. package/src/{dom → ontology}/supposition.js +5 -5
  150. package/src/{dom → ontology}/term.js +6 -6
  151. package/src/{dom → ontology}/theorem.js +2 -2
  152. package/src/{dom → ontology}/topLevelAssertion.js +6 -6
  153. package/src/{dom → ontology}/topLevelMetaAssertion.js +2 -2
  154. package/src/{dom → ontology}/type.js +4 -4
  155. package/src/{dom → ontology}/typePrefix.js +3 -5
  156. package/src/{dom → ontology}/variable.js +6 -6
  157. package/src/ontology.js +13 -0
  158. package/src/preamble.js +59 -59
  159. package/src/{configure.js → prepare.js} +1 -1
  160. package/src/unifier/intrinsicLevel.js +2 -2
  161. package/src/unifier/metaLevel.js +6 -6
  162. package/src/unifier/metavariable.js +2 -2
  163. package/src/unifier/statementWithCombinator.js +4 -4
  164. package/src/unifier/termWithConstructor.js +2 -2
  165. package/src/utilities/brackets.js +4 -4
  166. package/src/utilities/context.js +11 -11
  167. package/src/utilities/fileSystem.js +1 -1
  168. package/src/utilities/json.js +29 -29
  169. package/src/utilities/node.js +6 -6
  170. package/src/utilities/release.js +1 -1
  171. package/src/utilities/releaseContext.js +3 -3
  172. package/src/utilities/substitutions.js +5 -5
  173. package/src/utilities/type.js +1 -1
  174. package/src/verifier/combinator.js +3 -3
  175. package/src/verifier/constructor.js +2 -2
  176. package/src/verifier/topLevel.js +17 -17
  177. package/verify.js +2 -2
  178. package/lib/configure.js +0 -25
  179. package/lib/dom/assertion/contained.js +0 -316
  180. package/lib/dom/assertion/defined.js +0 -290
  181. package/lib/dom/assertion/property.js +0 -271
  182. package/lib/dom/assertion/satisfies.js +0 -254
  183. package/lib/dom/assertion/subproof.js +0 -186
  184. package/lib/dom/assertion/type.js +0 -252
  185. package/lib/dom/combinator.js +0 -141
  186. package/lib/dom/conclusion.js +0 -172
  187. package/lib/dom/constructor.js +0 -171
  188. package/lib/dom/declaration/combinator.js +0 -168
  189. package/lib/dom/declaration/complexType.js +0 -346
  190. package/lib/dom/declaration/constructor.js +0 -199
  191. package/lib/dom/declaration/metavariable.js +0 -209
  192. package/lib/dom/declaration/simpleType.js +0 -243
  193. package/lib/dom/declaration/typePrefix.js +0 -181
  194. package/lib/dom/declaration/variable.js +0 -197
  195. package/lib/dom/declaration.js +0 -360
  196. package/lib/dom/deduction.js +0 -186
  197. package/lib/dom/derivation.js +0 -155
  198. package/lib/dom/equality.js +0 -288
  199. package/lib/dom/frame.js +0 -362
  200. package/lib/dom/hypothesis.js +0 -191
  201. package/lib/dom/judgement.js +0 -241
  202. package/lib/dom/label.js +0 -199
  203. package/lib/dom/metavariable.js +0 -504
  204. package/lib/dom/premise.js +0 -271
  205. package/lib/dom/procedureCall.js +0 -243
  206. package/lib/dom/property.js +0 -166
  207. package/lib/dom/propertyRelation.js +0 -202
  208. package/lib/dom/reference.js +0 -293
  209. package/lib/dom/rule.js +0 -375
  210. package/lib/dom/section.js +0 -255
  211. package/lib/dom/signature.js +0 -220
  212. package/lib/dom/step.js +0 -283
  213. package/lib/dom/subDerivation.js +0 -147
  214. package/lib/dom/subproof.js +0 -266
  215. package/lib/dom/substitution/frame.js +0 -216
  216. package/lib/dom/substitution/term.js +0 -230
  217. package/lib/dom/substitution.js +0 -207
  218. package/lib/dom/supposition.js +0 -283
  219. package/lib/dom/term.js +0 -339
  220. package/lib/dom/topLevelAssertion.js +0 -432
  221. package/lib/dom/topLevelMetaAssertion.js +0 -235
  222. package/lib/dom/type.js +0 -556
  223. package/lib/dom/typePrefix.js +0 -100
  224. package/lib/dom/variable.js +0 -331
  225. package/lib/dom.js +0 -27
  226. package/src/dom.js +0 -13
  227. /package/src/{dom → ontology}/substitution.js +0 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import dom from "../dom";
3
+ import ontology from "../ontology";
4
4
  import Unifier from "../unifier";
5
5
 
6
6
  import { nodeQuery } from "../utilities/query";
@@ -26,7 +26,7 @@ class IntrinsicLevelUnifier extends Unifier {
26
26
  unify: (generalTermVariableNode, specificTermNode, substitutions, generalContext, specificContext) => {
27
27
  let termUnifies;
28
28
 
29
- const { Term, Variable } = dom,
29
+ const { Term, Variable } = ontology,
30
30
  termNode = specificTermNode, ///
31
31
  variableNode = generalTermVariableNode; ///
32
32
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import dom from "../dom";
3
+ import ontology from "../ontology";
4
4
  import Unifier from "../unifier";
5
5
 
6
6
  import { nodeQuery } from "../utilities/query";
@@ -32,7 +32,7 @@ class MetaLevelUnifier extends Unifier {
32
32
  unify: (generalStatementMetavariableNode, specificStatementNode, substitutions, generalContext, specificContext) => {
33
33
  let statementUnifies;
34
34
 
35
- const { Metavariable, Statement } = dom; ///
35
+ const { Metavariable, Statement } = ontology; ///
36
36
 
37
37
  let context,
38
38
  statementNode;
@@ -46,7 +46,7 @@ class MetaLevelUnifier extends Unifier {
46
46
 
47
47
  statementNode = metavariableNodeParentNode; ///
48
48
 
49
- const { TermSubstitution, FrameSubstitution } = dom,
49
+ const { TermSubstitution, FrameSubstitution } = ontology,
50
50
  frameSubstitution = FrameSubstitution.fromStatementNode(statementNode, context),
51
51
  termSubstitution = TermSubstitution.fromStatementNode(statementNode, context),
52
52
  substitution = (frameSubstitution || termSubstitution);
@@ -68,7 +68,7 @@ class MetaLevelUnifier extends Unifier {
68
68
  unify: (generalFrameDeclarationMetavariableNode, specificFrameNode, substitutions, generalContext, specificContext) => {
69
69
  let frameUnifies;
70
70
 
71
- const { Frame, Metavariable } = dom,
71
+ const { Frame, Metavariable } = ontology,
72
72
  frameNode = specificFrameNode, ///
73
73
  metavariableNode = generalFrameDeclarationMetavariableNode; ///
74
74
 
@@ -93,7 +93,7 @@ class MetaLevelUnifier extends Unifier {
93
93
  unify: (generalTermVariableNode, specificTermNode, substitutions, generalContext, specificContext) => {
94
94
  let termUnifies;
95
95
 
96
- const { Term, Variable } = dom,
96
+ const { Term, Variable } = ontology,
97
97
  termNode = specificTermNode, ///
98
98
  variableNode = generalTermVariableNode; ///
99
99
 
@@ -118,7 +118,7 @@ class MetaLevelUnifier extends Unifier {
118
118
  unify: (generalDeclarationMetavariableNode, specificDeclarationMetavariableNode, substitutions, generalContext, specificContext) => {
119
119
  let referenceUnifies;
120
120
 
121
- const { Metavariable, Reference } = dom;
121
+ const { Metavariable, Reference } = ontology;
122
122
 
123
123
  let context,
124
124
  metavariableNode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import dom from "../dom";
3
+ import ontology from "../ontology";
4
4
  import Unifier from "../unifier";
5
5
 
6
6
  import { nodeQuery } from "../utilities/query";
@@ -28,7 +28,7 @@ class MetavariableUnifier extends Unifier {
28
28
  unify: (generalTypeNode, specificTermNode, generalContext, specificContext) => {
29
29
  let termUnifies;
30
30
 
31
- const { Term } = dom,
31
+ const { Term } = ontology,
32
32
  typeNode = generalTypeNode, ///
33
33
  termNode = specificTermNode, ///
34
34
  nominalTypeName = typeNode.getNominalTypeName(),
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import dom from "../dom";
3
+ import ontology from "../ontology";
4
4
  import Unifier from "../unifier";
5
5
 
6
6
  import { nodeQuery } from "../utilities/query";
@@ -31,7 +31,7 @@ class StatementWithCombinatorUnifier extends Unifier {
31
31
  unify: (generalMetaTypeNode, specificStatementNode, assignments, stated, generalContext, specificContext) => {
32
32
  let unifies;
33
33
 
34
- const { Statement, MetaType } = dom,
34
+ const { Statement, MetaType } = ontology,
35
35
  metaTypeNode = generalMetaTypeNode, ///
36
36
  statementNode = specificStatementNode; ///
37
37
 
@@ -57,7 +57,7 @@ class StatementWithCombinatorUnifier extends Unifier {
57
57
  unify: (generalMetaTypeNode, specificFrameNode, assignments, stated, generalContext, specificContext) => {
58
58
  let unifies;
59
59
 
60
- const { Frame, MetaType } = dom,
60
+ const { Frame, MetaType } = ontology,
61
61
  metaTypeNode = generalMetaTypeNode, ///
62
62
  frameNode = specificFrameNode; ///
63
63
 
@@ -83,7 +83,7 @@ class StatementWithCombinatorUnifier extends Unifier {
83
83
  unify: (generalTypeNode, specificTermNode, assignments, stated, generalContext, specificContext) => {
84
84
  let unifies = false;
85
85
 
86
- const { Term } = dom,
86
+ const { Term } = ontology,
87
87
  typeNode = generalTypeNode, ///
88
88
  termNode = specificTermNode, ///
89
89
  nominalTypeName = typeNode.getNominalTypeName();
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import dom from "../dom";
3
+ import ontology from "../ontology";
4
4
  import Unifier from "../unifier";
5
5
 
6
6
  import { nodeQuery } from "../utilities/query";
@@ -28,7 +28,7 @@ class TermWithConstructorUnifier extends Unifier {
28
28
  unify: (generalTypeNode, specificTermNode, context) => {
29
29
  let unifies = false;
30
30
 
31
- const { Term } = dom,
31
+ const { Term } = ontology,
32
32
  typeNode = generalTypeNode, ///
33
33
  nominalTypeName = typeNode.getNominalTypeName(),
34
34
  type = context.findTypeByNominalTypeName(nominalTypeName);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import dom from "../dom";
3
+ import ontology from "../ontology";
4
4
  import LocalContext from "../context/local";
5
5
  import combinatorBracketedContext from "../context/bracketed/combinator";
6
6
  import constructorBracketedContext from "../context/bracketed/constructor";
@@ -12,7 +12,7 @@ export function stripBracketsFromTerm(term, context) {
12
12
  bracketedTermChildNode = bracketedTermChildNodeFromTermNode(termNode);
13
13
 
14
14
  if (bracketedTermChildNode !== null) {
15
- const { Term } = dom,
15
+ const { Term } = ontology,
16
16
  termNode = bracketedTermChildNode; ///
17
17
 
18
18
  term = Term.fromTermNode(termNode, context);
@@ -28,7 +28,7 @@ export function stripBracketsFromReference(reference, context) {
28
28
  if (bracketedReferenceChildNode !== null) {
29
29
  context = contextFromReference(reference, context); ///
30
30
 
31
- const { Reference } = dom,
31
+ const { Reference } = ontology,
32
32
  referenceNode = bracketedReferenceChildNode; ///
33
33
 
34
34
  reference = Reference.fromReferenceNode(referenceNode, context);
@@ -44,7 +44,7 @@ export function stripBracketsFromStatement(statement, context) {
44
44
  if (bracketedStatementChildNode !== null) {
45
45
  context = contextFromStatement(statement, context); ///
46
46
 
47
- const { Statement } = dom,
47
+ const { Statement } = ontology,
48
48
  statementNode = bracketedStatementChildNode; ///
49
49
 
50
50
  statement = Statement.fromStatementNode(statementNode, context);
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
 
3
- import dom from "../dom";
3
+ import ontology from "../ontology";
4
4
  import LocalContext from "../context/local";
5
5
 
6
6
  export function metavariableFromFrame(frame, context) {
7
7
  context = contextFromFrame(frame, context); ///
8
8
 
9
- const { Metavariable } = dom,
9
+ const { Metavariable } = ontology,
10
10
  frameNode = frame.getNode(),
11
11
  metavariable = Metavariable.fromFrameNode(frameNode, context);
12
12
 
@@ -16,7 +16,7 @@ export function metavariableFromFrame(frame, context) {
16
16
  export function equalityFromStatement(statement, context) {
17
17
  context = contextFromStatement(statement, context); ///
18
18
 
19
- const { Equality } = dom,
19
+ const { Equality } = ontology,
20
20
  statementNode = statement.getNode(),
21
21
  equality = Equality.fromStatementNode(statementNode, context);
22
22
 
@@ -26,7 +26,7 @@ export function equalityFromStatement(statement, context) {
26
26
  export function judgementFromStatement(statement, context) {
27
27
  context = contextFromStatement(statement, context); ///
28
28
 
29
- const { Judgement } = dom,
29
+ const { Judgement } = ontology,
30
30
  statementNode = statement.getNode(),
31
31
  judgement = Judgement.fromStatementNode(statementNode, context);
32
32
 
@@ -36,7 +36,7 @@ export function judgementFromStatement(statement, context) {
36
36
  export function metavariableFromStatement(statement, context) {
37
37
  context = contextFromStatement(statement, context); ///
38
38
 
39
- const { Metavariable } = dom,
39
+ const { Metavariable } = ontology,
40
40
  statementNode = statement.getNode(),
41
41
  metavariable = Metavariable.fromStatementNode(statementNode, context);
42
42
 
@@ -46,7 +46,7 @@ export function metavariableFromStatement(statement, context) {
46
46
  export function typeAssertionFromStatement(statement, context) {
47
47
  context = contextFromStatement(statement, context); ///
48
48
 
49
- const { TypeAssertion } = dom,
49
+ const { TypeAssertion } = ontology,
50
50
  statementNode = statement.getNode(),
51
51
  typeAssertion = TypeAssertion.fromStatementNode(statementNode, context);
52
52
 
@@ -56,7 +56,7 @@ export function typeAssertionFromStatement(statement, context) {
56
56
  export function definedAssertionFromStatement(statement, context) {
57
57
  context = contextFromStatement(statement, context); ///
58
58
 
59
- const { DefinedAssertion } = dom,
59
+ const { DefinedAssertion } = ontology,
60
60
  statementNode = statement.getNode(),
61
61
  definedAssertion = DefinedAssertion.fromStatementNode(statementNode, context);
62
62
 
@@ -66,7 +66,7 @@ export function definedAssertionFromStatement(statement, context) {
66
66
  export function propertyAssertionFromStatement(statement, context) {
67
67
  context = contextFromStatement(statement, context); ///
68
68
 
69
- const { PropertyAssertion } = dom,
69
+ const { PropertyAssertion } = ontology,
70
70
  statementNode = statement.getNode(),
71
71
  propertyAssertion = PropertyAssertion.fromStatementNode(statementNode, context);
72
72
 
@@ -76,7 +76,7 @@ export function propertyAssertionFromStatement(statement, context) {
76
76
  export function subproofAssertionFromStatement(statement, context) {
77
77
  context = contextFromStatement(statement, context); ///
78
78
 
79
- const { SubproofAssertion } = dom,
79
+ const { SubproofAssertion } = ontology,
80
80
  statementNode = statement.getNode(),
81
81
  subproofAssertion = SubproofAssertion.fromStatementNode(statementNode, context);
82
82
 
@@ -86,7 +86,7 @@ export function subproofAssertionFromStatement(statement, context) {
86
86
  export function containedAssertionFromStatement(statement, context) {
87
87
  context = contextFromStatement(statement, context); ///
88
88
 
89
- const { ContainedAssertion } = dom,
89
+ const { ContainedAssertion } = ontology,
90
90
  statementNode = statement.getNode(),
91
91
  containedAssertion = ContainedAssertion.fromStatementNode(statementNode, context);
92
92
 
@@ -96,7 +96,7 @@ export function containedAssertionFromStatement(statement, context) {
96
96
  export function satisfiesAssertionFromStatement(statement, context) {
97
97
  context = contextFromStatement(statement, context); ///
98
98
 
99
- const { SatisfiesAssertion } = dom,
99
+ const { SatisfiesAssertion } = ontology,
100
100
  statementNode = statement.getNode(),
101
101
  satisfiesAssertion = SatisfiesAssertion.fromStatementNode(statementNode, context);
102
102
 
@@ -3,7 +3,7 @@
3
3
  import { fileSystemUtilities as occamFileSystemUtilities } from "occam-file-system";
4
4
  import { pathUtilities, fileSystemUtilities as necessaryFileSystemUtilities } from "necessary";
5
5
 
6
- import { releaseContextFromJSON } from "../utilities/releaseContext";
6
+ import { releaseContextFromJSON, releaseContextFromProject } from "../utilities/releaseContext";
7
7
 
8
8
  const { loadProject } = occamFileSystemUtilities,
9
9
  { concatenatePaths } = pathUtilities,
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import dom from "../dom";
3
+ import ontology from "../ontology";
4
4
 
5
5
  export function termFromJSON(json, context) {
6
6
  let { term } = json;
@@ -9,7 +9,7 @@ export function termFromJSON(json, context) {
9
9
 
10
10
  json = termJSON; ///
11
11
 
12
- const { Term } = dom;
12
+ const { Term } = ontology;
13
13
 
14
14
  term = Term.fromJSON(json, context);
15
15
 
@@ -52,7 +52,7 @@ export function statementFromJSON(json, context) {
52
52
  let { statement = null } = json;
53
53
 
54
54
  if (statement !== null) {
55
- const { Statement } = dom,
55
+ const { Statement } = ontology,
56
56
  statementJSON = statement; ///
57
57
 
58
58
  json = statementJSON; ///
@@ -66,7 +66,7 @@ export function statementFromJSON(json, context) {
66
66
  export function deductionFromJSON(json, context) {
67
67
  let { deduction } = json;
68
68
 
69
- const { Deduction } = dom,
69
+ const { Deduction } = ontology,
70
70
  deductionJSON = deduction; ///
71
71
 
72
72
  json = deductionJSON; ///
@@ -80,7 +80,7 @@ export function signatureFromJSON(json, context) {
80
80
  let { signature = null } = json;
81
81
 
82
82
  if (signature !== null) {
83
- const { Signature } = dom,
83
+ const { Signature } = ontology,
84
84
  signatureJSON = signature; ///
85
85
 
86
86
  json = signatureJSON; ///
@@ -94,7 +94,7 @@ export function signatureFromJSON(json, context) {
94
94
  export function conclusionFromJSON(json, context) {
95
95
  let { conclusion } = json;
96
96
 
97
- const { Conclusion } = dom,
97
+ const { Conclusion } = ontology,
98
98
  conclusionJSON = conclusion; ///
99
99
 
100
100
  json = conclusionJSON; ///
@@ -107,7 +107,7 @@ export function conclusionFromJSON(json, context) {
107
107
  export function metavariableFromJSON(json, context) {
108
108
  let { metavariable } = json;
109
109
 
110
- const { Metavariable } = dom,
110
+ const { Metavariable } = ontology,
111
111
  metavariableJSON = metavariable; ///
112
112
 
113
113
  json = metavariableJSON; ///
@@ -121,7 +121,7 @@ export function procedureCallFromJSON(json, context) {
121
121
  let { procedureCall = null } = json;
122
122
 
123
123
  if (procedureCall !== null) {
124
- const { ProcedureCall } = dom,
124
+ const { ProcedureCall } = ontology,
125
125
  procedureCallJSON = procedureCall; ///
126
126
 
127
127
  json = procedureCallJSON; ///
@@ -135,7 +135,7 @@ export function procedureCallFromJSON(json, context) {
135
135
  export function procedureReferenceFromJSON(json, context) {
136
136
  let { procedureReference } = json;
137
137
 
138
- const { ProcedureReference } = dom,
138
+ const { ProcedureReference } = ontology,
139
139
  procedureReferenceJSON = procedureReference; ///
140
140
 
141
141
  json = procedureReferenceJSON; ///
@@ -148,7 +148,7 @@ export function procedureReferenceFromJSON(json, context) {
148
148
  export function typesFromJSON(json, types, context) {
149
149
  const { types: typesJSON } = json;
150
150
 
151
- const { Type } = dom;
151
+ const { Type } = ontology;
152
152
 
153
153
  typesJSON.forEach((typeJSON) => {
154
154
  const json = typeJSON, ///
@@ -161,7 +161,7 @@ export function typesFromJSON(json, types, context) {
161
161
  export function termsFromJSON(json, context) {
162
162
  let { terms } = json;
163
163
 
164
- const { Term } = dom,
164
+ const { Term } = ontology,
165
165
  termsJSON = terms; ///
166
166
 
167
167
  terms = termsJSON.map((termJSON) => {
@@ -177,7 +177,7 @@ export function termsFromJSON(json, context) {
177
177
  export function rulesFromJSON(json, context) {
178
178
  let { rules } = json;
179
179
 
180
- const { Rule } = dom,
180
+ const { Rule } = ontology,
181
181
  rulesJSON = rules; ///
182
182
 
183
183
  rules = rulesJSON.map((ruleJSON) => {
@@ -193,7 +193,7 @@ export function rulesFromJSON(json, context) {
193
193
  export function labelFromJSON(json, context) {
194
194
  let { label } = json;
195
195
 
196
- const { Label } = dom,
196
+ const { Label } = ontology,
197
197
  labelJSON = label; ///
198
198
 
199
199
  json = labelJSON; ///
@@ -206,7 +206,7 @@ export function labelFromJSON(json, context) {
206
206
  export function labelsFromJSON(json, context) {
207
207
  let { labels } = json;
208
208
 
209
- const { Label } = dom,
209
+ const { Label } = ontology,
210
210
  labelsJSON = labels; ///
211
211
 
212
212
  labels = labelsJSON.map((labelJSON) => {
@@ -222,7 +222,7 @@ export function labelsFromJSON(json, context) {
222
222
  export function axiomsFromJSON(json, context) {
223
223
  let { axioms } = json;
224
224
 
225
- const { Axiom } = dom,
225
+ const { Axiom } = ontology,
226
226
  axiomsJSON = axioms; ///
227
227
 
228
228
  axioms = axiomsJSON.map((axiomJSON) => {
@@ -238,7 +238,7 @@ export function axiomsFromJSON(json, context) {
238
238
  export function premisesFromJSON(json, context) {
239
239
  let { premises } = json;
240
240
 
241
- const { Premise } = dom,
241
+ const { Premise } = ontology,
242
242
  premisesJSON = premises; ///
243
243
 
244
244
  premises = premisesJSON.map((premiseJSON) => {
@@ -254,7 +254,7 @@ export function premisesFromJSON(json, context) {
254
254
  export function theoremsFromJSON(json, context) {
255
255
  let { theorems } = json;
256
256
 
257
- const { Theorem } = dom,
257
+ const { Theorem } = ontology,
258
258
  theoremsJSON = theorems; ///
259
259
 
260
260
  theorems = theoremsJSON.map((theoremJSON) => {
@@ -270,7 +270,7 @@ export function theoremsFromJSON(json, context) {
270
270
  export function variablesFromJSON(json, context) {
271
271
  let { variables } = json;
272
272
 
273
- const { Variable } = dom,
273
+ const { Variable } = ontology,
274
274
  variablesJSON = variables; ///
275
275
 
276
276
  variables = variablesJSON.map((variableJSON) => {
@@ -286,7 +286,7 @@ export function variablesFromJSON(json, context) {
286
286
  export function propertiesFromJSON(json, context) {
287
287
  let { properties } = json;
288
288
 
289
- const { Property } = dom,
289
+ const { Property } = ontology,
290
290
  propertiesJSON = properties; ///
291
291
 
292
292
  properties = propertiesJSON.map((propertyJSON) => {
@@ -319,7 +319,7 @@ export function superTypesFromJSON(json, context) {
319
319
  export function hypothesesFromJSON(json, context) {
320
320
  let { hypotheses } = json;
321
321
 
322
- const { Hypothesis } = dom,
322
+ const { Hypothesis } = ontology,
323
323
  hypothesesJSON = hypotheses; ///
324
324
 
325
325
  hypotheses = hypothesesJSON.map((hypothesisJSON) => {
@@ -335,7 +335,7 @@ export function hypothesesFromJSON(json, context) {
335
335
  export function parametersFromJSON(json, context) {
336
336
  let { parameters } = json;
337
337
 
338
- const { Parameter } = dom,
338
+ const { Parameter } = ontology,
339
339
  parametersJSON = parameters; ///
340
340
 
341
341
  parameters = parametersJSON.map((parameterJSON) => {
@@ -351,7 +351,7 @@ export function parametersFromJSON(json, context) {
351
351
  export function conjecturesFromJSON(json, context) {
352
352
  let { conjectures } = json;
353
353
 
354
- const { Conjecture } = dom,
354
+ const { Conjecture } = ontology,
355
355
  conjecturesJSON = conjectures; ///
356
356
 
357
357
  conjectures = conjecturesJSON.map((conjectureJSON) => {
@@ -367,7 +367,7 @@ export function conjecturesFromJSON(json, context) {
367
367
  export function combinatorsFromJSON(json, context) {
368
368
  let { combinators } = json;
369
369
 
370
- const { Combinator } = dom,
370
+ const { Combinator } = ontology,
371
371
  combinatorsJSON = combinators; ///
372
372
 
373
373
  combinators = combinatorsJSON.map((combinatorJSON) => {
@@ -383,7 +383,7 @@ export function combinatorsFromJSON(json, context) {
383
383
  export function typePrefixesFromJSON(json, context) {
384
384
  let { typePrefixes } = json;
385
385
 
386
- const { TypePrefix } = dom,
386
+ const { TypePrefix } = ontology,
387
387
  typePrefixesJSON = typePrefixes; ///
388
388
 
389
389
  typePrefixes = typePrefixesJSON.map((typePrefixJSON) => {
@@ -399,7 +399,7 @@ export function typePrefixesFromJSON(json, context) {
399
399
  export function constructorsFromJSON(json, context) {
400
400
  let { constructors } = json;
401
401
 
402
- const { Constructor } = dom,
402
+ const { Constructor } = ontology,
403
403
  constructorsJSON = constructors; ///
404
404
 
405
405
  constructors = constructorsJSON.map((constructorJSON) => {
@@ -415,7 +415,7 @@ export function constructorsFromJSON(json, context) {
415
415
  export function metatheoremsFromJSON(json, context) {
416
416
  let { metatheorems } = json;
417
417
 
418
- const { Metatheorem } = dom,
418
+ const { Metatheorem } = ontology,
419
419
  metatheoremsJSON = metatheorems; ///
420
420
 
421
421
  metatheorems = metatheoremsJSON.map((metatheoremJSON) => {
@@ -431,7 +431,7 @@ export function metatheoremsFromJSON(json, context) {
431
431
  export function suppositionsFromJSON(json, context) {
432
432
  let { suppositions } = json;
433
433
 
434
- const { Supposition } = dom,
434
+ const { Supposition } = ontology,
435
435
  suppositionsJSON = suppositions; ///
436
436
 
437
437
  suppositions = suppositionsJSON.map((suppositionJSON) => {
@@ -447,7 +447,7 @@ export function suppositionsFromJSON(json, context) {
447
447
  export function substitutionsFromJSON(json, context) {
448
448
  let { substitutions = [] } = json; ///
449
449
 
450
- const { StatementSubstitution } = dom,
450
+ const { StatementSubstitution } = ontology,
451
451
  substitutionsJSON = substitutions, ///
452
452
  Substitution = StatementSubstitution; ///
453
453
 
@@ -464,7 +464,7 @@ export function substitutionsFromJSON(json, context) {
464
464
  export function metavariablesFromJSON(json, context) {
465
465
  let { metavariables } = json;
466
466
 
467
- const { Metavariable } = dom,
467
+ const { Metavariable } = ontology,
468
468
  metavariablesJSON = metavariables; ///
469
469
 
470
470
  metavariables = metavariablesJSON.map((metavariableJSON) => {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
 
3
- import dom from "../dom";
3
+ import ontology from "../ontology";
4
4
 
5
- import { baseType } from "../dom/type";
5
+ import { baseType } from "../ontology/type";
6
6
 
7
7
  export function typeFromTypeNode(typeNode, context) {
8
8
  let type;
@@ -10,7 +10,7 @@ export function typeFromTypeNode(typeNode, context) {
10
10
  if (typeNode === null) {
11
11
  type = baseType;
12
12
  } else {
13
- const { Type } = dom,
13
+ const { Type } = ontology,
14
14
  typeName = typeNode.getTypeName(),
15
15
  typePrefixName = typeNode.getTypePrefixName(),
16
16
  nominalTypeName = typeNode.getNominalTypeName(),
@@ -28,7 +28,7 @@ export function typeFromTypeNode(typeNode, context) {
28
28
  }
29
29
 
30
30
  export function termFromTermNode(termNode, context) {
31
- const { Term } = dom,
31
+ const { Term } = ontology,
32
32
  node = termNode, ///
33
33
  string = context.nodeAsString(node),
34
34
  type = null,
@@ -38,7 +38,7 @@ export function termFromTermNode(termNode, context) {
38
38
  }
39
39
 
40
40
  export function statementFromStatementNode(statementNode, context) {
41
- const { Statement } = dom,
41
+ const { Statement } = ontology,
42
42
  node = statementNode, ///
43
43
  tokens = context.nodeAsTokens(node),
44
44
  string = context.tokensAsString(tokens),
@@ -64,7 +64,7 @@ export function variableFromTerm(term, context) {
64
64
  singularVariableNode = termNode.getSingularVariableNode();
65
65
 
66
66
  if (singularVariableNode !== null) {
67
- const { Variable } = dom,
67
+ const { Variable } = ontology,
68
68
  variableNode = singularVariableNode; ///
69
69
 
70
70
  variable = Variable.fromVariableNode(variableNode, context);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- function verifyRelease(releaseName, dependentName, dependentReleased, releaseContextMap) {
3
+ export function verifyRelease(releaseName, dependentName, dependentReleased, releaseContextMap) {
4
4
  let releaseVerifies = false;
5
5
 
6
6
  const releaseContext = releaseContextMap[releaseName];
@@ -57,7 +57,7 @@ export function createReleaseContext(dependency, dependentNames, context, callba
57
57
 
58
58
  if (!releaseContextCreated) {
59
59
  const error = null,
60
- success = false;
60
+ success = false;
61
61
 
62
62
  callback(error, success);
63
63
 
@@ -68,7 +68,7 @@ export function createReleaseContext(dependency, dependentNames, context, callba
68
68
 
69
69
  if (!releaseMatchesDependency) {
70
70
  const error = null,
71
- success = false;
71
+ success = false;
72
72
 
73
73
  callback(error, success);
74
74
 
@@ -137,7 +137,7 @@ export function initialiseReleaseContext(dependency, context) {
137
137
  initialiseDependencyReleaseContexts(dependency, releaseContext, context);
138
138
 
139
139
  const { log } = context,
140
- releaseContexts = retrieveReleaseContexts(releaseContext, releaseContextMap);
140
+ releaseContexts = retrieveReleaseContexts(releaseContext, releaseContextMap);
141
141
 
142
142
  log.info(`Initialising the '${dependencyName}' context...`);
143
143
 
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
 
3
- import dom from "../dom";
3
+ import ontology from "../ontology";
4
4
 
5
5
  export function termFromTermAndSubstitutions(term, substitutions, context) {
6
6
  if (term !== null) {
7
- const { Variable } = dom,
7
+ const { Variable } = ontology,
8
8
  termNode = term.getNode(),
9
9
  variable = Variable.fromTermNode(termNode, context);
10
10
 
@@ -24,7 +24,7 @@ export function termFromTermAndSubstitutions(term, substitutions, context) {
24
24
 
25
25
  export function frameFromFrameAndSubstitutions(frame, substitutions, context) {
26
26
  if (frame !== null) {
27
- const { Metavariable } = dom,
27
+ const { Metavariable } = ontology,
28
28
  frameNode = frame.getNode(),
29
29
  metavariable = Metavariable.fromFrameNode(frameNode, context);
30
30
 
@@ -46,7 +46,7 @@ export function frameFromFrameAndSubstitutions(frame, substitutions, context) {
46
46
 
47
47
  export function statementFromStatementAndSubstitutions(statement, substitutions, context) {
48
48
  if (statement !== null) {
49
- const { Metavariable } = dom,
49
+ const { Metavariable } = ontology,
50
50
  statementNode = statement.getNode(),
51
51
  metavariable = Metavariable.fromStatementNode(statementNode, context);
52
52
 
@@ -55,7 +55,7 @@ export function statementFromStatementAndSubstitutions(statement, substitutions,
55
55
  if (metavariable !== null) {
56
56
  let substitution;
57
57
 
58
- const { TermSubstitution, FrameSubstitution } = dom,
58
+ const { TermSubstitution, FrameSubstitution } = ontology,
59
59
  termSubstitution = TermSubstitution.fromStatementNode(statementNode, context),
60
60
  frameSubstitution = FrameSubstitution.fromStatementNode(statementNode, context);
61
61
 
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import { baseType } from "../dom/type";
3
+ import { baseType } from "../ontology/type";
4
4
 
5
5
  export function stringFromTypeNameTypePrefixNameAndSuperTypes(typeName, typePrefixName, superTypes) {
6
6
  let string;