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

Theorem mpo2eqb 7552
Description: Bidirectional equality theorem for a mapping abstraction. Equivalent to eqfnov2 7550. (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 df-mpo 7425 . . . 4 (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)}
2 df-mpo 7425 . . . 4 (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐷) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐷)}
31, 2eqeq12i 2778 . . 3 ((𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶) = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐷) ↔ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐷)})
4 eqoprab2bw 7490 . . 3 ({⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐷)} ↔ ∀𝑥∀𝑦∀𝑧(((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐷)))
5 pm5.32 584 . . . . . . 7 (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → (𝑧 = 𝐶 ↔ 𝑧 = 𝐷)) ↔ (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐷)))
65albii 1851 . . . . . 6 (∀𝑧((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → (𝑧 = 𝐶 ↔ 𝑧 = 𝐷)) ↔ ∀𝑧(((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐷)))
7 19.21v 1971 . . . . . 6 (∀𝑧((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → (𝑧 = 𝐶 ↔ 𝑧 = 𝐷)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
86, 7bitr3i 280 . . . . 5 (∀𝑧(((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐷)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
982albii 1852 . . . 4 (∀𝑥∀𝑦∀𝑧(((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐷)) ↔ ∀𝑥∀𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
10 r2al 3198 . . . 4 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷) ↔ ∀𝑥∀𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
119, 10bitr4i 281 . . 3 (∀𝑥∀𝑦∀𝑧(((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐷)) ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷))
123, 4, 113bitri 300 . 2 ((𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶) = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐷) ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷))
13 pm13.183 3619 . . . . . 6 (𝐶 ∈ 𝑉 → (𝐶 = 𝐷 ↔ ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
1413ralimi 3099 . . . . 5 (∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → ∀𝑦 ∈ 𝐵 (𝐶 = 𝐷 ↔ ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
15 ralbi 3117 . . . . 5 (∀𝑦 ∈ 𝐵 (𝐶 = 𝐷 ↔ ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)) → (∀𝑦 ∈ 𝐵 𝐶 = 𝐷 ↔ ∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
1614, 15syl 18 . . . 4 (∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → (∀𝑦 ∈ 𝐵 𝐶 = 𝐷 ↔ ∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
1716ralimi 3099 . . 3 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → ∀𝑥 ∈ 𝐴 (∀𝑦 ∈ 𝐵 𝐶 = 𝐷 ↔ ∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
18 ralbi 3117 . . 3 (∀𝑥 ∈ 𝐴 (∀𝑦 ∈ 𝐵 𝐶 = 𝐷 ↔ ∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)) → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝐶 = 𝐷 ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
1917, 18syl 18 . 2 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝐶 = 𝐷 ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 ∀𝑧(𝑧 = 𝐶 ↔ 𝑧 = 𝐷)))
2012, 19bitr4id 293 1 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝐶 ∈ 𝑉 → ((𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶) = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐷) ↔ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝐶 = 𝐷))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1567   = wceq 1569   ∈ wcel 2144  ∀wral 3076  {coprab 7421   ∈ cmpo 7422
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ral 3077  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-oprab 7424  df-mpo 7425
This theorem is used by:  homfeq  17873  comfeq  17885  2arymaptf1  49858
  Copyright terms: Public domain W3C validator