Metamath Proof Explorer


Theorem fvreseq1

Description: Equality of a function restricted to the domain of another function. (Contributed by AV, 6-Jan-2019)

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

Proof

Step Hyp Ref Expression
1 fnresdm ( 𝐺 Fn 𝐵 → ( 𝐺𝐵 ) = 𝐺 )
2 1 ad2antlr ( ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐵 ) ∧ 𝐵𝐴 ) → ( 𝐺𝐵 ) = 𝐺 )
3 2 eqcomd ( ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐵 ) ∧ 𝐵𝐴 ) → 𝐺 = ( 𝐺𝐵 ) )
4 3 eqeq2d ( ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐵 ) ∧ 𝐵𝐴 ) → ( ( 𝐹𝐵 ) = 𝐺 ↔ ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ) )
5 ssid 𝐵𝐵
6 fvreseq0 ( ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐵 ) ∧ ( 𝐵𝐴𝐵𝐵 ) ) → ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ↔ ∀ 𝑥𝐵 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )
7 5 6 mpanr2 ( ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐵 ) ∧ 𝐵𝐴 ) → ( ( 𝐹𝐵 ) = ( 𝐺𝐵 ) ↔ ∀ 𝑥𝐵 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )
8 4 7 bitrd ( ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐵 ) ∧ 𝐵𝐴 ) → ( ( 𝐹𝐵 ) = 𝐺 ↔ ∀ 𝑥𝐵 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )