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 30984
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 5985 . . . 4 (2nd “ ∅) = ∅
2 xpeq2 5610 . . . . . 6 (𝐵 = ∅ → (𝐴 × 𝐵) = (𝐴 × ∅))
3 xp0 6061 . . . . . 6 (𝐴 × ∅) = ∅
42, 3eqtrdi 2794 . . . . 5 (𝐵 = ∅ → (𝐴 × 𝐵) = ∅)
54imaeq2d 5969 . . . 4 (𝐵 = ∅ → (2nd “ (𝐴 × 𝐵)) = (2nd “ ∅))
6 id 22 . . . 4 (𝐵 = ∅ → 𝐵 = ∅)
71, 5, 63eqtr4a 2804 . . 3 (𝐵 = ∅ → (2nd “ (𝐴 × 𝐵)) = 𝐵)
87adantl 482 . 2 ((𝐴 ≠ ∅ ∧ 𝐵 = ∅) → (2nd “ (𝐴 × 𝐵)) = 𝐵)
9 xpnz 6062 . . . . 5 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ↔ (𝐴 × 𝐵) ≠ ∅)
10 fo2nd 7852 . . . . . . 7 2nd :V–onto→V
11 fofn 6690 . . . . . . 7 (2nd :V–onto→V → 2nd Fn V)
1210, 11mp1i 13 . . . . . 6 ((𝐴 × 𝐵) ≠ ∅ → 2nd Fn V)
13 ssv 3945 . . . . . . 7 (𝐴 × 𝐵) ⊆ V
1413a1i 11 . . . . . 6 ((𝐴 × 𝐵) ≠ ∅ → (𝐴 × 𝐵) ⊆ V)
1512, 14fvelimabd 6842 . . . . 5 ((𝐴 × 𝐵) ≠ ∅ → (𝑦 ∈ (2nd “ (𝐴 × 𝐵)) ↔ ∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦))
169, 15sylbi 216 . . . 4 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) → (𝑦 ∈ (2nd “ (𝐴 × 𝐵)) ↔ ∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦))
17 simpr 485 . . . . . . 7 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑝 ∈ (𝐴 × 𝐵)) ∧ (2nd𝑝) = 𝑦) → (2nd𝑝) = 𝑦)
18 xp2nd 7864 . . . . . . . 8 (𝑝 ∈ (𝐴 × 𝐵) → (2nd𝑝) ∈ 𝐵)
1918ad2antlr 724 . . . . . . 7 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑝 ∈ (𝐴 × 𝐵)) ∧ (2nd𝑝) = 𝑦) → (2nd𝑝) ∈ 𝐵)
2017, 19eqeltrrd 2840 . . . . . 6 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑝 ∈ (𝐴 × 𝐵)) ∧ (2nd𝑝) = 𝑦) → 𝑦𝐵)
2120r19.29an 3217 . . . . 5 (((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ ∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦) → 𝑦𝐵)
22 n0 4280 . . . . . . . 8 (𝐴 ≠ ∅ ↔ ∃𝑥 𝑥𝐴)
2322biimpi 215 . . . . . . 7 (𝐴 ≠ ∅ → ∃𝑥 𝑥𝐴)
2423ad2antrr 723 . . . . . 6 (((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) → ∃𝑥 𝑥𝐴)
25 opelxpi 5626 . . . . . . . . 9 ((𝑥𝐴𝑦𝐵) → ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵))
2625ancoms 459 . . . . . . . 8 ((𝑦𝐵𝑥𝐴) → ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵))
2726adantll 711 . . . . . . 7 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) ∧ 𝑥𝐴) → ⟨𝑥, 𝑦⟩ ∈ (𝐴 × 𝐵))
28 fveqeq2 6783 . . . . . . . 8 (𝑝 = ⟨𝑥, 𝑦⟩ → ((2nd𝑝) = 𝑦 ↔ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦))
2928adantl 482 . . . . . . 7 (((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) ∧ 𝑥𝐴) ∧ 𝑝 = ⟨𝑥, 𝑦⟩) → ((2nd𝑝) = 𝑦 ↔ (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦))
30 vex 3436 . . . . . . . . 9 𝑥 ∈ V
31 vex 3436 . . . . . . . . 9 𝑦 ∈ V
3230, 31op2nd 7840 . . . . . . . 8 (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦
3332a1i 11 . . . . . . 7 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) ∧ 𝑥𝐴) → (2nd ‘⟨𝑥, 𝑦⟩) = 𝑦)
3427, 29, 33rspcedvd 3563 . . . . . 6 ((((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) ∧ 𝑥𝐴) → ∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦)
3524, 34exlimddv 1938 . . . . 5 (((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) ∧ 𝑦𝐵) → ∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦)
3621, 35impbida 798 . . . 4 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) → (∃𝑝 ∈ (𝐴 × 𝐵)(2nd𝑝) = 𝑦𝑦𝐵))
3716, 36bitrd 278 . . 3 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) → (𝑦 ∈ (2nd “ (𝐴 × 𝐵)) ↔ 𝑦𝐵))
3837eqrdv 2736 . 2 ((𝐴 ≠ ∅ ∧ 𝐵 ≠ ∅) → (2nd “ (𝐴 × 𝐵)) = 𝐵)
398, 38pm2.61dane 3032 1 (𝐴 ≠ ∅ → (2nd “ (𝐴 × 𝐵)) = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wex 1782  wcel 2106  wne 2943  wrex 3065  Vcvv 3432  wss 3887  c0 4256  cop 4567   × cxp 5587  cima 5592   Fn wfn 6428  ontowfo 6431  cfv 6433  2nd c2nd 7830
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 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  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 6391  df-fun 6435  df-fn 6436  df-f 6437  df-fo 6439  df-fv 6441  df-2nd 7832
This theorem is referenced by:  gsumpart  31315
  Copyright terms: Public domain W3C validator