Skip to content

Commit

Permalink
add nat_thru_w64_id lemma
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjit-bhat committed Oct 27, 2024
1 parent 9911050 commit 4318c11
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Helpers/Integers.v
Original file line number Diff line number Diff line change
Expand Up @@ -691,3 +691,8 @@ Proof.
{ rewrite Z.mul_comm. apply ZLib.Z.Z_mod_mult'. }
word.
Qed.

Lemma nat_thru_w64_id (x : nat) :
Z.of_nat x < 2^64 ->
uint.nat (W64 (Z.of_nat x)) = x.
Proof. word. Qed.

0 comments on commit 4318c11

Please sign in to comment.