Stupid question, but one occasionally reads such things as "the operation $\ast$ is noncommutative for all $x,y$ such that $x\neq y$" or "$x\ast y$ is commutative iff $x=y$". These statements bother me, because they imply that there is some operation $\cdot$ for which $x=y\not\implies x\cdot y=y\cdot x$ which in turn implies $x\cdot x\neq x\cdot x$.
Is this the result of poor writing, or is there some legitimate reason to call an operation between an element and itself "commutative".
The issue isn't talking about when they do commute but when they don't.
There are three options.
1) For every $x\ne y $, $f (x,y)=f (y,x) $. Thus we say $f$ always commute. (It's commutative)
2) For $x\ne y$ sometimes $f(x,y)\ne f (y,x) $. Thus it's not always commutative. (It's not commutative.)
3) for $x\ne y $ we always have $f (x,y)\ne f (y,x) $.
We'd like to say of 3) that 3) is never commutative.
But we can't say that. We can't say that because all functions have to commute when $x=y $.
So for 3) or only options are to state either it never commutes when $x\ne y $ or, equivalently, the only time $f $ commutes is if $x=y $.
It's not poor writing. Just the opposite. Proper writing requires that that case $x=y $ does commute. Even if all others dont.
Well if $x=y $ then $f (x,y)=f (y,x) $. That's a legitimate reason, isn't it.
Your seem to be saying it needn't be stated as it is always true. Well, fair enough but the texts are stating we need to always make an exception because we are not allowed to say a function never commutes. We must in those cases point out that $x=y $ is the only case the do.