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

Theorem fo2ndf 8101
Description: The 2nd (second component of an ordered pair) function restricted to a function 𝐹 is a function from 𝐹 onto the range of 𝐹. (Contributed by Alexander van der Vekens, 4-Feb-2018.)
Assertion
Ref Expression
fo2ndf (𝐹:𝐴𝐵 → (2nd𝐹):𝐹onto→ran 𝐹)

Proof of Theorem fo2ndf
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ffrn 6721 . . 3 (𝐹:𝐴𝐵𝐹:𝐴⟶ran 𝐹)
2 f2ndf 8100 . . 3 (𝐹:𝐴⟶ran 𝐹 → (2nd𝐹):𝐹⟶ran 𝐹)
31, 2syl 17 . 2 (𝐹:𝐴𝐵 → (2nd𝐹):𝐹⟶ran 𝐹)
4 ffn 6707 . . . . 5 (𝐹:𝐴𝐵𝐹 Fn 𝐴)
5 dffn3 6720 . . . . . 6 (𝐹 Fn 𝐴𝐹:𝐴⟶ran 𝐹)
65, 2sylbi 216 . . . . 5 (𝐹 Fn 𝐴 → (2nd𝐹):𝐹⟶ran 𝐹)
74, 6syl 17 . . . 4 (𝐹:𝐴𝐵 → (2nd𝐹):𝐹⟶ran 𝐹)
87frnd 6715 . . 3 (𝐹:𝐴𝐵 → ran (2nd𝐹) ⊆ ran 𝐹)
9 elrn2g 5880 . . . . . 6 (𝑦 ∈ ran 𝐹 → (𝑦 ∈ ran 𝐹 ↔ ∃𝑥𝑥, 𝑦⟩ ∈ 𝐹))
109ibi 267 . . . . 5 (𝑦 ∈ ran 𝐹 → ∃𝑥𝑥, 𝑦⟩ ∈ 𝐹)
11 fvres 6900 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ 𝐹 → ((2nd𝐹)‘⟨𝑥, 𝑦⟩) = (2nd ‘⟨𝑥, 𝑦⟩))
1211adantl 481 . . . . . . . . 9 ((𝐹:𝐴𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → ((2nd𝐹)‘⟨𝑥, 𝑦⟩) = (2nd ‘⟨𝑥, 𝑦⟩))
13 vex 3470 . . . . . . . . . 10 𝑥 ∈ V
14 vex 3470 . . . . . . . . . 10 𝑦 ∈ V
1513, 14op2nd 7977 . . . . . . . . 9 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
1612, 15eqtr2di 2781 . . . . . . . 8 ((𝐹:𝐴𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → 𝑦 = ((2nd𝐹)‘⟨𝑥, 𝑦⟩))
17 f2ndf 8100 . . . . . . . . . 10 (𝐹:𝐴𝐵 → (2nd𝐹):𝐹𝐵)
1817ffnd 6708 . . . . . . . . 9 (𝐹:𝐴𝐵 → (2nd𝐹) Fn 𝐹)
19 fnfvelrn 7072 . . . . . . . . 9 (((2nd𝐹) Fn 𝐹 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → ((2nd𝐹)‘⟨𝑥, 𝑦⟩) ∈ ran (2nd𝐹))
2018, 19sylan 579 . . . . . . . 8 ((𝐹:𝐴𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → ((2nd𝐹)‘⟨𝑥, 𝑦⟩) ∈ ran (2nd𝐹))
2116, 20eqeltrd 2825 . . . . . . 7 ((𝐹:𝐴𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → 𝑦 ∈ ran (2nd𝐹))
2221ex 412 . . . . . 6 (𝐹:𝐴𝐵 → (⟨𝑥, 𝑦⟩ ∈ 𝐹𝑦 ∈ ran (2nd𝐹)))
2322exlimdv 1928 . . . . 5 (𝐹:𝐴𝐵 → (∃𝑥𝑥, 𝑦⟩ ∈ 𝐹𝑦 ∈ ran (2nd𝐹)))
2410, 23syl5 34 . . . 4 (𝐹:𝐴𝐵 → (𝑦 ∈ ran 𝐹𝑦 ∈ ran (2nd𝐹)))
2524ssrdv 3980 . . 3 (𝐹:𝐴𝐵 → ran 𝐹 ⊆ ran (2nd𝐹))
268, 25eqssd 3991 . 2 (𝐹:𝐴𝐵 → ran (2nd𝐹) = ran 𝐹)
27 dffo2 6799 . 2 ((2nd𝐹):𝐹onto→ran 𝐹 ↔ ((2nd𝐹):𝐹⟶ran 𝐹 ∧ ran (2nd𝐹) = ran 𝐹))
283, 26, 27sylanbrc 582 1 (𝐹:𝐴𝐵 → (2nd𝐹):𝐹onto→ran 𝐹)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1533  wex 1773  wcel 2098  cop 4626  ran crn 5667  cres 5668   Fn wfn 6528  wf 6529  ontowfo 6531  cfv 6533  2nd c2nd 7967
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1905  ax-6 1963  ax-7 2003  ax-8 2100  ax-9 2108  ax-10 2129  ax-11 2146  ax-12 2163  ax-ext 2695  ax-sep 5289  ax-nul 5296  ax-pr 5417  ax-un 7718
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 845  df-3an 1086  df-tru 1536  df-fal 1546  df-ex 1774  df-nf 1778  df-sb 2060  df-mo 2526  df-eu 2555  df-clab 2702  df-cleq 2716  df-clel 2802  df-nfc 2877  df-ne 2933  df-ral 3054  df-rex 3063  df-rab 3425  df-v 3468  df-sbc 3770  df-csb 3886  df-dif 3943  df-un 3945  df-in 3947  df-ss 3957  df-nul 4315  df-if 4521  df-sn 4621  df-pr 4623  df-op 4627  df-uni 4900  df-iun 4989  df-br 5139  df-opab 5201  df-mpt 5222  df-id 5564  df-xp 5672  df-rel 5673  df-cnv 5674  df-co 5675  df-dm 5676  df-rn 5677  df-res 5678  df-ima 5679  df-iota 6485  df-fun 6535  df-fn 6536  df-f 6537  df-fo 6539  df-fv 6541  df-2nd 7969
This theorem is referenced by:  f1o2ndf1  8102
  Copyright terms: Public domain W3C validator