occam-verify-cli 1.0.943 → 1.0.945

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.
@@ -346,11 +346,11 @@ export default define(class Rule extends Element {
346
346
  static fromJSON(json, context) {
347
347
  const { string } = json,
348
348
  node = null,
349
- proof = null,
350
349
  breakPoint = breakPointFromJSON(json),
351
350
  labels = labelsFromJSON(json, context),
352
351
  premises = premisesFromJSON(json, context),
353
352
  conclusion = conclusionFromJSON(json, context),
353
+ proof = null,
354
354
  rule = new Rule(context, string, node, breakPoint, proof, labels, premises, conclusion);
355
355
 
356
356
  return rule;
@@ -197,16 +197,16 @@ export default define(class FrameSubstitution extends Substitution {
197
197
 
198
198
  instantiate((context) => {
199
199
  const { string } = json,
200
- specificContext = context, ///
201
- contexts = [
202
- generalContext,
203
- specificContext
204
- ],
205
200
  frameSubstitutionNode = instantiateFrameSubstitution(string, context),
206
201
  node = frameSubstitutionNode, ///
207
202
  breakPoint = breakPointFromJSON(json),
208
203
  targetFrame = targetFrameFromFrameSubstitutionNode(frameSubstitutionNode, context),
209
- replacementFrame = replacementFrameFromFrameSubstitutionNode(frameSubstitutionNode, context);
204
+ replacementFrame = replacementFrameFromFrameSubstitutionNode(frameSubstitutionNode, context),
205
+ specificContext = context, ///
206
+ contexts = [
207
+ generalContext,
208
+ specificContext
209
+ ];
210
210
 
211
211
  frameSubstitutionn = new FrameSubstitution(contexts, string, node, breakPoint, targetFrame, replacementFrame);
212
212
  }, context);
@@ -202,16 +202,16 @@ export default define(class ReferenceSubstitution extends Substitution {
202
202
 
203
203
  instantiate((context) => {
204
204
  const { string } = json,
205
- specificContext = context, ///
206
- contexts = [
207
- generalContext,
208
- specificContext
209
- ],
210
205
  referenceSubstitutionNode = instantiateReferenceSubstitution(string, context),
211
206
  node = referenceSubstitutionNode, ///
212
207
  breakPoint = breakPointFromJSON(json),
213
208
  targetReference = targetReferenceFromReferenceSubstitutionNode(referenceSubstitutionNode, context),
214
- replacementReference = replacementReferenceFromReferenceSubstitutionNode(referenceSubstitutionNode, context);
209
+ replacementReference = replacementReferenceFromReferenceSubstitutionNode(referenceSubstitutionNode, context),
210
+ specificContext = context, ///
211
+ contexts = [
212
+ generalContext,
213
+ specificContext
214
+ ];
215
215
 
216
216
  referenceSubstitutionn = new ReferenceSubstitution(contexts, string, node, breakPoint, targetReference, replacementReference);
217
217
  }, context);
@@ -362,18 +362,18 @@ export default define(class StatementSubstitution extends Substitution {
362
362
 
363
363
  instantiate((context) => {
364
364
  const { string } = json,
365
- specificContext = context, ///
366
- contexts = [
367
- generalContext,
368
- specificContext
369
- ],
370
365
  statementSubstitutionNode = instantiateStatementSubstitution(string, context),
371
366
  node = statementSubstitutionNode, ///
372
367
  breakPoint = breakPointFromJSON(json),
373
368
  resolved = resolvedFromStatementSubstitutionNode(statementSubstitutionNode, context),
374
369
  substitution = substitutionFromStatementSubstitutionNode(statementSubstitutionNode, generalContext, specificContext),
375
370
  targetStatement = targetStatementFromStatementSubstitutionNode(statementSubstitutionNode, context),
376
- replacementStatement = replacementStatementFromStatementSubstitutionNode(statementSubstitutionNode, context);
371
+ replacementStatement = replacementStatementFromStatementSubstitutionNode(statementSubstitutionNode, context),
372
+ specificContext = context, ///
373
+ contexts = [
374
+ generalContext,
375
+ specificContext
376
+ ];
377
377
 
378
378
  statementSubstitutionn = new StatementSubstitution(contexts, string, node, breakPoint, resolved, substitution, targetStatement, replacementStatement);
379
379
  }, context);
@@ -208,16 +208,16 @@ export default define(class TermSubstitution extends Substitution {
208
208
 
209
209
  instantiate((context) => {
210
210
  const { string } = json,
211
- specificContext = context, ///
212
- contexts = [
213
- generalContext,
214
- specificContext
215
- ],
216
211
  termSubstitutionNode = instantiateTermSubstitution(string, context),
217
212
  node = termSubstitutionNode, ///
218
213
  breakPoint = breakPointFromJSON(json),
219
214
  targetTerm = targetTermFromTermSubstitutionNode(termSubstitutionNode, context),
220
- replacementTerm = replacementTermFromTermSubstitutionNode(termSubstitutionNode, context);
215
+ replacementTerm = replacementTermFromTermSubstitutionNode(termSubstitutionNode, context),
216
+ specificContext = context, ///
217
+ contexts = [
218
+ generalContext,
219
+ specificContext
220
+ ];
221
221
 
222
222
  termSubstitutionn = new TermSubstitution(contexts, string, node, breakPoint, targetTerm, replacementTerm);
223
223
  }, context);
@@ -4,7 +4,7 @@ import { arrayUtilities } from "necessary";
4
4
  import { Element, asynchronousUtilities } from "occam-languages";
5
5
 
6
6
  import { enclose } from "../utilities/context";
7
- import { breakPointToBreakPointJSON } from "../utilities/breakPoint";
7
+ import { breakPointFromJSON, breakPointToBreakPointJSON } from "../utilities/breakPoint";
8
8
  import { topLevelAssertionStringFromLabelsSignatureSuppositionsAndDeduction } from "../utilities/string";
9
9
  import { labelsFromJSON,
10
10
  deductionFromJSON,
@@ -383,16 +383,16 @@ export default class TopLevelAssertion extends Element {
383
383
  }
384
384
 
385
385
  static fromJSON(Class, json, context) {
386
- const { breakPoint } = json,
387
- labels = labelsFromJSON(json, context),
386
+ const labels = labelsFromJSON(json, context),
388
387
  deduction = deductionFromJSON(json, context),
389
388
  suppositions = suppositionsFromJSON(json, context),
390
389
  signature = signatureFromJSON(json, context),
391
390
  hypotheses = hypothesesFromJSON(json, context),
392
391
  topLevelAssertionString = topLevelAssertionStringFromLabelsSignatureSuppositionsAndDeduction(labels, signature, suppositions, deduction),
392
+ string = topLevelAssertionString, ///
393
393
  node = null,
394
+ breakPoint = breakPointFromJSON(json),
394
395
  proof = null,
395
- string = topLevelAssertionString, ///
396
396
  topLevelAssertion = new Class(context, string, node, breakPoint, labels, suppositions, deduction, proof, signature, hypotheses);
397
397
 
398
398
  return topLevelAssertion;
@@ -3,7 +3,7 @@
3
3
  import { Element, asynchronousUtilities } from "occam-languages";
4
4
 
5
5
  import { enclose } from "../utilities/context";
6
- import { breakPointToBreakPointJSON } from "../utilities/breakPoint";
6
+ import { breakPointFromJSON, breakPointToBreakPointJSON } from "../utilities/breakPoint";
7
7
  import { topLevelMetaAssertionStringFromLabelSuppositionsAndDeduction } from "../utilities/string";
8
8
  import { labelFromJSON,
9
9
  labelToLabelJSON,
@@ -261,14 +261,14 @@ export default class TopLevelMetaAssertion extends Element {
261
261
  }
262
262
 
263
263
  static fromJSON(Class, json, context) {
264
- const { breakPoint } = json,
265
- label = labelFromJSON(json, context),
264
+ const label = labelFromJSON(json, context),
266
265
  deduction = deductionFromJSON(json, context),
267
266
  suppositions = suppositionsFromJSON(json, context),
268
267
  metaLevelAssumptions = metaLevelAssumptionsFromJSON(json, context),
268
+ string = topLevelMetaAssertionStringFromLabelSuppositionsAndDeduction(label, suppositions, deduction),
269
269
  node = null,
270
+ breakPoint = breakPointFromJSON(json),
270
271
  proof = null,
271
- string = topLevelMetaAssertionStringFromLabelSuppositionsAndDeduction(label, suppositions, deduction),
272
272
  topLevelMetaAssertion = new Class(context, string, node, breakPoint, label, suppositions, deduction, proof, metaLevelAssumptions);
273
273
 
274
274
  return topLevelMetaAssertion;