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 #260

Merged
merged 1 commit into from
Oct 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 4 additions & 4 deletions tutorial/Utils_tutorial.v
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ Section nat_Show.
a = b.
Proof.
intros.
rewrite (NPeano.Nat.div_mod a q); auto.
rewrite (NPeano.Nat.div_mod b q); auto.
rewrite (Nat.div_mod a q); auto.
rewrite (Nat.div_mod b q); auto.
Qed.

Lemma get_last_digit_inj: forall n m,
Expand All @@ -296,9 +296,9 @@ Section nat_Show.
subst.
exfalso.
destruct n8.
2: generalize (NPeano.Nat.mod_upper_bound n 10 (ltac:(auto))); intros EQ; rewrite Heq in EQ; lia.
2: generalize (Nat.mod_upper_bound n 10 (ltac:(auto))); intros EQ; rewrite Heq in EQ; lia.
destruct n9.
2: generalize (NPeano.Nat.mod_upper_bound m 10 (ltac:(auto))); intros EQ; rewrite Heq0 in EQ; lia.
2: generalize (Nat.mod_upper_bound m 10 (ltac:(auto))); intros EQ; rewrite Heq0 in EQ; lia.
exfalso; apply ineq,(mod_div_eq n m 10); lia.
Qed.

Expand Down