gdp-wired 0.42.0 → 0.44.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 +14 -3
- package/dist/core/cli.d.ts +8 -1
- package/dist/core/cli.js +271 -30
- package/dist/core/counts.d.ts +8 -1
- package/dist/core/counts.js +171 -302
- package/dist/core/data.js +2 -2
- package/dist/core/dsl.js +26 -30
- package/dist/core/effect-prims.d.ts +60 -0
- package/dist/core/effect-prims.js +625 -0
- package/dist/core/effect-schedule.d.ts +103 -0
- package/dist/core/effect-schedule.js +817 -0
- package/dist/core/effect.d.ts +36 -1
- package/dist/core/effect.js +656 -29
- package/dist/core/ex/harness.exs +2 -0
- package/dist/core/exists.d.ts +5 -0
- package/dist/core/exists.js +98 -34
- package/dist/core/extract-c.d.ts +2 -0
- package/dist/core/extract-c.js +5 -3
- package/dist/core/extract-check.d.ts +2 -0
- package/dist/core/extract-check.js +45 -4
- package/dist/core/extract-ex.js +2 -2
- package/dist/core/extract-go-check.js +4 -6
- package/dist/core/extract-go.d.ts +3 -0
- package/dist/core/extract-go.js +4 -4
- package/dist/core/extract-jvm.js +6 -3
- package/dist/core/extract-print.js +9 -2
- package/dist/core/extract-py.js +2 -2
- package/dist/core/extract-rb.js +2 -2
- package/dist/core/extract-read.js +2 -1
- package/dist/core/extract-rs.js +12 -7
- package/dist/core/extract-sol.js +4 -4
- package/dist/core/extract-step.d.ts +18 -0
- package/dist/core/extract-step.js +135 -31
- package/dist/core/extract-swift.js +3 -3
- package/dist/core/extract.d.ts +8 -0
- package/dist/core/extract.js +13 -1
- package/dist/core/infer.d.ts +1 -0
- package/dist/core/infer.js +10 -7
- package/dist/core/jvm/Harness.java +8 -1
- package/dist/core/jvm/Jvm.java +1 -1
- package/dist/core/jvm/KtReader.java +3 -0
- package/dist/core/laws.d.ts +4 -0
- package/dist/core/laws.js +176 -9
- package/dist/core/machine.d.ts +3 -0
- package/dist/core/machine.js +17 -3
- package/dist/core/py/harness.py +64 -19
- package/dist/core/py/reader.py +51 -1
- package/dist/core/sol/Replay.sol +52 -0
- package/dist/core/sol/harness.py +508 -0
- package/dist/core/system.d.ts +44 -0
- package/dist/core/system.js +435 -0
- package/dist/interchange/check.d.ts +18 -1
- package/dist/interchange/check.js +9 -2
- package/dist/interchange/cli.d.ts +2 -0
- package/dist/interchange/cli.js +45 -0
- package/dist/interchange/format.d.ts +1 -1
- package/dist/interchange/format.js +15 -7
- package/dist/kernel/cdcl.js +32 -12
- package/dist/kernel/kernel.js +3 -2
- package/dist/kernel/prove.d.ts +1 -0
- package/dist/kernel/prove.js +69 -8
- package/dist/kernel/reader.js +3 -2
- package/dist/lean-kernel/emit.js +3 -3
- package/dist/lean-kernel/lean-terms.d.ts +1 -0
- package/dist/lean-kernel/lean-terms.js +8 -4
- package/package.json +12 -3
package/dist/core/effect.d.ts
CHANGED
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
import type { Kind, Rule } from './dsl.js';
|
|
2
|
-
import { type Rand } from './machine.js';
|
|
2
|
+
import { type Law, type Rand } from './machine.js';
|
|
3
3
|
import { type Source } from './extract-read.js';
|
|
4
4
|
import { type ExtractOptions, type Extraction } from './extract.js';
|
|
5
|
+
import { type ScheduleRule } from './effect-schedule.js';
|
|
6
|
+
import { type Prim } from './effect-prims.js';
|
|
5
7
|
export { proveRule, proveSteps } from './dsl.js';
|
|
8
|
+
export { jitterRun, replaySchedule, scheduleConforms, stepper } from './effect-schedule.js';
|
|
9
|
+
export { primitiveConforms, primitiveLaws, primitiveRule } from './effect-prims.js';
|
|
6
10
|
type Mod = Record<string, any>;
|
|
7
11
|
export type EffectOptions = Omit<ExtractOptions, 'entry'> & {
|
|
8
12
|
entry?: string;
|
|
9
13
|
effect?: Mod;
|
|
10
14
|
modules?: Record<string, unknown>;
|
|
15
|
+
fibers?: boolean;
|
|
16
|
+
perFiber?: string[];
|
|
17
|
+
capacityParam?: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type MethodSchedule = {
|
|
20
|
+
at: string;
|
|
21
|
+
use: 'retry' | 'repeat';
|
|
22
|
+
source: string;
|
|
23
|
+
rule: ScheduleRule;
|
|
11
24
|
};
|
|
12
25
|
export type Runner = {
|
|
13
26
|
run: (eff: unknown, now?: number) => unknown;
|
|
@@ -23,6 +36,28 @@ export type Runner = {
|
|
|
23
36
|
};
|
|
24
37
|
export declare function runner(E: Mod): Runner;
|
|
25
38
|
export declare function extractEffect(at: Source, opts?: EffectOptions): Extraction;
|
|
39
|
+
export type Primitive = Prim & {
|
|
40
|
+
invariants: Law[];
|
|
41
|
+
laws: Law[];
|
|
42
|
+
lemmas?: Law[];
|
|
43
|
+
};
|
|
44
|
+
export declare function withLemmas(x: Extraction, opts?: {
|
|
45
|
+
ms?: number;
|
|
46
|
+
}): {
|
|
47
|
+
x: Extraction;
|
|
48
|
+
proven: string[];
|
|
49
|
+
unproven: string[];
|
|
50
|
+
};
|
|
51
|
+
export declare function fiberRun(x: Extraction, run: {
|
|
52
|
+
params: Record<string, number>;
|
|
53
|
+
trace: Record<string, unknown>[];
|
|
54
|
+
}): string[];
|
|
55
|
+
export declare function fromSchedule(source: string, opts: {
|
|
56
|
+
effect: Mod;
|
|
57
|
+
params?: string[];
|
|
58
|
+
name?: string;
|
|
59
|
+
runs?: number;
|
|
60
|
+
}): Extraction;
|
|
26
61
|
export type Service<S> = {
|
|
27
62
|
effect: Mod;
|
|
28
63
|
make: (params: Record<string, unknown>) => unknown;
|