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 36518
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 2199 . . . 4 (∃𝑦∃𝑝∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)) ↔ ∃𝑝∃𝑦∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
2 opex 5432 . . . . . . . 8 ⟨𝑦, 𝑧⟩ ∈ V
3 breq1 5106 . . . . . . . . . 10 (𝑝 = ⟨𝑦, 𝑧⟩ → (𝑝2nd 𝑥 ↔ ⟨𝑦, 𝑧⟩2nd 𝑥))
4 eleq1 2849 . . . . . . . . . 10 (𝑝 = ⟨𝑦, 𝑧⟩ → (𝑝 ∈ 𝐴 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
53, 4anbi12d 644 . . . . . . . . 9 (𝑝 = ⟨𝑦, 𝑧⟩ → ((𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴) ↔ (⟨𝑦, 𝑧⟩2nd 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴)))
6 vex 3455 . . . . . . . . . . . 12 𝑦 ∈ V
7 vex 3455 . . . . . . . . . . . 12 𝑧 ∈ V
86, 7br2ndeq 36516 . . . . . . . . . . 11 (⟨𝑦, 𝑧⟩2nd 𝑥 ↔ 𝑥 = 𝑧)
9 equcom 2051 . . . . . . . . . . 11 (𝑥 = 𝑧 ↔ 𝑧 = 𝑥)
108, 9bitri 278 . . . . . . . . . 10 (⟨𝑦, 𝑧⟩2nd 𝑥 ↔ 𝑧 = 𝑥)
1110anbi1i 636 . . . . . . . . 9 ((⟨𝑦, 𝑧⟩2nd 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
125, 11bitrdi 290 . . . . . . . 8 (𝑝 = ⟨𝑦, 𝑧⟩ → ((𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴)))
132, 12ceqsexv 3499 . . . . . . 7 (∃𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)) ↔ (𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
1413exbii 1881 . . . . . 6 (∃𝑧∃𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)) ↔ ∃𝑧(𝑧 = 𝑥 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝐴))
15 excom 2199 . . . . . 6 (∃𝑧∃𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)) ↔ ∃𝑝∃𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑝2nd 𝑥 ∧ 𝑝 ∈ 𝐴)))
16 vex 3455 . . . . . . 7 𝑥 ∈ V
17 opeq2 4834 . . . . . . . 8 (𝑧 = 𝑥 → ⟨𝑦, 𝑧⟩ = ⟨𝑦, 𝑥⟩)
1817eleq1d 2846 . . . . . . 7 (𝑧 = 𝑥 → (⟨𝑦, 𝑧⟩ ∈ 𝐴 ↔ ⟨𝑦, 𝑥⟩ ∈ 𝐴))
1916, 18ceqsexv 3499 . . . . . 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 5979 . . . . . . . . 9 (𝑝(2nd ↾ (V × V))𝑥 ↔ (𝑝 ∈ (V × V) ∧ 𝑝2nd 𝑥))
25 elvv 5726 . . . . . . . . . 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 1983 . . . . . . 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 5874 . . 3 (𝑥 ∈ ran 𝐴 ↔ ∃𝑦⟨𝑦, 𝑥⟩ ∈ 𝐴)
3516elima2 6062 . . 3 (𝑥 ∈ ((2nd ↾ (V × V)) “ 𝐴) ↔ ∃𝑝(𝑝 ∈ 𝐴 ∧ 𝑝(2nd ↾ (V × V))𝑥))
3633, 34, 353bitr4i 306 . 2 (𝑥 ∈ ran 𝐴 ↔ 𝑥 ∈ ((2nd ↾ (V × V)) “ 𝐴))
3736eqriv 2758 1 ran 𝐴 = ((2nd ↾ (V × V)) “ 𝐴)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2145  Vcvv 3451  ⟨cop 4590   class class class wbr 5103   × cxp 5649  ran crn 5652   ↾ cres 5653   “ cima 5654  2nd c2nd 7998
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391  ax-un 7749
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6493  df-fun 6539  df-fn 6540  df-f 6541  df-fo 6543  df-fv 6545  df-2nd 8000
This theorem is used by:  brrange  36676
  Copyright terms: Public domain W3C validator