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

Theorem fo2ndres 7849
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 4286 . . . . . . 7 (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴)
2 opelxp 5625 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) ↔ (𝑥𝐴𝑦𝐵))
3 fvres 6788 . . . . . . . . . . . 12 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) = (2nd ‘⟨𝑥, 𝑦⟩))
4 vex 3435 . . . . . . . . . . . . 13 𝑥 ∈ V
5 vex 3435 . . . . . . . . . . . . 13 𝑦 ∈ V
64, 5op2nd 7831 . . . . . . . . . . . 12 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
73, 6eqtr2di 2797 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → 𝑦 = ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩))
8 f2ndres 7847 . . . . . . . . . . . . 13 (2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵
9 ffn 6597 . . . . . . . . . . . . 13 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 → (2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵))
108, 9ax-mp 5 . . . . . . . . . . . 12 (2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵)
11 fnfvelrn 6953 . . . . . . . . . . . 12 (((2nd ↾ (𝐴 × 𝐵)) Fn (𝐴 × 𝐵) ∧ ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵)) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) ∈ ran (2nd ↾ (𝐴 × 𝐵)))
1210, 11mpan 687 . . . . . . . . . . 11 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → ((2nd ↾ (𝐴 × 𝐵))‘⟨𝑥, 𝑦⟩) ∈ ran (2nd ↾ (𝐴 × 𝐵)))
137, 12eqeltrd 2841 . . . . . . . . . 10 (⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵) → 𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵)))
142, 13sylbir 234 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → 𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵)))
1514ex 413 . . . . . . . 8 (𝑥𝐴 → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
1615exlimiv 1937 . . . . . . 7 (∃𝑥 𝑥𝐴 → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
171, 16sylbi 216 . . . . . 6 (𝐴 ≠ ∅ → (𝑦𝐵𝑦 ∈ ran (2nd ↾ (𝐴 × 𝐵))))
1817ssrdv 3932 . . . . 5 (𝐴 ≠ ∅ → 𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵)))
19 frn 6604 . . . . . 6 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 → ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵)
208, 19ax-mp 5 . . . . 5 ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵
2118, 20jctil 520 . . . 4 (𝐴 ≠ ∅ → (ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵))))
22 eqss 3941 . . . 4 (ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵 ↔ (ran (2nd ↾ (𝐴 × 𝐵)) ⊆ 𝐵𝐵 ⊆ ran (2nd ↾ (𝐴 × 𝐵))))
2321, 22sylibr 233 . . 3 (𝐴 ≠ ∅ → ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵)
2423, 8jctil 520 . 2 (𝐴 ≠ ∅ → ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 ∧ ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵))
25 dffo2 6689 . 2 ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐵 ↔ ((2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)⟶𝐵 ∧ ran (2nd ↾ (𝐴 × 𝐵)) = 𝐵))
2624, 25sylibr 233 1 (𝐴 ≠ ∅ → (2nd ↾ (𝐴 × 𝐵)):(𝐴 × 𝐵)–onto𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396   = wceq 1542  wex 1786  wcel 2110  wne 2945  wss 3892  c0 4262  cop 4573   × cxp 5587  ran crn 5590  cres 5591   Fn wfn 6426  wf 6427  ontowfo 6429  cfv 6431  2nd c2nd 7821
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2015  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2711  ax-sep 5227  ax-nul 5234  ax-pr 5356  ax-un 7580
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2072  df-mo 2542  df-eu 2571  df-clab 2718  df-cleq 2732  df-clel 2818  df-nfc 2891  df-ne 2946  df-ral 3071  df-rex 3072  df-rab 3075  df-v 3433  df-sbc 3721  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-nul 4263  df-if 4466  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4846  df-iun 4932  df-br 5080  df-opab 5142  df-mpt 5163  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6389  df-fun 6433  df-fn 6434  df-f 6435  df-fo 6437  df-fv 6439  df-2nd 7823
This theorem is referenced by:  2ndconst  7930  txcmpb  22791
  Copyright terms: Public domain W3C validator