eutaxy 0.18.0 → 0.19.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.
Files changed (74) hide show
  1. package/README.md +15 -12
  2. package/dist/aws.d.mts +2 -2
  3. package/dist/aws.mjs +3 -2
  4. package/dist/aws.mjs.map +1 -1
  5. package/dist/bin.mjs +1 -1
  6. package/dist/check-zkHLdWyf.mjs +1281 -0
  7. package/dist/check-zkHLdWyf.mjs.map +1 -0
  8. package/dist/cli-CNAKqV9R.mjs +297 -0
  9. package/dist/cli-CNAKqV9R.mjs.map +1 -0
  10. package/dist/cli.d.mts.map +1 -1
  11. package/dist/cli.mjs +1 -1
  12. package/dist/cloudflare.d.mts +37 -5
  13. package/dist/cloudflare.d.mts.map +1 -1
  14. package/dist/cloudflare.mjs +6417 -3
  15. package/dist/cloudflare.mjs.map +1 -0
  16. package/dist/{delivery-invariants-BRwfZJrs.mjs → delivery-invariants-BJDck0K8.mjs} +2 -2
  17. package/dist/{delivery-invariants-BRwfZJrs.mjs.map → delivery-invariants-BJDck0K8.mjs.map} +1 -1
  18. package/dist/{delivery-invariants-D-_GPOqE.d.mts → delivery-invariants-C3GXJIbg.d.mts} +2 -2
  19. package/dist/{delivery-invariants-D-_GPOqE.d.mts.map → delivery-invariants-C3GXJIbg.d.mts.map} +1 -1
  20. package/dist/draft-DEUDffHa.mjs +467 -0
  21. package/dist/draft-DEUDffHa.mjs.map +1 -0
  22. package/dist/{src-H1Q8ytEx.mjs → generate-TBJM3-2P.mjs} +3 -618
  23. package/dist/generate-TBJM3-2P.mjs.map +1 -0
  24. package/dist/index.d.mts +36 -36
  25. package/dist/index.d.mts.map +1 -1
  26. package/dist/index.mjs +6 -3
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/install-DkzpGA5D.mjs +611 -0
  29. package/dist/install-DkzpGA5D.mjs.map +1 -0
  30. package/dist/{explore-D33RP9hF.d.mts → ir-KpC2epGn.d.mts} +70 -70
  31. package/dist/ir-KpC2epGn.d.mts.map +1 -0
  32. package/dist/keys-xtanNmuR.mjs +111 -0
  33. package/dist/keys-xtanNmuR.mjs.map +1 -0
  34. package/dist/mcp-B64Ko6y7.mjs +539 -0
  35. package/dist/mcp-B64Ko6y7.mjs.map +1 -0
  36. package/dist/{platform-CawKCUru.d.mts → platform-Cs9V9t2k.d.mts} +25 -11
  37. package/dist/platform-Cs9V9t2k.d.mts.map +1 -0
  38. package/dist/pool-CXN4CwGY.mjs +61 -0
  39. package/dist/pool-CXN4CwGY.mjs.map +1 -0
  40. package/dist/{provers-DS44OeEm.mjs → provers-D8VaY_OM.mjs} +18 -2
  41. package/dist/provers-D8VaY_OM.mjs.map +1 -0
  42. package/dist/reader-B9FSoEYW.mjs +1 -0
  43. package/dist/reader-Cz6_bLf6.mjs +3774 -0
  44. package/dist/reader-Cz6_bLf6.mjs.map +1 -0
  45. package/dist/report-_Vzavqg0.mjs +310 -0
  46. package/dist/report-_Vzavqg0.mjs.map +1 -0
  47. package/dist/src-B2DpVbMN.mjs +2 -0
  48. package/dist/src-BFGTvuA_.mjs +1235 -0
  49. package/dist/src-BFGTvuA_.mjs.map +1 -0
  50. package/dist/src-BtLZPRyG.mjs +120 -0
  51. package/dist/src-BtLZPRyG.mjs.map +1 -0
  52. package/dist/src-CB8DcvsK.mjs +1 -0
  53. package/dist/src-COuquJvI.mjs +269 -0
  54. package/dist/src-COuquJvI.mjs.map +1 -0
  55. package/dist/src-Chn-m_r1.mjs +1082 -0
  56. package/dist/src-Chn-m_r1.mjs.map +1 -0
  57. package/dist/src-DwYD3QQJ.mjs +346 -0
  58. package/dist/src-DwYD3QQJ.mjs.map +1 -0
  59. package/dist/{src-Whn0RMSh.mjs → src-Dx4QvrQb.mjs} +559 -517
  60. package/dist/src-Dx4QvrQb.mjs.map +1 -0
  61. package/dist/toolchain-DWfymxAJ.mjs +80 -0
  62. package/dist/toolchain-DWfymxAJ.mjs.map +1 -0
  63. package/dist/verdict-evEM5Gxx.mjs +12 -0
  64. package/dist/verdict-evEM5Gxx.mjs.map +1 -0
  65. package/package.json +4 -1
  66. package/dist/cli-DyA7uTBg.mjs +0 -9447
  67. package/dist/cli-DyA7uTBg.mjs.map +0 -1
  68. package/dist/explore-D33RP9hF.d.mts.map +0 -1
  69. package/dist/platform-CawKCUru.d.mts.map +0 -1
  70. package/dist/provers-DS44OeEm.mjs.map +0 -1
  71. package/dist/src-H1Q8ytEx.mjs.map +0 -1
  72. package/dist/src-Whn0RMSh.mjs.map +0 -1
  73. package/dist/workerd-tI8INa6v.mjs +0 -6334
  74. package/dist/workerd-tI8INa6v.mjs.map +0 -1
