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 36746
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 2202 . . . 4 (∃𝑦∃𝑝∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)) ↔ ∃𝑝∃𝑦∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
2 opex 5437 . . . . . . . 8 ⟨𝑦, 𝑧⟩ ∈ V
3 breq1 5109 . . . . . . . . . 10 (𝑝 = ⟨𝑦, 𝑧⟩ → (𝑝2nd 𝑥 ↔ ⟨𝑦, 𝑧⟩2nd 𝑥))
4 eleq1 2852 . . . . . . . . . 10 (𝑝 = ⟨𝑦, 𝑧⟩ → (𝑝 ∈ 𝐴 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
53, 4anbi12d 644 . . . . . . . . 9 (𝑝 = ⟨𝑦, 𝑧⟩ → ((𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴) ↔ (⟨𝑦, 𝑧⟩2nd 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴)))
6 vex 3458 . . . . . . . . . . . 12 𝑦 ∈ V
7 vex 3458 . . . . . . . . . . . 12 𝑧 ∈ V
86, 7br2ndeq 36744 . . . . . . . . . . 11 (⟨𝑦, 𝑧⟩2nd 𝑥 ↔ 𝑥 = 𝑧)
9 equcom 2053 . . . . . . . . . . 11 (𝑥 = 𝑧 ↔ 𝑧 = 𝑥)
108, 9bitri 278 . . . . . . . . . 10 (⟨𝑦, 𝑧⟩2nd 𝑥 ↔ 𝑧 = 𝑥)
1110anbi1i 636 . . . . . . . . 9 ((⟨𝑦, 𝑧⟩2nd 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
125, 11bitrdi 290 . . . . . . . 8 (𝑝 = ⟨𝑦, 𝑧⟩ → ((𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴)))
132, 12ceqsexv 3502 . . . . . . 7 (∃𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
1413exbii 1881 . . . . . 6 (∃𝑧∃𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)) ↔ ∃𝑧(𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
15 excom 2202 . . . . . 6 (∃𝑧∃𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)) ↔ ∃𝑝∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
16 vex 3458 . . . . . . 7 𝑥 ∈ V
17 opeq2 4844 . . . . . . . 8 (𝑧 = 𝑥 → ⟨𝑦, 𝑧⟩ = ⟨𝑦, 𝑥⟩)
1817eleq1d 2849 . . . . . . 7 (𝑧 = 𝑥 → (⟨𝑦, 𝑧⟩ ∈ 𝐴 ↔ ⟨𝑦, 𝑥⟩ ∈ 𝐴))
1916, 18ceqsexv 3502 . . . . . 6 (∃𝑧(𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴) ↔ ⟨𝑦, 𝑥⟩ ∈ 𝐴)
2014, 15, 193bitr3ri 305 . . . . 5 (⟨𝑦, 𝑥⟩ ∈ 𝐴 ↔ ∃𝑝∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
2120exbii 1881 . . . 4 (∃𝑦⟨𝑦, 𝑥⟩ ∈ 𝐴 ↔ ∃𝑦∃𝑝∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
22 ancom 466 . . . . . 6 ((𝑝 ∈ 𝐴 ∧ 𝑝(2nd ↾ (V × V))𝑥) ↔ (𝑝(2nd ↾ (V × V))𝑥 ∧ 𝑝 ∈ 𝐴))
23 anass 474 . . . . . . 7 (((∃𝑦∃𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥) ∧ 𝑝 ∈ 𝐴) ↔ (∃𝑦∃𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
2416brresi 5993 . . . . . . . . 9 (𝑝(2nd ↾ (V × V))𝑥 ↔ (𝑝 ∈ (V × V) ∧ 𝑝2nd 𝑥))
25 elvv 5731 . . . . . . . . . 10 (𝑝 ∈ (V × V) ↔ ∃𝑦∃𝑧 𝑝 = ⟨𝑦, 𝑧⟩)
2625anbi1i 636 . . . . . . . . 9 ((𝑝 ∈ (V × V) ∧ 𝑝2nd 𝑥) ↔ (∃𝑦∃𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥))
2724, 26bitri 278 . . . . . . . 8 (𝑝(2nd ↾ (V × V))𝑥 ↔ (∃𝑦∃𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥))
2827anbi1i 636 . . . . . . 7 ((𝑝(2nd ↾ (V × V))𝑥 ∧ 𝑝 ∈ 𝐴) ↔ ((∃𝑦∃𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ 𝑝2nd 𝑥) ∧ 𝑝 ∈ 𝐴))
29 19.41vv 1985 . . . . . . 7 (∃𝑦∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)) ↔ (∃𝑦∃𝑧 𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
3023, 28, 293bitr4i 306 . . . . . 6 ((𝑝(2nd ↾ (V × V))𝑥 ∧ 𝑝 ∈ 𝐴) ↔ ∃𝑦∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
3122, 30bitri 278 . . . . 5 ((𝑝 ∈ 𝐴 ∧ 𝑝(2nd ↾ (V × V))𝑥) ↔ ∃𝑦∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
3231exbii 1881 . . . 4 (∃𝑝(𝑝 ∈ 𝐴 ∧ 𝑝(2nd ↾ (V × V))𝑥) ↔ ∃𝑝∃𝑦∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
331, 21, 323bitr4i 306 . . 3 (∃𝑦⟨𝑦, 𝑥⟩ ∈ 𝐴 ↔ ∃𝑝(𝑝 ∈ 𝐴 ∧ 𝑝(2nd ↾ (V × V))𝑥))
3416elrn2 5884 . . 3 (𝑥 ∈ ran 𝐴 ↔ ∃𝑦⟨𝑦, 𝑥⟩ ∈ 𝐴)
3516elima2 6078 . . 3 (𝑥 ∈ ((2nd ↾ (V × V)) “ 𝐴) ↔ ∃𝑝(𝑝 ∈ 𝐴 ∧ 𝑝(2nd ↾ (V × V))𝑥))
3633, 34, 353bitr4i 306 . 2 (𝑥 ∈ ran 𝐴 ↔ 𝑥 ∈ ((2nd ↾ (V × V)) “ 𝐴))
3736eqriv 2760 1 ran 𝐴 = ((2nd ↾ (V × V)) “ 𝐴)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2147  Vcvv 3454  ⟨cop 4838   class class class wbr 5106   × cxp 5654  ran crn 5657   ↾ cres 5658   “ cima 5659  2nd c2nd 8032
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5253  ax-nul 5264  ax-pr 5396  ax-un 7781
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-br 5107  df-opab 5172  df-mpt 5191  df-id 5551  df-xp 5662  df-rel 5663  df-cnv 5664  df-co 5665  df-dm 5666  df-rn 5667  df-res 5668  df-ima 5669  df-iota 6518  df-fun 6566  df-fn 6567  df-f 6568  df-fo 6570  df-fv 6572  df-2nd 8034
This theorem is used by:  brrange  36904
  Copyright terms: Public domain W3C validator