Metamath Proof Explorer


Theorem hashf1dmcdm

Description: The size of the domain of a one-to-one set function is less than or equal to the size of its codomain, if it exists. (Contributed by BTernaryTau, 1-Oct-2023)

Ref Expression
Assertion hashf1dmcdm F V B W F : A 1-1 B A B

Proof

Step Hyp Ref Expression
1 hashf1dmrn F V F : A 1-1 B A = ran F
2 1 3adant2 F V B W F : A 1-1 B A = ran F
3 f1f F : A 1-1 B F : A B
4 frn F : A B ran F B
5 hashss B W ran F B ran F B
6 4 5 sylan2 B W F : A B ran F B
7 3 6 sylan2 B W F : A 1-1 B ran F B
8 7 3adant1 F V B W F : A 1-1 B ran F B
9 2 8 eqbrtrd F V B W F : A 1-1 B A B