@@ -0,0 +1,310 @@
1
+ import { o as canonicalJson } from "./src-BtLZPRyG.mjs";
2
+ import { t as checkSpecModule } from "./src-DwYD3QQJ.mjs";
3
+ import { n as inWindow } from "./pool-CXN4CwGY.mjs";
4
+ import { n as renderSpecReport, r as renderSpecReportJson } from "./src-COuquJvI.mjs";
5
+ import { g as resolveAsTypeScript, i as proveSpecs, n as exitCodes, s as findSpecModules, t as enginesNamed } from "./check-zkHLdWyf.mjs";
6
+ import { l as renderGoals, r as leanProver, s as goalFileFor } from "./src-BFGTvuA_.mjs";
7
+ import { createHash } from "node:crypto";
8
+ import { closeSync, mkdtempSync, openSync, readFileSync, readSync, rmSync, writeFileSync, writeSync } from "node:fs";
9
+ import { availableParallelism, tmpdir } from "node:os";
10
+ import { basename, join, relative, resolve } from "node:path";
11
+ import { fork } from "node:child_process";
12
+ import { fileURLToPath, pathToFileURL } from "node:url";
13
+ import { StringDecoder } from "node:string_decoder";
14
+ // packages/cli/src/held-output.ts
15
+ /**
16
+ * What a module running ahead of its turn writes, held until its turn:
17
+ * in memory up to a limit, then in a file, so a module that writes a lot
18
+ * while an earlier one is still running cannot exhaust the report's heap.
19
+ * Drained, it gives back exactly the text it was given, in order.
20
+ */
21
+ var HeldOutput = class {
22
+ #limit;
23
+ #readBytes;
24
+ #chunks = [];
25
+ #bytes = 0;
26
+ #dir;
27
+ #fd;
28
+ /** `limitBytes` is held in memory; past it, everything goes to a file, read back `readBytes` at a time. */
29
+ constructor(limitBytes = 1 << 20, readBytes = 65536) {
30
+ this.#limit = limitBytes;
31
+ this.#readBytes = readBytes;
32
+ }
33
+ /** Whether the text held so far went past the limit into a file. */
34
+ get spilled() {
35
+ return this.#fd !== void 0;
36
+ }
37
+ push(text) {
38
+ const bytes = Buffer.byteLength(text);
39
+ if (this.#fd === void 0 && this.#bytes + bytes <= this.#limit) {
40
+ this.#chunks.push(text);
41
+ this.#bytes += bytes;
42
+ return;
43
+ }
44
+ if (this.#fd === void 0) {
45
+ this.#dir = mkdtempSync(join(tmpdir(), "eutaxy-report-"));
46
+ this.#fd = openSync(join(this.#dir, "held"), "w+");
47
+ }
48
+ writeSync(this.#fd, text);
49
+ }
50
+ /** Everything held, in order, to `out`; then nothing is held and the file is gone. */
51
+ drain(out) {
52
+ for (const text of this.#chunks) out(text);
53
+ this.#chunks = [];
54
+ this.#bytes = 0;
55
+ if (this.#fd === void 0) return;
56
+ try {
57
+ const decoder = new StringDecoder("utf8");
58
+ const buffer = Buffer.alloc(this.#readBytes);
59
+ for (let at = 0;;) {
60
+ const n = readSync(this.#fd, buffer, 0, buffer.length, at);
61
+ if (n === 0) break;
62
+ at += n;
63
+ const text = decoder.write(buffer.subarray(0, n));
64
+ if (text !== "") out(text);
65
+ }
66
+ const rest = decoder.end();
67
+ if (rest !== "") out(rest);
68
+ } finally {
69
+ this.discard();
70
+ }
71
+ }
72
+ /** Drop the file, if any. */
73
+ discard() {
74
+ if (this.#fd !== void 0) closeSync(this.#fd);
75
+ if (this.#dir !== void 0) rmSync(this.#dir, {
76
+ recursive: true,
77
+ force: true
78
+ });
79
+ this.#fd = void 0;
80
+ this.#dir = void 0;
81
+ }
82
+ };
83
+ // packages/cli/src/report.ts
84
+ /**
85
+ * `eutaxy report [dir]`: every spec file under a directory through the
86
+ * ladder, on the Node side. No scenario runs, so the ladder starts at
87
+ * `TESTED` (inputs drawn from the parameter types); `--prover` adds the
88
+ * `PROVEN` rung. Each module runs in a child process of its own, started
89
+ * on this file: what the module prints goes to stderr, its state starts
90
+ * fresh, and a property that never returns ends with the module's budget.
91
+ * A process, not a worker thread: Node strips types with WebAssembly, and
92
+ * V8 shares compiled wasm code between the threads of a process; V8 on
93
+ * Node 24 can abort while one thread frees that code as another uses it
94
+ * (seen as SIGSEGV, SIGBUS or SIGTRAP of the whole process).
95
+ * A module that only loads inside workerd gets `UNKNOWN` until an engine
96
+ * reads it.
97
+ */
98
+ /** The argument a module's process is started with, so this file knows to run it. */
99
+ const moduleFlag = "--eutaxy-report-module";
100
+ function unknownAll(m, cause, reason) {
101
+ return m.specs.functions.flatMap((fn) => fn.properties.map((p) => ({
102
+ module: m.key,
103
+ function: fn.name,
104
+ property: p.name,
105
+ text: p.text,
106
+ kind: "UNKNOWN",
107
+ cause,
108
+ reason,
109
+ assumptions: []
110
+ })));
111
+ }
112
+ /** Inside the module's process: load the module and its spec file, run the `TESTED` rung. */
113
+ async function testHere(m, seed) {
114
+ resolveAsTypeScript();
115
+ let namespace;
116
+ let props;
117
+ try {
118
+ namespace = await import(pathToFileURL(m.path).href);
119
+ props = await import(pathToFileURL(m.specPath).href);
120
+ } catch (err) {
121
+ return unknownAll(m, "unavailable", `the module or its spec file did not load in Node: ${err instanceof Error ? err.message : String(err)}`);
122
+ }
123
+ return checkSpecModule(m.key, m.specs, props, namespace, {
124
+ calls: [],
125
+ unobservable: {}
126
+ }, {
127
+ checked: false,
128
+ tested: { seed }
129
+ });
130
+ }
131
+ const send = process.send?.bind(process);
132
+ if (process.argv[2] === moduleFlag && send) {
133
+ process.once("disconnect", () => process.exit(0));
134
+ process.once("message", async (input) => {
135
+ const verdicts = await testHere(input.module, input.seed);
136
+ send({
137
+ kind: "eutaxy-report-verdicts",
138
+ verdicts
139
+ }, () => process.stdout.write("", () => process.stderr.write("", () => process.exit(0))));
140
+ });
141
+ }
142
+ /**
143
+ * One module's verdicts at the `TESTED` rung, from a child process. What
144
+ * the module writes goes to `stderr`; a module that does not load, or does
145
+ * not finish within the budget, leaves each property `UNKNOWN`.
146
+ */
147
+ function testModule(m, seed, budgetMs, stderr) {
148
+ return new Promise((done) => {
149
+ const child = fork(fileURLToPath(import.meta.url), [moduleFlag], {
150
+ stdio: [
151
+ "ignore",
152
+ "pipe",
153
+ "pipe",
154
+ "ipc"
155
+ ],
156
+ serialization: "advanced"
157
+ });
158
+ child.stdout?.on("data", (d) => stderr(d.toString()));
159
+ child.stderr?.on("data", (d) => stderr(d.toString()));
160
+ let reported;
161
+ let ended;
162
+ let settled = false;
163
+ const settle = (verdicts) => {
164
+ if (settled) return;
165
+ settled = true;
166
+ clearTimeout(timer);
167
+ done(verdicts);
168
+ };
169
+ const timer = setTimeout(() => {
170
+ ended = unknownAll(m, "gave_up", `the module's properties did not finish within ${budgetMs} ms on generated inputs (one may never return)`);
171
+ child.kill("SIGKILL");
172
+ child.stdout?.destroy();
173
+ child.stderr?.destroy();
174
+ }, budgetMs);
175
+ child.on("message", (message) => {
176
+ if (message?.kind === "eutaxy-report-verdicts" && Array.isArray(message.verdicts)) reported ??= message.verdicts;
177
+ });
178
+ child.once("error", (err) => {
179
+ ended ??= unknownAll(m, "unavailable", `the module's process failed: ${err.message}`);
180
+ if (child.pid === void 0) settle(ended);
181
+ else child.kill("SIGKILL");
182
+ });
183
+ child.once("close", (code, signal) => {
184
+ settle(reported ?? ended ?? unknownAll(m, "unavailable", `the module's process exited (${signal ?? code}) before reporting`));
185
+ });
186
+ child.send({
187
+ module: m,
188
+ seed
189
+ });
190
+ });
191
+ }
192
+ /**
193
+ * Every module's verdicts, a few modules' processes at a time. The verdicts
194
+ * come back in module order, and what each module writes reaches `stderr`
195
+ * in module order too: a module's output is held until every module before
196
+ * it has finished (in memory up to a limit, then in a file), so the report
197
+ * reads as if they ran one after another. No module starts eight or more
198
+ * places past the earliest unfinished one, so at most seven modules' output
199
+ * is held at once.
200
+ */
201
+ async function testModules(modules, seed, budgetMs, stderr) {
202
+ const held = modules.map(() => new HeldOutput());
203
+ const finished = modules.map(() => false);
204
+ let current = 0;
205
+ try {
206
+ return await inWindow(modules, Math.min(8, availableParallelism()), async (m, i) => {
207
+ const verdicts = await testModule(m, seed, budgetMs, (text) => {
208
+ if (i === current) stderr(text);
209
+ else held[i]?.push(text);
210
+ });
211
+ finished[i] = true;
212
+ while (finished[current]) {
213
+ current++;
214
+ held[current]?.drain(stderr);
215
+ }
216
+ return verdicts;
217
+ });
218
+ } finally {
219
+ for (const h of held) h.discard();
220
+ }
221
+ }
222
+ /**
223
+ * Write a module's open Lean goals beside its spec file as
224
+ * `<spec>.goals.lean`, a proof file with every proof open, and list them.
225
+ * No open goal removes a goal file left from an earlier run.
226
+ */
227
+ function writeGoals(m, goals, cwd) {
228
+ const path = goalFileFor(m.specPath);
229
+ if (goals.length === 0) {
230
+ rmSync(path, { force: true });
231
+ return [];
232
+ }
233
+ const sha = (text) => createHash("sha256").update(text).digest("hex");
234
+ writeFileSync(path, renderGoals({
235
+ specFile: basename(m.specPath),
236
+ sourceSha256: sha(readFileSync(m.path, "utf8")),
237
+ specSha256: sha(readFileSync(m.specPath, "utf8")),
238
+ goals
239
+ }));
240
+ const file = relative(cwd, path).split("\\").join("/");
241
+ return goals.map((g) => ({
242
+ module: m.key,
243
+ file,
244
+ ...g
245
+ }));
246
+ }
247
+ async function runReport(o) {
248
+ const root = resolve(o.cwd, o.dir ?? ".");
249
+ let engines = [];
250
+ if (o.provers && o.provers.length > 0) {
251
+ const named = await enginesNamed(o.provers);
252
+ if ("error" in named) {
253
+ o.stderr(`${named.error}\n`);
254
+ return exitCodes.error;
255
+ }
256
+ engines = named.engines;
257
+ }
258
+ let modules;
259
+ try {
260
+ modules = await findSpecModules(root);
261
+ } catch (err) {
262
+ o.stderr(`cannot read ${root}: ${err instanceof Error ? err.message : String(err)}\n`);
263
+ return exitCodes.error;
264
+ }
265
+ if (o.only !== void 0) {
266
+ const spec = resolve(o.cwd, o.only);
267
+ modules = modules.filter((m) => m.specPath === spec);
268
+ if (modules.length === 0) {
269
+ o.stderr(`no spec file ${spec} under ${root}\n`);
270
+ return exitCodes.error;
271
+ }
272
+ }
273
+ if (modules.length === 0) {
274
+ o.stderr(`no spec files (*.props.ts) under ${root}\n`);
275
+ return exitCodes.error;
276
+ }
277
+ if (o.goals && !engines.some((e) => e.name === leanProver.name)) {
278
+ o.stderr("--goals needs the lean engine among --prover\n");
279
+ return exitCodes.error;
280
+ }
281
+ const errors = modules.flatMap((m) => m.specs.errors.map((e) => `${m.key}${e.line > 0 ? `:${e.line}` : ""}: ${e.message}`));
282
+ if (errors.length > 0) {
283
+ for (const e of errors) o.stderr(`${e}\n`);
284
+ return exitCodes.error;
285
+ }
286
+ let specs = (await testModules(modules, o.seed ?? "report", o.moduleBudgetMs ?? 6e4, o.stderr)).flat();
287
+ const goals = [];
288
+ if (engines.length > 0) specs = await proveSpecs(root, modules.map((m) => ({
289
+ module: m.key,
290
+ functions: m.specs.functions.map((f) => f.name)
291
+ })), specs, engines, modules, o.goals ? (m, report) => {
292
+ if (report.engine !== leanProver.name) return;
293
+ if (report.proofs.goals === void 0) return;
294
+ goals.push(...writeGoals(m, report.proofs.goals, o.cwd));
295
+ } : void 0);
296
+ if (o.json) {
297
+ const json = JSON.parse(renderSpecReportJson(specs));
298
+ o.stdout(`${canonicalJson({
299
+ ...json,
300
+ ...o.goals ? { goals } : {}
301
+ })}\n`);
302
+ } else {
303
+ o.stdout(`${renderSpecReport(specs)}\n`);
304
+ if (o.goals) o.stdout(goals.length === 0 ? "\nNo open Lean goals.\n" : `\n${goals.length} open Lean goal${goals.length === 1 ? "" : "s"} written to ${[...new Set(goals.map((g) => g.file))].join(", ")}\n`);
305
+ }
306
+ return specs.some((v) => v.kind === "REFUTED" || v.kind === "CONFLICT") ? exitCodes.VIOLATED : exitCodes.BOUNDED;
307
+ }
308
+ export { runReport, testModule, testModules };
309
+
310
+ //# sourceMappingURL=report-_Vzavqg0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"report-_Vzavqg0.mjs","names":[],"sources":["../../cli/src/held-output.ts","../../cli/src/report.ts"],"sourcesContent":["/**\n * What a module running ahead of its turn writes, held until its turn:\n * in memory up to a limit, then in a file, so a module that writes a lot\n * while an earlier one is still running cannot exhaust the report's heap.\n * Drained, it gives back exactly the text it was given, in order.\n */\nimport { closeSync, mkdtempSync, openSync, readSync, rmSync, writeSync } from \"node:fs\";\nimport { tmpdir } from \"node:os\";\nimport { join } from \"node:path\";\nimport { StringDecoder } from \"node:string_decoder\";\n\nexport class HeldOutput {\n readonly #limit: number;\n readonly #readBytes: number;\n #chunks: string[] = [];\n #bytes = 0;\n #dir: string | undefined;\n #fd: number | undefined;\n\n /** `limitBytes` is held in memory; past it, everything goes to a file, read back `readBytes` at a time. */\n constructor(limitBytes = 1 << 20, readBytes = 1 << 16) {\n this.#limit = limitBytes;\n this.#readBytes = readBytes;\n }\n\n /** Whether the text held so far went past the limit into a file. */\n get spilled(): boolean {\n return this.#fd !== undefined;\n }\n\n push(text: string): void {\n const bytes = Buffer.byteLength(text);\n if (this.#fd === undefined && this.#bytes + bytes <= this.#limit) {\n this.#chunks.push(text);\n this.#bytes += bytes;\n return;\n }\n if (this.#fd === undefined) {\n this.#dir = mkdtempSync(join(tmpdir(), \"eutaxy-report-\"));\n this.#fd = openSync(join(this.#dir, \"held\"), \"w+\");\n }\n writeSync(this.#fd, text);\n }\n\n /** Everything held, in order, to `out`; then nothing is held and the file is gone. */\n drain(out: (text: string) => void): void {\n for (const text of this.#chunks) out(text);\n this.#chunks = [];\n this.#bytes = 0;\n if (this.#fd === undefined) return;\n try {\n // A multi-byte character may straddle two reads; the decoder joins it.\n const decoder = new StringDecoder(\"utf8\");\n const buffer = Buffer.alloc(this.#readBytes);\n for (let at = 0; ; ) {\n const n = readSync(this.#fd, buffer, 0, buffer.length, at);\n if (n === 0) break;\n at += n;\n const text = decoder.write(buffer.subarray(0, n));\n if (text !== \"\") out(text);\n }\n const rest = decoder.end();\n if (rest !== \"\") out(rest);\n } finally {\n this.discard();\n }\n }\n\n /** Drop the file, if any. */\n discard(): void {\n if (this.#fd !== undefined) closeSync(this.#fd);\n if (this.#dir !== undefined) rmSync(this.#dir, { recursive: true, force: true });\n this.#fd = undefined;\n this.#dir = undefined;\n }\n}\n","/**\n * `eutaxy report [dir]`: every spec file under a directory through the\n * ladder, on the Node side. No scenario runs, so the ladder starts at\n * `TESTED` (inputs drawn from the parameter types); `--prover` adds the\n * `PROVEN` rung. Each module runs in a child process of its own, started\n * on this file: what the module prints goes to stderr, its state starts\n * fresh, and a property that never returns ends with the module's budget.\n * A process, not a worker thread: Node strips types with WebAssembly, and\n * V8 shares compiled wasm code between the threads of a process; V8 on\n * Node 24 can abort while one thread frees that code as another uses it\n * (seen as SIGSEGV, SIGBUS or SIGTRAP of the whole process).\n * A module that only loads inside workerd gets `UNKNOWN` until an engine\n * reads it.\n */\n\nimport { fork } from \"node:child_process\";\nimport { createHash } from \"node:crypto\";\nimport { readFileSync, rmSync, writeFileSync } from \"node:fs\";\nimport { availableParallelism } from \"node:os\";\nimport { basename, relative, resolve } from \"node:path\";\nimport { fileURLToPath, pathToFileURL } from \"node:url\";\nimport { canonicalJson, type JsonValue, type SpecVerdict } from \"@eutaxy/core\";\nimport { checkSpecModule, inWindow, type OpenGoal, type Prover } from \"@eutaxy/prover\";\nimport { goalFileFor, leanProver, renderGoals } from \"@eutaxy/prover-lean\";\nimport { renderSpecReport, renderSpecReportJson } from \"@eutaxy/report\";\nimport { enginesNamed, exitCodes, proveSpecs } from \"./check.ts\";\nimport { HeldOutput } from \"./held-output.ts\";\nimport { resolveAsTypeScript } from \"./resolve.ts\";\nimport { findSpecModules, type SpecModule } from \"./specs.ts\";\n\nexport interface ReportOptions {\n /** The directory to search for spec files, relative to `cwd`; default `cwd` itself. */\n readonly dir?: string;\n readonly cwd: string;\n /** The seed the `TESTED` rung draws from; default \"report\". */\n readonly seed?: string;\n /** Engines to run the `PROVEN` rung with, by name. */\n readonly provers?: readonly string[];\n /** How long one module's properties may take at `TESTED`; default 60 s. */\n readonly moduleBudgetMs?: number;\n /** Only the module whose spec file this is (a path, relative to `cwd`), for a proof checked on its own. */\n readonly only?: string;\n /** Write each module's open Lean goals beside its spec file (`<spec>.goals.lean`) and list them. */\n readonly goals?: boolean;\n readonly json: boolean;\n readonly stdout: (text: string) => void;\n readonly stderr: (text: string) => void;\n}\n\n/** The argument a module's process is started with, so this file knows to run it. */\nconst moduleFlag = \"--eutaxy-report-module\";\n\ninterface ModuleInput {\n readonly module: SpecModule;\n readonly seed: string;\n}\n\n/** What a module's process sends back; tagged, since the module itself may call `process.send`. */\ninterface ModuleOutput {\n readonly kind: \"eutaxy-report-verdicts\";\n readonly verdicts: SpecVerdict[];\n}\n\nfunction unknownAll(\n m: SpecModule,\n cause: \"gave_up\" | \"unavailable\",\n reason: string,\n): SpecVerdict[] {\n return m.specs.functions.flatMap((fn) =>\n fn.properties.map(\n (p): SpecVerdict => ({\n module: m.key,\n function: fn.name,\n property: p.name,\n text: p.text,\n kind: \"UNKNOWN\",\n cause,\n reason,\n assumptions: [],\n }),\n ),\n );\n}\n\n/** Inside the module's process: load the module and its spec file, run the `TESTED` rung. */\nasync function testHere(m: SpecModule, seed: string): Promise<SpecVerdict[]> {\n resolveAsTypeScript();\n let namespace: Readonly<Record<string, unknown>>;\n let props: Readonly<Record<string, unknown>>;\n try {\n namespace = (await import(pathToFileURL(m.path).href)) as Record<string, unknown>;\n props = (await import(pathToFileURL(m.specPath).href)) as Record<string, unknown>;\n } catch (err) {\n return unknownAll(\n m,\n \"unavailable\",\n `the module or its spec file did not load in Node: ${err instanceof Error ? err.message : String(err)}`,\n );\n }\n return checkSpecModule(\n m.key,\n m.specs,\n props,\n namespace,\n { calls: [], unobservable: {} },\n { checked: false, tested: { seed } },\n );\n}\n\nconst send = process.send?.bind(process);\nif (process.argv[2] === moduleFlag && send) {\n process.once(\"disconnect\", () => process.exit(0));\n process.once(\"message\", async (input: ModuleInput) => {\n const verdicts = await testHere(input.module, input.seed);\n // Exit once the verdicts and everything the module wrote are out, whatever timers it left.\n send({ kind: \"eutaxy-report-verdicts\", verdicts } satisfies ModuleOutput, () =>\n process.stdout.write(\"\", () => process.stderr.write(\"\", () => process.exit(0))),\n );\n });\n}\n\n/**\n * One module's verdicts at the `TESTED` rung, from a child process. What\n * the module writes goes to `stderr`; a module that does not load, or does\n * not finish within the budget, leaves each property `UNKNOWN`.\n */\nexport function testModule(\n m: SpecModule,\n seed: string,\n budgetMs: number,\n stderr: (text: string) => void,\n): Promise<SpecVerdict[]> {\n return new Promise((done) => {\n const child = fork(fileURLToPath(import.meta.url), [moduleFlag], {\n stdio: [\"ignore\", \"pipe\", \"pipe\", \"ipc\"],\n serialization: \"advanced\",\n });\n child.stdout?.on(\"data\", (d: Buffer) => stderr(d.toString()));\n child.stderr?.on(\"data\", (d: Buffer) => stderr(d.toString()));\n // Settled on `close`, once the process has exited and all it wrote is read; `reported` holds\n // its verdicts if it sent them, and `ended` why it stopped otherwise.\n let reported: SpecVerdict[] | undefined;\n let ended: SpecVerdict[] | undefined;\n let settled = false;\n const settle = (verdicts: SpecVerdict[]) => {\n if (settled) return;\n settled = true;\n clearTimeout(timer);\n done(verdicts);\n };\n const timer = setTimeout(() => {\n ended = unknownAll(\n m,\n \"gave_up\",\n `the module's properties did not finish within ${budgetMs} ms on generated inputs (one may never return)`,\n );\n child.kill(\"SIGKILL\");\n // A process the module started may still hold the pipes open.\n child.stdout?.destroy();\n child.stderr?.destroy();\n }, budgetMs);\n child.on(\"message\", (message: Partial<ModuleOutput> | null) => {\n if (message?.kind === \"eutaxy-report-verdicts\" && Array.isArray(message.verdicts))\n reported ??= message.verdicts;\n });\n child.once(\"error\", (err) => {\n ended ??= unknownAll(m, \"unavailable\", `the module's process failed: ${err.message}`);\n // A process that never started (no pid) emits no `close`.\n if (child.pid === undefined) settle(ended);\n else child.kill(\"SIGKILL\");\n });\n child.once(\"close\", (code, signal) => {\n settle(\n reported ??\n ended ??\n unknownAll(\n m,\n \"unavailable\",\n `the module's process exited (${signal ?? code}) before reporting`,\n ),\n );\n });\n child.send({ module: m, seed } satisfies ModuleInput);\n });\n}\n\n/**\n * Every module's verdicts, a few modules' processes at a time. The verdicts\n * come back in module order, and what each module writes reaches `stderr`\n * in module order too: a module's output is held until every module before\n * it has finished (in memory up to a limit, then in a file), so the report\n * reads as if they ran one after another. No module starts eight or more\n * places past the earliest unfinished one, so at most seven modules' output\n * is held at once.\n */\nexport async function testModules(\n modules: readonly SpecModule[],\n seed: string,\n budgetMs: number,\n stderr: (text: string) => void,\n): Promise<SpecVerdict[][]> {\n const held = modules.map(() => new HeldOutput());\n const finished = modules.map(() => false);\n // The module whose output goes straight through; every later one's is held.\n let current = 0;\n try {\n return await inWindow(modules, Math.min(8, availableParallelism()), async (m, i) => {\n const verdicts = await testModule(m, seed, budgetMs, (text) => {\n if (i === current) stderr(text);\n else held[i]?.push(text);\n });\n finished[i] = true;\n while (finished[current]) {\n current++;\n held[current]?.drain(stderr);\n }\n return verdicts;\n });\n } finally {\n for (const h of held) h.discard();\n }\n}\n\n/** One open goal as the report lists it: where its goal file is, and the goal itself. */\nexport interface WrittenGoal extends OpenGoal {\n readonly module: string;\n /** The goal file, relative to the working directory. */\n readonly file: string;\n}\n\n/**\n * Write a module's open Lean goals beside its spec file as\n * `<spec>.goals.lean`, a proof file with every proof open, and list them.\n * No open goal removes a goal file left from an earlier run.\n */\nfunction writeGoals(m: SpecModule, goals: readonly OpenGoal[], cwd: string): WrittenGoal[] {\n const path = goalFileFor(m.specPath);\n if (goals.length === 0) {\n rmSync(path, { force: true });\n return [];\n }\n const sha = (text: string) => createHash(\"sha256\").update(text).digest(\"hex\");\n writeFileSync(\n path,\n renderGoals({\n specFile: basename(m.specPath),\n sourceSha256: sha(readFileSync(m.path, \"utf8\")),\n specSha256: sha(readFileSync(m.specPath, \"utf8\")),\n goals,\n }),\n );\n const file = relative(cwd, path).split(\"\\\\\").join(\"/\");\n return goals.map((g) => ({ module: m.key, file, ...g }));\n}\n\nexport async function runReport(o: ReportOptions): Promise<number> {\n const root = resolve(o.cwd, o.dir ?? \".\");\n let engines: Prover[] = [];\n if (o.provers && o.provers.length > 0) {\n const named = await enginesNamed(o.provers);\n if (\"error\" in named) {\n o.stderr(`${named.error}\\n`);\n return exitCodes.error;\n }\n engines = named.engines;\n }\n let modules: SpecModule[];\n try {\n modules = await findSpecModules(root);\n } catch (err) {\n o.stderr(`cannot read ${root}: ${err instanceof Error ? err.message : String(err)}\\n`);\n return exitCodes.error;\n }\n if (o.only !== undefined) {\n const spec = resolve(o.cwd, o.only);\n modules = modules.filter((m) => m.specPath === spec);\n if (modules.length === 0) {\n o.stderr(`no spec file ${spec} under ${root}\\n`);\n return exitCodes.error;\n }\n }\n if (modules.length === 0) {\n o.stderr(`no spec files (*.props.ts) under ${root}\\n`);\n return exitCodes.error;\n }\n if (o.goals && !engines.some((e) => e.name === leanProver.name)) {\n o.stderr(\"--goals needs the lean engine among --prover\\n\");\n return exitCodes.error;\n }\n const errors = modules.flatMap((m) =>\n m.specs.errors.map((e) => `${m.key}${e.line > 0 ? `:${e.line}` : \"\"}: ${e.message}`),\n );\n if (errors.length > 0) {\n for (const e of errors) o.stderr(`${e}\\n`);\n return exitCodes.error;\n }\n let specs: readonly SpecVerdict[] = (\n await testModules(modules, o.seed ?? \"report\", o.moduleBudgetMs ?? 60_000, o.stderr)\n ).flat();\n const goals: WrittenGoal[] = [];\n if (engines.length > 0)\n specs = await proveSpecs(\n root,\n modules.map((m) => ({ module: m.key, functions: m.specs.functions.map((f) => f.name) })),\n specs,\n engines,\n modules,\n o.goals\n ? (m, report) => {\n if (report.engine !== leanProver.name) return;\n // An engine that did not answer (not installed, timed out, or the emitted Lean did not\n // compile) lists no goals; a goal file left from an earlier run stands until it answers.\n if (report.proofs.goals === undefined) return;\n goals.push(...writeGoals(m, report.proofs.goals, o.cwd));\n }\n : undefined,\n );\n if (o.json) {\n const json = JSON.parse(renderSpecReportJson(specs)) as Record<string, unknown>;\n o.stdout(\n `${canonicalJson({ ...json, ...(o.goals ? { goals } : {}) } as unknown as JsonValue)}\\n`,\n );\n } else {\n o.stdout(`${renderSpecReport(specs)}\\n`);\n if (o.goals)\n o.stdout(\n goals.length === 0\n ? \"\\nNo open Lean goals.\\n\"\n : `\\n${goals.length} open Lean goal${goals.length === 1 ? \"\" : \"s\"} written to ${[...new Set(goals.map((g) => g.file))].join(\", \")}\\n`,\n );\n }\n // The codes check uses: 1 for a refuted or conflicting spec, 0 otherwise; UNKNOWN fails nothing.\n return specs.some((v) => v.kind === \"REFUTED\" || v.kind === \"CONFLICT\")\n ? exitCodes.VIOLATED\n : exitCodes.BOUNDED;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAWA,IAAa,aAAb,MAAwB;CACtB;CACA;CACA,UAAoB,CAAC;CACrB,SAAS;CACT;CACA;;CAGA,YAAY,aAAa,KAAK,IAAI,YAAY,OAAS;EACrD,KAAK,SAAS;EACd,KAAK,aAAa;CACpB;;CAGA,IAAI,UAAmB;EACrB,OAAO,KAAK,QAAQ,KAAA;CACtB;CAEA,KAAK,MAAoB;EACvB,MAAM,QAAQ,OAAO,WAAW,IAAI;EACpC,IAAI,KAAK,QAAQ,KAAA,KAAa,KAAK,SAAS,SAAS,KAAK,QAAQ;GAChE,KAAK,QAAQ,KAAK,IAAI;GACtB,KAAK,UAAU;GACf;EACF;EACA,IAAI,KAAK,QAAQ,KAAA,GAAW;GAC1B,KAAK,OAAO,YAAY,KAAK,OAAO,GAAG,gBAAgB,CAAC;GACxD,KAAK,MAAM,SAAS,KAAK,KAAK,MAAM,MAAM,GAAG,IAAI;EACnD;EACA,UAAU,KAAK,KAAK,IAAI;CAC1B;;CAGA,MAAM,KAAmC;EACvC,KAAK,MAAM,QAAQ,KAAK,SAAS,IAAI,IAAI;EACzC,KAAK,UAAU,CAAC;EAChB,KAAK,SAAS;EACd,IAAI,KAAK,QAA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