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/WordUtil.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/WordUtil.v')
-rw-r--r-- | src/Util/WordUtil.v | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/Util/WordUtil.v b/src/Util/WordUtil.v index 64cfda434..c1eeb138b 100644 --- a/src/Util/WordUtil.v +++ b/src/Util/WordUtil.v @@ -15,8 +15,8 @@ Require Import Crypto.Util.Tactics.DestructHead. Require Import Crypto.Util.Tactics.RewriteHyp. Require Import Crypto.Util.Sigma. -Require Import Bedrock.Word. -Require Import Bedrock.Nomega. +Require Import bbv.WordScope. +Require Import bbv.Nomega. Require Import Crypto.Util.FixCoqMistakes. @@ -370,8 +370,6 @@ Section WordToN. + clear IHk'. shatter x; simpl. - rewrite N.succ_double_spec; simpl. - rewrite kill_match. replace (N.pos (Pos.of_succ_nat k')) with (N.succ (N.of_nat k')) @@ -826,11 +824,6 @@ Definition setbit {b} n {H:n < b} (w:word b) : word b := Definition clearbit {b} n {H:n < b} (w:word b) : word b := wand (cast_word( wones n ++ wzero 1 ++ wones (b-n-1) )) w. -Lemma wordToNat_wzero {n} : wordToNat (wzero n) = 0. -Proof. - unfold wzero; induction n as [|n IHn]; simpl; try rewrite_hyp!*; omega. -Qed. - Lemma wordToNat_combine : forall {a} (wa:word a) {b} (wb:word b), wordToNat (wa ++ wb) = wordToNat wa + 2^a * wordToNat wb. Proof. |