gdp-wired 0.23.0 → 0.25.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 +12 -2
- package/dist/core/accel.d.ts +44 -0
- package/dist/core/accel.js +720 -0
- package/dist/core/bmc.d.ts +13 -2
- package/dist/core/bmc.js +390 -18
- package/dist/core/cycles.d.ts +23 -0
- package/dist/core/cycles.js +527 -146
- package/dist/core/data.d.ts +17 -0
- package/dist/core/data.js +1177 -213
- package/dist/core/discover.js +8 -3
- package/dist/core/dsl.d.ts +7 -2
- package/dist/core/dsl.js +47 -9
- package/dist/core/extract-check.d.ts +77 -0
- package/dist/core/extract-check.js +785 -0
- package/dist/core/extract-ir.d.ts +139 -0
- package/dist/core/extract-ir.js +198 -0
- package/dist/core/extract-print.d.ts +30 -0
- package/dist/core/extract-print.js +426 -0
- package/dist/core/extract-read.d.ts +298 -0
- package/dist/core/extract-read.js +1298 -0
- package/dist/core/extract-shapes.d.ts +13 -0
- package/dist/core/extract-shapes.js +993 -0
- package/dist/core/extract-xstate.d.ts +34 -0
- package/dist/core/extract-xstate.js +320 -0
- package/dist/core/extract.d.ts +31 -0
- package/dist/core/extract.js +249 -0
- package/dist/core/infer.d.ts +1 -0
- package/dist/core/infer.js +298 -28
- package/dist/core/kind.d.ts +30 -0
- package/dist/core/kind.js +81 -0
- package/dist/core/nonterm.d.ts +4 -1
- package/dist/core/nonterm.js +98 -2
- package/dist/core/relation.js +82 -7
- package/dist/core/transfer.js +1 -1
- package/dist/core/xstate.d.ts +6 -0
- package/dist/core/xstate.js +70 -12
- package/dist/kernel/cdcl.d.ts +15 -0
- package/dist/kernel/cdcl.js +331 -244
- package/dist/kernel/kernel.d.ts +15 -0
- package/dist/kernel/kernel.js +32 -0
- package/dist/kernel/prove.js +20 -7
- package/dist/kernel/reader.d.ts +14 -0
- package/dist/kernel/reader.js +102 -14
- package/dist/lean-kernel/emit.d.ts +28 -1
- package/dist/lean-kernel/emit.js +56 -15
- package/dist/lean-kernel/library.js +2 -1
- package/package.json +12 -3
package/dist/core/data.d.ts
CHANGED
|
@@ -258,6 +258,7 @@ export type Termination = {
|
|
|
258
258
|
proof?: CyclicVerdict;
|
|
259
259
|
scheme?: string;
|
|
260
260
|
lemmas: string[];
|
|
261
|
+
lemmaLaws?: DataLaw[];
|
|
261
262
|
}[];
|
|
262
263
|
ms: number;
|
|
263
264
|
};
|
|
@@ -266,6 +267,13 @@ export declare const terminationMs: {
|
|
|
266
267
|
};
|
|
267
268
|
export declare const showMeasure: (f: Pick<Fn, "params">, m: Measure) => string;
|
|
268
269
|
export declare function measureX(f: Pick<Fn, 'params'>, c: Measure['comps'][number], args: X[]): X;
|
|
270
|
+
export declare function checkMeasures(fns: Fn[], ms: Measure[], budget?: number): {
|
|
271
|
+
proven: true;
|
|
272
|
+
obligations: Termination['obligations'][];
|
|
273
|
+
} | {
|
|
274
|
+
proven: false;
|
|
275
|
+
why: string;
|
|
276
|
+
};
|
|
269
277
|
export type DataLaw = {
|
|
270
278
|
name: string;
|
|
271
279
|
vars: {
|
|
@@ -383,6 +391,7 @@ export type Options = {
|
|
|
383
391
|
seed?: number;
|
|
384
392
|
patience?: number;
|
|
385
393
|
transfer?: boolean;
|
|
394
|
+
lemmasFirst?: boolean;
|
|
386
395
|
};
|
|
387
396
|
export declare function refute(l: DataLaw, n?: number, seed?: number): Record<string, string> | undefined;
|
|
388
397
|
type SchemeUse = {
|
|
@@ -400,6 +409,7 @@ type Scheme = {
|
|
|
400
409
|
companions?: Companion[];
|
|
401
410
|
rank?: E[];
|
|
402
411
|
shapes?: E[];
|
|
412
|
+
merged?: boolean;
|
|
403
413
|
};
|
|
404
414
|
type Companion = {
|
|
405
415
|
law: DataLaw;
|
|
@@ -423,8 +433,14 @@ export declare const lemmaCaps: {
|
|
|
423
433
|
perLemma: number;
|
|
424
434
|
total: number;
|
|
425
435
|
perCase: number;
|
|
436
|
+
spare: number;
|
|
437
|
+
joined: number;
|
|
426
438
|
};
|
|
427
439
|
export declare function conjectures(p: Program, l: DataLaw, max?: number, maxSize?: number): DataLaw[];
|
|
440
|
+
export declare function calculated(p: Program, l: DataLaw, depth?: number, max?: number): DataLaw[];
|
|
441
|
+
export declare function reduceX(x: X, fuel?: {
|
|
442
|
+
n: number;
|
|
443
|
+
}): X;
|
|
428
444
|
export declare const showX: (x: X) => string;
|
|
429
445
|
export declare const showY: (y: Y) => string;
|
|
430
446
|
export declare function proveData(l: DataLaw, opts?: Options): DataVerdict;
|
|
@@ -433,6 +449,7 @@ export type SearchCtx = {
|
|
|
433
449
|
fs: Facts;
|
|
434
450
|
base: Proven[];
|
|
435
451
|
level: number;
|
|
452
|
+
merge?: boolean;
|
|
436
453
|
};
|
|
437
454
|
export declare function searchIn(l: DataLaw, opts: Options, until: number, ctx?: SearchCtx, phase?: 'all' | 'first' | 'rest'): {
|
|
438
455
|
verdict: DataVerdict;
|