Metamath Proof Explorer


Theorem rninxp

Description: Two ways to express surjectivity of a restricted and corestricted binary relation (intersection of a binary relation with a Cartesian product). (Contributed by NM, 17-Jan-2006) (Proof shortened by Andrew Salmon, 27-Aug-2011)

Ref Expression
Assertion rninxp ( ran ( 𝐶 ∩ ( 𝐴 × 𝐵 ) ) = 𝐵 ↔ ∀ 𝑦𝐵𝑥𝐴 𝑥 𝐶 𝑦 )

Proof

Step Hyp Ref Expression
1 dfss3 ( 𝐵 ⊆ ran ( 𝐶𝐴 ) ↔ ∀ 𝑦𝐵 𝑦 ∈ ran ( 𝐶𝐴 ) )
2 ssrnres ( 𝐵 ⊆ ran ( 𝐶𝐴 ) ↔ ran ( 𝐶 ∩ ( 𝐴 × 𝐵 ) ) = 𝐵 )
3 df-ima ( 𝐶𝐴 ) = ran ( 𝐶𝐴 )
4 3 eleq2i ( 𝑦 ∈ ( 𝐶𝐴 ) ↔ 𝑦 ∈ ran ( 𝐶𝐴 ) )
5 vex 𝑦 ∈ V
6 5 elima ( 𝑦 ∈ ( 𝐶𝐴 ) ↔ ∃ 𝑥𝐴 𝑥 𝐶 𝑦 )
7 4 6 bitr3i ( 𝑦 ∈ ran ( 𝐶𝐴 ) ↔ ∃ 𝑥𝐴 𝑥 𝐶 𝑦 )
8 7 ralbii ( ∀ 𝑦𝐵 𝑦 ∈ ran ( 𝐶𝐴 ) ↔ ∀ 𝑦𝐵𝑥𝐴 𝑥 𝐶 𝑦 )
9 1 2 8 3bitr3i ( ran ( 𝐶 ∩ ( 𝐴 × 𝐵 ) ) = 𝐵 ↔ ∀ 𝑦𝐵𝑥𝐴 𝑥 𝐶 𝑦 )