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 5664 . . . . . . . 8 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴 × 𝐵) ↾ 𝐶)
3 df-res 5663 . . . . . . . . 9 ((𝐴 × 𝐵) ↾ 𝐶) = ((𝐴 × 𝐵) ∩ (𝐶 × V))
43rneqi 5919 . . . . . . . 8 ran ((𝐴 × 𝐵) ↾ 𝐶) = ran ((𝐴 × 𝐵) ∩ (𝐶 × V))
52, 4eqtri 2784 . . . . . . 7 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴 × 𝐵) ∩ (𝐶 × V))
6 inxp 5809 . . . . . . . 8 ((𝐴 × 𝐵) ∩ (𝐶 × V)) = ((𝐴 ∩ 𝐶) × (𝐵 ∩ V))
76rneqi 5919 . . . . . . 7 ran ((𝐴 × 𝐵) ∩ (𝐶 × V)) = ran ((𝐴 ∩ 𝐶) × (𝐵 ∩ V))
8 inv1 4348 . . . . . . . . 9 (𝐵 ∩ V) = 𝐵
98xpeq2i 5678 . . . . . . . 8 ((𝐴 ∩ 𝐶) × (𝐵 ∩ V)) = ((𝐴 ∩ 𝐶) × 𝐵)
109rneqi 5919 . . . . . . 7 ran ((𝐴 ∩ 𝐶) × (𝐵 ∩ V)) = ran ((𝐴 ∩ 𝐶) × 𝐵)
115, 7, 103eqtri 2788 . . . . . 6 ((𝐴 × 𝐵) “ 𝐶) = ran ((𝐴 ∩ 𝐶) × 𝐵)
12 xpeq1 5665 . . . . . . . . 9 ((𝐴 ∩ 𝐶) = ∅ → ((𝐴 ∩ 𝐶) × 𝐵) = (∅ × 𝐵))
13 0xp 5750 . . . . . . . . 9 (∅ × 𝐵) = ∅
1412, 13eqtrdi 2812 . . . . . . . 8 ((𝐴 ∩ 𝐶) = ∅ → ((𝐴 ∩ 𝐶) × 𝐵) = ∅)
1514rneqd 5920 . . . . . . 7 ((𝐴 ∩ 𝐶) = ∅ → ran ((𝐴 ∩ 𝐶) × 𝐵) = ran ∅)
16 rn0 5908 . . . . . . 7 ran ∅ = ∅
1715, 16eqtrdi 2812 . . . . . 6 ((𝐴 ∩ 𝐶) = ∅ → ran ((𝐴 ∩ 𝐶) × 𝐵) = ∅)
1811, 17eqtrid 2808 . . . . 5 ((𝐴 ∩ 𝐶) = ∅ → ((𝐴 × 𝐵) “ 𝐶) = ∅)
1918ancli 558 . . . 4 ((𝐴 ∩ 𝐶) = ∅ → ((𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅))
20 df-ne 2957 . . . . . . 7 ((𝐴 ∩ 𝐶) ≠ ∅ ↔ ¬ (𝐴 ∩ 𝐶) = ∅)
21 rnxp 6161 . . . . . . 7 ((𝐴 ∩ 𝐶) ≠ ∅ → ran ((𝐴 ∩ 𝐶) × 𝐵) = 𝐵)
2220, 21sylbir 238 . . . . . 6 (¬ (𝐴 ∩ 𝐶) = ∅ → ran ((𝐴 ∩ 𝐶) × 𝐵) = 𝐵)
2311, 22eqtrid 2808 . . . . 5 (¬ (𝐴 ∩ 𝐶) = ∅ → ((𝐴 × 𝐵) “ 𝐶) = 𝐵)
2423ancli 558 . . . 4 (¬ (𝐴 ∩ 𝐶) = ∅ → (¬ (𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵))
2519, 24orim12i 922 . . 3 (((𝐴 ∩ 𝐶) = ∅ ∨ ¬ (𝐴 ∩ 𝐶) = ∅) → (((𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵)))
261, 25ax-mp 5 . 2 (((𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = ∅) ∨ (¬ (𝐴 ∩ 𝐶) = ∅ ∧ ((𝐴 × 𝐵) “ 𝐶) = 𝐵))
27 eqif 4524 . 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 1570   ≠ wne 2956  Vcvv 3451   ∩ cin 3898  ∅c0 4279  ifcif 4482   × cxp 5649  ran crn 5652   ↾ cres 5653   “ cima 5654
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-ext 2733  ax-sep 5249  ax-pr 5391
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-sb 2100  df-clab 2740  df-cleq 2753  df-clel 2836  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-br 5104  df-opab 5168  df-xp 5657  df-rel 5658  df-cnv 5659  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664
This theorem is used by:  xpima1  6174  xpima2  6175  imadifxp  33177  bj-xpimasn  37838  bj-imdirco  38079
  Copyright terms: Public domain W3C validator