Metamath Proof Explorer


Theorem elrnmptf

Description: The range of a function in maps-to notation. Same as elrnmpt , but using bound-variable hypotheses instead of distinct variable conditions. (Contributed by Glauco Siliprandi, 17-Aug-2020)

Ref Expression
Hypotheses elrnmptf.1 𝑥 𝐶
elrnmptf.2 𝐹 = ( 𝑥𝐴𝐵 )
Assertion elrnmptf ( 𝐶𝑉 → ( 𝐶 ∈ ran 𝐹 ↔ ∃ 𝑥𝐴 𝐶 = 𝐵 ) )

Proof

Step Hyp Ref Expression
1 elrnmptf.1 𝑥 𝐶
2 elrnmptf.2 𝐹 = ( 𝑥𝐴𝐵 )
3 1 nfeq2 𝑥 𝑦 = 𝐶
4 eqeq1 ( 𝑦 = 𝐶 → ( 𝑦 = 𝐵𝐶 = 𝐵 ) )
5 3 4 rexbid ( 𝑦 = 𝐶 → ( ∃ 𝑥𝐴 𝑦 = 𝐵 ↔ ∃ 𝑥𝐴 𝐶 = 𝐵 ) )
6 2 rnmpt ran 𝐹 = { 𝑦 ∣ ∃ 𝑥𝐴 𝑦 = 𝐵 }
7 5 6 elab2g ( 𝐶𝑉 → ( 𝐶 ∈ ran 𝐹 ↔ ∃ 𝑥𝐴 𝐶 = 𝐵 ) )