--- name: limits-check description: Tests a claim against known hard limits (algorithmic lower bounds, hardware ceilings, statistics, physics) with back-of-envelope arithmetic before any code is run. Use when a claim sounds revolutionary, beats a famous limit, or promises a large factor over mature tools. --- # Limits check Some claims can be checked with a pencil. If a result would break a proven bound, either the bound's assumptions don't apply (say which) or the measurement is wrong. Part of the Verification Bench (case file: see `verify`). ## Steps 1. **Name the quantity** the claim improves (time, memory, bits, accuracy, energy) and the input size it's measured at. 2. **Find the limit that applies.** Common ones: | Claim area | Limit to check | |---|---| | Comparison sorting, searching | Ω(n log n) comparisons; Ω(log n) for search | | Any data processing | Must read the input: time ≥ bytes ÷ memory bandwidth | | Hardware | Peak FLOP/s, memory and disk bandwidth from the spec sheet | | Learning from data | Can't exceed the label-noise ceiling | | Distributed systems | Speed of light between machines; the CAP trade-off | | Parallel speedup | Amdahl's law from the serial fraction | 3. **Do the arithmetic.** Write each line with units. For example: 1 GB processed in 10 ms is 100 GB/s, which is above a laptop's memory bandwidth (about 50–100 GB/s), so the data can't all have been read. 4. **List the escape hatches honestly.** A limit can be sidestepped by changing the problem: non-comparison sorts for integers, a special input distribution, approximation, precomputation, work done before the timer starts. If the claim relies on one, the pinned claim must say so. 5. **Decide what the code must show.** Turn the arithmetic into a check for later skills: "the timer must include loading", "test on random inputs, not sorted ones". ## Results - **FAIL**: the measured number is beyond a limit whose assumptions hold. - **PASS**: within all limits, with the margin stated. - **INCONCLUSIVE**: an escape hatch applies but isn't stated in the claim; send the question back to `pin-the-claim`. - If the hidden escape hatch *is* how the number was made (precomputed answers, work done before the timer), that's a FAIL for the claim as pinned; record the hatch and hand it to `hardcode-hunt`. ## Entry ```markdown ### limits-check · · PASS | FAIL | INCONCLUSIVE - Limit: , assumptions hold: yes/no - Arithmetic: - Escape hatch relied on: - Checks handed on: ```