Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasgrosser committed Sep 18, 2024
1 parent 598f860 commit 0c36ccf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Init/Data/BitVec/Lemmas.lean
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,13 @@ theorem ofNat_one (n : Nat) : BitVec.ofNat 1 n = BitVec.ofBool (n % 2 = 1) := b
theorem ofBool_eq_iff_eq : ∀ {b b' : Bool}, BitVec.ofBool b = BitVec.ofBool b' ↔ b = b' := by
decide

@[simp] theorem ofBool_and : ofBool a &&& ofBool b = ofBool (a && b) := by
@[simp] theorem and_ofBool : ofBool a &&& ofBool b = ofBool (a && b) := by
cases a <;> cases b <;> rfl

@[simp] theorem ofBool_or : ofBool a ||| ofBool b = ofBool (a || b) := by
@[simp] theorem or_ofBool : ofBool a ||| ofBool b = ofBool (a || b) := by
cases a <;> cases b <;> rfl

@[simp] theorem ofBool_xor : ofBool a ^^^ ofBool b = ofBool (a ^^ b) := by
@[simp] theorem xor_ofBool : ofBool a ^^^ ofBool b = ofBool (a ^^ b) := by
cases a <;> cases b <;> rfl

@[simp] theorem not_ofBool : ~~~ (ofBool b) = ofBool (!b) := by cases b <;> rfl
Expand Down

0 comments on commit 0c36ccf

Please sign in to comment.