Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapt to Coq/Coq#18164 #96

Merged
merged 1 commit into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Rupicola/Lib/Arrays.v
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ Section with_parameters.
Proof.
intros; rewrite Hput by lia.
rewrite List.firstn_app.
rewrite List.firstn_firstn, Min.min_idempotent.
rewrite List.firstn_firstn, Nat.min_idempotent.
rewrite List.firstn_length_le by lia.
rewrite Nat.sub_diag; cbn [List.firstn]; rewrite app_nil_r.
reflexivity.
Expand Down
3 changes: 2 additions & 1 deletion src/Rupicola/Lib/ControlFlow/DownTo.v
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ Section Gallina.
Nat.iter n f a = downto' a i (i + n) (fun a _ => f a).
Proof.
unfold downto'.
setoid_rewrite skipn_seq_step; setoid_rewrite minus_plus.
setoid_rewrite skipn_seq_step.
setoid_rewrite (Nat.add_comm _ n); setoid_rewrite Nat.add_sub.
simpl; induction n; simpl; intros.
- reflexivity.
- rewrite fold_left_app.
Expand Down