WIP: bitvector library
Merge request reports
Activity
- Resolved by Michael Sammler
added 1 commit
- 9b5a6095 - added conversion functions for little endian
added 20 commits
-
9b5a6095...a64573ba - 16 commits from branch
master
- 4043de33 - WIP bitvector library
- 30691593 - add automation and lemmas about operations
- c51f7098 - added conversion functions for little endian
- 66db06af - comment
Toggle commit list-
9b5a6095...a64573ba - 16 commits from branch
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- theories/bitvector.v 0 → 100644
119 induction Hall as [|b bs Hb ? IH]; [done|]; simpl. 120 apply Z_bounded_iff_bits_nonneg'; [ nia | |]. 121 - apply Z.lor_nonneg. split; [|lia]. apply Z.shiftl_nonneg. lia. 122 - intros l ?. rewrite Z.lor_spec. 123 eapply Z_bounded_iff_bits_nonneg' in Hb. 124 + erewrite Hb, orb_false_r. 125 rewrite Z.shiftl_spec by nia. 126 eapply Z_bounded_iff_bits_nonneg'; [| | done |]; nia. 127 + lia. 128 + lia. 129 + nia. 130 Qed. 131 132 133 (** * Preliminary definitions *) 134 Definition bv_modulus (n : N) : Z := 2 ^ (Z.of_N n). This file only uses
Z
andN
(ignoringZ_to_little
which is part of !254 (merged)) at the moment. We could switch toN
tonat
, but isla-coq needs bitsizes up to 128 and I fear that this might be a large number fornat
.
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- Resolved by Michael Sammler
- Resolved by Michael Sammler
Please register or sign in to reply