notes

The glob matcher, and the two things that made it tractable

Name: ratified 2026-10-18 (calef, convention-rulings Rule 3).

An appendix to notes/verification.md. It holds what proving the glob matcher taught about the cost of a proof.

Six harnesses are in src/lib.rs of the repository partsfoundry/byte_glob, the pattern matcher of milestone 47 (navigation and naming). See nifeos/nife:notes/glob.md for the crate itself, which carries the harness table. The target is a loop over two byte strings where the pattern is untrusted. So the property that matters is the one BMC is best at: totality, meaning no panic and no hang on any input.

It also produced two findings. Both are about the same thing: the cost of a proof is the shape of the code, not the size of the claim.

Kani also falsified a harness here, rather than the code. With a fully symbolic class body, [!y] is already a negated class. So "[xy] and [!xy] are complements" is false when x is !. It came back in 42 seconds with the counterexample. It is worth recording, because the reflex on a red harness is to suspect the code.

The cost, stated rather than discovered: about ten minutes of solver time for the six, which makes byte_glob's proofs the slowest in this suite. Two thirds of it is the two harnesses that quantify over a symbolic-length pattern and a symbolic-length name at once. The expensive thing is not the property, it is the second symbolic length. Cutting one harness's name bound from three bytes to two took it from 279s to 199s without weakening it, because that harness's rule is a predicate on the name's first byte.