aboutsummaryrefslogtreecommitdiff
path: root/theories/ZArith/Znat.v
diff options
context:
space:
mode:
Diffstat (limited to 'theories/ZArith/Znat.v')
-rw-r--r--theories/ZArith/Znat.v2
1 files changed, 1 insertions, 1 deletions
diff --git a/theories/ZArith/Znat.v b/theories/ZArith/Znat.v
index 454f62aa9e..353ab602eb 100644
--- a/theories/ZArith/Znat.v
+++ b/theories/ZArith/Znat.v
@@ -318,7 +318,7 @@ Qed.
Lemma Z_of_N_minus : forall n m, Z_of_N (n-m) = Zmax 0 (Z_of_N n - Z_of_N m).
Proof.
- intros [|n] [|m]; simpl; trivial.
+ intros [|n] [|m]; simpl; trivial. rewrite Z.pos_sub_spec.
case Pcompare_spec; intros H.
subst. now rewrite Pminus_mask_diag.
rewrite Pminus_mask_Lt; trivial.