Skip to content

Commit 0bd474a

Browse files
Tetsuo Yokoyamaclaude
andcommitted
framework: use map_length/seq_length (coqc 8.18-compatible)
The 9.1-only names length_map/length_seq broke the CI verify job under coqc 8.18; map_length/seq_length exist in both. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 7929dd4 commit 0bd474a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

framework/AvgCost.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Theorem linear_search_avg :
5959
forall n, mean_eq (map (fun k => lc k (seq 1 n)) (seq 1 n)) (n + 1) 2.
6060
Proof.
6161
intro n. unfold mean_eq.
62-
rewrite length_map, length_seq.
62+
rewrite map_length, seq_length.
6363
assert (Hmap : map (fun k => lc k (seq 1 n)) (seq 1 n) = seq 1 n).
6464
{ transitivity (map (fun k => k) (seq 1 n)).
6565
- apply map_ext_in. intros k Hk. apply in_seq in Hk.

0 commit comments

Comments
 (0)