Pud.

The Pud Test Kitchen

The proof is
in the pud.

Write a rule for your TypeScript. Pud asks Lean to prove it for every input the rule covers.

Try the half-cent rule
Pud in round glasses operating a miniature adding machine at a kitchen workbench.

Recipe / cents.proof.ts

Which way is half?

Scale a JavaScript number by 100 and round to the nearest integer. Exactly halfway? Take the higher cent.

Inspect the TypeScript rule ↗
Put an amount through

Math.round(12.5) 13¢