gdp-wired 0.48.0 → 0.49.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 +2 -2
- package/dist/core/bmc.js +10 -7
- package/dist/core/check.js +7 -2
- package/dist/core/count-attempt-work.d.ts +29 -0
- package/dist/core/count-attempt-work.js +96 -0
- package/dist/core/count-boolean-partition.d.ts +5 -0
- package/dist/core/count-boolean-partition.js +47 -0
- package/dist/core/count-bounded-quotient.d.ts +2 -0
- package/dist/core/count-bounded-quotient.js +13 -0
- package/dist/core/count-case-compose.d.ts +20 -0
- package/dist/core/count-case-compose.js +289 -0
- package/dist/core/count-cases.js +3 -2
- package/dist/core/count-cert-rename.d.ts +10 -0
- package/dist/core/count-cert-rename.js +69 -0
- package/dist/core/count-cert-transport.d.ts +10 -2
- package/dist/core/count-cert-transport.js +60 -9
- package/dist/core/count-certificate-minimize.d.ts +57 -0
- package/dist/core/count-certificate-minimize.js +263 -0
- package/dist/core/count-closed-family.d.ts +32 -0
- package/dist/core/count-closed-family.js +143 -0
- package/dist/core/count-closing-budget.d.ts +10 -0
- package/dist/core/count-closing-budget.js +49 -0
- package/dist/core/count-closing-needs.d.ts +5 -0
- package/dist/core/count-closing-needs.js +9 -0
- package/dist/core/count-component-budget.d.ts +5 -0
- package/dist/core/count-component-budget.js +9 -0
- package/dist/core/count-copy-shape.d.ts +11 -0
- package/dist/core/count-copy-shape.js +40 -0
- package/dist/core/count-disjoint-funding.d.ts +75 -0
- package/dist/core/count-disjoint-funding.js +284 -0
- package/dist/core/count-emitter-frame-pool.d.ts +23 -0
- package/dist/core/count-emitter-frame-pool.js +87 -0
- package/dist/core/count-final-step.d.ts +5 -0
- package/dist/core/count-final-step.js +20 -0
- package/dist/core/count-fixed-frame.d.ts +4 -0
- package/dist/core/count-fixed-frame.js +30 -0
- package/dist/core/count-frames.d.ts +25 -0
- package/dist/core/count-frames.js +118 -0
- package/dist/core/count-frozen-guard.d.ts +2 -0
- package/dist/core/count-frozen-guard.js +31 -0
- package/dist/core/count-generation-phase.d.ts +7 -0
- package/dist/core/count-generation-phase.js +33 -0
- package/dist/core/count-guard-composition.d.ts +12 -0
- package/dist/core/count-guard-composition.js +48 -0
- package/dist/core/count-guard-context.d.ts +11 -0
- package/dist/core/count-guard-context.js +50 -0
- package/dist/core/count-guard-facts.d.ts +50 -0
- package/dist/core/count-guard-facts.js +97 -0
- package/dist/core/count-guard-proposals.d.ts +7 -0
- package/dist/core/count-guard-proposals.js +106 -0
- package/dist/core/count-guard-shape.d.ts +18 -0
- package/dist/core/count-guard-shape.js +100 -0
- package/dist/core/count-guard-tree.d.ts +17 -0
- package/dist/core/count-guard-tree.js +125 -0
- package/dist/core/count-leader-facts.d.ts +10 -0
- package/dist/core/count-leader-facts.js +52 -0
- package/dist/core/count-leader.d.ts +10 -0
- package/dist/core/count-leader.js +331 -0
- package/dist/core/count-lemma-transport.d.ts +8 -0
- package/dist/core/count-lemma-transport.js +47 -0
- package/dist/core/count-lifted-budget.d.ts +54 -0
- package/dist/core/count-lifted-budget.js +97 -0
- package/dist/core/count-lifted-copy.d.ts +3 -0
- package/dist/core/count-lifted-copy.js +166 -0
- package/dist/core/count-lifted-increment.d.ts +3 -0
- package/dist/core/count-lifted-increment.js +146 -0
- package/dist/core/count-lifted-load.d.ts +5 -0
- package/dist/core/count-lifted-load.js +179 -0
- package/dist/core/count-lifted-prerequisite.d.ts +14 -0
- package/dist/core/count-lifted-prerequisite.js +53 -0
- package/dist/core/count-lifted-replacement.d.ts +3 -0
- package/dist/core/count-lifted-replacement.js +540 -0
- package/dist/core/count-lifted-shape.d.ts +63 -0
- package/dist/core/count-lifted-shape.js +115 -0
- package/dist/core/count-lifted-strategy.d.ts +7 -0
- package/dist/core/count-lifted-strategy.js +226 -0
- package/dist/core/count-lifted-transports.d.ts +32 -0
- package/dist/core/count-lifted-transports.js +293 -0
- package/dist/core/count-load-shape.d.ts +17 -0
- package/dist/core/count-load-shape.js +67 -0
- package/dist/core/count-minimal-view.d.ts +26 -0
- package/dist/core/count-minimal-view.js +46 -0
- package/dist/core/count-operation-observation.d.ts +9 -0
- package/dist/core/count-operation-observation.js +22 -0
- package/dist/core/count-operation-order.d.ts +5 -0
- package/dist/core/count-operation-order.js +4 -0
- package/dist/core/count-phase.d.ts +9 -0
- package/dist/core/count-phase.js +127 -0
- package/dist/core/count-premise-search.d.ts +9 -0
- package/dist/core/count-premise-search.js +41 -0
- package/dist/core/count-premise-view.d.ts +19 -0
- package/dist/core/count-premise-view.js +220 -0
- package/dist/core/count-prerequisite-components.d.ts +67 -0
- package/dist/core/count-prerequisite-components.js +239 -0
- package/dist/core/count-prerequisite-memory.d.ts +24 -0
- package/dist/core/count-prerequisite-memory.js +37 -0
- package/dist/core/count-prerequisite-plan.d.ts +12 -0
- package/dist/core/count-prerequisite-plan.js +88 -0
- package/dist/core/count-primitive-budget.d.ts +1 -0
- package/dist/core/count-primitive-budget.js +8 -0
- package/dist/core/count-project-free.d.ts +3 -0
- package/dist/core/count-project-free.js +24 -0
- package/dist/core/count-project-witness.d.ts +4 -0
- package/dist/core/count-project-witness.js +48 -0
- package/dist/core/count-proof-rescope.d.ts +14 -0
- package/dist/core/count-proof-rescope.js +71 -0
- package/dist/core/count-proof-scope.d.ts +68 -0
- package/dist/core/count-proof-scope.js +333 -0
- package/dist/core/count-prune-owned-root.d.ts +5 -0
- package/dist/core/count-prune-owned-root.js +27 -0
- package/dist/core/count-query-context.d.ts +3 -0
- package/dist/core/count-query-context.js +7 -0
- package/dist/core/count-query.d.ts +15 -0
- package/dist/core/count-query.js +59 -0
- package/dist/core/count-quorum-leaf.d.ts +9 -0
- package/dist/core/count-quorum-leaf.js +38 -0
- package/dist/core/count-reachability-budget.d.ts +1 -0
- package/dist/core/count-reachability-budget.js +7 -0
- package/dist/core/count-reachability-reconcile.d.ts +11 -0
- package/dist/core/count-reachability-reconcile.js +19 -0
- package/dist/core/count-reachability.d.ts +50 -0
- package/dist/core/count-reachability.js +351 -0
- package/dist/core/count-rebase-path.d.ts +9 -0
- package/dist/core/count-rebase-path.js +68 -0
- package/dist/core/count-recipe-context.d.ts +45 -0
- package/dist/core/count-recipe-context.js +71 -0
- package/dist/core/count-recipe-controller.d.ts +115 -0
- package/dist/core/count-recipe-controller.js +417 -0
- package/dist/core/count-recipe-graph.d.ts +36 -0
- package/dist/core/count-recipe-graph.js +211 -0
- package/dist/core/count-recovery/conditional-check-cache.js +3 -2
- package/dist/core/count-recovery/conditional-cuts.js +5 -4
- package/dist/core/count-recovery/conditional-proof.d.ts +37 -3
- package/dist/core/count-recovery/conditional-proof.js +72 -30
- package/dist/core/count-recovery/derivability-closure.js +2 -1
- package/dist/core/count-recovery/guard-cases.js +2 -1
- package/dist/core/count-recovery/reframe-tree.d.ts +2 -0
- package/dist/core/count-recovery/reframe-tree.js +24 -0
- package/dist/core/count-recovery/replay-linear-skeleton.d.ts +2 -0
- package/dist/core/count-recovery/replay-linear-skeleton.js +28 -0
- package/dist/core/count-recovery/row-cases.js +2 -1
- package/dist/core/count-rejection-budget.d.ts +8 -0
- package/dist/core/count-rejection-budget.js +15 -0
- package/dist/core/count-replacement.d.ts +5 -0
- package/dist/core/count-replacement.js +129 -0
- package/dist/core/count-replay-diagnostic.d.ts +21 -0
- package/dist/core/count-replay-diagnostic.js +49 -0
- package/dist/core/count-replay-skeleton.d.ts +4 -0
- package/dist/core/count-replay-skeleton.js +28 -0
- package/dist/core/count-rescope-funding.d.ts +3 -0
- package/dist/core/count-rescope-funding.js +17 -0
- package/dist/core/count-restrictions.d.ts +11 -0
- package/dist/core/count-restrictions.js +31 -0
- package/dist/core/count-retry-budget.d.ts +67 -0
- package/dist/core/count-retry-budget.js +114 -0
- package/dist/core/count-retry-round.d.ts +24 -0
- package/dist/core/count-retry-round.js +44 -0
- package/dist/core/count-row-agreement.d.ts +35 -0
- package/dist/core/count-row-agreement.js +270 -0
- package/dist/core/count-row-aliases.d.ts +3 -0
- package/dist/core/count-row-aliases.js +59 -0
- package/dist/core/count-row-composition.d.ts +6 -0
- package/dist/core/count-row-composition.js +55 -0
- package/dist/core/count-row-copy-linear.d.ts +4 -0
- package/dist/core/count-row-copy-linear.js +83 -0
- package/dist/core/count-row-copy.d.ts +4 -0
- package/dist/core/count-row-copy.js +94 -0
- package/dist/core/count-row-policy.d.ts +3 -0
- package/dist/core/count-row-policy.js +56 -0
- package/dist/core/count-row-reindex.d.ts +11 -0
- package/dist/core/count-row-reindex.js +126 -0
- package/dist/core/count-row-support.d.ts +9 -0
- package/dist/core/count-row-support.js +42 -0
- package/dist/core/count-row-symmetry.d.ts +7 -0
- package/dist/core/count-row-symmetry.js +100 -0
- package/dist/core/count-scope-hyps.d.ts +2 -0
- package/dist/core/count-scope-hyps.js +163 -0
- package/dist/core/count-scope-row-reuse.d.ts +3 -0
- package/dist/core/count-scope-row-reuse.js +92 -0
- package/dist/core/count-search-allowance.d.ts +1 -0
- package/dist/core/count-search-allowance.js +17 -0
- package/dist/core/count-stabilize-tree.d.ts +9 -0
- package/dist/core/count-stabilize-tree.js +35 -0
- package/dist/core/count-stage-trace.d.ts +8 -0
- package/dist/core/count-stage-trace.js +45 -0
- package/dist/core/count-strategies.d.ts +16 -0
- package/dist/core/count-strategies.js +155 -0
- package/dist/core/count-strategy-premises.d.ts +5 -0
- package/dist/core/count-strategy-premises.js +14 -0
- package/dist/core/count-strategy.d.ts +41 -0
- package/dist/core/count-strategy.js +76 -0
- package/dist/core/count-support.js +3 -2
- package/dist/core/count-tier-budget.d.ts +14 -0
- package/dist/core/count-tier-budget.js +64 -0
- package/dist/core/count-unwritten-prefix.d.ts +24 -0
- package/dist/core/count-unwritten-prefix.js +97 -0
- package/dist/core/count-write-shape.d.ts +15 -0
- package/dist/core/count-write-shape.js +73 -0
- package/dist/core/counts.d.ts +37 -13
- package/dist/core/counts.js +990 -127
- package/dist/core/cycles.js +5 -4
- package/dist/core/cyclic.js +11 -10
- package/dist/core/data.js +16 -15
- package/dist/core/dsl-deadline.d.ts +3 -0
- package/dist/core/dsl-deadline.js +27 -0
- package/dist/core/dsl.d.ts +9 -0
- package/dist/core/dsl.js +156 -51
- package/dist/core/evaluation-admission.d.ts +1 -0
- package/dist/core/evaluation-admission.js +3 -0
- package/dist/core/exists.d.ts +6 -1
- package/dist/core/exists.js +51 -9
- package/dist/core/field-laws.d.ts +3 -1
- package/dist/core/field-laws.js +140 -2
- package/dist/core/finite-houdini.d.ts +6 -0
- package/dist/core/finite-houdini.js +63 -21
- package/dist/core/finite-tiny.js +95 -67
- package/dist/core/fixtures/count-completion/paxos-decision.json +1 -0
- package/dist/core/fresh.js +5 -1
- package/dist/core/infer.js +45 -30
- package/dist/core/kind.js +2 -1
- package/dist/core/lemma-cuts.js +11 -10
- package/dist/core/linear-admission.d.ts +14 -0
- package/dist/core/linear-admission.js +151 -0
- package/dist/core/machine.d.ts +5 -2
- package/dist/core/machine.js +105 -31
- package/dist/core/meter.d.ts +22 -0
- package/dist/core/meter.js +34 -0
- package/dist/core/nonterm.js +4 -3
- package/dist/core/prover-row-budget.d.ts +3 -0
- package/dist/core/prover-row-budget.js +106 -0
- package/dist/core/quorum-laws.d.ts +21 -1
- package/dist/core/quorum-laws.js +27 -3
- package/dist/core/rationals.js +3 -2
- package/dist/core/rejection-discovery.d.ts +34 -0
- package/dist/core/rejection-discovery.js +36 -0
- package/dist/core/rejection-stage.d.ts +39 -0
- package/dist/core/rejection-stage.js +205 -0
- package/dist/core/request-quotient.d.ts +8 -0
- package/dist/core/request-quotient.js +299 -0
- package/dist/core/row-agreement-shape.d.ts +15 -0
- package/dist/core/row-agreement-shape.js +68 -0
- package/dist/core/runtime-wall.d.ts +2 -0
- package/dist/core/search-policy.d.ts +15 -0
- package/dist/core/search-policy.js +68 -0
- package/dist/core/solver.d.ts +1 -1
- package/dist/core/solver.js +40 -6
- package/dist/core/step-work.d.ts +12 -0
- package/dist/core/step-work.js +14 -0
- package/dist/core/strategy-premises.d.ts +8 -0
- package/dist/core/strategy-premises.js +64 -0
- package/dist/core/system.js +4 -3
- package/dist/core/table-admission.d.ts +1 -0
- package/dist/core/table-admission.js +3 -0
- package/dist/core/trace-clock.d.ts +3 -0
- package/dist/core/trace-clock.js +16 -0
- package/dist/core/transfer.js +3 -2
- package/dist/core/translate.js +16 -3
- package/dist/core/wall.d.ts +6 -1
- package/dist/core/wall.js +23 -9
- package/dist/core/watch.d.ts +1 -1
- package/dist/core/watch.js +13 -4
- package/dist/core/work-admission.d.ts +164 -0
- package/dist/core/work-admission.js +418 -0
- package/dist/core/work-amount.d.ts +21 -0
- package/dist/core/work-amount.js +80 -0
- package/dist/core/work-collections.d.ts +11 -0
- package/dist/core/work-collections.js +198 -0
- package/dist/core/work-kinds.d.ts +11 -0
- package/dist/core/work-kinds.js +9 -0
- package/dist/core/work-meter.d.ts +8 -0
- package/dist/core/work-meter.js +83 -0
- package/dist/core/work-observe.d.ts +12 -0
- package/dist/core/work-observe.js +39 -0
- package/dist/core/work-profile.d.ts +10 -0
- package/dist/core/work-profile.js +21 -0
- package/dist/core/work-refusal.d.ts +1 -0
- package/dist/core/work-refusal.js +6 -0
- package/dist/interchange/format.js +2 -0
- package/dist/kernel/cdcl.js +93 -40
- package/dist/kernel/epr.js +23 -8
- package/dist/kernel/kernel.d.ts +47 -1
- package/dist/kernel/kernel.js +417 -68
- package/dist/kernel/prove.d.ts +49 -3
- package/dist/kernel/prove.js +468 -122
- package/dist/kernel/prover-rows.d.ts +1 -0
- package/dist/kernel/prover-rows.js +12 -1
- package/dist/kernel/reader.d.ts +1 -1
- package/dist/kernel/reader.js +57 -12
- package/dist/kernel/simplex.js +9 -2
- package/dist/lean-kernel/emit.d.ts +9 -1
- package/dist/lean-kernel/emit.js +144 -22
- package/dist/lean-kernel/legacy-family-library.d.ts +1 -0
- package/dist/lean-kernel/legacy-family-library.js +5 -0
- package/dist/lean-kernel/library.js +3 -3
- package/package.json +1 -1
package/dist/kernel/cdcl.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { traceNow as countedTraceNow } from "../core/trace-clock.js";
|
|
2
|
+
import { searchNow as countedSearchNow } from "../core/wall.js";
|
|
1
3
|
// Untrusted, like prove.ts: a second search for a goal's tree, CDCL over the goal's atoms with the kernel's reading as
|
|
2
4
|
// the theory. Its refutation is a resolution DAG of refuted cases, unfolded into a kernel tree at the end, so the
|
|
3
5
|
// certificate is the kernel's as it is (kernel.ts's check); nothing here is trusted.
|
|
@@ -19,6 +21,8 @@
|
|
|
19
21
|
// afresh.
|
|
20
22
|
import { costs, env, refuteFast, solve, work } from "../core/solver.js";
|
|
21
23
|
import { checkRefutation } from "../core/check.js";
|
|
24
|
+
import { completeWorkProfile } from "../core/work-profile.js";
|
|
25
|
+
import { startWork } from "../core/work-admission.js";
|
|
22
26
|
import { atomOf, canon, canonFlip, isMonomial, leafConstraints } from "./kernel.js";
|
|
23
27
|
import { atPoint, cellPair, tupleCellPairs, growWide, late, leafRowsOf, logged, nearOf, openAt, pairedKeys, queryHook, rowsAt, unitAtoms, wideFor, wideScope } from "./prove.js";
|
|
24
28
|
import { Clausal, Reader, namesOf } from "./reader.js";
|
|
@@ -93,22 +97,22 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
93
97
|
// brings it down to its own; each assumption's index by name)
|
|
94
98
|
// (and on each assumption's variable, `aq`, its index this run: the undo's lookup by variable, not by name)
|
|
95
99
|
let aq = 0, aqOf = new Map(), aqVars = [];
|
|
96
|
-
const st = cdclStats, timing = st.on, setupStarted = timing ?
|
|
100
|
+
const st = cdclStats, timing = st.on, setupStarted = timing ? countedTraceNow() : 0;
|
|
97
101
|
let runStarted = 0, sawDecision = false;
|
|
98
102
|
const noteDecision = () => {
|
|
99
103
|
st.decisions++;
|
|
100
104
|
if (timing && !sawDecision) {
|
|
101
105
|
sawDecision = true;
|
|
102
106
|
st.firstDecisions++;
|
|
103
|
-
st.firstDecisionMs +=
|
|
107
|
+
st.firstDecisionMs += countedTraceNow() - runStarted;
|
|
104
108
|
}
|
|
105
109
|
};
|
|
106
110
|
const t = (f, add) => { if (!timing)
|
|
107
|
-
return f(); const t0 =
|
|
111
|
+
return f(); const t0 = countedTraceNow(); try {
|
|
108
112
|
return f();
|
|
109
113
|
}
|
|
110
114
|
finally {
|
|
111
|
-
add(
|
|
115
|
+
add(countedTraceNow() - t0);
|
|
112
116
|
} };
|
|
113
117
|
st.runs++;
|
|
114
118
|
// (`tv`: the trail's variables, beside their names)
|
|
@@ -273,8 +277,10 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
273
277
|
// The root's own decisions are level 0, with no reason: they stay in every clause (the tree starts below them).
|
|
274
278
|
const rootNames = new Set(), stamps = [];
|
|
275
279
|
let stampN = 0;
|
|
276
|
-
for
|
|
277
|
-
|
|
280
|
+
// Path keys may be @-aliases for duplicate cut rows; only the row itself
|
|
281
|
+
// determines orientation. An alias is not evidence that the atom was flipped.
|
|
282
|
+
for (const a of root.values()) {
|
|
283
|
+
const name = ensure(a.lin), x = vars.get(name), val = name === canon(a.lin) ? a.holds : !a.holds;
|
|
278
284
|
x.val = val;
|
|
279
285
|
x.level = 0;
|
|
280
286
|
x.at = trail.length;
|
|
@@ -353,8 +359,13 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
353
359
|
if (retired[ci])
|
|
354
360
|
continue;
|
|
355
361
|
const c = cls[ci];
|
|
356
|
-
|
|
362
|
+
if (completeWorkProfile.enabled)
|
|
363
|
+
startWork('scan', 1, 'clause scan entry');
|
|
364
|
+
else
|
|
365
|
+
costs.scan += 1 + (c.length >> 2);
|
|
357
366
|
for (let j = 0; j < c.length; j++) {
|
|
367
|
+
if (completeWorkProfile.enabled && j % 4 === 0 && j + 4 <= c.length)
|
|
368
|
+
startWork('scan', 1, 'clause four-literal group');
|
|
358
369
|
const y = c[j] >> 1;
|
|
359
370
|
if (rel[y] < 0) {
|
|
360
371
|
rel[y] = levels.length;
|
|
@@ -521,9 +532,20 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
521
532
|
// needed clause is relevant, so where none is open, every needed clause is satisfied (unit propagation found no
|
|
522
533
|
// conflict), and a model of the needed clauses is a model of the goal.
|
|
523
534
|
const needed = (ci) => !retired[ci] && (oc[ci] < 0 || (rel[oc[ci] >> 1] >= 0 && holds(oc[ci])));
|
|
524
|
-
const satisfied = (ci) => {
|
|
525
|
-
|
|
526
|
-
|
|
535
|
+
const satisfied = (ci) => {
|
|
536
|
+
const c = cls[ci];
|
|
537
|
+
if (completeWorkProfile.enabled)
|
|
538
|
+
startWork('scan', 1, 'clause scan entry');
|
|
539
|
+
else
|
|
540
|
+
costs.scan += 1 + (c.length >> 2);
|
|
541
|
+
for (let j = 0; j < c.length; j++) {
|
|
542
|
+
if (completeWorkProfile.enabled && j % 4 === 0 && j + 4 <= c.length)
|
|
543
|
+
startWork('scan', 1, 'clause four-literal group');
|
|
544
|
+
if (opposed(c[j]))
|
|
545
|
+
return true;
|
|
546
|
+
}
|
|
547
|
+
return false;
|
|
548
|
+
};
|
|
527
549
|
const pickOpen = () => {
|
|
528
550
|
while (heap.length) {
|
|
529
551
|
const x = heap[0];
|
|
@@ -637,6 +659,8 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
637
659
|
i += 2;
|
|
638
660
|
continue;
|
|
639
661
|
}
|
|
662
|
+
if (completeWorkProfile.enabled)
|
|
663
|
+
startWork('scan', 1, 'watched clause scan');
|
|
640
664
|
const ci = ws[i], c = cls[ci];
|
|
641
665
|
n++;
|
|
642
666
|
if (retired[ci]) {
|
|
@@ -678,10 +702,12 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
678
702
|
i += 2;
|
|
679
703
|
continue;
|
|
680
704
|
}
|
|
681
|
-
|
|
705
|
+
if (!completeWorkProfile.enabled)
|
|
706
|
+
costs.scan += n;
|
|
682
707
|
return ci;
|
|
683
708
|
}
|
|
684
|
-
|
|
709
|
+
if (!completeWorkProfile.enabled)
|
|
710
|
+
costs.scan += n;
|
|
685
711
|
}
|
|
686
712
|
return undefined;
|
|
687
713
|
};
|
|
@@ -879,7 +905,7 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
879
905
|
wall = w;
|
|
880
906
|
last = goal.hyps.length - 1;
|
|
881
907
|
if (timing) {
|
|
882
|
-
runStarted =
|
|
908
|
+
runStarted = countedTraceNow();
|
|
883
909
|
sawDecision = false;
|
|
884
910
|
}
|
|
885
911
|
restartAt = 32;
|
|
@@ -971,7 +997,7 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
971
997
|
};
|
|
972
998
|
const search = () => {
|
|
973
999
|
for (;;) {
|
|
974
|
-
if (++budget.nodes > 200_000 || late(until) || (wall !== undefined &&
|
|
1000
|
+
if (++budget.nodes > 200_000 || late(until) || (wall !== undefined && countedSearchNow() > wall))
|
|
975
1001
|
return stuck('unknown', budget.nodes > 200_000 ? 'nodes' : 'time');
|
|
976
1002
|
let conflict;
|
|
977
1003
|
const ci = t(propagate, ms => { st.propagationMs += ms; });
|
|
@@ -1003,6 +1029,8 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1003
1029
|
// propagation brought an atom it doesn't meet, which the next node finds)
|
|
1004
1030
|
if (free > 0 && decideFree())
|
|
1005
1031
|
continue;
|
|
1032
|
+
if (completeWorkProfile.enabled)
|
|
1033
|
+
startWork('cdclNodes', 1, 'CDCL node');
|
|
1006
1034
|
reader.begin();
|
|
1007
1035
|
st.nodes++;
|
|
1008
1036
|
// The rows, kept from the node before (reader.ts's sync); the forms that came and went: the single-variable
|
|
@@ -1031,7 +1059,8 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1031
1059
|
throw new Error(`reader.ts's rows differ from kernel.ts's at a node of ${goal.name}: reader's alone ${[...mine].filter(x => !theirs.has(x)).slice(0, 4).join(' ; ')}; kernel's alone ${[...theirs].filter(x => !mine.has(x)).slice(0, 4).join(' ; ')}; path ${[...pathOf()].map(([k2, a]) => `${a.holds ? '' : '¬'}${k2}`).join(' ; ')}`);
|
|
1032
1060
|
}
|
|
1033
1061
|
work.n += 1 + full.length;
|
|
1034
|
-
|
|
1062
|
+
if (!completeWorkProfile.enabled)
|
|
1063
|
+
costs.cdclNodes++;
|
|
1035
1064
|
costs.cdclRows += full.length;
|
|
1036
1065
|
// (the elimination below reads term columns' rows only once the trail has an atom about one, as growPlain does)
|
|
1037
1066
|
const columns = colsOn > 0;
|
|
@@ -1057,15 +1086,31 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1057
1086
|
const g = ++candGen, keep = [];
|
|
1058
1087
|
const take = (lins) => {
|
|
1059
1088
|
let rs = listRecs.get(lins);
|
|
1060
|
-
if (
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1089
|
+
const use = (r) => { if (r.seen === g)
|
|
1090
|
+
return; r.seen = g; if (r.x && r.x.val === undefined)
|
|
1091
|
+
keep.push(r.x); };
|
|
1092
|
+
if (!completeWorkProfile.enabled) {
|
|
1093
|
+
if (!rs)
|
|
1094
|
+
listRecs.set(lins, (rs = lins.map(recOf)));
|
|
1095
|
+
costs.scan += rs.length;
|
|
1096
|
+
for (const r of rs)
|
|
1097
|
+
use(r);
|
|
1098
|
+
}
|
|
1099
|
+
else if (rs) {
|
|
1100
|
+
for (const r of rs) {
|
|
1101
|
+
startWork('scan', 1, 'cached candidate scan');
|
|
1102
|
+
use(r);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
else {
|
|
1106
|
+
rs = [];
|
|
1107
|
+
for (const lin of lins) {
|
|
1108
|
+
startWork('scan', 1, 'candidate scan');
|
|
1109
|
+
const r = recOf(lin);
|
|
1110
|
+
rs.push(r);
|
|
1111
|
+
use(r);
|
|
1112
|
+
}
|
|
1113
|
+
listRecs.set(lins, rs);
|
|
1069
1114
|
}
|
|
1070
1115
|
};
|
|
1071
1116
|
take(unitAtoms(goal));
|
|
@@ -1083,7 +1128,7 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1083
1128
|
}, ms => { st.orderMs += ms; });
|
|
1084
1129
|
const open = cands.length > 0;
|
|
1085
1130
|
// Bound propagation: an open atom its variables' bounds (the single-variable rows) decide.
|
|
1086
|
-
const tb = timing ?
|
|
1131
|
+
const tb = timing ? countedTraceNow() : 0;
|
|
1087
1132
|
if (open) {
|
|
1088
1133
|
let forced = 0;
|
|
1089
1134
|
for (const x of cands) {
|
|
@@ -1143,7 +1188,7 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1143
1188
|
x.bver = hit ? undefined : bx.changes;
|
|
1144
1189
|
}
|
|
1145
1190
|
if (timing)
|
|
1146
|
-
st.boundMs +=
|
|
1191
|
+
st.boundMs += countedTraceNow() - tb;
|
|
1147
1192
|
if (forced) {
|
|
1148
1193
|
st.boundRounds++;
|
|
1149
1194
|
continue;
|
|
@@ -1155,7 +1200,7 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1155
1200
|
// The simplex first (warm from the node before): a conflict's rows, refuted exactly, are the leaf. With a case
|
|
1156
1201
|
// still open, a node it finds feasible is split; with none, the exact elimination below decides it (integers).
|
|
1157
1202
|
if (sx) {
|
|
1158
|
-
const t0 = timing ?
|
|
1203
|
+
const t0 = timing ? countedTraceNow() : 0;
|
|
1159
1204
|
// (a tableau that has gathered many more forms than a node reads is begun again: every pivot updates them all)
|
|
1160
1205
|
const over = sx.size > (clausal ? lpGrow : 4) * full.length + (clausal ? lpBase : 500) || sx.nnz > lpFill * full.length;
|
|
1161
1206
|
if (over) {
|
|
@@ -1184,7 +1229,7 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1184
1229
|
lp = { kind: 'conflict', rows: lp.rows.map(id => reader.slotOf(id)) };
|
|
1185
1230
|
costs.pivots += sx.pivots - p0;
|
|
1186
1231
|
if (timing) {
|
|
1187
|
-
st.lpMs +=
|
|
1232
|
+
st.lpMs += countedTraceNow() - t0;
|
|
1188
1233
|
st.pivots += sx.pivots - p0;
|
|
1189
1234
|
st.lpRows = sx.size;
|
|
1190
1235
|
st.lpNnz = sx.nnz;
|
|
@@ -1194,9 +1239,9 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1194
1239
|
st.lpUnknown++;
|
|
1195
1240
|
}
|
|
1196
1241
|
if (lp.kind === 'conflict') {
|
|
1197
|
-
const tm = timing ?
|
|
1242
|
+
const tm = timing ? countedTraceNow() : 0, support = lp.rows.sort((x, y) => x - y), out = solve(support.map(i => full[i]));
|
|
1198
1243
|
if (timing)
|
|
1199
|
-
st.missMs +=
|
|
1244
|
+
st.missMs += countedTraceNow() - tm;
|
|
1200
1245
|
if (out.kind === 'refuted')
|
|
1201
1246
|
steps = out.steps.map(s => (s.kind === 'input' ? { ...s, index: support[s.index] } : s));
|
|
1202
1247
|
else
|
|
@@ -1237,13 +1282,13 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1237
1282
|
}
|
|
1238
1283
|
}
|
|
1239
1284
|
st.fmCalls++;
|
|
1240
|
-
const rows = plain(), tf = timing ?
|
|
1285
|
+
const rows = plain(), tf = timing ? countedTraceNow() : 0;
|
|
1241
1286
|
if (open && rows.length > 60) {
|
|
1242
1287
|
const fast = refuteFast(rows);
|
|
1243
1288
|
if (fast?.kind === 'refuted')
|
|
1244
1289
|
steps = fast.steps.map(s => (s.kind === 'input' ? { ...s, index: at(s.index) } : s));
|
|
1245
1290
|
}
|
|
1246
|
-
const tf2 = timing ?
|
|
1291
|
+
const tf2 = timing ? countedTraceNow() : 0;
|
|
1247
1292
|
if (timing)
|
|
1248
1293
|
st.fastMs += tf2 - tf;
|
|
1249
1294
|
if (!steps) {
|
|
@@ -1253,9 +1298,9 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1253
1298
|
}
|
|
1254
1299
|
if (timing) {
|
|
1255
1300
|
if (open)
|
|
1256
|
-
st.fmOpenMs +=
|
|
1301
|
+
st.fmOpenMs += countedTraceNow() - tf2;
|
|
1257
1302
|
else
|
|
1258
|
-
st.fmLeafMs +=
|
|
1303
|
+
st.fmLeafMs += countedTraceNow() - tf2;
|
|
1259
1304
|
}
|
|
1260
1305
|
if (!steps && open && !columns && full.length > rows.length) {
|
|
1261
1306
|
const k = korder(), fast = refuteFast(k.map(i => full[i]));
|
|
@@ -1392,7 +1437,7 @@ export function cdclSession(goal, root, opts = {}) {
|
|
|
1392
1437
|
const retire = (hyp) => { for (const ci of byHyp[hyp] ?? [])
|
|
1393
1438
|
retired[ci] = true; };
|
|
1394
1439
|
if (timing)
|
|
1395
|
-
st.setupMs +=
|
|
1440
|
+
st.setupMs += countedTraceNow() - setupStarted;
|
|
1396
1441
|
return { run, retire };
|
|
1397
1442
|
}
|
|
1398
1443
|
// The DAG as a kernel tree below `root`, walked depth first with a reader of its own (the tree's path is a stack, as
|
|
@@ -1430,8 +1475,9 @@ function unfold(goal, nodes, top, root, maxLeaves, until) {
|
|
|
1430
1475
|
return undefined;
|
|
1431
1476
|
}
|
|
1432
1477
|
reader.begin();
|
|
1433
|
-
const src = [], rows = reader.leafRows(src);
|
|
1434
|
-
|
|
1478
|
+
const src = [], rows = reader.leafRows(src, completeWorkProfile.enabled ? count => startWork('unfoldRows', count, 'unfold row assembly') : undefined);
|
|
1479
|
+
if (!completeWorkProfile.enabled)
|
|
1480
|
+
costs.unfoldRows += rows.length;
|
|
1435
1481
|
// (the rows the leaf's derivation reads kept with it: prove.ts's leafRowsOf)
|
|
1436
1482
|
const noted = (leaf) => {
|
|
1437
1483
|
const t = { leaf }, at = new Map();
|
|
@@ -1466,12 +1512,19 @@ function unfold(goal, nodes, top, root, maxLeaves, until) {
|
|
|
1466
1512
|
return noted(steps);
|
|
1467
1513
|
// (a row a longer path reads otherwise: a hypothesis false outright there, a choice decided)
|
|
1468
1514
|
cdclStats.resolved2++;
|
|
1515
|
+
const fallbackRows = completeWorkProfile.enabled ? [] : rows;
|
|
1516
|
+
if (completeWorkProfile.enabled)
|
|
1517
|
+
for (let i = 0; i < rows.length; i++) {
|
|
1518
|
+
startWork('unfoldRows', 1, 'unfold fallback row');
|
|
1519
|
+
fallbackRows.push(rows[i]);
|
|
1520
|
+
}
|
|
1469
1521
|
work.n += 1 + rows.length;
|
|
1470
|
-
|
|
1471
|
-
|
|
1522
|
+
if (!completeWorkProfile.enabled)
|
|
1523
|
+
costs.unfoldRows += rows.length;
|
|
1524
|
+
const fast = fallbackRows.length > 60 ? refuteFast(fallbackRows) : undefined;
|
|
1472
1525
|
if (fast?.kind === 'refuted')
|
|
1473
1526
|
return noted(fast.steps);
|
|
1474
|
-
const out = solve(
|
|
1527
|
+
const out = solve(fallbackRows);
|
|
1475
1528
|
if (out.kind === 'refuted')
|
|
1476
1529
|
return noted(out.steps);
|
|
1477
1530
|
cdclStats.unfoldWhy = 'refute';
|
package/dist/kernel/epr.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { traceNow as countedTraceNow } from "../core/trace-clock.js";
|
|
1
2
|
// Untrusted: a fast decision of EPR-shaped goals (research/protocols/epr/DESIGN.md). The hypotheses read as a
|
|
2
3
|
// propositional abstraction: a composed key (a·N² + b·N + c) the tuple of its parts, compared by the parts' order and
|
|
3
4
|
// equality, never by arithmetic; a few-valued cell a finite variable; an ordered value (an epoch) a term of a total order;
|
|
@@ -9,6 +10,8 @@ import { cpair, evalC, tupleParts } from "../core/machine.js";
|
|
|
9
10
|
import { canon, linear, projected, projectedC } from "./kernel.js";
|
|
10
11
|
import { env, konst, plus, solve, times, v as tv } from "../core/solver.js";
|
|
11
12
|
import { Simplex } from "./simplex.js";
|
|
13
|
+
import { startWork, workCounterView } from "../core/work-admission.js";
|
|
14
|
+
import { completeWorkProfile } from "../core/work-profile.js";
|
|
12
15
|
// (a term's text, once per object: the decision asks it of the same terms many times)
|
|
13
16
|
const textsOf = new WeakMap();
|
|
14
17
|
const textOfE = (o) => { let s = textsOf.get(o); if (s === undefined)
|
|
@@ -102,8 +105,8 @@ const projectedOf = (g) => { let o = projectedMemo.get(g); if (!o)
|
|
|
102
105
|
export function decide(goal, patterns, opts = {}) {
|
|
103
106
|
if (!decideHook.on)
|
|
104
107
|
return decide1(goal, patterns, opts);
|
|
105
|
-
const t0 =
|
|
106
|
-
decideHook.on(goal, d,
|
|
108
|
+
const t0 = countedTraceNow(), d = decide1(goal, patterns, opts);
|
|
109
|
+
decideHook.on(goal, d, countedTraceNow() - t0, lastShaped);
|
|
107
110
|
return d;
|
|
108
111
|
}
|
|
109
112
|
function decide1(goal0, patterns, opts = {}) {
|
|
@@ -253,7 +256,7 @@ const pastEnd = new Error('past the deadline');
|
|
|
253
256
|
// The work the EPR path does, counted (each clause and hypothesis read, each literal the CDCL search propagates), and a
|
|
254
257
|
// cap on it a caller sets (core/infer.ts's engine, per goal): past the cap the decision is unknown, at the same place on
|
|
255
258
|
// any machine, where a wall-clock end stops it wherever the machine has got to. Untrusted: it only stops a search.
|
|
256
|
-
export const eprMeter = { n: 0 };
|
|
259
|
+
export const eprMeter = workCounterView({ n: 0 }, { n: 'epr' });
|
|
257
260
|
let eprCap = Infinity;
|
|
258
261
|
export const pastEprCap = () => eprMeter.n > eprCap;
|
|
259
262
|
export function withEprCap(units, f) {
|
|
@@ -282,8 +285,8 @@ function factsOf(h0, tick) {
|
|
|
282
285
|
const gather = (o) => {
|
|
283
286
|
if (!o || typeof o !== 'object' || seen.has(o))
|
|
284
287
|
return;
|
|
285
|
-
seen.add(o);
|
|
286
288
|
tick();
|
|
289
|
+
seen.add(o);
|
|
287
290
|
const x = o;
|
|
288
291
|
if (x.op === 'get')
|
|
289
292
|
reads.push(o);
|
|
@@ -452,7 +455,10 @@ const incOn = env.GDP_EPR_INC !== '0';
|
|
|
452
455
|
const pool = new Map(), other = 'another encoder\'s goal';
|
|
453
456
|
function decide0(goal, patterns, opts) {
|
|
454
457
|
let ticks = 0;
|
|
455
|
-
const tick = () => {
|
|
458
|
+
const tick = () => { if (completeWorkProfile.enabled)
|
|
459
|
+
startWork('epr', 1, 'EPR traversal');
|
|
460
|
+
else
|
|
461
|
+
eprMeter.n++; if ((++ticks & 4095) === 0 && opts.late?.())
|
|
456
462
|
throw pastEnd; };
|
|
457
463
|
const fs = goal.hyps.map(h => factsOf(h, tick));
|
|
458
464
|
// --- which hypotheses are EPR-shaped: every map read at a key of its map's pattern
|
|
@@ -483,7 +489,10 @@ function encoder(st, patterns) {
|
|
|
483
489
|
const { parts, bounded, caps, ordMaps, ordScalars } = st;
|
|
484
490
|
const fits = (map, key) => { const t = tupleOf(key), p = patterns[map]; return t && p && sameCoefs(t.coefs, p) ? t : undefined; };
|
|
485
491
|
const exactOf = (e) => (e.op === 'get' ? (!ordMaps.has(e.map) ? bounded.get(textOfE(e)) : undefined) : e.op === 'var' && !parts.has(e.name) && !ordScalars.has(e.name) ? bounded.get(textOfE(e)) : undefined);
|
|
486
|
-
let tick = () => {
|
|
492
|
+
let tick = () => { if (completeWorkProfile.enabled)
|
|
493
|
+
startWork('epr', 1, 'EPR encoding');
|
|
494
|
+
else
|
|
495
|
+
eprMeter.n++; };
|
|
487
496
|
// (what the hypothesis being encoded reads: its ordered terms, finite terms, opaque atoms and successors)
|
|
488
497
|
let use = { ords: [], fins: [], opq: [], succ: [] };
|
|
489
498
|
// --- atoms
|
|
@@ -1098,7 +1107,10 @@ function encoder(st, patterns) {
|
|
|
1098
1107
|
}
|
|
1099
1108
|
} };
|
|
1100
1109
|
const decideGoal = (goal, fs, gst, opts) => {
|
|
1101
|
-
tick = () => {
|
|
1110
|
+
tick = () => { if (completeWorkProfile.enabled)
|
|
1111
|
+
startWork('epr', 1, 'EPR traversal');
|
|
1112
|
+
else
|
|
1113
|
+
eprMeter.n++; if ((++ticks & 4095) === 0 && opts.late?.())
|
|
1102
1114
|
throw pastEnd; };
|
|
1103
1115
|
let ticks = 0;
|
|
1104
1116
|
const hs = fs.map(encode), gOrds = new Set(['k:0', ...[...parts].map(x => `p:${x}`)]), gFins = new Set(), gOpq = new Set(), gSuccs = new Set();
|
|
@@ -1802,8 +1814,11 @@ function cdclSolver(trueFirst, keepPhase) {
|
|
|
1802
1814
|
};
|
|
1803
1815
|
const propagate = () => {
|
|
1804
1816
|
while (qhead < trail.length) {
|
|
1817
|
+
if (completeWorkProfile.enabled)
|
|
1818
|
+
startWork('epr', 1, 'EPR propagation');
|
|
1805
1819
|
const l = trail[qhead++], ws = wl(l);
|
|
1806
|
-
|
|
1820
|
+
if (!completeWorkProfile.enabled)
|
|
1821
|
+
eprMeter.n++;
|
|
1807
1822
|
for (let i = 0; i < ws.length; i++) {
|
|
1808
1823
|
const c = ws[i];
|
|
1809
1824
|
if (c.lits[0] === -l) {
|
package/dist/kernel/kernel.d.ts
CHANGED
|
@@ -27,6 +27,11 @@ export declare const atomOf: (lin: Lin, holds: boolean) => Constraint;
|
|
|
27
27
|
export declare function linear(e: E, path: Path): Lin | undefined;
|
|
28
28
|
export declare const plainMap: (name: string) => boolean;
|
|
29
29
|
export declare const termColumn: (e: E) => string;
|
|
30
|
+
export declare const snapshotKernelTermState: () => {
|
|
31
|
+
terms: (E | C)[];
|
|
32
|
+
identities: [string, number][];
|
|
33
|
+
};
|
|
34
|
+
export declare const snapshotKernelTermMemo: (object: object) => number | undefined;
|
|
30
35
|
export declare const columnTerm: (name: string) => E | undefined;
|
|
31
36
|
export declare function decided(e: E, path: Path): boolean;
|
|
32
37
|
export declare function termRows(name: string, path: Path): Lin[];
|
|
@@ -71,7 +76,38 @@ export type LemmaCut = {
|
|
|
71
76
|
slice?: number[];
|
|
72
77
|
};
|
|
73
78
|
export declare function lemmaPath(lemmas: LemmaCut[], path: Path): Path;
|
|
74
|
-
export declare function checkGoalLemmas(goal: Goal, tree: Tree, lemmas?: LemmaCut[]): boolean;
|
|
79
|
+
export declare function checkGoalLemmas(goal: Goal, tree: Tree, lemmas?: LemmaCut[], frames?: FrameCut[], counts?: Count[], monos?: MonoCut[], lins?: LinCut[]): boolean;
|
|
80
|
+
export type FrameCut = {
|
|
81
|
+
when: Lin[];
|
|
82
|
+
post: string;
|
|
83
|
+
pre: string;
|
|
84
|
+
};
|
|
85
|
+
export declare function truthK(c: C, path: Path, key: string): boolean | undefined;
|
|
86
|
+
export declare function simpC(c: C, path: Path, key: string): C;
|
|
87
|
+
export declare function simpE(e: E, path: Path, key: string): E;
|
|
88
|
+
export declare const whenPath: (f: FrameCut) => Path;
|
|
89
|
+
export declare function frameOk(counts: Count[], f: FrameCut): boolean;
|
|
90
|
+
export declare const frameRows: (f: FrameCut) => Lin[];
|
|
91
|
+
export declare const frameActive: (f: FrameCut, path: Path) => boolean;
|
|
92
|
+
export declare function framePath(frames: FrameCut[], lemmas: LemmaCut[], path: Path, monos?: MonoCut[], lins?: LinCut[]): Path;
|
|
93
|
+
export type MonoCut = {
|
|
94
|
+
when: C[];
|
|
95
|
+
post: string;
|
|
96
|
+
pre: string;
|
|
97
|
+
tree: Tree;
|
|
98
|
+
};
|
|
99
|
+
export declare function monoOk(counts: Count[], m: MonoCut): boolean;
|
|
100
|
+
export declare const monoRows: (m: MonoCut) => Lin[];
|
|
101
|
+
export declare const monoActive: (m: MonoCut, path: Path) => boolean;
|
|
102
|
+
export type LinCut = {
|
|
103
|
+
when: C[];
|
|
104
|
+
pos: [number, string][];
|
|
105
|
+
neg: [number, string][];
|
|
106
|
+
tree: Tree;
|
|
107
|
+
};
|
|
108
|
+
export declare function linOk(counts: Count[], l: LinCut): boolean;
|
|
109
|
+
export declare const linRows: (l: LinCut) => Lin[];
|
|
110
|
+
export declare const linActive: (l: LinCut, path: Path) => boolean;
|
|
75
111
|
export type Subst = {
|
|
76
112
|
vars: Record<string, E>;
|
|
77
113
|
maps: Record<string, (key: E) => E>;
|
|
@@ -101,6 +137,10 @@ export declare function eachParts(w: {
|
|
|
101
137
|
};
|
|
102
138
|
export declare function projected(e: E): E;
|
|
103
139
|
export declare const projectedC: (c: C) => C;
|
|
140
|
+
export declare function finiteBound(q: Extract<C, {
|
|
141
|
+
op: 'all';
|
|
142
|
+
}>): E | undefined;
|
|
143
|
+
export declare function finiteLawBound(law: Law): E | undefined;
|
|
104
144
|
export declare const keyTerm: (e: E, key: string) => boolean;
|
|
105
145
|
export declare const plainKey: (t: E | C, key: string) => boolean;
|
|
106
146
|
export declare function historyMachine(m: Machine): {
|
|
@@ -346,6 +386,9 @@ export declare function checkCounted(g: CountedGoal, cert: {
|
|
|
346
386
|
insts: CountInst[];
|
|
347
387
|
tree: Tree;
|
|
348
388
|
lemmas?: LemmaCut[];
|
|
389
|
+
frames?: FrameCut[];
|
|
390
|
+
monos?: MonoCut[];
|
|
391
|
+
lins?: LinCut[];
|
|
349
392
|
}): boolean;
|
|
350
393
|
export declare function countedGoal(g: CountedGoal, insts: CountInst[]): Goal | undefined;
|
|
351
394
|
export type CountDecl = {
|
|
@@ -364,6 +407,9 @@ export type CountCert = {
|
|
|
364
407
|
tree: Tree;
|
|
365
408
|
picks?: [string, E[]][];
|
|
366
409
|
lemmas?: LemmaCut[];
|
|
410
|
+
frames?: FrameCut[];
|
|
411
|
+
monos?: MonoCut[];
|
|
412
|
+
lins?: LinCut[];
|
|
367
413
|
};
|
|
368
414
|
export declare const postName: (map: string) => string;
|
|
369
415
|
export declare const stateCounts: (m: Machine) => string[];
|