Metamath Proof Explorer


Theorem fvreseq0

Description: Equality of restricted functions is determined by their values (for functions with different domains). (Contributed by AV, 6-Jan-2019)

Ref Expression
Assertion fvreseq0 ( ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐶 ) ∧ ( 𝐵𝐴𝐵𝐶 ) ) → ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ↔ ∀ 𝑥𝐵 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )

Proof

Step Hyp Ref Expression
1 fnssres ( ( 𝐹 Fn 𝐴𝐵𝐴 ) → ( 𝐹𝐵 ) Fn 𝐵 )
2 fnssres ( ( 𝐺 Fn 𝐶𝐵𝐶 ) → ( 𝐺𝐵 ) Fn 𝐵 )
3 eqfnfv ( ( ( 𝐹𝐵 ) Fn 𝐵 ∧ ( 𝐺𝐵 ) Fn 𝐵 ) → ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ↔ ∀ 𝑥𝐵 ( ( 𝐹𝐵 ) ‘ 𝑥 ) = ( ( 𝐺𝐵 ) ‘ 𝑥 ) ) )
4 fvres ( 𝑥𝐵 → ( ( 𝐹𝐵 ) ‘ 𝑥 ) = ( 𝐹𝑥 ) )
5 fvres ( 𝑥𝐵 → ( ( 𝐺𝐵 ) ‘ 𝑥 ) = ( 𝐺𝑥 ) )
6 4 5 eqeq12d ( 𝑥𝐵 → ( ( ( 𝐹𝐵 ) ‘ 𝑥 ) = ( ( 𝐺𝐵 ) ‘ 𝑥 ) ↔ ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )
7 6 ralbiia ( ∀ 𝑥𝐵 ( ( 𝐹𝐵 ) ‘ 𝑥 ) = ( ( 𝐺𝐵 ) ‘ 𝑥 ) ↔ ∀ 𝑥𝐵 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) )
8 3 7 bitrdi ( ( ( 𝐹𝐵 ) Fn 𝐵 ∧ ( 𝐺𝐵 ) Fn 𝐵 ) → ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ↔ ∀ 𝑥𝐵 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )
9 1 2 8 syl2an ( ( ( 𝐹 Fn 𝐴𝐵𝐴 ) ∧ ( 𝐺 Fn 𝐶𝐵𝐶 ) ) → ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ↔ ∀ 𝑥𝐵 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )
10 9 an4s ( ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐶 ) ∧ ( 𝐵𝐴𝐵𝐶 ) ) → ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ↔ ∀ 𝑥𝐵 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )