TypeScript proof arcade
First match
wins.
Can you beat linear search? Play through an array, then see how Pud proves the rule for every list in its model.
Join the alphaLINEAR SEARCHLv. 1
FIND 7
Pick the first 7. Use −1 if it’s missing.
The win condition
Return the first matching index, or −1 when the target is absent. Lean checks the property for dense bigint arrays of any finite length.
Read the proof ↗