gdp-wired 0.17.0 → 0.18.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 +10 -3
- package/dist/core/cycles.d.ts +73 -0
- package/dist/core/cycles.js +899 -0
- package/dist/core/cyclic.d.ts +18 -2
- package/dist/core/cyclic.js +488 -43
- package/dist/core/data.d.ts +258 -0
- package/dist/core/data.js +1858 -0
- package/dist/core/dsl.d.ts +7 -1
- package/dist/core/dsl.js +18 -1
- package/dist/kernel/prove.d.ts +5 -0
- package/dist/kernel/prove.js +160 -5
- package/dist/lean-kernel/emit.d.ts +61 -1
- package/dist/lean-kernel/emit.js +211 -35
- package/dist/lean-kernel/library.js +2 -0
- package/package.json +10 -2
package/dist/core/cyclic.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { C, E, Law, Machine } from './machine.js';
|
|
2
|
-
import type { Fold, Instances } from '../kernel/kernel.js';
|
|
2
|
+
import type { Fold, Goal, Instances } from '../kernel/kernel.js';
|
|
3
3
|
import { type CNode, type Cyclic, type Fact, type Use } from '../kernel/cyclic.js';
|
|
4
4
|
export type NodeSpec = Omit<CNode, 'uses' | 'main'> & {
|
|
5
5
|
uses: Omit<Use, 'premises' | 'descent'>[];
|
|
6
|
+
opaque?: E[];
|
|
7
|
+
variants?: NodeSpec[];
|
|
8
|
+
weak?: boolean;
|
|
9
|
+
slice?: boolean;
|
|
6
10
|
};
|
|
7
11
|
export type CyclicVerdict = {
|
|
8
12
|
proven: true;
|
|
@@ -17,7 +21,19 @@ export type CyclicVerdict = {
|
|
|
17
21
|
stuck: string;
|
|
18
22
|
};
|
|
19
23
|
export declare const pair: (u: E, key: E) => E;
|
|
20
|
-
export declare
|
|
24
|
+
export declare const cyclicProf: Record<string, {
|
|
25
|
+
ms: number;
|
|
26
|
+
n: number;
|
|
27
|
+
hyps: number;
|
|
28
|
+
solveMs: number;
|
|
29
|
+
rowsMs: number;
|
|
30
|
+
}>;
|
|
31
|
+
export declare function reached(g: Goal, whole: (i: number) => boolean): Set<number>;
|
|
32
|
+
export declare function slice(g: Goal, whole: (i: number) => boolean): (Goal & {
|
|
33
|
+
from: number[][];
|
|
34
|
+
}) | undefined;
|
|
35
|
+
export declare function slice(g: Goal, whole: (i: number) => boolean, hypsOnly: true): Set<number>;
|
|
36
|
+
export declare function proveCyclic(facts: Fact[], specs: NodeSpec[], order?: number[]): CyclicVerdict;
|
|
21
37
|
export type RecurCase = {
|
|
22
38
|
name: string;
|
|
23
39
|
args: string[];
|