Design decisions

329. count_until (L0562): a value stepped while a counter counts is a find (2026-11-22)

while p < n: p *= 3; k += 1, with var p = <int> and var k = 0 before it, is the smallest k where the condition fails. The help writes (0..).find(k => 3 ** k >= n)!, substituting the closed form of p ((p_0 \cdot c^k) for *=, (p_0 + c k) for +=) into the negated condition. Other steps (x = (x + 1) / 2, /=) have no closed form and are skipped. idiom, warn, help only, since p may be read after the loop. Raised by Ryan on corpus/problems/cf2096g/port.cp, its one corpus finding. Reverse: delete spec/lints/count_until/ and rules/count_until.rs.