Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  2ndimaxp Structured version   Visualization version   GIF version

Theorem 2ndimaxp 30492
Description: Image of a cartesian product by 2nd. (Contributed by Thierry Arnoux, 23-Jun-2024.)
Assertion
Ref Expression
2ndimaxp (𝐴 ≠ ∅ → (2nd “ (𝐴 × 𝐵)) = 𝐵)

Proof of Theorem 2ndimaxp
Dummy variables 𝑝 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ima0 5910 . . . 4 (2nd “ ∅) = ∅
2 xpeq2 5538 . . . . . 6 (𝐵 = ∅ → (𝐴 × 𝐵) = (𝐴 × ∅))
3 xp0 5980 . . . . . 6 (𝐴 × ∅) = ∅
42, 3eqtrdi 2810 . . . . 5 (𝐵 = ∅ → (𝐴 × 𝐵) = ∅)
54imaeq2d 5894 . . . 4 (𝐵 = ∅ → (2nd “ (𝐴 × 𝐵)) = (2nd “ ∅))
6 id 22 . . . 4 (𝐵 = ∅ → 𝐵 = ∅)
71, 5, 63eqtr4a 2820 . . 3 (𝐵 = ∅ → (2nd “ (𝐴 × 𝐵)) = 𝐵)
87adantl 486 . 2 ((𝐴 ≠ ∅ ∧ 𝐵 = ∅) → (2nd “ (𝐴 × 𝐵)) = 𝐵)
9 xpnz 5981 . . . . 5 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ↔ (𝐴 × 𝐵) ≠ ∅)
10 fo2nd 7707 . . . . . . 7 2nd :V–onto→V
11 fofn 6571 . . . . . . 7 (2nd :V–onto→V → 2nd Fn V)
1210, 11mp1i 13 . . . . . 6 ((𝐴 × 𝐵) ≠ ∅ → 2nd Fn V)
13 ssv 3912 . . . . . . 7 (𝐴 × 𝐵) ⊆ V
1413a1i 11 . . . . . 6 ((𝐴 × 𝐵) ≠ ∅ → (𝐴 × 𝐵) ⊆ V)
1512, 14fvelimabd 6719 . . . . 5 ((𝐴 × 𝐵) ≠ ∅ → (𝑦 ∈ (2nd “ (𝐴 × 𝐵)) ↔ ∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦))
169, 15sylbi 220 . . . 4 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) → (𝑦 ∈ (2nd “ (𝐴 × 𝐵)) ↔ ∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦))
17 simpr 489 . . . . . . 7 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑝 ∈ (𝐴 × 𝐵)) ∧ (2nd𝑝) = 𝑦) → (2nd𝑝) = 𝑦)
18 xp2nd 7719 . . . . . . . 8 (𝑝 ∈ (𝐴 × 𝐵) → (2nd𝑝) ∈ 𝐵)
1918ad2antlr 727 . . . . . . 7 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑝 ∈ (𝐴 × 𝐵)) ∧ (2nd𝑝) = 𝑦) → (2nd𝑝) ∈ 𝐵)
2017, 19eqeltrrd 2852 . . . . . 6 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑝 ∈ (𝐴 × 𝐵)) ∧ (2nd𝑝) = 𝑦) → 𝑦𝐵)
2120r19.29an 3210 . . . . 5 (((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ ∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦) → 𝑦𝐵)
22 n0 4239 . . . . . . . 8 (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴)
2322biimpi 219 . . . . . . 7 (𝐴 ≠ ∅ → ∃𝑥 𝑥𝐴)
2423ad2antrr 726 . . . . . 6 (((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) → ∃𝑥 𝑥𝐴)
25 opelxpi 5554 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵))
2625ancoms 463 . . . . . . . 8 ((𝑦𝐵𝑥𝐴) → ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵))
2726adantll 714 . . . . . . 7 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) ∧ 𝑥𝐴) → ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵))
28 fveqeq2 6660 . . . . . . . 8 (𝑝 = ⟨𝑥, 𝑦⟩ → ((2nd𝑝) = 𝑦 ↔ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦))
2928adantl 486 . . . . . . 7 (((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) ∧ 𝑥𝐴) ∧ 𝑝 = ⟨𝑥, 𝑦⟩) → ((2nd𝑝) = 𝑦 ↔ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦))
30 vex 3411 . . . . . . . . 9 𝑥 ∈ V
31 vex 3411 . . . . . . . . 9 𝑦 ∈ V
3230, 31op2nd 7695 . . . . . . . 8 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
3332a1i 11 . . . . . . 7 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) ∧ 𝑥𝐴) → (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦)
3427, 29, 33rspcedvd 3542 . . . . . 6 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) ∧ 𝑥𝐴) → ∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦)
3524, 34exlimddv 1937 . . . . 5 (((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) → ∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦)
3621, 35impbida 801 . . . 4 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) → (∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦𝑦𝐵))
3716, 36bitrd 282 . . 3 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) → (𝑦 ∈ (2nd “ (𝐴 × 𝐵)) ↔ 𝑦𝐵))
3837eqrdv 2757 . 2 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) → (2nd “ (𝐴 × 𝐵)) = 𝐵)
398, 38pm2.61dane 3036 1 (𝐴 ≠ ∅ → (2nd “ (𝐴 × 𝐵)) = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 400   = wceq 1539  wex 1782  wcel 2112  wne 2949  wrex 3069  Vcvv 3407  wss 3854  c0 4221  cop 4521   × cxp 5515  cima 5520   Fn wfn 6323  ontowfo 6326  cfv 6328  2nd c2nd 7685
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1912  ax-6 1971  ax-7 2016  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2730  ax-sep 5162  ax-nul 5169  ax-pr 5291  ax-un 7452
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 846  df-3an 1087  df-tru 1542  df-ex 1783  df-nf 1787  df-sb 2071  df-mo 2558  df-eu 2589  df-clab 2737  df-cleq 2751  df-clel 2831  df-nfc 2899  df-ne 2950  df-ral 3073  df-rex 3074  df-rab 3077  df-v 3409  df-sbc 3694  df-dif 3857  df-un 3859  df-in 3861  df-ss 3871  df-nul 4222  df-if 4414  df-sn 4516  df-pr 4518  df-op 4522  df-uni 4792  df-br 5026  df-opab 5088  df-mpt 5106  df-id 5423  df-xp 5523  df-rel 5524  df-cnv 5525  df-co 5526  df-dm 5527  df-rn 5528  df-res 5529  df-ima 5530  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-fo 6334  df-fv 6336  df-2nd 7687
This theorem is referenced by:  gsumpart  30826
  Copyright terms: Public domain W3C validator