Mathlib v3 is deprecated. Go to Mathlib v4

Commit 2022-07-17 06:40 e42057fa

View on Github →

feat(data/nat/bitwise): tweak lxor lemmas (#15409) This PR does the following:

  • add lxor_cancel_right, lxor_cancel_left, lt_lxor_cases.
  • make lxor_right_inj and lxor_left_inj into iffs as per convention, prove the corresponding lxor_right_injective and lxor_left_injective separately.
  • golf lxor_eq_zero, tag it as simp, add the corresponding lxor_ne_zero lemma.
  • simplify the hypothesis of lxor_trichotomy.

Estimated changes

added theorem nat.lt_lxor_cases
added theorem nat.lxor_cancel_left
added theorem nat.lxor_cancel_right
modified theorem nat.lxor_eq_zero
modified theorem nat.lxor_left_inj
added theorem nat.lxor_ne_zero
modified theorem nat.lxor_right_inj
modified theorem nat.lxor_trichotomy