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

Theorem mpoeq123 7205
Description: An equality theorem for the maps-to notation. (Contributed by Mario Carneiro, 16-Dec-2013.) (Revised by Mario Carneiro, 19-Mar-2015.)
Assertion
Ref Expression
mpoeq123 ((𝐴 = 𝐷 ∧ ∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹)) → (𝑥𝐴, 𝑦𝐵𝐶) = (𝑥𝐷, 𝑦𝐸𝐹))
Distinct variable groups:   𝑥,𝑦,𝐴   𝑦,𝐵   𝑥,𝐷,𝑦   𝑦,𝐸
Allowed substitution hints:   𝐵(𝑥)   𝐶(𝑥,𝑦)   𝐸(𝑥)   𝐹(𝑥,𝑦)

Proof of Theorem mpoeq123
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 nfv 1915 . . . 4 𝑥 𝐴 = 𝐷
2 nfra1 3183 . . . 4 𝑥𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹)
31, 2nfan 1900 . . 3 𝑥(𝐴 = 𝐷 ∧ ∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹))
4 nfv 1915 . . . 4 𝑦 𝐴 = 𝐷
5 nfcv 2955 . . . . 5 𝑦𝐴
6 nfv 1915 . . . . . 6 𝑦 𝐵 = 𝐸
7 nfra1 3183 . . . . . 6 𝑦𝑦𝐵 𝐶 = 𝐹
86, 7nfan 1900 . . . . 5 𝑦(𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹)
95, 8nfralw 3189 . . . 4 𝑦𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹)
104, 9nfan 1900 . . 3 𝑦(𝐴 = 𝐷 ∧ ∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹))
11 nfv 1915 . . 3 𝑧(𝐴 = 𝐷 ∧ ∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹))
12 rsp 3170 . . . . . . 7 (∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹) → (𝑥𝐴 → (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹)))
13 rsp 3170 . . . . . . . . . 10 (∀𝑦𝐵 𝐶 = 𝐹 → (𝑦𝐵𝐶 = 𝐹))
14 eqeq2 2810 . . . . . . . . . 10 (𝐶 = 𝐹 → (𝑧 = 𝐶𝑧 = 𝐹))
1513, 14syl6 35 . . . . . . . . 9 (∀𝑦𝐵 𝐶 = 𝐹 → (𝑦𝐵 → (𝑧 = 𝐶𝑧 = 𝐹)))
1615pm5.32d 580 . . . . . . . 8 (∀𝑦𝐵 𝐶 = 𝐹 → ((𝑦𝐵𝑧 = 𝐶) ↔ (𝑦𝐵𝑧 = 𝐹)))
17 eleq2 2878 . . . . . . . . 9 (𝐵 = 𝐸 → (𝑦𝐵𝑦𝐸))
1817anbi1d 632 . . . . . . . 8 (𝐵 = 𝐸 → ((𝑦𝐵𝑧 = 𝐹) ↔ (𝑦𝐸𝑧 = 𝐹)))
1916, 18sylan9bbr 514 . . . . . . 7 ((𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹) → ((𝑦𝐵𝑧 = 𝐶) ↔ (𝑦𝐸𝑧 = 𝐹)))
2012, 19syl6 35 . . . . . 6 (∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹) → (𝑥𝐴 → ((𝑦𝐵𝑧 = 𝐶) ↔ (𝑦𝐸𝑧 = 𝐹))))
2120pm5.32d 580 . . . . 5 (∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹) → ((𝑥𝐴 ∧ (𝑦𝐵𝑧 = 𝐶)) ↔ (𝑥𝐴 ∧ (𝑦𝐸𝑧 = 𝐹))))
22 eleq2 2878 . . . . . 6 (𝐴 = 𝐷 → (𝑥𝐴𝑥𝐷))
2322anbi1d 632 . . . . 5 (𝐴 = 𝐷 → ((𝑥𝐴 ∧ (𝑦𝐸𝑧 = 𝐹)) ↔ (𝑥𝐷 ∧ (𝑦𝐸𝑧 = 𝐹))))
2421, 23sylan9bbr 514 . . . 4 ((𝐴 = 𝐷 ∧ ∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹)) → ((𝑥𝐴 ∧ (𝑦𝐵𝑧 = 𝐶)) ↔ (𝑥𝐷 ∧ (𝑦𝐸𝑧 = 𝐹))))
25 anass 472 . . . 4 (((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶) ↔ (𝑥𝐴 ∧ (𝑦𝐵𝑧 = 𝐶)))
26 anass 472 . . . 4 (((𝑥𝐷𝑦𝐸) ∧ 𝑧 = 𝐹) ↔ (𝑥𝐷 ∧ (𝑦𝐸𝑧 = 𝐹)))
2724, 25, 263bitr4g 317 . . 3 ((𝐴 = 𝐷 ∧ ∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹)) → (((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥𝐷𝑦𝐸) ∧ 𝑧 = 𝐹)))
283, 10, 11, 27oprabbid 7198 . 2 ((𝐴 = 𝐷 ∧ ∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹)) → {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶)} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐷𝑦𝐸) ∧ 𝑧 = 𝐹)})
29 df-mpo 7140 . 2 (𝑥𝐴, 𝑦𝐵𝐶) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶)}
30 df-mpo 7140 . 2 (𝑥𝐷, 𝑦𝐸𝐹) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐷𝑦𝐸) ∧ 𝑧 = 𝐹)}
3128, 29, 303eqtr4g 2858 1 ((𝐴 = 𝐷 ∧ ∀𝑥𝐴 (𝐵 = 𝐸 ∧ ∀𝑦𝐵 𝐶 = 𝐹)) → (𝑥𝐴, 𝑦𝐵𝐶) = (𝑥𝐷, 𝑦𝐸𝐹))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1538  wcel 2111  wral 3106  {coprab 7136  cmpo 7137
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ral 3111  df-oprab 7139  df-mpo 7140
This theorem is referenced by:  mpoeq12  7206  mapxpen  8667  pmatcollpw2lem  21382  xkoptsub  22259  xkocnv  22419  matunitlindflem1  35053
  Copyright terms: Public domain W3C validator