exact fun i h => w i (Nat.lt_of_lt_of_le h (Nat.le_max_right _ _))
x✝ : BoolExpr Nat
f g : Nat → Bool
h : Gate
x y : BoolExpr Nat
w : ∀ (i : Nat), i < (gate h x y).vars → f i = g i
⊢ ∀ (i : Nat), i < y.vars → f i = g i

x✝ : BoolExpr Nat
f g : Nat → Bool
h : Gate
x y : BoolExpr Nat
w : ∀ (i : Nat), i < (gate h x y).vars → f i = g i
⊢ ∀ (i : Nat), i < x.vars → f i = g i
x✝ : BoolExpr Nat
f g : Nat → Bool
h : Gate
x y : BoolExpr Nat
w : ∀ (i : Nat), i < (gate h x y).vars → f i = g i
⊢ ∀ (i : Nat), i < x.vars → f i = g i