Theorem: Nat.zero_bitwise (Extra/Nat/Bitwise.lean)

State before:
f : Bool → Bool → Bool
y : Nat
⊢ bitwise f 0 y = bif f false true then y else 0
Tactic:
rw [bitwise]
State after:
f : Bool → Bool → Bool
y : Nat
⊢ (if 0 = 0 then if f false true = true then y else 0
    else
      if y = 0 then if f true false = true then 0 else 0
      else
        let n' := 0 / 2;
        let m' := y / 2;
        let b₁ := 0 % 2 = 1;
        let b₂ := y % 2 = 1;
        let r := bitwise f n' m';
        if f (decide b₁) (decide b₂) = true then r + r + 1 else r + r) =
    bif f false true then y else 0

State before:
f : Bool → Bool → Bool
y : Nat
⊢ (if 0 = 0 then if f false true = true then y else 0
    else
      if y = 0 then if f true false = true then 0 else 0
      else
        let n' := 0 / 2;
        let m' := y / 2;
        let b₁ := 0 % 2 = 1;
        let b₂ := y % 2 = 1;
        let r := bitwise f n' m';
        if f (decide b₁) (decide b₂) = true then r + r + 1 else r + r) =
    bif f false true then y else 0
Tactic:
simp
State after:
no goals