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

Theorem xpima 6085
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 892 . . 3 ((𝐴𝐶) = ∅ ∨ ¬ (𝐴𝐶) = ∅)
2 df-ima 5602 . . . . . . . 8 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴 × 𝐵) ↾ 𝐶)
3 df-res 5601 . . . . . . . . 9 ((𝐴 × 𝐵) ↾ 𝐶) = ((𝐴 × 𝐵) ∩ (𝐶 × V))
43rneqi 5846 . . . . . . . 8 ran ((𝐴 × 𝐵) ↾ 𝐶) = ran ((𝐴 × 𝐵) ∩ (𝐶 × V))
52, 4eqtri 2766 . . . . . . 7 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴 × 𝐵) ∩ (𝐶 × V))
6 inxp 5741 . . . . . . . 8 ((𝐴 × 𝐵) ∩ (𝐶 × V)) = ((𝐴𝐶) × (𝐵 ∩ V))
76rneqi 5846 . . . . . . 7 ran ((𝐴 × 𝐵) ∩ (𝐶 × V)) = ran ((𝐴𝐶) × (𝐵 ∩ V))
8 inv1 4328 . . . . . . . . 9 (𝐵 ∩ V) = 𝐵
98xpeq2i 5616 . . . . . . . 8 ((𝐴𝐶) × (𝐵 ∩ V)) = ((𝐴𝐶) × 𝐵)
109rneqi 5846 . . . . . . 7 ran ((𝐴𝐶) × (𝐵 ∩ V)) = ran ((𝐴𝐶) × 𝐵)
115, 7, 103eqtri 2770 . . . . . 6 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴𝐶) × 𝐵)
12 xpeq1 5603 . . . . . . . . 9 ((𝐴𝐶) = ∅ → ((𝐴𝐶) × 𝐵) = (∅ × 𝐵))
13 0xp 5685 . . . . . . . . 9 (∅ × 𝐵) = ∅
1412, 13eqtrdi 2794 . . . . . . . 8 ((𝐴𝐶) = ∅ → ((𝐴𝐶) × 𝐵) = ∅)
1514rneqd 5847 . . . . . . 7 ((𝐴𝐶) = ∅ → ran ((𝐴𝐶) × 𝐵) = ran ∅)
16 rn0 5835 . . . . . . 7 ran ∅ = ∅
1715, 16eqtrdi 2794 . . . . . 6 ((𝐴𝐶) = ∅ → ran ((𝐴𝐶) × 𝐵) = ∅)
1811, 17eqtrid 2790 . . . . 5 ((𝐴𝐶) = ∅ → ((𝐴 × 𝐵) “ 𝐶) = ∅)
1918ancli 549 . . . 4 ((𝐴𝐶) = ∅ → ((𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅))
20 df-ne 2944 . . . . . . 7 ((𝐴𝐶) ≠ ∅ ↔ ¬ (𝐴𝐶) = ∅)
21 rnxp 6073 . . . . . . 7 ((𝐴𝐶) ≠ ∅ → ran ((𝐴𝐶) × 𝐵) = 𝐵)
2220, 21sylbir 234 . . . . . 6 (¬ (𝐴𝐶) = ∅ → ran ((𝐴𝐶) × 𝐵) = 𝐵)
2311, 22eqtrid 2790 . . . . 5 (¬ (𝐴𝐶) = ∅ → ((𝐴 × 𝐵) “ 𝐶) = 𝐵)
2423ancli 549 . . . 4 (¬ (𝐴𝐶) = ∅ → (¬ (𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵))
2519, 24orim12i 906 . . 3 (((𝐴𝐶) = ∅ ∨ ¬ (𝐴𝐶) = ∅) → (((𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵)))
261, 25ax-mp 5 . 2 (((𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵))
27 eqif 4500 . 2 (((𝐴 × 𝐵) “ 𝐶) = if((𝐴𝐶) = ∅, ∅, 𝐵) ↔ (((𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵)))
2826, 27mpbir 230 1 ((𝐴 × 𝐵) “ 𝐶) = if((𝐴𝐶) = ∅, ∅, 𝐵)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wa 396  wo 844   = wceq 1539  wne 2943  Vcvv 3432  cin 3886  c0 4256  ifcif 4459   × cxp 5587  ran crn 5590  cres 5591  cima 5592
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
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-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-br 5075  df-opab 5137  df-xp 5595  df-rel 5596  df-cnv 5597  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602
This theorem is referenced by:  xpima1  6086  xpima2  6087  imadifxp  30940  bj-xpimasn  35145  bj-imdirco  35361
  Copyright terms: Public domain W3C validator