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

Theorem fo2ndf 8169
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 ↾ 𝐹):𝐹⟶ontoran 𝐹)

Proof of Theorem fo2ndf
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ffrn 6753 . . 3 (𝐹:𝐴⟶𝐵 → 𝐹:𝐴⟶ran 𝐹)
2 f2ndf 8168 . . 3 (𝐹:𝐴⟶ran 𝐹 → (2nd ↾ 𝐹):𝐹⟶ran 𝐹)
31, 2syl 18 . 2 (𝐹:𝐴⟶𝐵 → (2nd ↾ 𝐹):𝐹⟶ran 𝐹)
4 ffn 6739 . . . . 5 (𝐹:𝐴⟶𝐵 → 𝐹 Fn 𝐴)
5 dffn3 6752 . . . . . 6 (𝐹 Fn 𝐴 ↔ 𝐹:𝐴⟶ran 𝐹)
65, 2sylbi 220 . . . . 5 (𝐹 Fn 𝐴 → (2nd ↾ 𝐹):𝐹⟶ran 𝐹)
74, 6syl 18 . . . 4 (𝐹:𝐴⟶𝐵 → (2nd ↾ 𝐹):𝐹⟶ran 𝐹)
87frnd 6748 . . 3 (𝐹:𝐴⟶𝐵 → ran (2nd ↾ 𝐹) ⊆ ran 𝐹)
9 elrn2g 5884 . . . . . 6 (𝑦 ∈ ran 𝐹 → (𝑦 ∈ ran 𝐹 ↔ ∃𝑥⟨𝑥, 𝑦⟩ ∈ 𝐹))
109ibi 270 . . . . 5 (𝑦 ∈ ran 𝐹 → ∃𝑥⟨𝑥, 𝑦⟩ ∈ 𝐹)
11 fvres 6935 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ 𝐹 → ((2nd ↾ 𝐹)‘⟨𝑥, 𝑦⟩) = (2nd ‘⟨𝑥, 𝑦⟩))
1211adantl 487 . . . . . . . . 9 ((𝐹:𝐴⟶𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → ((2nd ↾ 𝐹)‘⟨𝑥, 𝑦⟩) = (2nd ‘⟨𝑥, 𝑦⟩))
13 vex 3458 . . . . . . . . . 10 𝑥 ∈ V
14 vex 3458 . . . . . . . . . 10 𝑦 ∈ V
1513, 14op2nd 8044 . . . . . . . . 9 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
1612, 15eqtr2di 2815 . . . . . . . 8 ((𝐹:𝐴⟶𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → 𝑦 = ((2nd ↾ 𝐹)‘⟨𝑥, 𝑦⟩))
17 f2ndf 8168 . . . . . . . . . 10 (𝐹:𝐴⟶𝐵 → (2nd ↾ 𝐹):𝐹⟶𝐵)
1817ffnd 6740 . . . . . . . . 9 (𝐹:𝐴⟶𝐵 → (2nd ↾ 𝐹) Fn 𝐹)
19 fnfvelrn 7112 . . . . . . . . 9 (((2nd ↾ 𝐹) Fn 𝐹 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → ((2nd ↾ 𝐹)‘⟨𝑥, 𝑦⟩) ∈ ran (2nd ↾ 𝐹))
2018, 19sylan 592 . . . . . . . 8 ((𝐹:𝐴⟶𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → ((2nd ↾ 𝐹)‘⟨𝑥, 𝑦⟩) ∈ ran (2nd ↾ 𝐹))
2116, 20eqeltrd 2864 . . . . . . 7 ((𝐹:𝐴⟶𝐵 ∧ ⟨𝑥, 𝑦⟩ ∈ 𝐹) → 𝑦 ∈ ran (2nd ↾ 𝐹))
2221ex 418 . . . . . 6 (𝐹:𝐴⟶𝐵 → (⟨𝑥, 𝑦⟩ ∈ 𝐹 → 𝑦 ∈ ran (2nd ↾ 𝐹)))
2322exlimdv 1968 . . . . 5 (𝐹:𝐴⟶𝐵 → (∃𝑥⟨𝑥, 𝑦⟩ ∈ 𝐹 → 𝑦 ∈ ran (2nd ↾ 𝐹)))
2410, 23syl5 35 . . . 4 (𝐹:𝐴⟶𝐵 → (𝑦 ∈ ran 𝐹 → 𝑦 ∈ ran (2nd ↾ 𝐹)))
2524ssrdv 3919 . . 3 (𝐹:𝐴⟶𝐵 → ran 𝐹 ⊆ ran (2nd ↾ 𝐹))
268, 25eqssd 3930 . 2 (𝐹:𝐴⟶𝐵 → ran (2nd ↾ 𝐹) = ran 𝐹)
27 dffo2 6830 . 2 ((2nd ↾ 𝐹):𝐹⟶ontoran 𝐹 ↔ ((2nd ↾ 𝐹):𝐹⟶ran 𝐹 ∧ ran (2nd ↾ 𝐹) = ran 𝐹))
283, 26, 27sylanbrc 595 1 (𝐹:𝐴⟶𝐵 → (2nd ↾ 𝐹):𝐹⟶ontoran 𝐹)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   = wceq 1570  ∃wex 1812   ∈ wcel 2147  ⟨cop 4840  ran crn 5659   ↾ cres 5660   Fn wfn 6561  ⟶wf 6562  ⟶ontowfo 6564  ‘cfv 6566  2nd c2nd 8034
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 5255  ax-nul 5266  ax-pr 5398  ax-un 7783
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-sbc 3743  df-csb 3852  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 4841  df-uni 4873  df-iun 4958  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-res 5670  df-ima 5671  df-iota 6520  df-fun 6568  df-fn 6569  df-f 6570  df-fo 6572  df-fv 6574  df-2nd 8036
This theorem is used by:  f1o2ndf1  8170
  Copyright terms: Public domain W3C validator