Metamath Proof Explorer


Theorem fndmdifcom

Description: The difference set between two functions is commutative. (Contributed by Stefan O'Rear, 17-Jan-2015)

Ref Expression
Assertion fndmdifcom ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐴 ) → dom ( 𝐹𝐺 ) = dom ( 𝐺𝐹 ) )

Proof

Step Hyp Ref Expression
1 necom ( ( 𝐹𝑥 ) ≠ ( 𝐺𝑥 ) ↔ ( 𝐺𝑥 ) ≠ ( 𝐹𝑥 ) )
2 1 rabbii { 𝑥𝐴 ∣ ( 𝐹𝑥 ) ≠ ( 𝐺𝑥 ) } = { 𝑥𝐴 ∣ ( 𝐺𝑥 ) ≠ ( 𝐹𝑥 ) }
3 fndmdif ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐴 ) → dom ( 𝐹𝐺 ) = { 𝑥𝐴 ∣ ( 𝐹𝑥 ) ≠ ( 𝐺𝑥 ) } )
4 fndmdif ( ( 𝐺 Fn 𝐴𝐹 Fn 𝐴 ) → dom ( 𝐺𝐹 ) = { 𝑥𝐴 ∣ ( 𝐺𝑥 ) ≠ ( 𝐹𝑥 ) } )
5 4 ancoms ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐴 ) → dom ( 𝐺𝐹 ) = { 𝑥𝐴 ∣ ( 𝐺𝑥 ) ≠ ( 𝐹𝑥 ) } )
6 2 3 5 3eqtr4a ( ( 𝐹 Fn 𝐴𝐺 Fn 𝐴 ) → dom ( 𝐹𝐺 ) = dom ( 𝐺𝐹 ) )