Metamath Proof Explorer


Theorem elimampt

Description: Membership in the image of a mapping. (Contributed by Thierry Arnoux, 3-Jan-2022)

Ref Expression
Hypotheses elimampt.f 𝐹 = ( 𝑥𝐴𝐵 )
elimampt.c ( 𝜑𝐶𝑊 )
elimampt.d ( 𝜑𝐷𝐴 )
Assertion elimampt ( 𝜑 → ( 𝐶 ∈ ( 𝐹𝐷 ) ↔ ∃ 𝑥𝐷 𝐶 = 𝐵 ) )

Proof

Step Hyp Ref Expression
1 elimampt.f 𝐹 = ( 𝑥𝐴𝐵 )
2 elimampt.c ( 𝜑𝐶𝑊 )
3 elimampt.d ( 𝜑𝐷𝐴 )
4 df-ima ( 𝐹𝐷 ) = ran ( 𝐹𝐷 )
5 4 eleq2i ( 𝐶 ∈ ( 𝐹𝐷 ) ↔ 𝐶 ∈ ran ( 𝐹𝐷 ) )
6 1 reseq1i ( 𝐹𝐷 ) = ( ( 𝑥𝐴𝐵 ) ↾ 𝐷 )
7 resmpt ( 𝐷𝐴 → ( ( 𝑥𝐴𝐵 ) ↾ 𝐷 ) = ( 𝑥𝐷𝐵 ) )
8 6 7 syl5eq ( 𝐷𝐴 → ( 𝐹𝐷 ) = ( 𝑥𝐷𝐵 ) )
9 8 rneqd ( 𝐷𝐴 → ran ( 𝐹𝐷 ) = ran ( 𝑥𝐷𝐵 ) )
10 9 eleq2d ( 𝐷𝐴 → ( 𝐶 ∈ ran ( 𝐹𝐷 ) ↔ 𝐶 ∈ ran ( 𝑥𝐷𝐵 ) ) )
11 3 10 syl ( 𝜑 → ( 𝐶 ∈ ran ( 𝐹𝐷 ) ↔ 𝐶 ∈ ran ( 𝑥𝐷𝐵 ) ) )
12 eqid ( 𝑥𝐷𝐵 ) = ( 𝑥𝐷𝐵 )
13 12 elrnmpt ( 𝐶𝑊 → ( 𝐶 ∈ ran ( 𝑥𝐷𝐵 ) ↔ ∃ 𝑥𝐷 𝐶 = 𝐵 ) )
14 2 13 syl ( 𝜑 → ( 𝐶 ∈ ran ( 𝑥𝐷𝐵 ) ↔ ∃ 𝑥𝐷 𝐶 = 𝐵 ) )
15 11 14 bitrd ( 𝜑 → ( 𝐶 ∈ ran ( 𝐹𝐷 ) ↔ ∃ 𝑥𝐷 𝐶 = 𝐵 ) )
16 5 15 syl5bb ( 𝜑 → ( 𝐶 ∈ ( 𝐹𝐷 ) ↔ ∃ 𝑥𝐷 𝐶 = 𝐵 ) )