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

Theorem xpima 6074
Description: Direct image by a Cartesian product. (Contributed by Thierry Arnoux, 4-Feb-2017.)
Assertion
Ref Expression
xpima ((𝐴 × 𝐵) “ 𝐶) = if((𝐴𝐶) = ∅, ∅, 𝐵)

Proof of Theorem xpima
StepHypRef Expression
1 exmid 891 . . 3 ((𝐴𝐶) = ∅ ∨ ¬ (𝐴𝐶) = ∅)
2 df-ima 5593 . . . . . . . 8 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴 × 𝐵) ↾ 𝐶)
3 df-res 5592 . . . . . . . . 9 ((𝐴 × 𝐵) ↾ 𝐶) = ((𝐴 × 𝐵) ∩ (𝐶 × V))
43rneqi 5835 . . . . . . . 8 ran ((𝐴 × 𝐵) ↾ 𝐶) = ran ((𝐴 × 𝐵) ∩ (𝐶 × V))
52, 4eqtri 2766 . . . . . . 7 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴 × 𝐵) ∩ (𝐶 × V))
6 inxp 5730 . . . . . . . 8 ((𝐴 × 𝐵) ∩ (𝐶 × V)) = ((𝐴𝐶) × (𝐵 ∩ V))
76rneqi 5835 . . . . . . 7 ran ((𝐴 × 𝐵) ∩ (𝐶 × V)) = ran ((𝐴𝐶) × (𝐵 ∩ V))
8 inv1 4325 . . . . . . . . 9 (𝐵 ∩ V) = 𝐵
98xpeq2i 5607 . . . . . . . 8 ((𝐴𝐶) × (𝐵 ∩ V)) = ((𝐴𝐶) × 𝐵)
109rneqi 5835 . . . . . . 7 ran ((𝐴𝐶) × (𝐵 ∩ V)) = ran ((𝐴𝐶) × 𝐵)
115, 7, 103eqtri 2770 . . . . . 6 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴𝐶) × 𝐵)
12 xpeq1 5594 . . . . . . . . 9 ((𝐴𝐶) = ∅ → ((𝐴𝐶) × 𝐵) = (∅ × 𝐵))
13 0xp 5675 . . . . . . . . 9 (∅ × 𝐵) = ∅
1412, 13eqtrdi 2795 . . . . . . . 8 ((𝐴𝐶) = ∅ → ((𝐴𝐶) × 𝐵) = ∅)
1514rneqd 5836 . . . . . . 7 ((𝐴𝐶) = ∅ → ran ((𝐴𝐶) × 𝐵) = ran ∅)
16 rn0 5824 . . . . . . 7 ran ∅ = ∅
1715, 16eqtrdi 2795 . . . . . 6 ((𝐴𝐶) = ∅ → ran ((𝐴𝐶) × 𝐵) = ∅)
1811, 17eqtrid 2790 . . . . 5 ((𝐴𝐶) = ∅ → ((𝐴 × 𝐵) “ 𝐶) = ∅)
1918ancli 548 . . . 4 ((𝐴𝐶) = ∅ → ((𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅))
20 df-ne 2943 . . . . . . 7 ((𝐴𝐶) ≠ ∅ ↔ ¬ (𝐴𝐶) = ∅)
21 rnxp 6062 . . . . . . 7 ((𝐴𝐶) ≠ ∅ → ran ((𝐴𝐶) × 𝐵) = 𝐵)
2220, 21sylbir 234 . . . . . 6 (¬ (𝐴𝐶) = ∅ → ran ((𝐴𝐶) × 𝐵) = 𝐵)
2311, 22eqtrid 2790 . . . . 5 (¬ (𝐴𝐶) = ∅ → ((𝐴 × 𝐵) “ 𝐶) = 𝐵)
2423ancli 548 . . . 4 (¬ (𝐴𝐶) = ∅ → (¬ (𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵))
2519, 24orim12i 905 . . 3 (((𝐴𝐶) = ∅ ∨ ¬ (𝐴𝐶) = ∅) → (((𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵)))
261, 25ax-mp 5 . 2 (((𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵))
27 eqif 4497 . 2 (((𝐴 × 𝐵) “ 𝐶) = if((𝐴𝐶) = ∅, ∅, 𝐵) ↔ (((𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵)))
2826, 27mpbir 230 1 ((𝐴 × 𝐵) “ 𝐶) = if((𝐴𝐶) = ∅, ∅, 𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 395  wo 843   = wceq 1539  wne 2942  Vcvv 3422  cin 3882  c0 4253  ifcif 4456   × cxp 5578  ran crn 5581  cres 5582  cima 5583
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-br 5071  df-opab 5133  df-xp 5586  df-rel 5587  df-cnv 5588  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593
This theorem is referenced by:  xpima1  6075  xpima2  6076  imadifxp  30841  bj-xpimasn  35072  bj-imdirco  35288
  Copyright terms: Public domain W3C validator