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

Theorem elrnmpores 7590
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 2770 . . . . . 6 (𝑧 = 𝐷 → (𝑧 = 𝐶 ↔ 𝐷 = 𝐶))
21anbi1d 643 . . . . 5 (𝑧 = 𝐷 → ((𝑧 = 𝐶 ∧ 𝑥𝑅𝑦) ↔ (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦)))
32anbi2d 642 . . . 4 (𝑧 = 𝐷 → (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦))))
432exbidv 1961 . . 3 (𝑧 = 𝐷 → (∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦)) ↔ ∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦))))
5 an12 658 . . . . . . . . . 10 ((𝑝 ∈ 𝑅 ∧ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))) ↔ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ (𝑝 ∈ 𝑅 ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))))
6 an12 658 . . . . . . . . . . . 12 ((𝑝 ∈ 𝑅 ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)) ↔ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑝 ∈ 𝑅 ∧ 𝑧 = 𝐶)))
7 ancom 466 . . . . . . . . . . . . . 14 ((𝑧 = 𝐶 ∧ 𝑝 ∈ 𝑅) ↔ (𝑝 ∈ 𝑅 ∧ 𝑧 = 𝐶))
8 eleq1 2855 . . . . . . . . . . . . . . . 16 (𝑝 = ⟨𝑥, 𝑦⟩ → (𝑝 ∈ 𝑅 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝑅))
9 df-br 5108 . . . . . . . . . . . . . . . 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 1884 . . . . . . . 8 (∃𝑥∃𝑦(𝑝 ∈ 𝑅 ∧ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))) ↔ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))))
18 19.42vv 1994 . . . . . . . 8 (∃𝑥∃𝑦(𝑝 ∈ 𝑅 ∧ (𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))) ↔ (𝑝 ∈ 𝑅 ∧ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))))
1917, 18bitr3i 280 . . . . . . 7 (∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))) ↔ (𝑝 ∈ 𝑅 ∧ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))))
2019opabbii 5177 . . . . . 6 {⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦)))} = {⟨𝑝, 𝑧⟩ ∣ (𝑝 ∈ 𝑅 ∧ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)))}
21 dfoprab2 7509 . . . . . 6 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))} = {⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦)))}
22 rngop.1 . . . . . . . . 9 𝐹 = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶)
23 df-mpo 7456 . . . . . . . . 9 (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝐶) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)}
24 dfoprab2 7509 . . . . . . . . 9 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)} = {⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))}
2522, 23, 243eqtri 2793 . . . . . . . 8 𝐹 = {⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))}
2625reseq1i 5981 . . . . . . 7 (𝐹 ↾ 𝑅) = ({⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))} ↾ 𝑅)
27 resopab 6043 . . . . . . 7 ({⟨𝑝, 𝑧⟩ ∣ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶))} ↾ 𝑅) = {⟨𝑝, 𝑧⟩ ∣ (𝑝 ∈ 𝑅 ∧ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)))}
2826, 27eqtri 2789 . . . . . 6 (𝐹 ↾ 𝑅) = {⟨𝑝, 𝑧⟩ ∣ (𝑝 ∈ 𝑅 ∧ ∃𝑥∃𝑦(𝑝 = ⟨𝑥, 𝑦⟩ ∧ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝑧 = 𝐶)))}
2920, 21, 283eqtr4ri 2800 . . . . 5 (𝐹 ↾ 𝑅) = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))}
3029rneqi 5930 . . . 4 ran (𝐹 ↾ 𝑅) = ran {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))}
31 rnoprab 7556 . . . 4 ran {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))} = {𝑧 ∣ ∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))}
3230, 31eqtri 2789 . . 3 ran (𝐹 ↾ 𝑅) = {𝑧 ∣ ∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝑧 = 𝐶 ∧ 𝑥𝑅𝑦))}
334, 32elab2g 3636 . 2 (𝐷 ∈ 𝑉 → (𝐷 ∈ ran (𝐹 ↾ 𝑅) ↔ ∃𝑥∃𝑦((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ (𝐷 = 𝐶 ∧ 𝑥𝑅𝑦))))
34 r2ex 3206 . 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 1572  ∃wex 1814   ∈ wcel 2150  {cab 2744  ∃wrex 3093  ⟨cop 4839   class class class wbr 5107  {copab 5172  ran crn 5658   ↾ cres 5659  {coprab 7452   ∈ cmpo 7453
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-sep 5254  ax-pr 5397
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ral 3084  df-rex 3094  df-rab 3416  df-v 3455  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4840  df-br 5108  df-opab 5173  df-xp 5663  df-rel 5664  df-cnv 5665  df-dm 5667  df-rn 5668  df-res 5669  df-oprab 7455  df-mpo 7456
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator