gdp-wired 0.19.0 → 0.21.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.
@@ -9,7 +9,7 @@ export type NodeSpec = Omit<CNode, 'uses' | 'main'> & {
9
9
  weak?: boolean;
10
10
  slice?: boolean;
11
11
  main?: Tree;
12
- carry?: boolean;
12
+ carry?: boolean | 'sliced';
13
13
  };
14
14
  export type CyclicVerdict = {
15
15
  proven: true;
@@ -33,7 +33,7 @@ export declare const cyclicProf: Record<string, {
33
33
  }>;
34
34
  export declare function timedKind<T>(kind: string, hyps: number, f: () => T): T;
35
35
  export declare function reached(g: Goal, whole: (i: number) => boolean): Set<number>;
36
- export declare function slice(g: Goal, whole: (i: number) => boolean): (Goal & {
36
+ export declare function slice(g: Goal, whole: (i: number) => boolean, hypsOnly?: false, join?: boolean): (Goal & {
37
37
  from: number[][];
38
38
  }) | undefined;
39
39
  export declare function slice(g: Goal, whole: (i: number) => boolean, hypsOnly: true): Set<number>;
@@ -83,7 +83,7 @@ export type UsualStep = {
83
83
  goal: Goal;
84
84
  tree: Tree;
85
85
  };
86
- export declare function machineNodes(m: Machine, laws: Law[], instances: Record<string, Instances>, usual?: {
86
+ export declare function machineNodes(given: Machine, laws: Law[], instances: Record<string, Instances>, usual?: {
87
87
  trees: Record<string, Tree>;
88
88
  steps?: UsualStep[];
89
89
  lawsMade?: boolean;
@@ -101,11 +101,21 @@ export declare function stepLawNodes(m: Machine, laws: Law[], steps: {
101
101
  instances: Instances;
102
102
  }[], facts: Fact[], lawNodes: NodeSpec[], time?: (n: number) => E): NodeSpec[];
103
103
  export declare function allowNode(m: Machine, laws: Law[], inst: Instances, w: C, facts: Fact[], lawNodes: NodeSpec[], name: string, extra?: NodeSpec['insts']): NodeSpec;
104
+ export declare function allowTranslated(given: Machine, laws: Law[], inst: Instances, p: {
105
+ when: C;
106
+ request: Record<string, E>;
107
+ }, usual: {
108
+ goal: Goal;
109
+ tree: Tree;
110
+ }, facts: Fact[], lawNodes: NodeSpec[], name: string, st: TStats): {
111
+ specs: NodeSpec[];
112
+ why?: string;
113
+ };
104
114
  export declare const hasQuantified: (m: Machine) => boolean;
105
115
  export declare function skMachine(m: Machine): Machine;
106
116
  export declare function qflagFacts(m: Machine): Fact[];
107
117
  export declare function closingInsts(m: Machine, facts: Fact[], insts: Instances[], times: E[], laws?: Law[]): NodeSpec['insts'];
108
- export declare function qflagNodes(m: Machine, laws: Law[], instances: Record<string, Instances>): {
118
+ export declare const qflagNodes: (m: Machine, laws: Law[], instances: Record<string, Instances>) => {
109
119
  facts: Fact[];
110
120
  specs: NodeSpec[];
111
121
  why?: string;
@@ -131,13 +141,17 @@ export declare function translatedProof(key: () => string, build: (reused: boole
131
141
  why?: string;
132
142
  };
133
143
  export declare const routeOf: () => string;
144
+ export declare const translateMs: (usualMs?: number) => number;
134
145
  export declare function crossCyclic(kind: string, name: string, usual: boolean, run0: (() => CyclicVerdict) | undefined, usualMs?: number, translated?: Translated): void;
146
+ export declare const certMode: () => boolean;
135
147
  export declare const certOn: () => boolean;
136
148
  export declare const certSearch: () => boolean;
137
149
  export declare const certMs: () => number;
150
+ export declare const uncovered: (kind: string, name: string, why: string) => void;
138
151
  export declare function certCyclic(kind: string, name: string, translated: Translated | undefined, run0: (() => CyclicVerdict) | undefined, usualMs?: number): {
139
152
  checked: boolean;
140
153
  proof?: Cyclic;
154
+ why: string;
141
155
  };
142
156
  export declare function searchedStepNodes(m: Machine, laws: Law[], steps: {
143
157
  law: StepLaw;