Metamath Proof Explorer


Theorem wl-equsal1i

Description: The antecedent x = y is irrelevant, if one or both setvar variables are not free in ph . (Contributed by Wolf Lammen, 1-Sep-2018)

Ref Expression
Hypotheses wl-equsal1i.1 ⊢ Ⅎ x φ ∨ Ⅎ y φ
wl-equsal1i.2 ⊢ x = y → φ
Assertion wl-equsal1i ⊢ φ

Proof

Step Hyp Ref Expression
1 wl-equsal1i.1 ⊢ Ⅎ x φ ∨ Ⅎ y φ
2 wl-equsal1i.2 ⊢ x = y → φ
3 2 gen2 ⊢ ∀ x ∀ y x = y → φ
4 sp ⊢ ∀ y ∀ x x = y → φ → ∀ x x = y → φ
5 4 alcoms ⊢ ∀ x ∀ y x = y → φ → ∀ x x = y → φ
6 wl-equsal1t ⊢ Ⅎ x φ → ∀ x x = y → φ ↔ φ
7 5 6 imbitrid ⊢ Ⅎ x φ → ∀ x ∀ y x = y → φ → φ
8 wl-equsalcom ⊢ ∀ y y = x → φ ↔ ∀ y x = y → φ
9 wl-equsal1t ⊢ Ⅎ y φ → ∀ y y = x → φ ↔ φ
10 9 biimpd ⊢ Ⅎ y φ → ∀ y y = x → φ → φ
11 8 10 biimtrrid ⊢ Ⅎ y φ → ∀ y x = y → φ → φ
12 11 spsd ⊢ Ⅎ y φ → ∀ x ∀ y x = y → φ → φ
13 7 12 jaoi ⊢ Ⅎ x φ ∨ Ⅎ y φ → ∀ x ∀ y x = y → φ → φ
14 1 3 13 mp2 ⊢ φ