You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Deprecated:** ``Bool.Bvector``. Users are encouraged to consider ``list bool`` instead. Please open an issue if you would like to keep using ``Bvector``.
Copy file name to clipboardExpand all lines: theories/Bool/Bvector.v
+26-1Lines changed: 26 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,8 @@
10
10
11
11
(** N.B.: Using this encoding of bit vectors is discouraged.
12
12
See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v>. *)
13
-
Attributes warn(cats="stdlib vector", note="Using Vector.t is known to be technically difficult, see <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v>.").
13
+
Attributes deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.").
14
+
LocalSet Warnings "-deprecated".
14
15
15
16
(** Bit vectors. Contribution by Jean Duprat (ENS Lyon). *)
16
17
@@ -50,53 +51,72 @@ NOTA BENE: all shift operations expect predecessor of size as parameter
50
51
(they only work on non-empty vectors).
51
52
*)
52
53
54
+
#[deprecated(since="8.20", note="Consider [list bool] instead. Please open an issue if you would like to keep using Bvector.")]
53
55
Definition Bvector := Vector.t bool.
54
56
57
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
55
58
Definition Bnil := @Vector.nil bool.
56
59
60
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
57
61
Definition Bcons := @Vector.cons bool.
58
62
63
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
59
64
Definition Bvect_true := Vector.const true.
60
65
66
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
61
67
Definition Bvect_false := Vector.const false.
62
68
69
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
63
70
Definition Blow := @Vector.hd bool.
64
71
72
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
65
73
Definition Bhigh := @Vector.tl bool.
66
74
75
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
67
76
Definition Bsign := @Vector.last bool.
68
77
78
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
69
79
Definition Bneg := @Vector.map _ _ negb.
70
80
81
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
71
82
Definition BVand := @Vector.map2 _ _ _ andb.
72
83
84
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
73
85
Definition BVor := @Vector.map2 _ _ _ orb.
74
86
87
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
75
88
Definition BVxor := @Vector.map2 _ _ _ xorb.
76
89
90
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
77
91
Definition BVeq m n := @Vector.eqb bool eqb m n.
78
92
93
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
79
94
Definition BshiftL (n:nat) (bv:Bvector (S n)) (carry:bool) :=
80
95
Bcons carry n (Vector.shiftout bv).
81
96
97
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
82
98
Definition BshiftRl (n:nat) (bv:Bvector (S n)) (carry:bool) :=
83
99
Bhigh (S n) (Vector.shiftin carry bv).
84
100
101
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
85
102
Definition BshiftRa (n:nat) (bv:Bvector (S n)) :=
86
103
Bhigh (S n) (Vector.shiftrepeat bv).
87
104
105
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
88
106
Fixpoint BshiftL_iter (n:nat) (bv:Bvector (S n)) (p:nat) : Bvector (S n) :=
89
107
match p with
90
108
| O => bv
91
109
| S p' => BshiftL n (BshiftL_iter n bv p') false
92
110
end.
93
111
112
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
94
113
Fixpoint BshiftRl_iter (n:nat) (bv:Bvector (S n)) (p:nat) : Bvector (S n) :=
95
114
match p with
96
115
| O => bv
97
116
| S p' => BshiftRl n (BshiftRl_iter n bv p') false
98
117
end.
99
118
119
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
100
120
Fixpoint BshiftRa_iter (n:nat) (bv:Bvector (S n)) (p:nat) : Bvector (S n) :=
101
121
match p with
102
122
| O => bv
@@ -108,10 +128,15 @@ End BOOLEAN_VECTORS.
108
128
Module BvectorNotations.
109
129
DeclareScope Bvector_scope.
110
130
DelimitScope Bvector_scope with Bvector.
131
+
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
#[deprecated(since="8.20", note="Consider [list bool] instead. See <https://github.com/coq/coq/blob/master/theories/Vectors/Vector.v> for details. Please open an issue if you would like to keep using Bvector.")]
0 commit comments