Metamath Proof Explorer


Theorem eqfunfv

Description: Equality of functions is determined by their values. (Contributed by Scott Fenton, 19-Jun-2011)

Ref Expression
Assertion eqfunfv ( ( Fun 𝐹 ∧ Fun 𝐺 ) → ( 𝐹 = 𝐺 ↔ ( dom 𝐹 = dom 𝐺 ∧ ∀ 𝑥 ∈ dom 𝐹 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ) )

Proof

Step Hyp Ref Expression
1 funfn ( Fun 𝐹𝐹 Fn dom 𝐹 )
2 funfn ( Fun 𝐺𝐺 Fn dom 𝐺 )
3 eqfnfv2 ( ( 𝐹 Fn dom 𝐹𝐺 Fn dom 𝐺 ) → ( 𝐹 = 𝐺 ↔ ( dom 𝐹 = dom 𝐺 ∧ ∀ 𝑥 ∈ dom 𝐹 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ) )
4 1 2 3 syl2anb ( ( Fun 𝐹 ∧ Fun 𝐺 ) → ( 𝐹 = 𝐺 ↔ ( dom 𝐹 = dom 𝐺 ∧ ∀ 𝑥 ∈ dom 𝐹 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ) )