Metamath Proof Explorer


Theorem funfv1st2nd

Description: The function value for the first component of an ordered pair is the second component of the ordered pair. (Contributed by AV, 17-Oct-2023)

Ref Expression
Assertion funfv1st2nd ( ( Fun 𝐹𝑋𝐹 ) → ( 𝐹 ‘ ( 1st𝑋 ) ) = ( 2nd𝑋 ) )

Proof

Step Hyp Ref Expression
1 funrel ( Fun 𝐹 → Rel 𝐹 )
2 1st2nd ( ( Rel 𝐹𝑋𝐹 ) → 𝑋 = ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ )
3 1 2 sylan ( ( Fun 𝐹𝑋𝐹 ) → 𝑋 = ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ )
4 eleq1 ( 𝑋 = ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ → ( 𝑋𝐹 ↔ ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ ∈ 𝐹 ) )
5 4 adantl ( ( Fun 𝐹𝑋 = ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ ) → ( 𝑋𝐹 ↔ ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ ∈ 𝐹 ) )
6 funopfv ( Fun 𝐹 → ( ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ ∈ 𝐹 → ( 𝐹 ‘ ( 1st𝑋 ) ) = ( 2nd𝑋 ) ) )
7 6 adantr ( ( Fun 𝐹𝑋 = ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ ) → ( ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ ∈ 𝐹 → ( 𝐹 ‘ ( 1st𝑋 ) ) = ( 2nd𝑋 ) ) )
8 5 7 sylbid ( ( Fun 𝐹𝑋 = ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ ) → ( 𝑋𝐹 → ( 𝐹 ‘ ( 1st𝑋 ) ) = ( 2nd𝑋 ) ) )
9 8 impancom ( ( Fun 𝐹𝑋𝐹 ) → ( 𝑋 = ⟨ ( 1st𝑋 ) , ( 2nd𝑋 ) ⟩ → ( 𝐹 ‘ ( 1st𝑋 ) ) = ( 2nd𝑋 ) ) )
10 3 9 mpd ( ( Fun 𝐹𝑋𝐹 ) → ( 𝐹 ‘ ( 1st𝑋 ) ) = ( 2nd𝑋 ) )