eutaxy 0.6.0 → 0.7.0
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/README.md +41 -14
- package/dist/aws.d.mts +2 -2
- package/dist/bin.mjs +2 -2
- package/dist/cli-CL28yx3H.mjs +2 -0
- package/dist/cli.mjs +2 -2
- package/dist/cloudflare.d.mts +9 -9
- package/dist/cloudflare.d.mts.map +1 -1
- package/dist/cloudflare.mjs +1 -1
- package/dist/combinators-B7tV5fM_.d.mts +36 -0
- package/dist/combinators-B7tV5fM_.d.mts.map +1 -0
- package/dist/combinators-N4LmG4p4.mjs +26 -0
- package/dist/combinators-N4LmG4p4.mjs.map +1 -0
- package/dist/{delivery-invariants-BraYqcYN.d.mts → delivery-invariants-DfPkJL0Q.d.mts} +2 -2
- package/dist/{delivery-invariants-BraYqcYN.d.mts.map → delivery-invariants-DfPkJL0Q.d.mts.map} +1 -1
- package/dist/explore-DhfREiX9.d.mts +226 -0
- package/dist/explore-DhfREiX9.d.mts.map +1 -0
- package/dist/index.d.mts +139 -20
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -61
- package/dist/index.mjs.map +1 -1
- package/dist/{platform-DfMwknw1.d.mts → platform-Bpnav0kn.d.mts} +6 -4
- package/dist/{platform-DfMwknw1.d.mts.map → platform-Bpnav0kn.d.mts.map} +1 -1
- package/dist/spec.d.mts +2 -0
- package/dist/spec.mjs +1 -0
- package/dist/src-BO7I3f-1.mjs.map +1 -1
- package/dist/{src-C43iUZgr.mjs → src-CMoBPQuE.mjs} +4564 -1372
- package/dist/src-CMoBPQuE.mjs.map +1 -0
- package/dist/src-DzpZxvQi.mjs +1422 -0
- package/dist/src-DzpZxvQi.mjs.map +1 -0
- package/package.json +12 -7
- package/dist/cli-CsiVEsS-.mjs +0 -2
- package/dist/explore-CDpJA9zX.d.mts +0 -342
- package/dist/explore-CDpJA9zX.d.mts.map +0 -1
- package/dist/src-C43iUZgr.mjs.map +0 -1
- package/dist/src-Cs4Mg55e.mjs +0 -2672
- package/dist/src-Cs4Mg55e.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,15 +1,133 @@
|
|
|
1
|
-
import { C as StateQuery, D as EffectLog, E as EffectSelector, O as EffectRecord, S as RowCondition, T as Refines, _ as checkInvariant, b as Implies, d as FaultKind, f as Schedule, g as Violation, h as Invariant, l as validateScenario, m as AtMostOncePerKey, n as Platform, o as ScenarioSpec, p as AtLeastOnce, r as Bounds, t as EventRef, u as FaultDecision, v as checkInvariants, w as Unique, y as EveryRow } from "./platform-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { C as StateQuery, D as EffectLog, E as EffectSelector, O as EffectRecord, S as RowCondition, T as Refines, _ as checkInvariant, b as Implies, d as FaultKind, f as Schedule, g as Violation, h as Invariant, l as validateScenario, m as AtMostOncePerKey, n as Platform, o as ScenarioSpec, p as AtLeastOnce, r as Bounds, t as EventRef, u as FaultDecision, v as checkInvariants, w as Unique, y as EveryRow } from "./platform-Bpnav0kn.mjs";
|
|
2
|
+
import { _ as describeVerdict, a as Binder, c as ModuleSpecs, d as SpecType, f as Bounded, g as Violated, h as Unsupported, i as Arrow, l as Property, m as ScenarioVerdict, n as explore, o as FunctionSpec, p as BoundsReached, r as replay, s as Hint, t as ExploreOptions, u as SpecError } from "./explore-DhfREiX9.mjs";
|
|
3
|
+
import { n as Forall, t as Fn } from "./combinators-B7tV5fM_.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Spec verdicts: what is known about one property of one pure function.
|
|
6
|
+
* Kept apart from scenario verdicts in every report. The ladder runs
|
|
7
|
+
* `CHECKED` (held on every input the simulator passed), then `TESTED` (held
|
|
8
|
+
* on inputs generated from the binders' domains), then `PROVEN` (an engine
|
|
9
|
+
* proved it for every input); `CONFLICT` when engines disagree.
|
|
10
|
+
*/
|
|
11
|
+
interface SpecVerdictBase {
|
|
12
|
+
/** The module, as the scenario names it. */
|
|
13
|
+
readonly module: string;
|
|
14
|
+
readonly function: string;
|
|
15
|
+
/** The property's export name in the spec file. */
|
|
16
|
+
readonly property: string;
|
|
17
|
+
/** The property as written. */
|
|
18
|
+
readonly text: string;
|
|
19
|
+
readonly assumptions: readonly string[];
|
|
20
|
+
}
|
|
21
|
+
interface Checked extends SpecVerdictBase {
|
|
22
|
+
readonly kind: "CHECKED";
|
|
23
|
+
/** Distinct inputs the property was evaluated on. */
|
|
24
|
+
readonly inputs: number;
|
|
25
|
+
/** Distinct inputs outside the claim: a precondition failed, or a value fell outside its binder's domain. */
|
|
26
|
+
readonly discarded: number;
|
|
27
|
+
}
|
|
28
|
+
/** The property held on inputs generated from its binders' domains, and on the simulator's where it passed any. */
|
|
29
|
+
interface Tested extends SpecVerdictBase {
|
|
30
|
+
readonly kind: "TESTED";
|
|
31
|
+
/** Generated assignments the property held on. */
|
|
32
|
+
readonly inputs: number;
|
|
33
|
+
/** Generated assignments outside the claim: a precondition failed. */
|
|
34
|
+
readonly discarded: number;
|
|
35
|
+
/** The seed the assignments were drawn from; the same seed draws the same assignments. */
|
|
36
|
+
readonly seed: string;
|
|
37
|
+
/** Distinct inputs the simulator passed that the property also held on, when it passed any. */
|
|
38
|
+
readonly checked?: number;
|
|
39
|
+
}
|
|
40
|
+
/** One assignment that breaks the property, as JavaScript literals, and where it came from. */
|
|
41
|
+
interface Counterexample {
|
|
42
|
+
/** In the property's binder order. */
|
|
43
|
+
readonly binders: readonly {
|
|
44
|
+
readonly name: string;
|
|
45
|
+
readonly value: string;
|
|
46
|
+
}[];
|
|
47
|
+
/** The simulator's call the assignment was taken from; absent when it was generated. */
|
|
48
|
+
readonly call?: string;
|
|
49
|
+
/** Set when evaluating the property threw instead of returning false. */
|
|
50
|
+
readonly error?: string;
|
|
51
|
+
}
|
|
52
|
+
interface Refuted extends SpecVerdictBase {
|
|
53
|
+
readonly kind: "REFUTED";
|
|
54
|
+
/** The rung that found the counterexample: a rung of the simulator, or an engine by name. */
|
|
55
|
+
readonly rung: "CHECKED" | "TESTED" | "PROVEN";
|
|
56
|
+
/** The engine, when the rung is PROVEN. */
|
|
57
|
+
readonly engine?: {
|
|
58
|
+
readonly name: string;
|
|
59
|
+
readonly version: string;
|
|
60
|
+
};
|
|
61
|
+
readonly counterexample: Counterexample;
|
|
62
|
+
}
|
|
63
|
+
/** Proved for every input by a named engine; the lower rungs' evidence is kept beside it. */
|
|
64
|
+
interface Proven extends SpecVerdictBase {
|
|
65
|
+
readonly kind: "PROVEN";
|
|
66
|
+
readonly engine: {
|
|
67
|
+
readonly name: string;
|
|
68
|
+
readonly version: string;
|
|
69
|
+
};
|
|
70
|
+
/** Generated inputs the TESTED rung held on, when it ran. */
|
|
71
|
+
readonly tested?: number;
|
|
72
|
+
/** Distinct inputs the simulator passed that the CHECKED rung held on, when it passed any. */
|
|
73
|
+
readonly checked?: number;
|
|
74
|
+
}
|
|
75
|
+
/** Two engines disagree: one proves, one refutes. Never resolved automatically. */
|
|
76
|
+
interface Conflict extends SpecVerdictBase {
|
|
77
|
+
readonly kind: "CONFLICT";
|
|
78
|
+
readonly proven: {
|
|
79
|
+
readonly name: string;
|
|
80
|
+
readonly version: string;
|
|
81
|
+
};
|
|
82
|
+
readonly refuted: {
|
|
83
|
+
readonly name: string;
|
|
84
|
+
readonly version: string;
|
|
85
|
+
readonly counterexample?: Counterexample;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
type SpecUnknownCause = "gave_up" | "unsupported" | "unavailable";
|
|
89
|
+
interface SpecUnknown extends SpecVerdictBase {
|
|
90
|
+
readonly kind: "UNKNOWN";
|
|
91
|
+
readonly cause: SpecUnknownCause;
|
|
92
|
+
readonly reason: string;
|
|
93
|
+
}
|
|
94
|
+
type SpecVerdict = Checked | Tested | Proven | Refuted | Conflict | SpecUnknown;
|
|
95
|
+
/** One line per spec verdict, for error messages; full rendering lives in `report`. */
|
|
96
|
+
export declare function describeSpecVerdict(v: SpecVerdict): string;
|
|
97
|
+
interface CheckedInput {
|
|
98
|
+
readonly module: string;
|
|
99
|
+
readonly fn: FunctionSpec;
|
|
100
|
+
readonly property: Property;
|
|
101
|
+
/** The calls the simulator made, with their arguments. */
|
|
102
|
+
readonly calls: readonly {
|
|
103
|
+
readonly args: readonly unknown[];
|
|
104
|
+
}[];
|
|
105
|
+
/** The spec file's export, or undefined when it could not be loaded. */
|
|
106
|
+
readonly spec: Forall<Fn> | undefined;
|
|
107
|
+
/** Why the function's calls could not be observed, when they could not. */
|
|
108
|
+
readonly unobservable?: string;
|
|
109
|
+
}
|
|
110
|
+
export declare function checkedRung(input: CheckedInput): SpecVerdict;
|
|
111
|
+
interface TestedOptions {
|
|
112
|
+
/** The check's seed; each property derives its own stream from it and its name. */
|
|
113
|
+
readonly seed: string;
|
|
114
|
+
/** Distinct assignments the property must hold on; default 100. Drawing stops after 20 times as many draws, whatever they were. */
|
|
115
|
+
readonly inputs?: number;
|
|
116
|
+
}
|
|
117
|
+
interface TestedInput extends TestedOptions {
|
|
118
|
+
readonly module: string;
|
|
119
|
+
readonly fn: FunctionSpec;
|
|
120
|
+
readonly property: Property;
|
|
121
|
+
/** The spec file's export, or undefined when it could not be loaded. */
|
|
122
|
+
readonly spec: Forall<Fn> | undefined;
|
|
123
|
+
}
|
|
124
|
+
export declare function testedRung(input: TestedInput): SpecVerdict;
|
|
125
|
+
interface LadderOptions {
|
|
126
|
+
/** Run the `TESTED` rung with these options; `false` stops the ladder at `CHECKED`. */
|
|
127
|
+
readonly tested?: TestedOptions | false;
|
|
128
|
+
}
|
|
129
|
+
/** One property through the ladder's rungs. */
|
|
130
|
+
export declare function specLadder(input: CheckedInput, options?: LadderOptions): SpecVerdict;
|
|
13
131
|
interface EngineId {
|
|
14
132
|
readonly name: string;
|
|
15
133
|
readonly version: string;
|
|
@@ -30,22 +148,24 @@ type ProofOutcome = {
|
|
|
30
148
|
};
|
|
31
149
|
interface PropertyProof {
|
|
32
150
|
readonly function: string;
|
|
33
|
-
/** The
|
|
151
|
+
/** The property's export name in the spec file. */
|
|
34
152
|
readonly property: string;
|
|
35
153
|
readonly outcome: ProofOutcome;
|
|
36
154
|
}
|
|
37
155
|
interface ModuleProofs {
|
|
38
156
|
readonly results: readonly PropertyProof[];
|
|
39
|
-
/**
|
|
157
|
+
/** Specs that did not read: properties asked for and never checked. */
|
|
40
158
|
readonly specErrors: readonly SpecError[];
|
|
41
159
|
}
|
|
42
160
|
interface ProveInput {
|
|
43
161
|
/** The module's source text. */
|
|
44
162
|
readonly source: string;
|
|
45
|
-
/** The
|
|
163
|
+
/** The module's specs, read from its spec file. */
|
|
164
|
+
readonly specs: ModuleSpecs;
|
|
165
|
+
/** The functions to prove; every one with specs when omitted. */
|
|
46
166
|
readonly functions?: readonly string[];
|
|
47
|
-
/** The
|
|
48
|
-
readonly
|
|
167
|
+
/** The spec file's path, for an engine that replays a counterexample through the spec itself. */
|
|
168
|
+
readonly specPath?: string;
|
|
49
169
|
readonly timeoutMs?: number;
|
|
50
170
|
}
|
|
51
171
|
interface Prover {
|
|
@@ -65,13 +185,12 @@ interface EngineReport {
|
|
|
65
185
|
}
|
|
66
186
|
/**
|
|
67
187
|
* The simulator's verdicts for a module (CHECKED, TESTED, REFUTED, UNKNOWN,
|
|
68
|
-
*
|
|
188
|
+
* `total` included) combined with what the engines proved. A simulator
|
|
69
189
|
* counterexample stands. One engine proving is `PROVEN`, the lower rungs'
|
|
70
190
|
* counts kept beside it; an engine refuting where nothing else did is
|
|
71
191
|
* `REFUTED` at the PROVEN rung; one proving and another refuting is
|
|
72
192
|
* `CONFLICT`. An engine that gave up, could not run or does not take the
|
|
73
193
|
* function leaves the verdict as it was, with why among the assumptions.
|
|
74
|
-
* `@total` is proved by acceptance where the engine says so.
|
|
75
194
|
*/
|
|
76
195
|
export declare function aggregate(module: string, verdicts: readonly SpecVerdict[], reports: readonly EngineReport[]): SpecVerdict[];
|
|
77
196
|
/**
|
|
@@ -137,5 +256,5 @@ export declare function renderSpecs(specs: readonly SpecVerdict[]): string;
|
|
|
137
256
|
export declare function renderTrace(log: EffectLog, evidence?: readonly number[]): string;
|
|
138
257
|
/** A readable report: verdict, what it rests on, and for a violation the schedule and trace. */
|
|
139
258
|
export declare function renderText(verdict: ScenarioVerdict): string;
|
|
140
|
-
export { type AtLeastOnce, type AtMostOncePerKey, type Binder, type Bounded, type Bounds, type BoundsReached, type Checked, type Conflict, type CoreObserver, type Counterexample, type
|
|
259
|
+
export { type Arrow, type AtLeastOnce, type AtMostOncePerKey, type Binder, type Bounded, type Bounds, type BoundsReached, type Checked, type Conflict, type CoreObserver, type Counterexample, type EffectLog, type EffectRecord, type EffectSelector, type EngineId, type EngineReport, type EventRef, type EveryRow, type ExploreOptions, type FaultDecision, type FaultKind, type FunctionSpec, type Hint, type Implies, type Invariant, type LadderOptions, type ModuleProofs, type ModuleSpecs, type ObservedCall, type Platform, type ProofOutcome, type Property, type PropertyProof, type ProveInput, type Proven, type Prover, type Refines, type Refuted, type RegressionTestOptions, type RowCondition, type ScenarioSpec, type ScenarioVerdict, type Schedule, type SpecType, type SpecUnknown, type SpecVerdict, type StateQuery, type Tested, type TestedOptions, type Unique, type Unsupported, type Violated, type Violation, checkInvariant, checkInvariants, describeVerdict, explore, replay, validateScenario };
|
|
141
260
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../spec/src/
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../core/src/spec-verdict.ts","../../prover/src/checked.ts","../../prover/src/tested.ts","../../prover/src/ladder.ts","../../prover/src/provers.ts","../../engine/src/observe.ts","../../engine/src/shrink.ts","../../report/src/regression.ts","../../report/src/render.ts"],"mappings":";;;;;;;;;;UAQU;;WAEC;WACA;;WAEA;;WAEA;W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CK9D,aACd,UAAU,UACV,MAAM,cACN,6BACC;UC7Bc;;WAEN;;WAEA;;WAEA;;WAEA;WACA;;;;;;WAMA;aACE;aACA;;;wBAIG,mBAAmB,SAAS,UAAU,SAAS;;;;;wBCf/C,WAAW,SAAS,iBAAiB,iBAAgB;;wBAUrD,YAAY,gBAAgB;;wBAwE5B,YAAY,KAAK,WAAW;;wBAuB5B,WAAW,SAAS"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as explore, b as checkInvariants, o as replay, s as restrictSpec, t as observeCore, v as validateScenario, y as checkInvariant } from "./src-BO7I3f-1.mjs";
|
|
2
|
-
import { a as emitRegressionTest,
|
|
2
|
+
import { a as emitRegressionTest, c as specLadder, d as checkedRung, g as describeVerdict, i as renderTrace, l as testedRung, n as renderSpecs, o as aggregate, r as renderText, t as renderJson } from "./src-DzpZxvQi.mjs";
|
|
3
3
|
// packages/core/src/spec-verdict.ts
|
|
4
4
|
/** One line per spec verdict, for error messages; full rendering lives in `report`. */
|
|
5
5
|
function describeSpecVerdict(v) {
|
|
@@ -16,65 +16,6 @@ function describeSpecVerdict(v) {
|
|
|
16
16
|
case "UNKNOWN": return `UNKNOWN ${what}: ${v.cause}: ${v.reason}`;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
const precedence = {
|
|
21
|
-
iff: 1,
|
|
22
|
-
implies: 2,
|
|
23
|
-
or: 3,
|
|
24
|
-
and: 4,
|
|
25
|
-
not: 5,
|
|
26
|
-
atom: 6,
|
|
27
|
-
equation: 6
|
|
28
|
-
};
|
|
29
|
-
function guardText(g) {
|
|
30
|
-
if (g.kind === "regex") return `/${g.pattern}/${g.flags}`;
|
|
31
|
-
return `${g.lower.inclusive ? "[" : "("}${g.lower.value}, ${g.upper.value}${g.upper.inclusive ? "]" : ")"}`;
|
|
32
|
-
}
|
|
33
|
-
function sameGroup(a, b) {
|
|
34
|
-
return a.domain === b.domain && a.guard === void 0 === (b.guard === void 0) && (a.guard === void 0 || b.guard !== void 0 && guardText(a.guard) === guardText(b.guard));
|
|
35
|
-
}
|
|
36
|
-
function prefixText(binders) {
|
|
37
|
-
const groups = [];
|
|
38
|
-
for (const b of binders) {
|
|
39
|
-
const last = groups[groups.length - 1];
|
|
40
|
-
if (last && sameGroup(last[0], b)) last.push(b);
|
|
41
|
-
else groups.push([b]);
|
|
42
|
-
}
|
|
43
|
-
return `forall ${groups.map((g) => {
|
|
44
|
-
const head = g[0];
|
|
45
|
-
const guard = head.guard ? ` ∈ ${guardText(head.guard)}` : "";
|
|
46
|
-
return `(${g.map((b) => b.name).join(" ")}: ${head.domain}${guard})`;
|
|
47
|
-
}).join(" ")}`;
|
|
48
|
-
}
|
|
49
|
-
/** Print a formula, parenthesized when its precedence is below `min`. */
|
|
50
|
-
function printFormula(f, min = 0) {
|
|
51
|
-
let s;
|
|
52
|
-
switch (f.kind) {
|
|
53
|
-
case "atom":
|
|
54
|
-
s = f.text;
|
|
55
|
-
break;
|
|
56
|
-
case "equation":
|
|
57
|
-
s = `${f.left} ${f.negated ? "≢" : "≡"} ${f.right}`;
|
|
58
|
-
break;
|
|
59
|
-
case "not":
|
|
60
|
-
s = `¬${printFormula(f.operand, precedence.not)}`;
|
|
61
|
-
break;
|
|
62
|
-
case "and":
|
|
63
|
-
case "or":
|
|
64
|
-
s = f.operands.map((o) => printFormula(o, precedence[f.kind] + 1)).join(f.kind === "and" ? " ∧ " : " ∨ ");
|
|
65
|
-
break;
|
|
66
|
-
case "implies":
|
|
67
|
-
s = [...f.antecedents, f.consequent].map((o) => printFormula(o, precedence.or)).join(" → ");
|
|
68
|
-
break;
|
|
69
|
-
case "iff": s = `${printFormula(f.left, precedence.implies)} ↔ ${printFormula(f.right, precedence.implies)}`;
|
|
70
|
-
}
|
|
71
|
-
return precedence[f.kind] < min ? `(${s})` : s;
|
|
72
|
-
}
|
|
73
|
-
/** The property as Lemma text (what follows `@ensures{name}`). */
|
|
74
|
-
function printProperty(p) {
|
|
75
|
-
const body = p.requires.length > 0 ? [...p.requires, p.claim].map((f) => printFormula(f, precedence.or)).join(" → ") : printFormula(p.claim, p.claim.kind === "implies" ? precedence.or : 0);
|
|
76
|
-
return `${prefixText(p.binders)} { ${body} }`;
|
|
77
|
-
}
|
|
78
|
-
export { LemmaSyntaxError, aggregate, checkInvariant, checkInvariants, checkedRung, describeSpecVerdict, describeVerdict, emitRegressionTest, explore, extractSpecs, observeCore, parseProperty, printProperty, renderJson, renderSpecs, renderText, renderTrace, replay, restrictSpec, specLadder, testedRung, validateScenario };
|
|
19
|
+
export { aggregate, checkInvariant, checkInvariants, checkedRung, describeSpecVerdict, describeVerdict, emitRegressionTest, explore, observeCore, renderJson, renderSpecs, renderText, renderTrace, replay, restrictSpec, specLadder, testedRung, validateScenario };
|
|
79
20
|
|
|
80
21
|
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../core/src/spec-verdict.ts","../../spec/src/print.ts"],"sourcesContent":["/**\n * Spec verdicts: what is known about one property of one pure function.\n * Kept apart from scenario verdicts in every report. The ladder runs\n * `CHECKED` (held on every input the simulator passed), then `TESTED` (held\n * on inputs generated from the binders' domains), then `PROVEN` (an engine\n * proved it for every input); `CONFLICT` when engines disagree.\n */\n\ninterface SpecVerdictBase {\n /** The module, as the scenario names it. */\n readonly module: string;\n readonly function: string;\n /** The `@ensures` name, or `@total` / `@throws` for those markers. */\n readonly property: string;\n /** The property as written. */\n readonly text: string;\n readonly assumptions: readonly string[];\n}\n\nexport interface Checked extends SpecVerdictBase {\n readonly kind: \"CHECKED\";\n /** Distinct inputs the property was evaluated on. */\n readonly inputs: number;\n /** Distinct inputs outside the claim: a precondition failed, or a value fell outside its binder's domain. */\n readonly discarded: number;\n}\n\n/** The property held on inputs generated from its binders' domains, and on the simulator's where it passed any. */\nexport interface Tested extends SpecVerdictBase {\n readonly kind: \"TESTED\";\n /** Generated assignments the property held on. */\n readonly inputs: number;\n /** Generated assignments outside the claim: a precondition failed. */\n readonly discarded: number;\n /** The seed the assignments were drawn from; the same seed draws the same assignments. */\n readonly seed: string;\n /** Distinct inputs the simulator passed that the property also held on, when it passed any. */\n readonly checked?: number;\n}\n\n/** One assignment that breaks the property, as JavaScript literals, and where it came from. */\nexport interface Counterexample {\n /** In the property's binder order. */\n readonly binders: readonly { readonly name: string; readonly value: string }[];\n /** The simulator's call the assignment was taken from; absent when it was generated. */\n readonly call?: string;\n /** Set when evaluating the property threw instead of returning false. */\n readonly error?: string;\n}\n\nexport interface Refuted extends SpecVerdictBase {\n readonly kind: \"REFUTED\";\n /** The rung that found the counterexample: a rung of the simulator, or an engine by name. */\n readonly rung: \"CHECKED\" | \"TESTED\" | \"PROVEN\";\n /** The engine, when the rung is PROVEN. */\n readonly engine?: { readonly name: string; readonly version: string };\n readonly counterexample: Counterexample;\n}\n\n/** Proved for every input by a named engine; the lower rungs' evidence is kept beside it. */\nexport interface Proven extends SpecVerdictBase {\n readonly kind: \"PROVEN\";\n readonly engine: { readonly name: string; readonly version: string };\n /** Generated inputs the TESTED rung held on, when it ran. */\n readonly tested?: number;\n /** Distinct inputs the simulator passed that the CHECKED rung held on, when it passed any. */\n readonly checked?: number;\n}\n\n/** Two engines disagree: one proves, one refutes. Never resolved automatically. */\nexport interface Conflict extends SpecVerdictBase {\n readonly kind: \"CONFLICT\";\n readonly proven: { readonly name: string; readonly version: string };\n readonly refuted: {\n readonly name: string;\n readonly version: string;\n readonly counterexample?: Counterexample;\n };\n}\n\nexport type SpecUnknownCause = \"gave_up\" | \"unsupported\" | \"unavailable\";\n\nexport interface SpecUnknown extends SpecVerdictBase {\n readonly kind: \"UNKNOWN\";\n readonly cause: SpecUnknownCause;\n readonly reason: string;\n}\n\nexport type SpecVerdict = Checked | Tested | Proven | Refuted | Conflict | SpecUnknown;\n\n/** One line per spec verdict, for error messages; full rendering lives in `report`. */\nexport function describeSpecVerdict(v: SpecVerdict): string {\n const what = `${v.function} ${v.property}`;\n switch (v.kind) {\n case \"CHECKED\":\n return `CHECKED ${what}: held on ${v.inputs} input(s) the simulator passed`;\n case \"TESTED\":\n return `TESTED ${what}: held on ${v.inputs} generated input(s)`;\n case \"PROVEN\":\n return `PROVEN ${what}: by ${v.engine.name} ${v.engine.version}`;\n case \"CONFLICT\":\n return `CONFLICT ${what}: ${v.proven.name} proves it, ${v.refuted.name} refutes it`;\n case \"REFUTED\": {\n const c = v.counterexample;\n const where = c.call ?? c.binders.map((b) => `${b.name} = ${b.value}`).join(\", \");\n return `REFUTED ${what}: ${where}${c.error ? ` threw ${c.error}` : \"\"}`;\n }\n case \"UNKNOWN\":\n return `UNKNOWN ${what}: ${v.cause}: ${v.reason}`;\n }\n}\n","/**\n * Print SpecIR back as Lemma, canonically: glyph connectives, binders with\n * the same domain and guard grouped, and parentheses only where precedence\n * or a root-level material implication needs them. Parsing what it prints\n * gives the same IR.\n */\n\nimport type { Binder, Formula, Guard, Property } from \"./ir.ts\";\n\nconst precedence: { readonly [k in Formula[\"kind\"]]: number } = {\n iff: 1,\n implies: 2,\n or: 3,\n and: 4,\n not: 5,\n atom: 6,\n equation: 6,\n};\n\nfunction guardText(g: Guard): string {\n if (g.kind === \"regex\") return `/${g.pattern}/${g.flags}`;\n return `${g.lower.inclusive ? \"[\" : \"(\"}${g.lower.value}, ${g.upper.value}${g.upper.inclusive ? \"]\" : \")\"}`;\n}\n\nfunction sameGroup(a: Binder, b: Binder): boolean {\n return (\n a.domain === b.domain &&\n (a.guard === undefined) === (b.guard === undefined) &&\n (a.guard === undefined || (b.guard !== undefined && guardText(a.guard) === guardText(b.guard)))\n );\n}\n\nfunction prefixText(binders: readonly Binder[]): string {\n const groups: Binder[][] = [];\n for (const b of binders) {\n const last = groups[groups.length - 1];\n if (last && sameGroup(last[0] as Binder, b)) last.push(b);\n else groups.push([b]);\n }\n const text = groups.map((g) => {\n const head = g[0] as Binder;\n const guard = head.guard ? ` ∈ ${guardText(head.guard)}` : \"\";\n return `(${g.map((b) => b.name).join(\" \")}: ${head.domain}${guard})`;\n });\n return `forall ${text.join(\" \")}`;\n}\n\n/** Print a formula, parenthesized when its precedence is below `min`. */\nexport function printFormula(f: Formula, min = 0): string {\n let s: string;\n switch (f.kind) {\n case \"atom\":\n s = f.text;\n break;\n case \"equation\":\n s = `${f.left} ${f.negated ? \"≢\" : \"≡\"} ${f.right}`;\n break;\n case \"not\":\n s = `¬${printFormula(f.operand, precedence.not)}`;\n break;\n case \"and\":\n case \"or\":\n s = f.operands\n .map((o) => printFormula(o, precedence[f.kind] + 1))\n .join(f.kind === \"and\" ? \" ∧ \" : \" ∨ \");\n break;\n case \"implies\":\n s = [...f.antecedents, f.consequent].map((o) => printFormula(o, precedence.or)).join(\" → \");\n break;\n case \"iff\":\n s = `${printFormula(f.left, precedence.implies)} ↔ ${printFormula(f.right, precedence.implies)}`;\n break;\n }\n return precedence[f.kind] < min ? `(${s})` : s;\n}\n\n/** The property as Lemma text (what follows `@ensures{name}`). */\nexport function printProperty(p: Property): string {\n // A root implication is the preconditions; a material one there needs its parentheses.\n const body =\n p.requires.length > 0\n ? [...p.requires, p.claim].map((f) => printFormula(f, precedence.or)).join(\" → \")\n : printFormula(p.claim, p.claim.kind === \"implies\" ? precedence.or : 0);\n return `${prefixText(p.binders)} { ${body} }`;\n}\n"],"mappings":";;;;AA2FA,SAAgB,oBAAoB,GAAwB;CAC1D,MAAM,OAAO,GAAG,EAAE,SAAS,GAAG,EAAE;CAChC,QAAQ,EAAE,MAAV;EACE,KAAK,WACH,OAAO,WAAW,KAAK,YAAY,EAAE,OAAO;EAC9C,KAAK,UACH,OAAO,UAAU,KAAK,YAAY,EAAE,OAAO;EAC7C,KAAK,UACH,OAAO,UAAU,KAAK,OAAO,EAAE,OAAO,KAAK,GAAG,EAAE,OAAO;EACzD,KAAK,YACH,OAAO,YAAY,KAAK,IAAI,EAAE,OAAO,KAAK,cAAc,EAAE,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ts: what is known about one property of one pure function.\n * Kept apart from scenario verdicts in every report. The ladder runs\n * `CHECKED` (held on every input the simulator passed), then `TESTED` (held\n * on inputs generated from the binders' domains), then `PROVEN` (an engine\n * proved it for every input); `CONFLICT` when engines disagree.\n */\n\ninterface SpecVerdictBase {\n /** The module, as the scenario names it. */\n readonly module: string;\n readonly function: string;\n /** The property's export name in the spec file. */\n readonly property: string;\n /** The property as written. */\n readonly text: string;\n readonly assumptions: readonly string[];\n}\n\nexport interface Checked extends SpecVerdictBase {\n readonly kind: \"CHECKED\";\n /** Distinct inputs the property was evaluated on. */\n readonly inputs: number;\n /** Distinct inputs outside the claim: a precondition failed, or a value fell outside its binder's domain. */\n readonly discarded: number;\n}\n\n/** The property held on inputs generated from its binders' domains, and on the simulator's where it passed any. */\nexport interface Tested extends SpecVerdictBase {\n readonly kind: \"TESTED\";\n /** Generated assignments the property held on. */\n readonly inputs: number;\n /** Generated assignments outside the claim: a precondition failed. */\n readonly discarded: number;\n /** The seed the assignments were drawn from; the same seed draws the same assignments. */\n readonly seed: string;\n /** Distinct inputs the simulator passed that the property also held on, when it passed any. */\n readonly checked?: number;\n}\n\n/** One assignment that breaks the property, as JavaScript literals, and where it came from. */\nexport interface Counterexample {\n /** In the property's binder order. */\n readonly binders: readonly { readonly name: string; readonly value: string }[];\n /** The simulator's call the assignment was taken from; absent when it was generated. */\n readonly call?: string;\n /** Set when evaluating the property threw instead of returning false. */\n readonly error?: string;\n}\n\nexport interface Refuted extends SpecVerdictBase {\n readonly kind: \"REFUTED\";\n /** The rung that found the counterexample: a rung of the simulator, or an engine by name. */\n readonly rung: \"CHECKED\" | \"TESTED\" | \"PROVEN\";\n /** The engine, when the rung is PROVEN. */\n readonly engine?: { readonly name: string; readonly version: string };\n readonly counterexample: Counterexample;\n}\n\n/** Proved for every input by a named engine; the lower rungs' evidence is kept beside it. */\nexport interface Proven extends SpecVerdictBase {\n readonly kind: \"PROVEN\";\n readonly engine: { readonly name: string; readonly version: string };\n /** Generated inputs the TESTED rung held on, when it ran. */\n readonly tested?: number;\n /** Distinct inputs the simulator passed that the CHECKED rung held on, when it passed any. */\n readonly checked?: number;\n}\n\n/** Two engines disagree: one proves, one refutes. Never resolved automatically. */\nexport interface Conflict extends SpecVerdictBase {\n readonly kind: \"CONFLICT\";\n readonly proven: { readonly name: string; readonly version: string };\n readonly refuted: {\n readonly name: string;\n readonly version: string;\n readonly counterexample?: Counterexample;\n };\n}\n\nexport type SpecUnknownCause = \"gave_up\" | \"unsupported\" | \"unavailable\";\n\nexport interface SpecUnknown extends SpecVerdictBase {\n readonly kind: \"UNKNOWN\";\n readonly cause: SpecUnknownCause;\n readonly reason: string;\n}\n\nexport type SpecVerdict = Checked | Tested | Proven | Refuted | Conflict | SpecUnknown;\n\n/** One line per spec verdict, for error messages; full rendering lives in `report`. */\nexport function describeSpecVerdict(v: SpecVerdict): string {\n const what = `${v.function} ${v.property}`;\n switch (v.kind) {\n case \"CHECKED\":\n return `CHECKED ${what}: held on ${v.inputs} input(s) the simulator passed`;\n case \"TESTED\":\n return `TESTED ${what}: held on ${v.inputs} generated input(s)`;\n case \"PROVEN\":\n return `PROVEN ${what}: by ${v.engine.name} ${v.engine.version}`;\n case \"CONFLICT\":\n return `CONFLICT ${what}: ${v.proven.name} proves it, ${v.refuted.name} refutes it`;\n case \"REFUTED\": {\n const c = v.counterexample;\n const where = c.call ?? c.binders.map((b) => `${b.name} = ${b.value}`).join(\", \");\n return `REFUTED ${what}: ${where}${c.error ? ` threw ${c.error}` : \"\"}`;\n }\n case \"UNKNOWN\":\n return `UNKNOWN ${what}: ${v.cause}: ${v.reason}`;\n }\n}\n"],"mappings":";;;;AA2FA,SAAgB,oBAAoB,GAAwB;CAC1D,MAAM,OAAO,GAAG,EAAE,SAAS,GAAG,EAAE;CAChC,QAAQ,EAAE,MAAV;EACE,KAAK,WACH,OAAO,WAAW,KAAK,YAAY,EAAE,OAAO;EAC9C,KAAK,UACH,OAAO,UAAU,KAAK,YAAY,EAAE,OAAO;EAC7C,KAAK,UACH,OAAO,UAAU,KAAK,OAAO,EAAE,OAAO,KAAK,GAAG,EAAE,OAAO;EACzD,KAAK,YACH,OAAO,YAAY,KAAK,IAAI,EAAE,OAAO,KAAK,cAAc,EAAE,QAAQ,KAAK;EACzE,KAAK,WAAW;GACd,MAAM,IAAI,EAAE;GAEZ,OAAO,WAAW,KAAK,IADT,EAAE,QAAQ,EAAE,QAAQ,KAAK,MAAM,GAAG,EAAE,KAAK,KAAK,EAAE,OAAO,CAAC,CAAC,KAAK,IAAI,IAC7C,EAAE,QAAQ,UAAU,EAAE,UAAU;EACrE;EACA,KAAK,WACH,OAAO,WAAW,KAAK,IAAI,EAAE,MAAM,IAAI,EAAE;CAC7C;AACF"}
|
|
@@ -260,9 +260,11 @@ interface ScenarioSpec {
|
|
|
260
260
|
readonly invariants: readonly Invariant[];
|
|
261
261
|
readonly bounds: Bounds;
|
|
262
262
|
/**
|
|
263
|
-
* Modules of pure core functions with
|
|
264
|
-
*
|
|
265
|
-
*
|
|
263
|
+
* Modules of pure core functions with specs, relative to the scenario;
|
|
264
|
+
* each module's specs are in the spec file beside it (`domain.ts` has
|
|
265
|
+
* `domain.props.ts`). Calls to the functions with specs are recorded as
|
|
266
|
+
* decisions during exploration, and each property is checked on the
|
|
267
|
+
* inputs seen.
|
|
266
268
|
*/
|
|
267
269
|
readonly specs?: readonly string[];
|
|
268
270
|
}
|
|
@@ -403,4 +405,4 @@ interface Platform {
|
|
|
403
405
|
cleanup?(spec: ScenarioSpec): Promise<void>;
|
|
404
406
|
}
|
|
405
407
|
export { StateQuery as C, EffectLog as D, EffectSelector as E, EffectRecord as O, RowCondition as S, Refines as T, checkInvariant as _, PlatformData as a, Implies as b, WorkerRef as c, FaultKind as d, Schedule as f, Violation as g, Invariant as h, ExternalDecl as i, JsonValue as k, validateScenario as l, AtMostOncePerKey as m, Platform as n, ScenarioSpec as o, AtLeastOnce as p, Bounds as r, ScriptedResponse as s, EventRef as t, FaultDecision as u, checkInvariants as v, Unique as w, References as x, EveryRow as y };
|
|
406
|
-
//# sourceMappingURL=platform-
|
|
408
|
+
//# sourceMappingURL=platform-Bpnav0kn.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-
|
|
1
|
+
{"version":3,"file":"platform-Bpnav0kn.d.mts","names":[],"sources":["../../core/src/canonical-json.ts","../../core/src/effect-log.ts","../../core/src/selectors.ts","../../core/src/refines.ts","../../core/src/state.ts","../../core/src/invariants.ts","../../core/src/faults.ts","../../core/src/scenario.ts","../../core/src/platform.ts"],"mappings":";;;;;KAMY,wDAKC;YACG,cAAc;;;KCDlB;UAEK;;WAEN;WACA,MAAM;;WAEN;;WAEA;;WAEA;;WAEA,SAAS;;UAGH;WACN,kBAAkB;;;UCtBZ;WACN;WACA;WACA,OAAO;;WAEP;cAAoB,eAAe;;;WAEnC;cAAsB;;;;;;;;;;;;;;UCYhB;WACN;WACA;;WAEA;WACA,QAAQ;WACR;aAA8B;aAAyB;;WACvD;aACE,MAAM;aACN,OAAO;;aAEP;;;;KC5BD;WACG;WAAyB;WAA2B,OAAO;;WAC3D;WAAyB;WAA0C;;WACnE;WAAyB;WAAmB,gBAAgB;;WAC5D;WAAyB;;;UAGvB;;WAEN;WACA;WACA,iBAAiB;;;UAIX;WACN;WACA;WACA,OAAO;WACP,gBAAgB;;;;;;;UAQV;WACN;WACA;WACA,MAAM;;WAEN;WACA,OAAO;WACP;;;;;;;;UASM;WACN;WACA;WACA,OAAO;WACP;;;;;;;;UASM;WACN;WACA;WACA,OAAO;WACP;WACA,IAAI;WACJ;;;UChDM;WACN;WACA;WACA,QAAQ;;WAER;;;UAIM;WACN;WACA;WACA,QAAQ;WACR;WACA,mBAAmB;;WAEnB;aAAwB;;;KAoBvB,YACR,mBACA,cACA,WACA,UACA,SACA,aACA;UAEa;WACN;WACA;;WAEA;;WAEA;;iBAYK,eAAe,KAAK,WAAW,KAAK,YAAY;iBAiDhD,gBACd,KAAK,WACL,q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