TypeScript proof tools

Refactor
with proof.

Write the rule once in TypeScript. Change the implementation. Ask Lean if it still holds.

Join the alpha

TS count-free.ts

Recorded run
export function countFree(
left: readonly bigint[],
right: readonly bigint[]
): bigint {
return countBatch(right) + countBatch(left);}

✓ PASS

Both batches counted

One rule, two batches.

The scheduler must count every available participant. Drop the right batch and Pud finds a witness. The left list is empty. The right holds one vote.

Inspect the fixture ↗