The LawfulXor typeclass #
This file generalizes basic lemmas about the ^^^ operator across numeric types.
theorem
xor_right_involutive
{α : Type u_1}
[XorOp α]
[Zero α]
[LawfulXor α]
(a : α)
:
Function.Involutive fun (x : α) => a ^^^ x
theorem
xor_left_involutive
{α : Type u_1}
[XorOp α]
[Zero α]
[LawfulXor α]
(a : α)
:
Function.Involutive fun (x : α) => x ^^^ a