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

Theorem fo2ndres 7831
Description: Onto mapping of a restriction of the 2nd (second member of an ordered pair) function. (Contributed by NM, 14-Dec-2008.)
Assertion
Ref Expression
fo2ndres (𝐴 ≠ ∅ → (2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐵)

Proof of Theorem fo2ndres
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 n0 4277 . . . . . . 7 (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴)
2 opelxp 5616 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ↔ (𝑥𝐴𝑦𝐵))
3 fvres 6775 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) = (2nd ‘⟨𝑥, 𝑦⟩))
4 vex 3426 . . . . . . . . . . . . 13 𝑥 ∈ V
5 vex 3426 . . . . . . . . . . . . 13 𝑦 ∈ V
64, 5op2nd 7813 . . . . . . . . . . . 12 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
73, 6eqtr2di 2796 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → 𝑦 = ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩))
8 f2ndres 7829 . . . . . . . . . . . . 13 (2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵
9 ffn 6584 . . . . . . . . . . . . 13 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 → (2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵))
108, 9ax-mp 5 . . . . . . . . . . . 12 (2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵)
11 fnfvelrn 6940 . . . . . . . . . . . 12 (((2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵)) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) ∈ ran (2nd ↾ (𝐴 × 𝐵)))
1210, 11mpan 686 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) ∈ ran (2nd ↾ (𝐴 × 𝐵)))
137, 12eqeltrd 2839 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → 𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵)))
142, 13sylbir 234 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → 𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵)))
1514ex 412 . . . . . . . 8 (𝑥𝐴 → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
1615exlimiv 1934 . . . . . . 7 (∃𝑥 𝑥𝐴 → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
171, 16sylbi 216 . . . . . 6 (𝐴 ≠ ∅ → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
1817ssrdv 3923 . . . . 5 (𝐴 ≠ ∅ → 𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵)))
19 frn 6591 . . . . . 6 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 → ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵)
208, 19ax-mp 5 . . . . 5 ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵
2118, 20jctil 519 . . . 4 (𝐴 ≠ ∅ → (ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵))))
22 eqss 3932 . . . 4 (ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵 ↔ (ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵))))
2321, 22sylibr 233 . . 3 (𝐴 ≠ ∅ → ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵)
2423, 8jctil 519 . 2 (𝐴 ≠ ∅ → ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 ∧ ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵))
25 dffo2 6676 . 2 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐵 ↔ ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 ∧ ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵))
2624, 25sylibr 233 1 (𝐴 ≠ ∅ → (2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wex 1783  wcel 2108  wne 2942  wss 3883  c0 4253  cop 4564   × cxp 5578  ran crn 5581  cres 5582   Fn wfn 6413  wf 6414  ontowfo 6416  cfv 6418  2nd c2nd 7803
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-fo 6424  df-fv 6426  df-2nd 7805
This theorem is referenced by:  2ndconst  7912  txcmpb  22703
  Copyright terms: Public domain W3C validator