MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  mpteq12f Structured version   Visualization version   GIF version

Theorem mpteq12f 5190
Description: An equality theorem for the maps-to notation. (Contributed by Mario Carneiro, 16-Dec-2013.)
Assertion
Ref Expression
mpteq12f ((∀𝑥 𝐴 = 𝐶 ∧ ∀𝑥 ∈ 𝐴 𝐵 = 𝐷) → (𝑥 ∈ 𝐴 ↦ 𝐵) = (𝑥 ∈ 𝐶 ↦ 𝐷))

Proof of Theorem mpteq12f
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 nfa1 2188 . . . 4 Ⅎ𝑥∀𝑥 𝐴 = 𝐶
2 nfra1 3287 . . . 4 Ⅎ𝑥∀𝑥 ∈ 𝐴 𝐵 = 𝐷
31, 2nfan 1932 . . 3 Ⅎ𝑥(∀𝑥 𝐴 = 𝐶 ∧ ∀𝑥 ∈ 𝐴 𝐵 = 𝐷)
4 nfv 1947 . . 3 Ⅎ𝑦(∀𝑥 𝐴 = 𝐶 ∧ ∀𝑥 ∈ 𝐴 𝐵 = 𝐷)
5 rspa 3252 . . . . . 6 ((∀𝑥 ∈ 𝐴 𝐵 = 𝐷 ∧ 𝑥 ∈ 𝐴) → 𝐵 = 𝐷)
65eqeq2d 2772 . . . . 5 ((∀𝑥 ∈ 𝐴 𝐵 = 𝐷 ∧ 𝑥 ∈ 𝐴) → (𝑦 = 𝐵 ↔ 𝑦 = 𝐷))
76pm5.32da 590 . . . 4 (∀𝑥 ∈ 𝐴 𝐵 = 𝐷 → ((𝑥 ∈ 𝐴 ∧ 𝑦 = 𝐵) ↔ (𝑥 ∈ 𝐴 ∧ 𝑦 = 𝐷)))
8 sp 2220 . . . . . 6 (∀𝑥 𝐴 = 𝐶 → 𝐴 = 𝐶)
98eleq2d 2847 . . . . 5 (∀𝑥 𝐴 = 𝐶 → (𝑥 ∈ 𝐴 ↔ 𝑥 ∈ 𝐶))
109anbi1d 643 . . . 4 (∀𝑥 𝐴 = 𝐶 → ((𝑥 ∈ 𝐴 ∧ 𝑦 = 𝐷) ↔ (𝑥 ∈ 𝐶 ∧ 𝑦 = 𝐷)))
117, 10sylan9bbr 520 . . 3 ((∀𝑥 𝐴 = 𝐶 ∧ ∀𝑥 ∈ 𝐴 𝐵 = 𝐷) → ((𝑥 ∈ 𝐴 ∧ 𝑦 = 𝐵) ↔ (𝑥 ∈ 𝐶 ∧ 𝑦 = 𝐷)))
123, 4, 11opabbid 5170 . 2 ((∀𝑥 𝐴 = 𝐶 ∧ ∀𝑥 ∈ 𝐴 𝐵 = 𝐷) → {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑦 = 𝐵)} = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐶 ∧ 𝑦 = 𝐷)})
13 df-mpt 5187 . 2 (𝑥 ∈ 𝐴 ↦ 𝐵) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐴 ∧ 𝑦 = 𝐵)}
14 df-mpt 5187 . 2 (𝑥 ∈ 𝐶 ↦ 𝐷) = {⟨𝑥, 𝑦⟩ ∣ (𝑥 ∈ 𝐶 ∧ 𝑦 = 𝐷)}
1512, 13, 143eqtr4g 2821 1 ((∀𝑥 𝐴 = 𝐶 ∧ ∀𝑥 ∈ 𝐴 𝐵 = 𝐷) → (𝑥 ∈ 𝐴 ↦ 𝐵) = (𝑥 ∈ 𝐶 ↦ 𝐷))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401  ∀wal 1568   = wceq 1570   ∈ wcel 2145  ∀wral 3077  {copab 5167   ↦ cmpt 5186
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-12 2213  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-nf 1817  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-ral 3078  df-opab 5168  df-mpt 5187
This theorem is used by:  mpteq12  5193  esumeq12dvaf  34645  refsum2cnlem1  45997  smfinflem  47771
  Copyright terms: Public domain W3C validator