Users' Mathboxes Mathbox for Scott Fenton < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  dfrn5 Structured version   Visualization version   GIF version

Theorem dfrn5 33793
Description: Definition of range in terms of 2nd and image. (Contributed by Scott Fenton, 17-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.) (Proof shortened by Peter Mazsa, 2-Oct-2022.)
Assertion
Ref Expression
dfrn5 ran 𝐴 = ((2nd ↾ (V × V)) “ 𝐴)

Proof of Theorem dfrn5
Dummy variables 𝑝 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 excom 2160 . . . 4 (∃𝑦𝑝𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)) ↔ ∃𝑝𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
2 opex 5392 . . . . . . . 8 𝑦, 𝑧⟩ ∈ V
3 breq1 5084 . . . . . . . . . 10 (𝑝 = ⟨𝑦, 𝑧⟩ → (𝑝2nd 𝑥 ↔ ⟨𝑦, 𝑧⟩2nd 𝑥))
4 eleq1 2824 . . . . . . . . . 10 (𝑝 = ⟨𝑦, 𝑧⟩ → (𝑝𝐴 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
53, 4anbi12d 632 . . . . . . . . 9 (𝑝 = ⟨𝑦, 𝑧⟩ → ((𝑝2nd 𝑥𝑝𝐴) ↔ (⟨𝑦, 𝑧⟩2nd 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴)))
6 vex 3441 . . . . . . . . . . . 12 𝑦 ∈ V
7 vex 3441 . . . . . . . . . . . 12 𝑧 ∈ V
86, 7br2ndeq 33791 . . . . . . . . . . 11 (⟨𝑦, 𝑧⟩2nd 𝑥𝑥 = 𝑧)
9 equcom 2019 . . . . . . . . . . 11 (𝑥 = 𝑧𝑧 = 𝑥)
108, 9bitri 275 . . . . . . . . . 10 (⟨𝑦, 𝑧⟩2nd 𝑥𝑧 = 𝑥)
1110anbi1i 625 . . . . . . . . 9 ((⟨𝑦, 𝑧⟩2nd 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
125, 11bitrdi 287 . . . . . . . 8 (𝑝 = ⟨𝑦, 𝑧⟩ → ((𝑝2nd 𝑥𝑝𝐴) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴)))
132, 12ceqsexv 3484 . . . . . . 7 (∃𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
1413exbii 1848 . . . . . 6 (∃𝑧𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)) ↔ ∃𝑧(𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
15 excom 2160 . . . . . 6 (∃𝑧𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)) ↔ ∃𝑝𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
16 vex 3441 . . . . . . 7 𝑥 ∈ V
17 opeq2 4810 . . . . . . . 8 (𝑧 = 𝑥 → ⟨𝑦, 𝑧⟩ = ⟨𝑦, 𝑥⟩)
1817eleq1d 2821 . . . . . . 7 (𝑧 = 𝑥 → (⟨𝑦, 𝑧⟩ ∈ 𝐴 ↔ ⟨𝑦, 𝑥⟩ ∈ 𝐴))
1916, 18ceqsexv 3484 . . . . . 6 (∃𝑧(𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴) ↔ ⟨𝑦, 𝑥⟩ ∈ 𝐴)
2014, 15, 193bitr3ri 302 . . . . 5 (⟨𝑦, 𝑥⟩ ∈ 𝐴 ↔ ∃𝑝𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
2120exbii 1848 . . . 4 (∃𝑦𝑦, 𝑥⟩ ∈ 𝐴 ↔ ∃𝑦𝑝𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
22 ancom 462 . . . . . 6 ((𝑝𝐴𝑝(2nd ↾ (V × V))𝑥) ↔ (𝑝(2nd ↾ (V × V))𝑥𝑝𝐴))
23 anass 470 . . . . . . 7 (((∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥) ∧ 𝑝𝐴) ↔ (∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
2416brresi 5912 . . . . . . . . 9 (𝑝(2nd ↾ (V × V))𝑥 ↔ (𝑝 ∈ (V × V) ∧ 𝑝2nd 𝑥))
25 elvv 5672 . . . . . . . . . 10 (𝑝 ∈ (V × V) ↔ ∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩)
2625anbi1i 625 . . . . . . . . 9 ((𝑝 ∈ (V × V) ∧ 𝑝2nd 𝑥) ↔ (∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥))
2724, 26bitri 275 . . . . . . . 8 (𝑝(2nd ↾ (V × V))𝑥 ↔ (∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥))
2827anbi1i 625 . . . . . . 7 ((𝑝(2nd ↾ (V × V))𝑥𝑝𝐴) ↔ ((∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥) ∧ 𝑝𝐴))
29 19.41vv 1952 . . . . . . 7 (∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)) ↔ (∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
3023, 28, 293bitr4i 303 . . . . . 6 ((𝑝(2nd ↾ (V × V))𝑥𝑝𝐴) ↔ ∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
3122, 30bitri 275 . . . . 5 ((𝑝𝐴𝑝(2nd ↾ (V × V))𝑥) ↔ ∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
3231exbii 1848 . . . 4 (∃𝑝(𝑝𝐴𝑝(2nd ↾ (V × V))𝑥) ↔ ∃𝑝𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
331, 21, 323bitr4i 303 . . 3 (∃𝑦𝑦, 𝑥⟩ ∈ 𝐴 ↔ ∃𝑝(𝑝𝐴𝑝(2nd ↾ (V × V))𝑥))
3416elrn2 5814 . . 3 (𝑥 ∈ ran 𝐴 ↔ ∃𝑦𝑦, 𝑥⟩ ∈ 𝐴)
3516elima2 5985 . . 3 (𝑥 ∈ ((2nd ↾ (V × V)) “ 𝐴) ↔ ∃𝑝(𝑝𝐴𝑝(2nd ↾ (V × V))𝑥))
3633, 34, 353bitr4i 303 . 2 (𝑥 ∈ ran 𝐴𝑥 ∈ ((2nd ↾ (V × V)) “ 𝐴))
3736eqriv 2733 1 ran 𝐴 = ((2nd ↾ (V × V)) “ 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wa 397   = wceq 1539  wex 1779  wcel 2104  Vcvv 3437  cop 4571   class class class wbr 5081   × cxp 5598  ran crn 5601  cres 5602  cima 5603  2nd c2nd 7862
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 1911  ax-6 1969  ax-7 2009  ax-8 2106  ax-9 2114  ax-10 2135  ax-11 2152  ax-12 2169  ax-ext 2707  ax-sep 5232  ax-nul 5239  ax-pr 5361  ax-un 7620
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 846  df-3an 1089  df-tru 1542  df-fal 1552  df-ex 1780  df-nf 1784  df-sb 2066  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2887  df-ne 2942  df-ral 3063  df-rex 3072  df-rab 3287  df-v 3439  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-nul 4263  df-if 4466  df-sn 4566  df-pr 4568  df-op 4572  df-uni 4845  df-br 5082  df-opab 5144  df-mpt 5165  df-id 5500  df-xp 5606  df-rel 5607  df-cnv 5608  df-co 5609  df-dm 5610  df-rn 5611  df-res 5612  df-ima 5613  df-iota 6410  df-fun 6460  df-fn 6461  df-f 6462  df-fo 6464  df-fv 6466  df-2nd 7864
This theorem is referenced by:  brrange  34281
  Copyright terms: Public domain W3C validator