diff options
author | Samuel Gruetter <samuel.gruetter@epfl.ch> | 2018-02-02 16:09:01 -0500 |
---|---|---|
committer | Jason Gross <jasongross9@gmail.com> | 2018-02-05 16:07:28 -0500 |
commit | 3fd5f652ba38a0b308b6e2e86783d82b861fb5bf (patch) | |
tree | fd3752dd3a4bb9b216bcc5eabeb320a8ed9ffba4 /src/Util/NUtil.v | |
parent | e11d6d06e6eda3cd5940765dbbea420416725832 (diff) |
minor updates needed to make it compile with bbv
removing lemma wordToNat_wzero is ok because it's already in bbv
Diffstat (limited to 'src/Util/NUtil.v')
-rw-r--r-- | src/Util/NUtil.v | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Util/NUtil.v b/src/Util/NUtil.v index 9321f2b23..8c354690b 100644 --- a/src/Util/NUtil.v +++ b/src/Util/NUtil.v @@ -1,7 +1,8 @@ Require Import Coq.NArith.NArith. Require Import Coq.Numbers.Natural.Peano.NPeano. Require Import Crypto.Util.NatUtil Crypto.Util.Decidable. -Require Bedrock.Word. +Require bbv.WordScope. +Require Import bbv.NatLib. Require Crypto.Util.WordUtil. Module N. @@ -107,7 +108,7 @@ Module N. Section ZN. Import Coq.ZArith.ZArith. Lemma ZToN_NPow2_lt : forall z n, (0 <= z < 2 ^ Z.of_nat n)%Z -> - (Z.to_N z < Word.Npow2 n)%N. + (Z.to_N z < Npow2 n)%N. Proof. intros. apply WordUtil.bound_check_nat_N. |