First match in a bounded natural-number range #
Cslib.findCode visits consecutive candidates in order and returns the first passing one,
with no allocated list of candidates. Its specification uses the existing List.find?.
Main definitions #
Cslib.findCode: a bounded first-match loop over consecutive natural numbers.
Main results #
Cslib.findCode_eq: the loop agrees with first-match lookup in the corresponding range.
The bounded search agrees with first-match lookup in the corresponding range.