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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Untrusted structural discovery for a threshold write at its source row.
|
|
2
|
+
// No operation, field, law, or protocol name is built in.
|
|
3
|
+
import { walkOnce } from "./machine.js";
|
|
4
|
+
const atoms = (c) => c.op === 'and' ? c.xs.flatMap(atoms) : [c];
|
|
5
|
+
const fields = (value) => { const out = new Set(); walkOnce(value, (node) => { if (node.op === 'get')
|
|
6
|
+
out.add(node.map); }); return out; };
|
|
7
|
+
export function discoverCountThresholdWrite(m, shape, choice) {
|
|
8
|
+
const write = m.step.maps?.[shape.thresholdField];
|
|
9
|
+
if (!write || !('each' in write))
|
|
10
|
+
return;
|
|
11
|
+
const inputCount = (input) => Object.entries(m.counts ?? {}).filter(([, count]) => {
|
|
12
|
+
const maps = fields(count.body);
|
|
13
|
+
return !count.base && count.body.op === 'if' && count.body.then.op === 'const' && count.body.then.value === 1 && count.body.else.op === 'const' && count.body.else.value === 0 && maps.size === 1 && maps.has(input);
|
|
14
|
+
}).map(([name]) => name);
|
|
15
|
+
const candidates = [];
|
|
16
|
+
walkOnce(write.value, (node) => {
|
|
17
|
+
if (node.op !== 'if')
|
|
18
|
+
return;
|
|
19
|
+
let value = node.then, increment = 0;
|
|
20
|
+
if (value.op === 'add') {
|
|
21
|
+
const [a, b] = value.a.op === 'const' ? [value.b, value.a] : [value.a, value.b];
|
|
22
|
+
if (b.op !== 'const' || b.value !== 1)
|
|
23
|
+
return;
|
|
24
|
+
value = a;
|
|
25
|
+
increment = 1;
|
|
26
|
+
}
|
|
27
|
+
if (value.op !== 'get' || value.map !== shape.memberField || value.key.op !== 'var' || !m.inputs.includes(value.key.name))
|
|
28
|
+
return;
|
|
29
|
+
const source = value.key.name, gate = atoms(node.c);
|
|
30
|
+
if (!gate.some(c => c.op === '=' && ((c.a.op === 'var' && c.a.name === write.each && c.b.op === 'var' && c.b.name === source) || (c.b.op === 'var' && c.b.name === write.each && c.a.op === 'var' && c.a.name === source))))
|
|
31
|
+
return;
|
|
32
|
+
for (const c of gate) {
|
|
33
|
+
if (c.op !== 'flag')
|
|
34
|
+
continue;
|
|
35
|
+
const active = m.step.flags?.[c.name];
|
|
36
|
+
if (!active || active.op === 'all' || !atoms(active).some(a => {
|
|
37
|
+
if (a.op !== '=')
|
|
38
|
+
return false;
|
|
39
|
+
const [v, n] = a.a.op === 'var' ? [a.a, a.b] : [a.b, a.a];
|
|
40
|
+
return v.op === 'var' && v.name === choice.name && n.op === 'const' && n.value === choice.value;
|
|
41
|
+
}))
|
|
42
|
+
continue;
|
|
43
|
+
const direct = [...fields(active)].filter(map => m.inputMaps?.includes(map));
|
|
44
|
+
if (direct.length !== 1)
|
|
45
|
+
continue;
|
|
46
|
+
const input = direct[0], ownCounts = inputCount(input);
|
|
47
|
+
if (ownCounts.length !== 1)
|
|
48
|
+
continue;
|
|
49
|
+
const all = new Set(fields(active)), seen = new Set();
|
|
50
|
+
const expand = (value) => walkOnce(value, (node) => {
|
|
51
|
+
if (node.op !== 'flag' || seen.has(node.name))
|
|
52
|
+
return;
|
|
53
|
+
seen.add(node.name);
|
|
54
|
+
const flag = m.step.flags?.[node.name];
|
|
55
|
+
if (flag) {
|
|
56
|
+
for (const field of fields(flag))
|
|
57
|
+
all.add(field);
|
|
58
|
+
expand(flag);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
expand(active);
|
|
62
|
+
const other = [...all].filter(map => map !== input && m.inputMaps?.includes(map));
|
|
63
|
+
if (other.length > 1)
|
|
64
|
+
continue;
|
|
65
|
+
const committedInput = other[0], committed = committedInput ? inputCount(committedInput) : [];
|
|
66
|
+
if (committedInput && committed.length !== 1)
|
|
67
|
+
continue;
|
|
68
|
+
candidates.push({ source, guard: c.name, increment, input, inputCount: ownCounts[0], ...(committedInput ? { committedInput, committedCount: committed[0] } : {}) });
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
const unique = [...new Map(candidates.map(value => [JSON.stringify(value), value])).values()];
|
|
72
|
+
return unique.length === 1 ? unique[0] : undefined;
|
|
73
|
+
}
|
package/dist/core/counts.d.ts
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { type C, type E, type Law, type Machine } from './machine.js';
|
|
2
|
-
import { type
|
|
2
|
+
import { type CountInst, type MapRead } from '../kernel/kernel.js';
|
|
3
3
|
import { inferLaws } from './infer.js';
|
|
4
4
|
export { attemptShare, supportBudget } from './support-budget.js';
|
|
5
|
+
import { type CountFamilyProof, type CountLawProof, type ScopedCountProof } from './count-proof-scope.js';
|
|
6
|
+
import { type LiftedWorkBudget } from './count-lifted-budget.js';
|
|
7
|
+
import { type CountRecipeClosingEntry } from './count-recipe-controller.js';
|
|
8
|
+
import { type CountTierBudget } from './count-tier-budget.js';
|
|
9
|
+
import { type CountClosingBudget } from './count-closing-budget.js';
|
|
5
10
|
export declare const cprof: Record<string, number>;
|
|
6
11
|
export declare const countsDump: {
|
|
7
12
|
on?: (goal: object) => void;
|
|
@@ -25,12 +30,14 @@ export declare function certFor(goal: {
|
|
|
25
30
|
picks: [string, E[]][];
|
|
26
31
|
loose: boolean;
|
|
27
32
|
};
|
|
28
|
-
export declare function candidates(src: Parameters<typeof inferLaws>[0], m: Machine, caller: Law[], shapes: Law[], guarded: Law[], ms: number, until: number, support?: Set<Law
|
|
33
|
+
export declare function candidates(src: Parameters<typeof inferLaws>[0], m: Machine, caller: Law[], shapes: Law[], guarded: Law[], ms: number, until: number, support?: Set<Law>, publish?: (laws: Law[]) => void): Law[];
|
|
29
34
|
export type Tried<P> = {
|
|
30
35
|
proof: P;
|
|
31
36
|
} | {
|
|
32
37
|
stuck: string;
|
|
33
38
|
refuted?: boolean;
|
|
39
|
+
expired?: boolean;
|
|
40
|
+
reason?: string;
|
|
34
41
|
};
|
|
35
42
|
export declare function withDeferredCountRecovery<P>(until: number, attempt: (defer: (recover: () => P | undefined) => void) => Tried<P>, ready?: () => boolean): Tried<P>;
|
|
36
43
|
export declare function cone<P>(m: Machine, set: Law[], attempt: (law: Law, ls: Law[], ms: number) => Tried<P>, until: number, houdini?: boolean): Map<string, P>;
|
|
@@ -39,24 +46,41 @@ export declare function countSupportContext(m: Machine, caller: Law[], set: Law[
|
|
|
39
46
|
laws: Law[];
|
|
40
47
|
support: Set<Law>;
|
|
41
48
|
};
|
|
42
|
-
export declare function supportOrder(set: Law[], caller: Law[], support: Set<Law>, forModels?: boolean): Law[];
|
|
49
|
+
export declare function supportOrder(set: Law[], caller: Law[], support: Set<Law>, forModels?: boolean, m?: Machine): Law[];
|
|
43
50
|
export type Counted = {
|
|
44
51
|
proven: boolean;
|
|
45
52
|
laws: Law[];
|
|
46
53
|
m: Machine;
|
|
47
|
-
proof?:
|
|
48
|
-
instances: Record<string, Instances>;
|
|
49
|
-
certs: Record<string, CountCert>;
|
|
50
|
-
};
|
|
54
|
+
proof?: CountFamilyProof;
|
|
51
55
|
why?: string;
|
|
52
56
|
};
|
|
57
|
+
export type CountedRecipeClosingSnapshot = Readonly<{
|
|
58
|
+
version: 'counted-recipe-closing/v1';
|
|
59
|
+
controller: CountRecipeClosingEntry<ScopedCountProof>;
|
|
60
|
+
m: Machine;
|
|
61
|
+
set: Law[];
|
|
62
|
+
caller: Law[];
|
|
63
|
+
initial: Law[];
|
|
64
|
+
selected: ReadonlySet<Law>;
|
|
65
|
+
structured: boolean;
|
|
66
|
+
closingBudget: CountClosingBudget | undefined;
|
|
67
|
+
until: number;
|
|
68
|
+
workAllowance: number;
|
|
69
|
+
scopeEnabled: boolean;
|
|
70
|
+
active: ReadonlySet<string>;
|
|
71
|
+
reachAbsent: boolean;
|
|
72
|
+
transportDeclined: string | undefined;
|
|
73
|
+
}>;
|
|
74
|
+
export declare const countRecipeClosingCapture: {
|
|
75
|
+
on?: (snapshot: CountedRecipeClosingSnapshot) => void;
|
|
76
|
+
};
|
|
53
77
|
export declare function searchCounted(m0: Machine, caller: Law[], ms?: number): Counted;
|
|
54
|
-
export declare function admitCountedFamily(m: Machine, caller: Law[], initial: Law[], support: Set<Law>, until: number): Counted;
|
|
55
|
-
export declare function countedAttempts(m: Machine, caller: Law[], support: Set<Law>, until: number, structured?: boolean): {
|
|
56
|
-
traced: (law: Law, ls: Law[], pass: 0 | 1, ms: number) => Tried<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
78
|
+
export declare function admitCountedFamily(m: Machine, caller: Law[], initial: Law[], support: Set<Law>, until: number, tiers?: CountTierBudget): Counted;
|
|
79
|
+
export declare function countedAttempts(m: Machine, caller: Law[], support: Set<Law>, until: number, structured?: boolean, focusedOrStrategies?: boolean | ReadonlySet<Law>, budgetOrWork?: CountTierBudget | number, tierBudget?: CountTierBudget, shapeFamily?: readonly Law[]): {
|
|
80
|
+
traced: (law: Law, ls: Law[], pass: 0 | 1, ms: number, strategyAllowed?: boolean) => Tried<CountLawProof>;
|
|
81
|
+
exactStrategy: (law: Law, ls: Law[], plan: LiftedWorkBudget) => import("./count-strategy.ts").CountStrategyProof | undefined;
|
|
82
|
+
strategyProposal: (law: Law, ls: Law[], kind: "row" | "guard") => import("./count-strategy.ts").CountStrategyProof | undefined;
|
|
83
|
+
countermodel: (law: Law) => Record<string, number> | undefined;
|
|
60
84
|
readonly counted: boolean;
|
|
61
85
|
houdini: boolean;
|
|
62
86
|
};
|