Expand description
Query subsumption: does the result set of next provably fit inside the
result set of prev? When it does (and the index generation is
unchanged), the engine refines the cached prev ids instead of scanning
โ the incremental-typing fast path.
Every rule here must be sound (false positives lose results โ the one unacceptable failure mode); being incomplete merely costs a cold scan. The oracle property test in exec.rs cross-checks refine == fresh search over random names and typing sequences.
Functionsยง
- bridge_
needle ๐ - Needle-domain bridge: a byte needle proven about one pool implies one
about the other only in the origโfolded direction. Valid-UTF-8 needles
can only match at code-point boundaries and folding is length-preserving
per code point, so a name matching
nat offset i guarantees the lower pool holdsfold(n)at i. The reverse (folded match โ original bytes) does not hold. - implies ๐
- Does a positive match of
nguarantee a positive match ofp? - matcher_
eq ๐ - Structural equality of two compiled matchers.
- subsumes
- True when every entry matching
next(undernext_opt) is guaranteed to be present inprevโs materialized ids, in the right order.