Metamath Proof Explorer


Theorem coeq0

Description: A composition of two relations is empty iff there is no overlap between the range of the second and the domain of the first. Useful in combination with coundi and coundir to prune meaningless terms in the result. (Contributed by Stefan O'Rear, 8-Oct-2014)

Ref Expression
Assertion coeq0 AB=domAranB=

Proof

Step Hyp Ref Expression
1 relco RelAB
2 relrn0 RelABAB=ranAB=
3 1 2 ax-mp AB=ranAB=
4 rnco ranAB=ranAranB
5 4 eqeq1i ranAB=ranAranB=
6 relres RelAranB
7 reldm0 RelAranBAranB=domAranB=
8 6 7 ax-mp AranB=domAranB=
9 relrn0 RelAranBAranB=ranAranB=
10 6 9 ax-mp AranB=ranAranB=
11 dmres domAranB=ranBdomA
12 incom ranBdomA=domAranB
13 11 12 eqtri domAranB=domAranB
14 13 eqeq1i domAranB=domAranB=
15 8 10 14 3bitr3i ranAranB=domAranB=
16 3 5 15 3bitri AB=domAranB=