fix(prove): the fast set is the harnesses not on the slow list
The _kani recipe takes the fast set as comm -23 of the bare harness names and kani_slow. comm needs sorted input, and the bare names came from a list sorted by qualified name: once the proofs became modules (K-U0, proofs::allocate::x sorts apart from proofs::x), they were no longer in order. comm then put seven of the ten slow harnesses in the fast set (94, not 87), which ran past the fast set's 30-minute cap (just prove exit 124; K-U3's worker hit the same cap), and the two checks beside it saw nothing: comm refused the unsorted input, so the check that every slow name is a harness never fired, and uniq -d found only adjacent duplicate names. The bare names are sorted now: the fast set is 87, verified in 599 s, with the Lean audit at 188 theorems. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a983f5f238
commit
2ee01e7e65
1 file changed
+6
-1
@@ -112,7 +112,12 @@ _kani set:
|
||||
awk -v mod="$mod" '/#\[kani::proof\]/ { p = 1; next } p && match($0, /^fn [a-z_0-9]+/) { print mod "::" substr($0, 4, RLENGTH - 3); p = 0 }' "$f"
|
||||
done | sort
|
||||
)
|
||||
bare=$(sed 's/.*:://' <<<"$all")
|
||||
# Sorted by bare name: comm and uniq -d below need sorted input, and
|
||||
# `all` is sorted by qualified name, which differs once proofs live in
|
||||
# modules (proofs::allocate::x sorts apart from proofs::x). Unsorted,
|
||||
# comm put the slow harnesses in the fast set and the two checks
|
||||
# below saw nothing (found 2026-11-09: the fast set ran 94, not 87).
|
||||
bare=$(sed 's/.*:://' <<<"$all" | sort)
|
||||
slow=$(tr ' ' '\n' <<<"{{kani_slow}}" | sort)
|
||||
# Two harnesses with one name would make kani_slow (a list of bare
|
||||
# names) ambiguous.
|
||||
|
||||
Reference in new issue
Block a user