feat(library/data/bool): Add bxor definition
This commit is contained in:
parent
139536896c
commit
63a17a3f48
1 changed files with 2 additions and 0 deletions
|
@ -127,4 +127,6 @@ namespace bool
|
||||||
|
|
||||||
theorem eq_ff_of_bnot_eq_tt {a : bool} : bnot a = tt → a = ff :=
|
theorem eq_ff_of_bnot_eq_tt {a : bool} : bnot a = tt → a = ff :=
|
||||||
bool.cases_on a (λ h, rfl) (by contradiction)
|
bool.cases_on a (λ h, rfl) (by contradiction)
|
||||||
|
|
||||||
|
definition bxor (x:bool) (y:bool) := cond x (bnot y) y
|
||||||
end bool
|
end bool
|
||||||
|
|
Loading…
Reference in a new issue