Metamath Proof Explorer


Theorem xrnres4

Description: Two ways to express restriction of range Cartesian product. (Contributed by Peter Mazsa, 29-Dec-2020)

Ref Expression
Assertion xrnres4 ( ( 𝑅𝑆 ) ↾ 𝐴 ) = ( ( 𝑅𝑆 ) ∩ ( 𝐴 × ( ran ( 𝑅𝐴 ) × ran ( 𝑆𝐴 ) ) ) )

Proof

Step Hyp Ref Expression
1 xrnres3 ( ( 𝑅𝑆 ) ↾ 𝐴 ) = ( ( 𝑅𝐴 ) ⋉ ( 𝑆𝐴 ) )
2 dfres4 ( 𝑅𝐴 ) = ( 𝑅 ∩ ( 𝐴 × ran ( 𝑅𝐴 ) ) )
3 dfres4 ( 𝑆𝐴 ) = ( 𝑆 ∩ ( 𝐴 × ran ( 𝑆𝐴 ) ) )
4 2 3 xrneq12i ( ( 𝑅𝐴 ) ⋉ ( 𝑆𝐴 ) ) = ( ( 𝑅 ∩ ( 𝐴 × ran ( 𝑅𝐴 ) ) ) ⋉ ( 𝑆 ∩ ( 𝐴 × ran ( 𝑆𝐴 ) ) ) )
5 inxpxrn ( ( 𝑅 ∩ ( 𝐴 × ran ( 𝑅𝐴 ) ) ) ⋉ ( 𝑆 ∩ ( 𝐴 × ran ( 𝑆𝐴 ) ) ) ) = ( ( 𝑅𝑆 ) ∩ ( 𝐴 × ( ran ( 𝑅𝐴 ) × ran ( 𝑆𝐴 ) ) ) )
6 1 4 5 3eqtri ( ( 𝑅𝑆 ) ↾ 𝐴 ) = ( ( 𝑅𝑆 ) ∩ ( 𝐴 × ( ran ( 𝑅𝐴 ) × ran ( 𝑆𝐴 ) ) ) )