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

Theorem elrnmpores 7558
Description: Membership in the range of a restricted operation class abstraction. (Contributed by Thierry Arnoux, 25-May-2019.)
Hypothesis
Ref Expression
rngop.1 𝐹 = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶)
Assertion
Ref Expression
elrnmpores (𝐷 ∈ 𝑉 → (𝐷 ∈ ran (𝐹 ↾ 𝑅) ↔ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦)))
Distinct variable groups:   𝑦,𝐴   𝑥,𝑦,𝐷   𝑥,𝑅,𝑦
Allowed substitution hints:   𝐴(𝑥)   𝐵(𝑥, 𝑦)   𝐶(𝑥, 𝑦)   𝐹(𝑥, 𝑦)   𝑉(𝑥, 𝑦)

Proof of Theorem elrnmpores
Dummy variables 𝑧 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqeq1 2764 . . . . . 6 (𝑧 = 𝐷 → (𝑧 = 𝐶 ↔ 𝐷 = 𝐶))
21anbi1d 643 . . . . 5 (𝑧 = 𝐷 → ((𝑧 = 𝐶 ∧ 𝑥𝑅𝑦) ↔ (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦)))
32anbi2d 642 . . . 4 (𝑧 = 𝐷 → (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦))))
432exbidv 1956 . . 3 (𝑧 = 𝐷 → (∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦)) ↔ ∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦))))
5 an12 658 . . . . . . . . . 10 ((𝑝 ∈ 𝑅 ∧ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))) ↔ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑝 ∈ 𝑅 ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))))
6 an12 658 . . . . . . . . . . . 12 ((𝑝 ∈ 𝑅 ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑝 ∈ 𝑅 ∧ 𝑧 = 𝐶)))
7 ancom 466 . . . . . . . . . . . . . 14 ((𝑧 = 𝐶 ∧ 𝑝 ∈ 𝑅) ↔ (𝑝 ∈ 𝑅 ∧ 𝑧 = 𝐶))
8 eleq1 2848 . . . . . . . . . . . . . . . 16 (𝑝 = ⟨𝑥, 𝑦⟩ → (𝑝 ∈ 𝑅 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑅))
9 df-br 5103 . . . . . . . . . . . . . . . 16 (𝑥𝑅𝑦 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑅)
108, 9bitr4di 292 . . . . . . . . . . . . . . 15 (𝑝 = ⟨𝑥, 𝑦⟩ → (𝑝 ∈ 𝑅 ↔ 𝑥𝑅𝑦))
1110anbi2d 642 . . . . . . . . . . . . . 14 (𝑝 = ⟨𝑥, 𝑦⟩ → ((𝑧 = 𝐶 ∧ 𝑝 ∈ 𝑅) ↔ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦)))
127, 11bitr3id 288 . . . . . . . . . . . . 13 (𝑝 = ⟨𝑥, 𝑦⟩ → ((𝑝 ∈ 𝑅 ∧ 𝑧 = 𝐶) ↔ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦)))
1312anbi2d 642 . . . . . . . . . . . 12 (𝑝 = ⟨𝑥, 𝑦⟩ → (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑝 ∈ 𝑅 ∧ 𝑧 = 𝐶)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))))
146, 13bitrid 286 . . . . . . . . . . 11 (𝑝 = ⟨𝑥, 𝑦⟩ → ((𝑝 ∈ 𝑅 ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))))
1514pm5.32i 585 . . . . . . . . . 10 ((𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑝 ∈ 𝑅 ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))) ↔ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))))
165, 15bitri 278 . . . . . . . . 9 ((𝑝 ∈ 𝑅 ∧ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))) ↔ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))))
17162exbii 1881 . . . . . . . 8 (∃𝑥∃𝑦(𝑝 ∈ 𝑅 ∧ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))) ↔ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))))
18 19.42vv 1989 . . . . . . . 8 (∃𝑥∃𝑦(𝑝 ∈ 𝑅 ∧ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))) ↔ (𝑝 ∈ 𝑅 ∧ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))))
1917, 18bitr3i 280 . . . . . . 7 (∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))) ↔ (𝑝 ∈ 𝑅 ∧ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))))
2019opabbii 5171 . . . . . 6 {⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦)))} = {⟨𝑝, 𝑧⟩ ∣ (𝑝 ∈ 𝑅 ∧ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)))}
21 dfoprab2 7478 . . . . . 6 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))} = {⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦)))}
22 rngop.1 . . . . . . . . 9 𝐹 = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶)
23 df-mpo 7425 . . . . . . . . 9 (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)}
24 dfoprab2 7478 . . . . . . . . 9 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)} = {⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))}
2522, 23, 243eqtri 2787 . . . . . . . 8 𝐹 = {⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))}
2625reseq1i 5965 . . . . . . 7 (𝐹 ↾ 𝑅) = ({⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))} ↾ 𝑅)
27 resopab 6025 . . . . . . 7 ({⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))} ↾ 𝑅) = {⟨𝑝, 𝑧⟩ ∣ (𝑝 ∈ 𝑅 ∧ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)))}
2826, 27eqtri 2783 . . . . . 6 (𝐹 ↾ 𝑅) = {⟨𝑝, 𝑧⟩ ∣ (𝑝 ∈ 𝑅 ∧ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)))}
2920, 21, 283eqtr4ri 2794 . . . . 5 (𝐹 ↾ 𝑅) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))}
3029rneqi 5918 . . . 4 ran (𝐹 ↾ 𝑅) = ran {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))}
31 rnoprab 7525 . . . 4 ran {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))} = {𝑧 ∣ ∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))}
3230, 31eqtri 2783 . . 3 ran (𝐹 ↾ 𝑅) = {𝑧 ∣ ∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))}
334, 32elab2g 3633 . 2 (𝐷 ∈ 𝑉 → (𝐷 ∈ ran (𝐹 ↾ 𝑅) ↔ ∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦))))
34 r2ex 3199 . 2 (∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦) ↔ ∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦)))
3533, 34bitr4di 292 1 (𝐷 ∈ 𝑉 → (𝐷 ∈ ran (𝐹 ↾ 𝑅) ↔ ∃𝑥 ∈ 𝐴 ∃𝑦 ∈ 𝐵 (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1569  ∃wex 1811   ∈ wcel 2144  {cab 2738  ∃wrex 3086  ⟨cop 4589   class class class wbr 5102  {copab 5166  ran crn 5651   ↾ cres 5652  {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-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ral 3077  df-rex 3087  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 4584  df-pr 4586  df-op 4590  df-br 5103  df-opab 5167  df-xp 5656  df-rel 5657  df-cnv 5658  df-dm 5660  df-rn 5661  df-res 5662  df-oprab 7424  df-mpo 7425
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator