Metamath Proof Explorer


Theorem dom2

Description: A mapping (first hypothesis) that is one-to-one (second hypothesis) implies its domain is dominated by its codomain. C and D can be read C ( x ) and D ( y ) , as can be inferred from their distinct variable conditions. (Contributed by NM, 26-Oct-2003)

Ref Expression
Hypotheses dom2.1 ( 𝑥𝐴𝐶𝐵 )
dom2.2 ( ( 𝑥𝐴𝑦𝐴 ) → ( 𝐶 = 𝐷𝑥 = 𝑦 ) )
Assertion dom2 ( 𝐵𝑉𝐴𝐵 )

Proof

Step Hyp Ref Expression
1 dom2.1 ( 𝑥𝐴𝐶𝐵 )
2 dom2.2 ( ( 𝑥𝐴𝑦𝐴 ) → ( 𝐶 = 𝐷𝑥 = 𝑦 ) )
3 eqid 𝐴 = 𝐴
4 1 a1i ( 𝐴 = 𝐴 → ( 𝑥𝐴𝐶𝐵 ) )
5 2 a1i ( 𝐴 = 𝐴 → ( ( 𝑥𝐴𝑦𝐴 ) → ( 𝐶 = 𝐷𝑥 = 𝑦 ) ) )
6 4 5 dom2d ( 𝐴 = 𝐴 → ( 𝐵𝑉𝐴𝐵 ) )
7 3 6 ax-mp ( 𝐵𝑉𝐴𝐵 )