Metamath Proof Explorer


Theorem eqfnun

Description: Two functions on A u. B are equal if and only if they have equal restrictions to both A and B . (Contributed by Jeff Madsen, 19-Jun-2011)

Ref Expression
Assertion eqfnun ( ( 𝐹 Fn ( 𝐴𝐵 ) ∧ 𝐺 Fn ( 𝐴𝐵 ) ) → ( 𝐹 = 𝐺 ↔ ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ) ) )

Proof

Step Hyp Ref Expression
1 reseq1 ( 𝐹 = 𝐺 → ( 𝐹𝐴 ) = ( 𝐺𝐴 ) )
2 reseq1 ( 𝐹 = 𝐺 → ( 𝐹𝐵 ) = ( 𝐺𝐵 ) )
3 1 2 jca ( 𝐹 = 𝐺 → ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ) )
4 elun ( 𝑥 ∈ ( 𝐴𝐵 ) ↔ ( 𝑥𝐴𝑥𝐵 ) )
5 fveq1 ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) → ( ( 𝐹𝐴 ) ‘ 𝑥 ) = ( ( 𝐺𝐴 ) ‘ 𝑥 ) )
6 fvres ( 𝑥𝐴 → ( ( 𝐹𝐴 ) ‘ 𝑥 ) = ( 𝐹𝑥 ) )
7 5 6 sylan9req ( ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ 𝑥𝐴 ) → ( ( 𝐺𝐴 ) ‘ 𝑥 ) = ( 𝐹𝑥 ) )
8 fvres ( 𝑥𝐴 → ( ( 𝐺𝐴 ) ‘ 𝑥 ) = ( 𝐺𝑥 ) )
9 8 adantl ( ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ 𝑥𝐴 ) → ( ( 𝐺𝐴 ) ‘ 𝑥 ) = ( 𝐺𝑥 ) )
10 7 9 eqtr3d ( ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ 𝑥𝐴 ) → ( 𝐹𝑥 ) = ( 𝐺𝑥 ) )
11 10 adantlr ( ( ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ) ∧ 𝑥𝐴 ) → ( 𝐹𝑥 ) = ( 𝐺𝑥 ) )
12 fveq1 ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) → ( ( 𝐹𝐵 ) ‘ 𝑥 ) = ( ( 𝐺𝐵 ) ‘ 𝑥 ) )
13 fvres ( 𝑥𝐵 → ( ( 𝐹𝐵 ) ‘ 𝑥 ) = ( 𝐹𝑥 ) )
14 12 13 sylan9req ( ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ∧ 𝑥𝐵 ) → ( ( 𝐺𝐵 ) ‘ 𝑥 ) = ( 𝐹𝑥 ) )
15 fvres ( 𝑥𝐵 → ( ( 𝐺𝐵 ) ‘ 𝑥 ) = ( 𝐺𝑥 ) )
16 15 adantl ( ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ∧ 𝑥𝐵 ) → ( ( 𝐺𝐵 ) ‘ 𝑥 ) = ( 𝐺𝑥 ) )
17 14 16 eqtr3d ( ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ∧ 𝑥𝐵 ) → ( 𝐹𝑥 ) = ( 𝐺𝑥 ) )
18 17 adantll ( ( ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ) ∧ 𝑥𝐵 ) → ( 𝐹𝑥 ) = ( 𝐺𝑥 ) )
19 11 18 jaodan ( ( ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ) ∧ ( 𝑥𝐴𝑥𝐵 ) ) → ( 𝐹𝑥 ) = ( 𝐺𝑥 ) )
20 4 19 sylan2b ( ( ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ) ∧ 𝑥 ∈ ( 𝐴𝐵 ) ) → ( 𝐹𝑥 ) = ( 𝐺𝑥 ) )
21 20 ralrimiva ( ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ) → ∀ 𝑥 ∈ ( 𝐴𝐵 ) ( 𝐹𝑥 ) = ( 𝐺𝑥 ) )
22 eqfnfv ( ( 𝐹 Fn ( 𝐴𝐵 ) ∧ 𝐺 Fn ( 𝐴𝐵 ) ) → ( 𝐹 = 𝐺 ↔ ∀ 𝑥 ∈ ( 𝐴𝐵 ) ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )
23 21 22 syl5ibr ( ( 𝐹 Fn ( 𝐴𝐵 ) ∧ 𝐺 Fn ( 𝐴𝐵 ) ) → ( ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ) → 𝐹 = 𝐺 ) )
24 3 23 impbid2 ( ( 𝐹 Fn ( 𝐴𝐵 ) ∧ 𝐺 Fn ( 𝐴𝐵 ) ) → ( 𝐹 = 𝐺 ↔ ( ( 𝐹𝐴 ) = ( 𝐺𝐴 ) ∧ ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ) ) )