Metamath Proof Explorer


Theorem xpima

Description: Direct image by a Cartesian product. (Contributed by Thierry Arnoux, 4-Feb-2017)

Ref Expression
Assertion xpima A × B C = if A C = B

Proof

Step Hyp Ref Expression
1 exmid A C = ¬ A C =
2 df-ima A × B C = ran A × B C
3 df-res A × B C = A × B C × V
4 3 rneqi ran A × B C = ran A × B C × V
5 2 4 eqtri A × B C = ran A × B C × V
6 inxp A × B C × V = A C × B V
7 6 rneqi ran A × B C × V = ran A C × B V
8 inv1 B V = B
9 8 xpeq2i A C × B V = A C × B
10 9 rneqi ran A C × B V = ran A C × B
11 5 7 10 3eqtri A × B C = ran A C × B
12 xpeq1 A C = A C × B = × B
13 0xp × B =
14 12 13 eqtrdi A C = A C × B =
15 14 rneqd A C = ran A C × B = ran
16 rn0 ran =
17 15 16 eqtrdi A C = ran A C × B =
18 11 17 eqtrid A C = A × B C =
19 18 ancli A C = A C = A × B C =
20 df-ne A C ¬ A C =
21 rnxp A C ran A C × B = B
22 20 21 sylbir ¬ A C = ran A C × B = B
23 11 22 eqtrid ¬ A C = A × B C = B
24 23 ancli ¬ A C = ¬ A C = A × B C = B
25 19 24 orim12i A C = ¬ A C = A C = A × B C = ¬ A C = A × B C = B
26 1 25 ax-mp A C = A × B C = ¬ A C = A × B C = B
27 eqif A × B C = if A C = B A C = A × B C = ¬ A C = A × B C = B
28 26 27 mpbir A × B C = if A C = B