gdp-wired 0.50.5 → 0.50.6
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/machine.js
CHANGED
|
@@ -1481,13 +1481,9 @@ function renameKey(lin, from, to) {
|
|
|
1481
1481
|
// just need a stronger invariant.
|
|
1482
1482
|
export function search(m, law, depth = 3, bound = 2) {
|
|
1483
1483
|
const run = interpret(m);
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
return evalC({ op: 'all', key: law.forall, c: law.holds, finite: law.finite }, params, st, m);
|
|
1488
|
-
const keys = law.forall ? [...new Set([0, ...Object.values(st.maps).flatMap(cells => [...cells.keys()])])] : [0];
|
|
1489
|
-
return keys.every(key => evalC(law.holds, { ...params, ...(law.forall ? { [law.forall]: key } : {}) }, st, m));
|
|
1490
|
-
};
|
|
1484
|
+
finiteLawBound(law); // Preserve validation of explicit finite-domain metadata.
|
|
1485
|
+
const condition = law.forall ? { op: 'all', key: law.forall, keys: law.keys, c: law.holds, finite: law.finite } : law.holds;
|
|
1486
|
+
const holds = (params, st) => evalC(condition, params, st, m);
|
|
1491
1487
|
const tops = new Map();
|
|
1492
1488
|
const conj = (c) => (c === undefined ? [] : c.op === 'and' ? c.xs.flatMap(conj) : [c]);
|
|
1493
1489
|
for (const c of [...conj(m.pre), ...conj(m.assume)])
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdp-wired",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.6",
|
|
4
4
|
"description": "An automatic prover for stateful rules (budgets, caps, windows, workflows, policies): laws proven with no proof to write, checked again in Lean, counterexamples found on the GPU, the rule shipped as code",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"verification",
|