TypeScript proof tools
Refactor
with proof.
Write the rule once in TypeScript. Change the implementation. Ask Lean if it still holds.
Join the alphaTS count-free.ts
Recorded runexport 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.