Metamath Proof Explorer


Theorem cossxp

Description: Composition as a subset of the Cartesian product of factors. (Contributed by Mario Carneiro, 12-Jan-2017)

Ref Expression
Assertion cossxp ( 𝐴𝐵 ) ⊆ ( dom 𝐵 × ran 𝐴 )

Proof

Step Hyp Ref Expression
1 relco Rel ( 𝐴𝐵 )
2 relssdmrn ( Rel ( 𝐴𝐵 ) → ( 𝐴𝐵 ) ⊆ ( dom ( 𝐴𝐵 ) × ran ( 𝐴𝐵 ) ) )
3 1 2 ax-mp ( 𝐴𝐵 ) ⊆ ( dom ( 𝐴𝐵 ) × ran ( 𝐴𝐵 ) )
4 dmcoss dom ( 𝐴𝐵 ) ⊆ dom 𝐵
5 rncoss ran ( 𝐴𝐵 ) ⊆ ran 𝐴
6 xpss12 ( ( dom ( 𝐴𝐵 ) ⊆ dom 𝐵 ∧ ran ( 𝐴𝐵 ) ⊆ ran 𝐴 ) → ( dom ( 𝐴𝐵 ) × ran ( 𝐴𝐵 ) ) ⊆ ( dom 𝐵 × ran 𝐴 ) )
7 4 5 6 mp2an ( dom ( 𝐴𝐵 ) × ran ( 𝐴𝐵 ) ) ⊆ ( dom 𝐵 × ran 𝐴 )
8 3 7 sstri ( 𝐴𝐵 ) ⊆ ( dom 𝐵 × ran 𝐴 )