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 33727
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 2165 . . . 4 (∃𝑦𝑝𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)) ↔ ∃𝑝𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
2 opex 5381 . . . . . . . 8 𝑦, 𝑧⟩ ∈ V
3 breq1 5081 . . . . . . . . . 10 (𝑝 = ⟨𝑦, 𝑧⟩ → (𝑝2nd 𝑥 ↔ ⟨𝑦, 𝑧⟩2nd 𝑥))
4 eleq1 2827 . . . . . . . . . 10 (𝑝 = ⟨𝑦, 𝑧⟩ → (𝑝𝐴 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
53, 4anbi12d 630 . . . . . . . . 9 (𝑝 = ⟨𝑦, 𝑧⟩ → ((𝑝2nd 𝑥𝑝𝐴) ↔ (⟨𝑦, 𝑧⟩2nd 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴)))
6 vex 3434 . . . . . . . . . . . 12 𝑦 ∈ V
7 vex 3434 . . . . . . . . . . . 12 𝑧 ∈ V
86, 7br2ndeq 33725 . . . . . . . . . . 11 (⟨𝑦, 𝑧⟩2nd 𝑥𝑥 = 𝑧)
9 equcom 2024 . . . . . . . . . . 11 (𝑥 = 𝑧𝑧 = 𝑥)
108, 9bitri 274 . . . . . . . . . 10 (⟨𝑦, 𝑧⟩2nd 𝑥𝑧 = 𝑥)
1110anbi1i 623 . . . . . . . . 9 ((⟨𝑦, 𝑧⟩2nd 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
125, 11bitrdi 286 . . . . . . . 8 (𝑝 = ⟨𝑦, 𝑧⟩ → ((𝑝2nd 𝑥𝑝𝐴) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴)))
132, 12ceqsexv 3477 . . . . . . 7 (∃𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
1413exbii 1853 . . . . . 6 (∃𝑧𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)) ↔ ∃𝑧(𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
15 excom 2165 . . . . . 6 (∃𝑧𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)) ↔ ∃𝑝𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
16 vex 3434 . . . . . . 7 𝑥 ∈ V
17 opeq2 4810 . . . . . . . 8 (𝑧 = 𝑥 → ⟨𝑦, 𝑧⟩ = ⟨𝑦, 𝑥⟩)
1817eleq1d 2824 . . . . . . 7 (𝑧 = 𝑥 → (⟨𝑦, 𝑧⟩ ∈ 𝐴 ↔ ⟨𝑦, 𝑥⟩ ∈ 𝐴))
1916, 18ceqsexv 3477 . . . . . 6 (∃𝑧(𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴) ↔ ⟨𝑦, 𝑥⟩ ∈ 𝐴)
2014, 15, 193bitr3ri 301 . . . . 5 (⟨𝑦, 𝑥⟩ ∈ 𝐴 ↔ ∃𝑝𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
2120exbii 1853 . . . 4 (∃𝑦𝑦, 𝑥⟩ ∈ 𝐴 ↔ ∃𝑦𝑝𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
22 ancom 460 . . . . . 6 ((𝑝𝐴𝑝(2nd ↾ (V × V))𝑥) ↔ (𝑝(2nd ↾ (V × V))𝑥𝑝𝐴))
23 anass 468 . . . . . . 7 (((∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥) ∧ 𝑝𝐴) ↔ (∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
2416brresi 5897 . . . . . . . . 9 (𝑝(2nd ↾ (V × V))𝑥 ↔ (𝑝 ∈ (V × V) ∧ 𝑝2nd 𝑥))
25 elvv 5660 . . . . . . . . . 10 (𝑝 ∈ (V × V) ↔ ∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩)
2625anbi1i 623 . . . . . . . . 9 ((𝑝 ∈ (V × V) ∧ 𝑝2nd 𝑥) ↔ (∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥))
2724, 26bitri 274 . . . . . . . 8 (𝑝(2nd ↾ (V × V))𝑥 ↔ (∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥))
2827anbi1i 623 . . . . . . 7 ((𝑝(2nd ↾ (V × V))𝑥𝑝𝐴) ↔ ((∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥) ∧ 𝑝𝐴))
29 19.41vv 1957 . . . . . . 7 (∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)) ↔ (∃𝑦𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
3023, 28, 293bitr4i 302 . . . . . 6 ((𝑝(2nd ↾ (V × V))𝑥𝑝𝐴) ↔ ∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
3122, 30bitri 274 . . . . 5 ((𝑝𝐴𝑝(2nd ↾ (V × V))𝑥) ↔ ∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
3231exbii 1853 . . . 4 (∃𝑝(𝑝𝐴𝑝(2nd ↾ (V × V))𝑥) ↔ ∃𝑝𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥𝑝𝐴)))
331, 21, 323bitr4i 302 . . 3 (∃𝑦𝑦, 𝑥⟩ ∈ 𝐴 ↔ ∃𝑝(𝑝𝐴𝑝(2nd ↾ (V × V))𝑥))
3416elrn2 5798 . . 3 (𝑥 ∈ ran 𝐴 ↔ ∃𝑦𝑦, 𝑥⟩ ∈ 𝐴)
3516elima2 5972 . . 3 (𝑥 ∈ ((2nd ↾ (V × V)) “ 𝐴) ↔ ∃𝑝(𝑝𝐴𝑝(2nd ↾ (V × V))𝑥))
3633, 34, 353bitr4i 302 . 2 (𝑥 ∈ ran 𝐴𝑥 ∈ ((2nd ↾ (V × V)) “ 𝐴))
3736eqriv 2736 1 ran 𝐴 = ((2nd ↾ (V × V)) “ 𝐴)
Colors of variables: wff setvar class
Syntax hints:  wa 395   = wceq 1541  wex 1785  wcel 2109  Vcvv 3430  cop 4572   class class class wbr 5078   × cxp 5586  ran crn 5589  cres 5590  cima 5591  2nd c2nd 7816
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-sep 5226  ax-nul 5233  ax-pr 5355  ax-un 7579
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-ral 3070  df-rex 3071  df-rab 3074  df-v 3432  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-nul 4262  df-if 4465  df-sn 4567  df-pr 4569  df-op 4573  df-uni 4845  df-br 5079  df-opab 5141  df-mpt 5162  df-id 5488  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-fo 6436  df-fv 6438  df-2nd 7818
This theorem is referenced by:  brrange  34215
  Copyright terms: Public domain W3C validator