aboutsummaryrefslogtreecommitdiff
path: root/src/ModularArithmetic/ModularArithmeticTheorems.v
diff options
context:
space:
mode:
authorGravatar Andres Erbsen <andreser@mit.edu>2016-08-01 17:36:20 -0400
committerGravatar Andres Erbsen <andreser@mit.edu>2016-08-04 11:47:51 -0400
commit391fd7661eb7a48cd436c2375a4fa99978ebecd3 (patch)
treee21dd3d9b89149fea26d0635eef819d4e6a9b947 /src/ModularArithmetic/ModularArithmeticTheorems.v
parent207d320101ebcf58ee9d5febf43f31aabcab7744 (diff)
decidability hack
Diffstat (limited to 'src/ModularArithmetic/ModularArithmeticTheorems.v')
-rw-r--r--src/ModularArithmetic/ModularArithmeticTheorems.v3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ModularArithmetic/ModularArithmeticTheorems.v b/src/ModularArithmetic/ModularArithmeticTheorems.v
index e36d15c8b..5cbc4aa3c 100644
--- a/src/ModularArithmetic/ModularArithmeticTheorems.v
+++ b/src/ModularArithmetic/ModularArithmeticTheorems.v
@@ -43,7 +43,8 @@ Ltac unwrap_F :=
try apply eqsig_eq;
demod.
-Global Instance eq_dec {m} : DecidableRel (@eq (F m)). exact _. Defined.
+(* FIXME: remove the pose proof once [monoid] no longer contains decidable equality *)
+Global Instance eq_dec {m} : DecidableRel (@eq (F m)). pose proof dec_eq_Z. exact _. Defined.
Global Instance commutative_ring_modulo m
: @Algebra.commutative_ring (F m) Logic.eq 0%F 1%F opp add sub mul.