aboutsummaryrefslogtreecommitdiff
path: root/src/Experiments/SimplyTypedArithmetic.v
diff options
context:
space:
mode:
authorGravatar Jason Gross <jgross@mit.edu>2018-04-19 14:56:01 -0400
committerGravatar Jason Gross <jasongross9@gmail.com>2018-04-26 13:04:33 -0400
commit4c7aca3cbd8bc2e99af7786258e58cb6de6953ba (patch)
tree0a0e7ed614e303f40272efd981e3fe21c78536ea /src/Experiments/SimplyTypedArithmetic.v
parent5b86b5d0b1f2e9860786078c5a8d62c7aa0b1067 (diff)
Add some Positional Hint Rewrites
They disappear after the end of the section, but I want them to stay in distr_length for later proofs.
Diffstat (limited to 'src/Experiments/SimplyTypedArithmetic.v')
-rw-r--r--src/Experiments/SimplyTypedArithmetic.v5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Experiments/SimplyTypedArithmetic.v b/src/Experiments/SimplyTypedArithmetic.v
index 5e87ae937..95b7d2c2c 100644
--- a/src/Experiments/SimplyTypedArithmetic.v
+++ b/src/Experiments/SimplyTypedArithmetic.v
@@ -431,7 +431,10 @@ Module Positional. Section Positional.
End sub.
Hint Rewrite @eval_opp @eval_sub : push_eval.
Hint Rewrite @length_sub @length_opp : distr_length.
-End Positional. End Positional.
+End Positional.
+(* Hint Rewrite disappears after the end of a section *)
+Hint Rewrite length_zeros length_add_to_nth length_from_associational @length_add @length_carry_reduce @length_chained_carries @length_encode @length_sub @length_opp : distr_length.
+End Positional.
Record weight_properties {weight : nat -> Z} :=
{