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

Theorem mpo2eqb 7280
Description: Bidirectional equality theorem for a mapping abstraction. Equivalent to eqfnov2 7278. (Contributed by Mario Carneiro, 4-Jan-2017.)
Assertion
Ref Expression
mpo2eqb (∀𝑥𝐴𝑦𝐵 𝐶𝑉 → ((𝑥𝐴, 𝑦𝐵𝐶) = (𝑥𝐴, 𝑦𝐵𝐷) ↔ ∀𝑥𝐴𝑦𝐵 𝐶 = 𝐷))
Distinct variable groups:   𝑥,𝑦,𝐴   𝑦,𝐵
Allowed substitution hints:   𝐵(𝑥)   𝐶(𝑥,𝑦)   𝐷(𝑥,𝑦)   𝑉(𝑥,𝑦)

Proof of Theorem mpo2eqb
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 pm13.183 3658 . . . . . 6 (𝐶𝑉 → (𝐶 = 𝐷 ↔ ∀𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
21ralimi 3159 . . . . 5 (∀𝑦𝐵 𝐶𝑉 → ∀𝑦𝐵 (𝐶 = 𝐷 ↔ ∀𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
3 ralbi 3166 . . . . 5 (∀𝑦𝐵 (𝐶 = 𝐷 ↔ ∀𝑧(𝑧 = 𝐶𝑧 = 𝐷)) → (∀𝑦𝐵 𝐶 = 𝐷 ↔ ∀𝑦𝐵𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
42, 3syl 17 . . . 4 (∀𝑦𝐵 𝐶𝑉 → (∀𝑦𝐵 𝐶 = 𝐷 ↔ ∀𝑦𝐵𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
54ralimi 3159 . . 3 (∀𝑥𝐴𝑦𝐵 𝐶𝑉 → ∀𝑥𝐴 (∀𝑦𝐵 𝐶 = 𝐷 ↔ ∀𝑦𝐵𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
6 ralbi 3166 . . 3 (∀𝑥𝐴 (∀𝑦𝐵 𝐶 = 𝐷 ↔ ∀𝑦𝐵𝑧(𝑧 = 𝐶𝑧 = 𝐷)) → (∀𝑥𝐴𝑦𝐵 𝐶 = 𝐷 ↔ ∀𝑥𝐴𝑦𝐵𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
75, 6syl 17 . 2 (∀𝑥𝐴𝑦𝐵 𝐶𝑉 → (∀𝑥𝐴𝑦𝐵 𝐶 = 𝐷 ↔ ∀𝑥𝐴𝑦𝐵𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
8 df-mpo 7158 . . . 4 (𝑥𝐴, 𝑦𝐵𝐶) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶)}
9 df-mpo 7158 . . . 4 (𝑥𝐴, 𝑦𝐵𝐷) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐷)}
108, 9eqeq12i 2835 . . 3 ((𝑥𝐴, 𝑦𝐵𝐶) = (𝑥𝐴, 𝑦𝐵𝐷) ↔ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶)} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐷)})
11 eqoprab2bw 7221 . . 3 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶)} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐷)} ↔ ∀𝑥𝑦𝑧(((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐷)))
12 pm5.32 576 . . . . . . 7 (((𝑥𝐴𝑦𝐵) → (𝑧 = 𝐶𝑧 = 𝐷)) ↔ (((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐷)))
1312albii 1819 . . . . . 6 (∀𝑧((𝑥𝐴𝑦𝐵) → (𝑧 = 𝐶𝑧 = 𝐷)) ↔ ∀𝑧(((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐷)))
14 19.21v 1939 . . . . . 6 (∀𝑧((𝑥𝐴𝑦𝐵) → (𝑧 = 𝐶𝑧 = 𝐷)) ↔ ((𝑥𝐴𝑦𝐵) → ∀𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
1513, 14bitr3i 279 . . . . 5 (∀𝑧(((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐷)) ↔ ((𝑥𝐴𝑦𝐵) → ∀𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
16152albii 1820 . . . 4 (∀𝑥𝑦𝑧(((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐷)) ↔ ∀𝑥𝑦((𝑥𝐴𝑦𝐵) → ∀𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
17 r2al 3200 . . . 4 (∀𝑥𝐴𝑦𝐵𝑧(𝑧 = 𝐶𝑧 = 𝐷) ↔ ∀𝑥𝑦((𝑥𝐴𝑦𝐵) → ∀𝑧(𝑧 = 𝐶𝑧 = 𝐷)))
1816, 17bitr4i 280 . . 3 (∀𝑥𝑦𝑧(((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥𝐴𝑦𝐵) ∧ 𝑧 = 𝐷)) ↔ ∀𝑥𝐴𝑦𝐵𝑧(𝑧 = 𝐶𝑧 = 𝐷))
1910, 11, 183bitri 299 . 2 ((𝑥𝐴, 𝑦𝐵𝐶) = (𝑥𝐴, 𝑦𝐵𝐷) ↔ ∀𝑥𝐴𝑦𝐵𝑧(𝑧 = 𝐶𝑧 = 𝐷))
207, 19syl6rbbr 292 1 (∀𝑥𝐴𝑦𝐵 𝐶𝑉 → ((𝑥𝐴, 𝑦𝐵𝐶) = (𝑥𝐴, 𝑦𝐵𝐷) ↔ ∀𝑥𝐴𝑦𝐵 𝐶 = 𝐷))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398  wal 1534   = wceq 1536  wcel 2113  wral 3137  {coprab 7154  cmpo 7155
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2792  ax-sep 5200  ax-nul 5207  ax-pr 5327
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1084  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-mo 2621  df-eu 2653  df-clab 2799  df-cleq 2813  df-clel 2892  df-nfc 2962  df-ral 3142  df-rab 3146  df-v 3495  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-nul 4289  df-if 4465  df-sn 4565  df-pr 4567  df-op 4571  df-oprab 7157  df-mpo 7158
This theorem is referenced by:  homfeq  16960  comfeq  16972
  Copyright terms: Public domain W3C validator