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

Theorem fo2ndres 7141
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 3912 . . . . . . 7 (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴)
2 opelxp 5111 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ↔ (𝑥𝐴𝑦𝐵))
3 fvres 6165 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) = (2nd ‘⟨𝑥, 𝑦⟩))
4 vex 3194 . . . . . . . . . . . . 13 𝑥 ∈ V
5 vex 3194 . . . . . . . . . . . . 13 𝑦 ∈ V
64, 5op2nd 7125 . . . . . . . . . . . 12 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
73, 6syl6req 2677 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → 𝑦 = ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩))
8 f2ndres 7139 . . . . . . . . . . . . 13 (2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵
9 ffn 6004 . . . . . . . . . . . . 13 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 → (2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵))
108, 9ax-mp 5 . . . . . . . . . . . 12 (2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵)
11 fnfvelrn 6313 . . . . . . . . . . . 12 (((2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵)) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) ∈ ran (2nd ↾ (𝐴 × 𝐵)))
1210, 11mpan 705 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) ∈ ran (2nd ↾ (𝐴 × 𝐵)))
137, 12eqeltrd 2704 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → 𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵)))
142, 13sylbir 225 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → 𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵)))
1514ex 450 . . . . . . . 8 (𝑥𝐴 → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
1615exlimiv 1860 . . . . . . 7 (∃𝑥 𝑥𝐴 → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
171, 16sylbi 207 . . . . . 6 (𝐴 ≠ ∅ → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
1817ssrdv 3594 . . . . 5 (𝐴 ≠ ∅ → 𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵)))
19 frn 6012 . . . . . 6 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 → ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵)
208, 19ax-mp 5 . . . . 5 ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵
2118, 20jctil 559 . . . 4 (𝐴 ≠ ∅ → (ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵))))
22 eqss 3603 . . . 4 (ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵 ↔ (ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵))))
2321, 22sylibr 224 . . 3 (𝐴 ≠ ∅ → ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵)
2423, 8jctil 559 . 2 (𝐴 ≠ ∅ → ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 ∧ ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵))
25 dffo2 6078 . 2 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐵 ↔ ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 ∧ ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵))
2624, 25sylibr 224 1 (𝐴 ≠ ∅ → (2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384   = wceq 1480  wex 1701  wcel 1992  wne 2796  wss 3560  c0 3896  cop 4159   × cxp 5077  ran crn 5080  cres 5081   Fn wfn 5845  wf 5846  ontowfo 5848  cfv 5850  2nd c2nd 7115
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1841  ax-6 1890  ax-7 1937  ax-8 1994  ax-9 2001  ax-10 2021  ax-11 2036  ax-12 2049  ax-13 2250  ax-ext 2606  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6903
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1883  df-eu 2478  df-mo 2479  df-clab 2613  df-cleq 2619  df-clel 2622  df-nfc 2756  df-ne 2797  df-ral 2917  df-rex 2918  df-rab 2921  df-v 3193  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-nul 3897  df-if 4064  df-sn 4154  df-pr 4156  df-op 4160  df-uni 4408  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-id 4994  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-iota 5813  df-fun 5852  df-fn 5853  df-f 5854  df-fo 5856  df-fv 5858  df-2nd 7117
This theorem is referenced by:  2ndconst  7212  txcmpb  21352
  Copyright terms: Public domain W3C validator