From a189b8ad9943cec026ea2797789d8dc72a6d3336 Mon Sep 17 00:00:00 2001 From: jadep Date: Thu, 14 Mar 2019 15:04:10 -0400 Subject: remove extraneous module identifiers --- src/PushButtonSynthesis/BarrettReduction.v | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/PushButtonSynthesis/BarrettReduction.v') diff --git a/src/PushButtonSynthesis/BarrettReduction.v b/src/PushButtonSynthesis/BarrettReduction.v index 19014ffec..3946a39c2 100644 --- a/src/PushButtonSynthesis/BarrettReduction.v +++ b/src/PushButtonSynthesis/BarrettReduction.v @@ -30,7 +30,7 @@ Import Compilers.defaults. Import COperationSpecifications.Primitives. Import COperationSpecifications.BarrettReduction. -Import Associational Positional Arithmetic.BarrettReduction. +Import Associational Positional. Local Set Keyed Unification. (* needed for making [autorewrite] fast, c.f. COQBUG(https://github.com/coq/coq/issues/9283) *) @@ -71,12 +71,12 @@ Section rbarrett_red. Lemma mut_correct : 0 < machine_wordsize -> - Partition.partition (UniformWeight.uweight machine_wordsize) (1 + 1) (muLow + 2 ^ machine_wordsize) = [muLow; 1]. + partition (uweight machine_wordsize) (1 + 1) (muLow + 2 ^ machine_wordsize) = [muLow; 1]. Proof. intros; cbn. subst muLow. assert (0 < 2^machine_wordsize) by ZeroBounds.Z.zero_bounds. pose proof (Z.mod_pos_bound mu (2^machine_wordsize) ltac:(lia)). - rewrite !UniformWeight.uweight_S, weight_0; auto using UniformWeight.uwprops with lia. + rewrite !uweight_S, weight_0; auto using uwprops with lia. autorewrite with zsimplify. Modulo.push_Zmod. autorewrite with zsimplify. Modulo.pull_Zmod. rewrite <-Modulo.Z.mod_pull_div by lia. @@ -86,10 +86,10 @@ Section rbarrett_red. Lemma Mt_correct : 0 < machine_wordsize -> 2^(machine_wordsize - 1) < M < 2^machine_wordsize -> - Partition.partition (UniformWeight.uweight machine_wordsize) 1 M = [M]. + partition (uweight machine_wordsize) 1 M = [M]. Proof. intros; cbn. assert (0 < 2^(machine_wordsize-1)) by ZeroBounds.Z.zero_bounds. - rewrite !UniformWeight.uweight_S, weight_0; auto using UniformWeight.uwprops with lia. + rewrite !uweight_S, weight_0; auto using uwprops with lia. autorewrite with zsimplify. RewriteModSmall.Z.rewrite_mod_small. reflexivity. Qed. @@ -177,7 +177,7 @@ Section rbarrett_red. | progress cbv [weight] | rewrite mut_correct | rewrite Mt_correct - | rewrite UniformWeight.uweight_eq_alt' + | rewrite uweight_eq_alt' | rewrite Z.pow_mul_r by lia ]. Local Strategy -100 [barrett_red]. (* needed for making Qed not take forever *) -- cgit v1.2.3