Documentation

Batteries.Data.BitVec.Lemmas

@[simp]
theorem BitVec.toNat_ofFnLEAux {n : Nat} (m : Nat) (f : Fin nBool) :
@[simp]
theorem BitVec.toFin_ofFnLEAux {n : Nat} (m : Nat) (f : Fin nBool) :
@[simp]
theorem BitVec.toNat_ofFnLE {n : Nat} (f : Fin nBool) :
@[simp]
theorem BitVec.toFin_ofFnLE {n : Nat} (f : Fin nBool) :
@[simp]
theorem BitVec.toInt_ofFnLE {n : Nat} (f : Fin nBool) :
theorem BitVec.getElem_ofFnLEAux {n m : Nat} (f : Fin nBool) (i : Nat) (h : i < n) (h' : i < m) :
(ofFnLEAux m f)[i] = f i, h
@[simp]
theorem BitVec.getElem_ofFnLE {n : Nat} (f : Fin nBool) (i : Nat) (h : i < n) :
(ofFnLE f)[i] = f i, h
theorem BitVec.getLsb_ofFnLE {n : Nat} (f : Fin nBool) (i : Fin n) :
(ofFnLE f).getLsb i = f i
@[deprecated BitVec.getLsb_ofFnLE (since := "2025-06-17")]
theorem BitVec.getLsb'_ofFnLE {n : Nat} (f : Fin nBool) (i : Fin n) :
(ofFnLE f).getLsb i = f i

Alias of BitVec.getLsb_ofFnLE.

theorem BitVec.getLsbD_ofFnLE {n : Nat} (f : Fin nBool) (i : Nat) :
(ofFnLE f).getLsbD i = if h : i < n then f i, h else false
@[simp]
theorem BitVec.getMsb_ofFnLE {n : Nat} (f : Fin nBool) (i : Fin n) :
(ofFnLE f).getMsb i = f i.rev
@[deprecated BitVec.getMsb_ofFnLE (since := "2025-06-17")]
theorem BitVec.getMsb'_ofFnLE {n : Nat} (f : Fin nBool) (i : Fin n) :
(ofFnLE f).getMsb i = f i.rev

Alias of BitVec.getMsb_ofFnLE.

theorem BitVec.getMsbD_ofFnLE {n : Nat} (f : Fin nBool) (i : Nat) :
(ofFnLE f).getMsbD i = if h : i < n then f i, h.rev else false
theorem BitVec.msb_ofFnLE {n : Nat} (f : Fin nBool) :
(ofFnLE f).msb = if h : n 0 then f n - 1, else false
@[simp]
theorem BitVec.toNat_ofFnBE {n : Nat} (f : Fin nBool) :
@[simp]
theorem BitVec.toFin_ofFnBE {n : Nat} (f : Fin nBool) :
@[simp]
theorem BitVec.toInt_ofFnBE {n : Nat} (f : Fin nBool) :
@[simp]
theorem BitVec.getElem_ofFnBE {n : Nat} (f : Fin nBool) (i : Nat) (h : i < n) :
(ofFnBE f)[i] = f i, h.rev
theorem BitVec.getLsb_ofFnBE {n : Nat} (f : Fin nBool) (i : Fin n) :
(ofFnBE f).getLsb i = f i.rev
@[deprecated BitVec.getLsb_ofFnBE (since := "2025-06-17")]
theorem BitVec.getLsb'_ofFnBE {n : Nat} (f : Fin nBool) (i : Fin n) :
(ofFnBE f).getLsb i = f i.rev

Alias of BitVec.getLsb_ofFnBE.

theorem BitVec.getLsbD_ofFnBE {n : Nat} (f : Fin nBool) (i : Nat) :
(ofFnBE f).getLsbD i = if h : i < n then f i, h.rev else false
@[simp]
theorem BitVec.getMsb_ofFnBE {n : Nat} (f : Fin nBool) (i : Fin n) :
(ofFnBE f).getMsb i = f i
@[deprecated BitVec.getMsb_ofFnBE (since := "2025-06-17")]
theorem BitVec.getMsb'_ofFnBE {n : Nat} (f : Fin nBool) (i : Fin n) :
(ofFnBE f).getMsb i = f i

Alias of BitVec.getMsb_ofFnBE.

theorem BitVec.getMsbD_ofFnBE {n : Nat} (f : Fin nBool) (i : Nat) :
(ofFnBE f).getMsbD i = if h : i < n then f i, h else false
theorem BitVec.msb_ofFnBE {n : Nat} (f : Fin nBool) :
(ofFnBE f).msb = if h : n 0 then f 0, else false