conv =>
  lhs; change bitwise bne n 1
  unfold bitwise; simp [h, heven]
  change (n/2 ^^^ 0) + (n/2 ^^^ 0) + 1
  rw [Nat.xor_zero, ←Nat.mul_two, Nat.div_mul_cancel (Nat.dvd_of_mod_eq_zero heven)]
n : Nat
heven : n % 2 = 0
h : ¬n = 0
⊢ n ^^^ 1 = n + 1
no goals