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

Theorem xpima 6173
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 908 . . 3 ((𝐴 ∩ 𝐶) = ∅ ∨ ¬ (𝐴 ∩ 𝐶) = ∅)
2 df-ima 5663 . . . . . . . 8 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴 × 𝐵) ↾ 𝐶)
3 df-res 5662 . . . . . . . . 9 ((𝐴 × 𝐵) ↾ 𝐶) = ((𝐴 × 𝐵) ∩ (𝐶 × V))
43rneqi 5918 . . . . . . . 8 ran ((𝐴 × 𝐵) ↾ 𝐶) = ran ((𝐴 × 𝐵) ∩ (𝐶 × V))
52, 4eqtri 2783 . . . . . . 7 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴 × 𝐵) ∩ (𝐶 × V))
6 inxp 5808 . . . . . . . 8 ((𝐴 × 𝐵) ∩ (𝐶 × V)) = ((𝐴 ∩ 𝐶) × (𝐵 ∩ V))
76rneqi 5918 . . . . . . 7 ran ((𝐴 × 𝐵) ∩ (𝐶 × V)) = ran ((𝐴 ∩ 𝐶) × (𝐵 ∩ V))
8 inv1 4347 . . . . . . . . 9 (𝐵 ∩ V) = 𝐵
98xpeq2i 5677 . . . . . . . 8 ((𝐴 ∩ 𝐶) × (𝐵 ∩ V)) = ((𝐴 ∩ 𝐶) × 𝐵)
109rneqi 5918 . . . . . . 7 ran ((𝐴 ∩ 𝐶) × (𝐵 ∩ V)) = ran ((𝐴 ∩ 𝐶) × 𝐵)
115, 7, 103eqtri 2787 . . . . . 6 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴 ∩ 𝐶) × 𝐵)
12 xpeq1 5664 . . . . . . . . 9 ((𝐴 ∩ 𝐶) = ∅ → ((𝐴 ∩ 𝐶) × 𝐵) = (∅ × 𝐵))
13 0xp 5749 . . . . . . . . 9 (∅ × 𝐵) = ∅
1412, 13eqtrdi 2811 . . . . . . . 8 ((𝐴 ∩ 𝐶) = ∅ → ((𝐴 ∩ 𝐶) × 𝐵) = ∅)
1514rneqd 5919 . . . . . . 7 ((𝐴 ∩ 𝐶) = ∅ → ran ((𝐴 ∩ 𝐶) × 𝐵) = ran ∅)
16 rn0 5907 . . . . . . 7 ran ∅ = ∅
1715, 16eqtrdi 2811 . . . . . 6 ((𝐴 ∩ 𝐶) = ∅ → ran ((𝐴 ∩ 𝐶) × 𝐵) = ∅)
1811, 17eqtrid 2807 . . . . 5 ((𝐴 ∩ 𝐶) = ∅ → ((𝐴 × 𝐵) “ 𝐶) = ∅)
1918ancli 558 . . . 4 ((𝐴 ∩ 𝐶) = ∅ → ((𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅))
20 df-ne 2956 . . . . . . 7 ((𝐴 ∩ 𝐶) ≠ ∅ ↔ ¬ (𝐴 ∩ 𝐶) = ∅)
21 rnxp 6161 . . . . . . 7 ((𝐴 ∩ 𝐶) ≠ ∅ → ran ((𝐴 ∩ 𝐶) × 𝐵) = 𝐵)
2220, 21sylbir 238 . . . . . 6 (¬ (𝐴 ∩ 𝐶) = ∅ → ran ((𝐴 ∩ 𝐶) × 𝐵) = 𝐵)
2311, 22eqtrid 2807 . . . . 5 (¬ (𝐴 ∩ 𝐶) = ∅ → ((𝐴 × 𝐵) “ 𝐶) = 𝐵)
2423ancli 558 . . . 4 (¬ (𝐴 ∩ 𝐶) = ∅ → (¬ (𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵))
2519, 24orim12i 922 . . 3 (((𝐴 ∩ 𝐶) = ∅ ∨ ¬ (𝐴 ∩ 𝐶) = ∅) → (((𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵)))
261, 25ax-mp 5 . 2 (((𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵))
27 eqif 4523 . 2 (((𝐴 × 𝐵) “ 𝐶) = if((𝐴 ∩ 𝐶) = ∅, ∅, 𝐵) ↔ (((𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵)))
2826, 27mpbir 234 1 ((𝐴 × 𝐵) “ 𝐶) = if((𝐴 ∩ 𝐶) = ∅, ∅, 𝐵)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ∧ wa 401   ∨ wo 861   = wceq 1569   ≠ wne 2955  Vcvv 3450   ∩ cin 4089  ∅c0 4278  ifcif 4481   × cxp 5648  ran crn 5651   ↾ cres 5652   “ cima 5653
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732  ax-sep 5248  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4585  df-pr 4587  df-op 4835  df-br 5103  df-opab 5167  df-xp 5656  df-rel 5657  df-cnv 5658  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663
This theorem is used by:  xpima1  6174  xpima2  6175  imadifxp  33242  bj-xpimasn  37960  bj-imdirco  38204
  Copyright terms: Public domain W3C validator