Not sure why this had been missing. Precedence is slightly higher than `||`, matching the precedence order we have for bitwise operators.
27 lines
892 B
Text
27 lines
892 B
Text
import Std.Tactic.BVDecide
|
||
|
||
open BitVec
|
||
|
||
theorem substructure_unit_1 (x y z : BitVec 8) : ((x = y) ∧ (y = z)) ↔ ¬(¬(x =y) ∨ (¬(y = z))) := by
|
||
bv_decide
|
||
|
||
theorem substructure_unit_1' (x y z : BitVec 8) : ((x = y) && (y = z)) ↔ ¬(¬(x = y) || (!(y = z))) := by
|
||
bv_decide
|
||
|
||
theorem substructure_unit_1'' (x y z : BitVec 8) : (Bool.and (x = y) (y = z)) ↔ ¬(Bool.or (!(x = y)) (Bool.not (y = z))) := by
|
||
bv_decide
|
||
|
||
theorem substructure_unit_2 (x y : BitVec 8) : x = y → y = x := by
|
||
bv_decide
|
||
|
||
theorem substructure_unit_3 (x y : BitVec 8) : (x = y) ^^ (y ≠ x) := by
|
||
bv_decide
|
||
|
||
theorem substructure_unit_3' (x y : BitVec 8) : Bool.xor (x = y) (y ≠ x) := by
|
||
bv_decide
|
||
|
||
theorem substructure_unit_4 (a b : Bool) : (a && b) = (b && a) := by
|
||
bv_decide
|
||
|
||
theorem substructure_unit_5 (a : Bool) (b c : BitVec 32) (h1 : b < c ↔ a) (h2 : a = true) : b < c := by
|
||
bv_decide
|