Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  imadifxp Structured version   Visualization version   GIF version

Theorem imadifxp 30841
Description: Image of the difference with a Cartesian product. (Contributed by Thierry Arnoux, 13-Dec-2017.)
Assertion
Ref Expression
imadifxp (𝐶𝐴 → ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = ((𝑅𝐶) ∖ 𝐵))

Proof of Theorem imadifxp
StepHypRef Expression
1 ima0 5974 . . . 4 ((𝑅 ∖ (𝐴 × 𝐵)) “ ∅) = ∅
2 imaeq2 5954 . . . 4 (𝐶 = ∅ → ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = ((𝑅 ∖ (𝐴 × 𝐵)) “ ∅))
3 imaeq2 5954 . . . . . . 7 (𝐶 = ∅ → (𝑅𝐶) = (𝑅 “ ∅))
4 ima0 5974 . . . . . . 7 (𝑅 “ ∅) = ∅
53, 4eqtrdi 2795 . . . . . 6 (𝐶 = ∅ → (𝑅𝐶) = ∅)
65difeq1d 4052 . . . . 5 (𝐶 = ∅ → ((𝑅𝐶) ∖ 𝐵) = (∅ ∖ 𝐵))
7 0dif 4332 . . . . 5 (∅ ∖ 𝐵) = ∅
86, 7eqtrdi 2795 . . . 4 (𝐶 = ∅ → ((𝑅𝐶) ∖ 𝐵) = ∅)
91, 2, 83eqtr4a 2805 . . 3 (𝐶 = ∅ → ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = ((𝑅𝐶) ∖ 𝐵))
109adantl 481 . 2 ((𝐶𝐴𝐶 = ∅) → ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = ((𝑅𝐶) ∖ 𝐵))
11 uncom 4083 . . . . 5 (∅ ∪ ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶)) = (((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∪ ∅)
12 un0 4321 . . . . 5 (((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∪ ∅) = ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶)
1311, 12eqtr2i 2767 . . . 4 ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = (∅ ∪ ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶))
14 inundif 4409 . . . . . . . . 9 ((𝑅 ∩ (𝐴 × 𝐵)) ∪ (𝑅 ∖ (𝐴 × 𝐵))) = 𝑅
1514imaeq1i 5955 . . . . . . . 8 (((𝑅 ∩ (𝐴 × 𝐵)) ∪ (𝑅 ∖ (𝐴 × 𝐵))) “ 𝐶) = (𝑅𝐶)
16 imaundir 6043 . . . . . . . 8 (((𝑅 ∩ (𝐴 × 𝐵)) ∪ (𝑅 ∖ (𝐴 × 𝐵))) “ 𝐶) = (((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∪ ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶))
1715, 16eqtr3i 2768 . . . . . . 7 (𝑅𝐶) = (((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∪ ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶))
1817difeq1i 4049 . . . . . 6 ((𝑅𝐶) ∖ 𝐵) = ((((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∪ ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶)) ∖ 𝐵)
19 difundir 4211 . . . . . 6 ((((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∪ ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶)) ∖ 𝐵) = ((((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵) ∪ (((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵))
2018, 19eqtri 2766 . . . . 5 ((𝑅𝐶) ∖ 𝐵) = ((((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵) ∪ (((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵))
21 inss2 4160 . . . . . . . . 9 (𝑅 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵)
22 imass1 5998 . . . . . . . . 9 ((𝑅 ∩ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐵) → ((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ⊆ ((𝐴 × 𝐵) “ 𝐶))
23 ssdif 4070 . . . . . . . . 9 (((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ⊆ ((𝐴 × 𝐵) “ 𝐶) → (((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵) ⊆ (((𝐴 × 𝐵) “ 𝐶) ∖ 𝐵))
2421, 22, 23mp2b 10 . . . . . . . 8 (((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵) ⊆ (((𝐴 × 𝐵) “ 𝐶) ∖ 𝐵)
25 xpima 6074 . . . . . . . . . . 11 ((𝐴 × 𝐵) “ 𝐶) = if((𝐴𝐶) = ∅, ∅, 𝐵)
26 incom 4131 . . . . . . . . . . . . . . 15 (𝐶𝐴) = (𝐴𝐶)
27 df-ss 3900 . . . . . . . . . . . . . . . 16 (𝐶𝐴 ↔ (𝐶𝐴) = 𝐶)
2827biimpi 215 . . . . . . . . . . . . . . 15 (𝐶𝐴 → (𝐶𝐴) = 𝐶)
2926, 28eqtr3id 2793 . . . . . . . . . . . . . 14 (𝐶𝐴 → (𝐴𝐶) = 𝐶)
3029adantl 481 . . . . . . . . . . . . 13 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → (𝐴𝐶) = 𝐶)
31 simpl 482 . . . . . . . . . . . . 13 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → 𝐶 ≠ ∅)
3230, 31eqnetrd 3010 . . . . . . . . . . . 12 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → (𝐴𝐶) ≠ ∅)
33 neneq 2948 . . . . . . . . . . . 12 ((𝐴𝐶) ≠ ∅ → ¬ (𝐴𝐶) = ∅)
34 iffalse 4465 . . . . . . . . . . . 12 (¬ (𝐴𝐶) = ∅ → if((𝐴𝐶) = ∅, ∅, 𝐵) = 𝐵)
3532, 33, 343syl 18 . . . . . . . . . . 11 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → if((𝐴𝐶) = ∅, ∅, 𝐵) = 𝐵)
3625, 35syl5eq 2791 . . . . . . . . . 10 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → ((𝐴 × 𝐵) “ 𝐶) = 𝐵)
3736difeq1d 4052 . . . . . . . . 9 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → (((𝐴 × 𝐵) “ 𝐶) ∖ 𝐵) = (𝐵𝐵))
38 difid 4301 . . . . . . . . 9 (𝐵𝐵) = ∅
3937, 38eqtrdi 2795 . . . . . . . 8 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → (((𝐴 × 𝐵) “ 𝐶) ∖ 𝐵) = ∅)
4024, 39sseqtrid 3969 . . . . . . 7 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → (((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵) ⊆ ∅)
41 ss0 4329 . . . . . . 7 ((((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵) ⊆ ∅ → (((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵) = ∅)
4240, 41syl 17 . . . . . 6 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → (((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵) = ∅)
43 df-ima 5593 . . . . . . . . . . 11 ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = ran ((𝑅 ∖ (𝐴 × 𝐵)) ↾ 𝐶)
44 df-res 5592 . . . . . . . . . . . 12 ((𝑅 ∖ (𝐴 × 𝐵)) ↾ 𝐶) = ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V))
4544rneqi 5835 . . . . . . . . . . 11 ran ((𝑅 ∖ (𝐴 × 𝐵)) ↾ 𝐶) = ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V))
4643, 45eqtri 2766 . . . . . . . . . 10 ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V))
4746ineq1i 4139 . . . . . . . . 9 (((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∩ 𝐵) = (ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V)) ∩ 𝐵)
48 xpss1 5599 . . . . . . . . . . 11 (𝐶𝐴 → (𝐶 × V) ⊆ (𝐴 × V))
49 sslin 4165 . . . . . . . . . . 11 ((𝐶 × V) ⊆ (𝐴 × V) → ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V)) ⊆ ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)))
50 rnss 5837 . . . . . . . . . . 11 (((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V)) ⊆ ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) → ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V)) ⊆ ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)))
5148, 49, 503syl 18 . . . . . . . . . 10 (𝐶𝐴 → ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V)) ⊆ ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)))
52 ssn0 4331 . . . . . . . . . . . 12 ((𝐶𝐴𝐶 ≠ ∅) → 𝐴 ≠ ∅)
5352ancoms 458 . . . . . . . . . . 11 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → 𝐴 ≠ ∅)
54 inss1 4159 . . . . . . . . . . . . . . . 16 ((𝐴 × V) ∩ 𝑅) ⊆ (𝐴 × V)
55 ssdif 4070 . . . . . . . . . . . . . . . 16 (((𝐴 × V) ∩ 𝑅) ⊆ (𝐴 × V) → (((𝐴 × V) ∩ 𝑅) ∖ (𝐴 × 𝐵)) ⊆ ((𝐴 × V) ∖ (𝐴 × 𝐵)))
5654, 55ax-mp 5 . . . . . . . . . . . . . . 15 (((𝐴 × V) ∩ 𝑅) ∖ (𝐴 × 𝐵)) ⊆ ((𝐴 × V) ∖ (𝐴 × 𝐵))
57 incom 4131 . . . . . . . . . . . . . . . 16 ((𝐴 × V) ∩ (𝑅 ∖ (𝐴 × 𝐵))) = ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V))
58 indif2 4201 . . . . . . . . . . . . . . . 16 ((𝐴 × V) ∩ (𝑅 ∖ (𝐴 × 𝐵))) = (((𝐴 × V) ∩ 𝑅) ∖ (𝐴 × 𝐵))
5957, 58eqtr3i 2768 . . . . . . . . . . . . . . 15 ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) = (((𝐴 × V) ∩ 𝑅) ∖ (𝐴 × 𝐵))
60 difxp2 6058 . . . . . . . . . . . . . . 15 (𝐴 × (V ∖ 𝐵)) = ((𝐴 × V) ∖ (𝐴 × 𝐵))
6156, 59, 603sstr4i 3960 . . . . . . . . . . . . . 14 ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ⊆ (𝐴 × (V ∖ 𝐵))
62 rnss 5837 . . . . . . . . . . . . . 14 (((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ⊆ (𝐴 × (V ∖ 𝐵)) → ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ⊆ ran (𝐴 × (V ∖ 𝐵)))
6361, 62mp1i 13 . . . . . . . . . . . . 13 (𝐴 ≠ ∅ → ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ⊆ ran (𝐴 × (V ∖ 𝐵)))
64 rnxp 6062 . . . . . . . . . . . . 13 (𝐴 ≠ ∅ → ran (𝐴 × (V ∖ 𝐵)) = (V ∖ 𝐵))
6563, 64sseqtrd 3957 . . . . . . . . . . . 12 (𝐴 ≠ ∅ → ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ⊆ (V ∖ 𝐵))
66 disj2 4388 . . . . . . . . . . . 12 ((ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ∩ 𝐵) = ∅ ↔ ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ⊆ (V ∖ 𝐵))
6765, 66sylibr 233 . . . . . . . . . . 11 (𝐴 ≠ ∅ → (ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ∩ 𝐵) = ∅)
6853, 67syl 17 . . . . . . . . . 10 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → (ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ∩ 𝐵) = ∅)
69 ssdisj 4390 . . . . . . . . . 10 ((ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V)) ⊆ ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ∧ (ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐴 × V)) ∩ 𝐵) = ∅) → (ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V)) ∩ 𝐵) = ∅)
7051, 68, 69syl2an2 682 . . . . . . . . 9 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → (ran ((𝑅 ∖ (𝐴 × 𝐵)) ∩ (𝐶 × V)) ∩ 𝐵) = ∅)
7147, 70syl5eq 2791 . . . . . . . 8 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → (((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∩ 𝐵) = ∅)
72 disj3 4384 . . . . . . . 8 ((((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∩ 𝐵) = ∅ ↔ ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = (((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵))
7371, 72sylib 217 . . . . . . 7 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = (((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵))
7473eqcomd 2744 . . . . . 6 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → (((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵) = ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶))
7542, 74uneq12d 4094 . . . . 5 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → ((((𝑅 ∩ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵) ∪ (((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) ∖ 𝐵)) = (∅ ∪ ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶)))
7620, 75syl5eq 2791 . . . 4 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → ((𝑅𝐶) ∖ 𝐵) = (∅ ∪ ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶)))
7713, 76eqtr4id 2798 . . 3 ((𝐶 ≠ ∅ ∧ 𝐶𝐴) → ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = ((𝑅𝐶) ∖ 𝐵))
7877ancoms 458 . 2 ((𝐶𝐴𝐶 ≠ ∅) → ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = ((𝑅𝐶) ∖ 𝐵))
7910, 78pm2.61dane 3031 1 (𝐶𝐴 → ((𝑅 ∖ (𝐴 × 𝐵)) “ 𝐶) = ((𝑅𝐶) ∖ 𝐵))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395   = wceq 1539  wne 2942  Vcvv 3422  cdif 3880  cun 3881  cin 3882  wss 3883  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-rex 3069  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: (None)
  Copyright terms: Public domain W3C validator