Metamath Proof Explorer


Theorem rnmptssrn

Description: Inclusion relation for two ranges expressed in maps-to notation. (Contributed by Glauco Siliprandi, 17-Aug-2020)

Ref Expression
Hypotheses rnmptssrn.b ( ( 𝜑𝑥𝐴 ) → 𝐵𝑉 )
rnmptssrn.y ( ( 𝜑𝑥𝐴 ) → ∃ 𝑦𝐶 𝐵 = 𝐷 )
Assertion rnmptssrn ( 𝜑 → ran ( 𝑥𝐴𝐵 ) ⊆ ran ( 𝑦𝐶𝐷 ) )

Proof

Step Hyp Ref Expression
1 rnmptssrn.b ( ( 𝜑𝑥𝐴 ) → 𝐵𝑉 )
2 rnmptssrn.y ( ( 𝜑𝑥𝐴 ) → ∃ 𝑦𝐶 𝐵 = 𝐷 )
3 eqid ( 𝑦𝐶𝐷 ) = ( 𝑦𝐶𝐷 )
4 3 2 1 elrnmptd ( ( 𝜑𝑥𝐴 ) → 𝐵 ∈ ran ( 𝑦𝐶𝐷 ) )
5 4 ralrimiva ( 𝜑 → ∀ 𝑥𝐴 𝐵 ∈ ran ( 𝑦𝐶𝐷 ) )
6 eqid ( 𝑥𝐴𝐵 ) = ( 𝑥𝐴𝐵 )
7 6 rnmptss ( ∀ 𝑥𝐴 𝐵 ∈ ran ( 𝑦𝐶𝐷 ) → ran ( 𝑥𝐴𝐵 ) ⊆ ran ( 𝑦𝐶𝐷 ) )
8 5 7 syl ( 𝜑 → ran ( 𝑥𝐴𝐵 ) ⊆ ran ( 𝑦𝐶𝐷 ) )