Metamath Proof Explorer


Theorem eqfnfv3

Description: Derive equality of functions from equality of their values. (Contributed by Jeff Madsen, 2-Sep-2009)

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

Proof

Step Hyp Ref Expression
1 eqfnfv2 ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐵 ) → ( 𝐹 = 𝐺 ↔ ( 𝐴 = 𝐵 ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ) )
2 eqss ( 𝐴 = 𝐵 ↔ ( 𝐴𝐵𝐵𝐴 ) )
3 2 biancomi ( 𝐴 = 𝐵 ↔ ( 𝐵𝐴𝐴𝐵 ) )
4 3 anbi1i ( ( 𝐴 = 𝐵 ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ↔ ( ( 𝐵𝐴𝐴𝐵 ) ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )
5 anass ( ( ( 𝐵𝐴𝐴𝐵 ) ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ↔ ( 𝐵𝐴 ∧ ( 𝐴𝐵 ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ) )
6 dfss3 ( 𝐴𝐵 ↔ ∀ 𝑥𝐴 𝑥𝐵 )
7 6 anbi1i ( ( 𝐴𝐵 ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ↔ ( ∀ 𝑥𝐴 𝑥𝐵 ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )
8 r19.26 ( ∀ 𝑥𝐴 ( 𝑥𝐵 ∧ ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ↔ ( ∀ 𝑥𝐴 𝑥𝐵 ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )
9 7 8 bitr4i ( ( 𝐴𝐵 ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ↔ ∀ 𝑥𝐴 ( 𝑥𝐵 ∧ ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) )
10 9 anbi2i ( ( 𝐵𝐴 ∧ ( 𝐴𝐵 ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ) ↔ ( 𝐵𝐴 ∧ ∀ 𝑥𝐴 ( 𝑥𝐵 ∧ ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ) )
11 4 5 10 3bitri ( ( 𝐴 = 𝐵 ∧ ∀ 𝑥𝐴 ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ↔ ( 𝐵𝐴 ∧ ∀ 𝑥𝐴 ( 𝑥𝐵 ∧ ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ) )
12 1 11 bitrdi ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐵 ) → ( 𝐹 = 𝐺 ↔ ( 𝐵𝐴 ∧ ∀ 𝑥𝐴 ( 𝑥𝐵 ∧ ( 𝐹𝑥 ) = ( 𝐺𝑥 ) ) ) ) )