gdp-wired 0.19.0 → 0.20.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/dist/core/cycles.d.ts +23 -2
- package/dist/core/cycles.js +451 -51
- package/dist/core/cyclic.d.ts +18 -4
- package/dist/core/cyclic.js +319 -263
- package/dist/core/data.d.ts +61 -5
- package/dist/core/data.js +487 -113
- package/dist/core/discover.js +54 -33
- package/dist/core/dsl.d.ts +4 -2
- package/dist/core/dsl.js +31 -12
- package/dist/core/solver.d.ts +3 -0
- package/dist/core/solver.js +5 -0
- package/dist/core/translate.js +10 -4
- package/dist/kernel/prove.d.ts +3 -0
- package/dist/kernel/prove.js +95 -50
- package/dist/lean-kernel/emit.d.ts +2 -1
- package/dist/lean-kernel/emit.js +140 -54
- package/package.json +1 -1
package/dist/core/cycles.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { C, E, Law, Machine } from './machine.js';
|
|
2
|
-
import type { Loop, Tree } from '../kernel/kernel.js';
|
|
1
|
+
import type { C, E, Law, Machine, Request } from './machine.js';
|
|
2
|
+
import type { Liveness, Loop, Tree } from '../kernel/kernel.js';
|
|
3
3
|
import { type Cyclic, type Fact } from '../kernel/cyclic.js';
|
|
4
4
|
import { type NodeSpec } from './cyclic.js';
|
|
5
5
|
import type { StepLaw } from '../kernel/kernel.js';
|
|
@@ -57,6 +57,27 @@ export type RankVerdict = {
|
|
|
57
57
|
export declare function findRank(l: Loop, laws?: Law[], opts?: {
|
|
58
58
|
ms?: number;
|
|
59
59
|
}): RankVerdict;
|
|
60
|
+
export type Sampler = {
|
|
61
|
+
params: (rand: (n: number) => number, bound: number) => Record<string, number>;
|
|
62
|
+
input: (rand: (n: number) => number, bound: number, ps: Record<string, number>) => Request;
|
|
63
|
+
};
|
|
64
|
+
export type LeadsVerdict = {
|
|
65
|
+
proven: boolean;
|
|
66
|
+
checked: boolean;
|
|
67
|
+
rank?: E[];
|
|
68
|
+
laws?: Law[];
|
|
69
|
+
found?: {
|
|
70
|
+
rank: string;
|
|
71
|
+
laws: string[];
|
|
72
|
+
};
|
|
73
|
+
goal?: string;
|
|
74
|
+
stuck?: string;
|
|
75
|
+
witness?: Record<string, number>;
|
|
76
|
+
why?: string;
|
|
77
|
+
};
|
|
78
|
+
export declare function findLeadsTo(m: Machine, laws: Law[], l: Liveness, sample: Sampler, opts?: {
|
|
79
|
+
ms?: number;
|
|
80
|
+
}): LeadsVerdict;
|
|
60
81
|
export type LemmaFound = {
|
|
61
82
|
law: Law;
|
|
62
83
|
text: string;
|