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

Theorem fo2ndres 7713
 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 4293 . . . . . . 7 (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴)
2 opelxp 5579 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ↔ (𝑥𝐴𝑦𝐵))
3 fvres 6682 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) = (2nd ‘⟨𝑥, 𝑦⟩))
4 vex 3483 . . . . . . . . . . . . 13 𝑥 ∈ V
5 vex 3483 . . . . . . . . . . . . 13 𝑦 ∈ V
64, 5op2nd 7695 . . . . . . . . . . . 12 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
73, 6syl6req 2876 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → 𝑦 = ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩))
8 f2ndres 7711 . . . . . . . . . . . . 13 (2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵
9 ffn 6505 . . . . . . . . . . . . 13 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 → (2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵))
108, 9ax-mp 5 . . . . . . . . . . . 12 (2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵)
11 fnfvelrn 6841 . . . . . . . . . . . 12 (((2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵)) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) ∈ ran (2nd ↾ (𝐴 × 𝐵)))
1210, 11mpan 689 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) ∈ ran (2nd ↾ (𝐴 × 𝐵)))
137, 12eqeltrd 2916 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → 𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵)))
142, 13sylbir 238 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → 𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵)))
1514ex 416 . . . . . . . 8 (𝑥𝐴 → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
1615exlimiv 1932 . . . . . . 7 (∃𝑥 𝑥𝐴 → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
171, 16sylbi 220 . . . . . 6 (𝐴 ≠ ∅ → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
1817ssrdv 3959 . . . . 5 (𝐴 ≠ ∅ → 𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵)))
19 frn 6511 . . . . . 6 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 → ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵)
208, 19ax-mp 5 . . . . 5 ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵
2118, 20jctil 523 . . . 4 (𝐴 ≠ ∅ → (ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵))))
22 eqss 3968 . . . 4 (ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵 ↔ (ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵))))
2321, 22sylibr 237 . . 3 (𝐴 ≠ ∅ → ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵)
2423, 8jctil 523 . 2 (𝐴 ≠ ∅ → ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 ∧ ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵))
25 dffo2 6587 . 2 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐵 ↔ ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 ∧ ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵))
2624, 25sylibr 237 1 (𝐴 ≠ ∅ → (2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐵)
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 399   = wceq 1538  ∃wex 1781   ∈ wcel 2115   ≠ wne 3014   ⊆ wss 3919  ∅c0 4276  ⟨cop 4556   × cxp 5541  ran crn 5544   ↾ cres 5545   Fn wfn 6340  ⟶wf 6341  –onto→wfo 6343  ‘cfv 6345  2nd c2nd 7685 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1912  ax-6 1971  ax-7 2016  ax-8 2117  ax-9 2125  ax-10 2146  ax-11 2162  ax-12 2179  ax-ext 2796  ax-sep 5190  ax-nul 5197  ax-pow 5254  ax-pr 5318  ax-un 7457 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2071  df-mo 2624  df-eu 2655  df-clab 2803  df-cleq 2817  df-clel 2896  df-nfc 2964  df-ne 3015  df-ral 3138  df-rex 3139  df-rab 3142  df-v 3482  df-sbc 3759  df-csb 3867  df-dif 3922  df-un 3924  df-in 3926  df-ss 3936  df-nul 4277  df-if 4451  df-sn 4551  df-pr 4553  df-op 4557  df-uni 4825  df-iun 4907  df-br 5054  df-opab 5116  df-mpt 5134  df-id 5448  df-xp 5549  df-rel 5550  df-cnv 5551  df-co 5552  df-dm 5553  df-rn 5554  df-res 5555  df-ima 5556  df-iota 6304  df-fun 6347  df-fn 6348  df-f 6349  df-fo 6351  df-fv 6353  df-2nd 7687 This theorem is referenced by:  2ndconst  7794  txcmpb  22258
 Copyright terms: Public domain W3C validator