aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2018-02-19 13:55:08 -0500
committerGravatar Jason Gross <jasongross9@gmail.com>2018-02-19 17:59:16 -0500
commit6fa8d678414e4622ae3624dc3f56232087a0d907 (patch)
treedd2a6a755aa6ea602d47d3c12b42992982bd47f2 /src
parenta93e56748621f3afa227829697c3f97ba585885e (diff)
Remove the mod on eval_add
Diffstat (limited to 'src')
-rw-r--r--src/Experiments/SimplyTypedArithmetic.v5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Experiments/SimplyTypedArithmetic.v b/src/Experiments/SimplyTypedArithmetic.v
index ed96850cb..1dc466849 100644
--- a/src/Experiments/SimplyTypedArithmetic.v
+++ b/src/Experiments/SimplyTypedArithmetic.v
@@ -228,9 +228,8 @@ Module Positional. Section Positional.
from_associational n (a_a ++ b_a).
Lemma eval_add n (f g:list Z)
(Hf : length f = n) (Hg : length g = n) :
- eval n (add n f g) mod m = (eval n f + eval n g) mod m.
- Proof. cbv [add]; rewrite Hm in *; push; trivial.
- destruct n; auto. Qed.
+ eval n (add n f g) = (eval n f + eval n g).
+ Proof. cbv [add]; push; trivial. destruct n; auto. Qed.
End add.
Section sub.