Skip to content

Commit

Permalink
Use replace instead of cutrewrite. (#101)
Browse files Browse the repository at this point in the history
Compatibility with coq/coq#12993.
  • Loading branch information
Zimmi48 committed Sep 9, 2020
1 parent 33bb328 commit 159c361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions theories/Data/ListFirstnSkipn.v
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Lemma firstn_cons : forall T n a (b : list T),
Proof.
destruct n; intros.
omega.
simpl. cutrewrite (n - 0 = n); [ | omega ]. reflexivity.
simpl. replace (n - 0) with n; [ | omega ]. reflexivity.
Qed.

Hint Rewrite firstn_app_L firstn_app_R firstn_all firstn_0 firstn_cons using omega : list_rw.
Expand Down Expand Up @@ -86,7 +86,7 @@ Lemma skipn_cons : forall T n a (b : list T),
Proof.
destruct n; intros.
omega.
simpl. cutrewrite (n - 0 = n); [ | omega ]. reflexivity.
simpl. replace (n - 0) with n; [ | omega ]. reflexivity.
Qed.

Hint Rewrite skipn_app_L skipn_app_R skipn_0 skipn_all skipn_cons using omega : list_rw.
Hint Rewrite skipn_app_L skipn_app_R skipn_0 skipn_all skipn_cons using omega : list_rw.

0 comments on commit 159c361

Please sign in to comment.