aboutsummaryrefslogtreecommitdiff
path: root/theories/Numbers/Cyclic/ZModulo
diff options
context:
space:
mode:
authorcoqbot-app[bot]2020-11-16 16:26:41 +0000
committerGitHub2020-11-16 16:26:41 +0000
commitaf96434d2991b9f01f6cd3963ed114b57e40792f (patch)
treed10e879b4d7ae13c3623fd7073631e219f24753b /theories/Numbers/Cyclic/ZModulo
parenta400dbf104ea3bf0fef51a62e774fb4ff60a7397 (diff)
parent4f28dd46d4bfce732693d6904f80e25b53d4fb2a (diff)
Merge PR #13384: Warn on hints without an explicit locality
Reviewed-by: Zimmi48
Diffstat (limited to 'theories/Numbers/Cyclic/ZModulo')
-rw-r--r--theories/Numbers/Cyclic/ZModulo/ZModulo.v3
1 files changed, 3 insertions, 0 deletions
diff --git a/theories/Numbers/Cyclic/ZModulo/ZModulo.v b/theories/Numbers/Cyclic/ZModulo/ZModulo.v
index 5e486333b2..6aad65899a 100644
--- a/theories/Numbers/Cyclic/ZModulo/ZModulo.v
+++ b/theories/Numbers/Cyclic/ZModulo/ZModulo.v
@@ -61,6 +61,7 @@ Section ZModulo.
apply Z.lt_gt.
unfold wB, base; auto with zarith.
Qed.
+ #[local]
Hint Resolve wB_pos : core.
Lemma spec_to_Z_1 : forall x, 0 <= [|x|].
@@ -72,6 +73,7 @@ Section ZModulo.
Proof.
unfold to_Z; intros; destruct (Z_mod_lt x wB wB_pos); auto.
Qed.
+ #[local]
Hint Resolve spec_to_Z_1 spec_to_Z_2 : core.
Lemma spec_to_Z : forall x, 0 <= [|x|] < wB.
@@ -706,6 +708,7 @@ Section ZModulo.
Proof.
induction p; simpl; auto with zarith.
Qed.
+ #[local]
Hint Resolve Ptail_pos : core.
Lemma Ptail_bounded : forall p d, Zpos p < 2^(Zpos d) -> Ptail p < Zpos d.