We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Bool
1 parent 5c67e3a commit a244f82Copy full SHA for a244f82
1 file changed
Mathlib/Algebra/Ring/BooleanRing.lean
@@ -541,3 +541,15 @@ instance : BooleanRing Bool where
541
mul_zero a := by cases a <;> rfl
542
nsmul := nsmulRec
543
zsmul := zsmulRec
544
+
545
+theorem Bool.zero_eq_false : 0 = false := rfl
546
547
+theorem Bool.one_eq_true : 1 = true := rfl
548
549
+theorem Bool.add_eq_xor (b c : Bool) : b + c = (b ^^ c) := rfl
550
551
+theorem Bool.neg_eq_id (b : Bool) : -b = b := rfl
552
553
+theorem Bool.sub_eq_xor (b c : Bool) : b - c = (b ^^ c) := rfl
554
555
+theorem Bool.mul_eq_and (b c : Bool) : b * c = (b && c) := rfl
0 commit comments