Metamath Proof Explorer


Theorem raleqf

Description: Equality theorem for restricted universal quantifier, with bound-variable hypotheses instead of distinct variable restrictions. See raleq for a version based on fewer axioms. (Contributed by NM, 7-Mar-2004) (Revised by Andrew Salmon, 11-Jul-2011)

Ref Expression
Hypotheses raleqf.1 ⊢ Ⅎ 𝑥 𝐴
raleqf.2 ⊢ Ⅎ 𝑥 𝐵
Assertion raleqf ( 𝐴 = 𝐵 → ( ∀ 𝑥 ∈ 𝐴 𝜑 ↔ ∀ 𝑥 ∈ 𝐵 𝜑 ) )

Proof

Step Hyp Ref Expression
1 raleqf.1 ⊢ Ⅎ 𝑥 𝐴
2 raleqf.2 ⊢ Ⅎ 𝑥 𝐵
3 1 2 nfeq ⊢ Ⅎ 𝑥 𝐴 = 𝐵
4 eleq2 ⊢ ( 𝐴 = 𝐵 → ( 𝑥 ∈ 𝐴 ↔ 𝑥 ∈ 𝐵 ) )
5 4 imbi1d ⊢ ( 𝐴 = 𝐵 → ( ( 𝑥 ∈ 𝐴 → 𝜑 ) ↔ ( 𝑥 ∈ 𝐵 → 𝜑 ) ) )
6 3 5 albid ⊢ ( 𝐴 = 𝐵 → ( ∀ 𝑥 ( 𝑥 ∈ 𝐴 → 𝜑 ) ↔ ∀ 𝑥 ( 𝑥 ∈ 𝐵 → 𝜑 ) ) )
7 df-ral ⊢ ( ∀ 𝑥 ∈ 𝐴 𝜑 ↔ ∀ 𝑥 ( 𝑥 ∈ 𝐴 → 𝜑 ) )
8 df-ral ⊢ ( ∀ 𝑥 ∈ 𝐵 𝜑 ↔ ∀ 𝑥 ( 𝑥 ∈ 𝐵 → 𝜑 ) )
9 6 7 8 3bitr4g ⊢ ( 𝐴 = 𝐵 → ( ∀ 𝑥 ∈ 𝐴 𝜑 ↔ ∀ 𝑥 ∈ 𝐵 𝜑 ) )