We came across counterexamples in many areas of mathematics: For example
- Sum of irrational numbers not necessary being irrational
- The "Windmill blade" function (for lack of a better name of one of the most important counterexample in multivariable calculus that continuity $\nRightarrow$differentiability)$$z(x,y)=\left\{\begin{matrix}\frac{xy(x^2-y^2)}{x^2+y^2},(x,y)\neq(0,0)\\0,(x,y)=(0,0)\end{matrix}\right.$$
- Linear algebra problems (e.g. Construct $2$ by $2$ matrices such that the eigenvalues of $AB$ are not the products of the eigenvalues of $A$ and $B$, and the eigenvalues of $A+B$ are not the sums of the individual eigenvalues.)
There are books wrote about counterexamples, such as this
Often, I am bad at finding counterexamples when it is the first time I came across some certain mathematical field of study, thus I tend to approach them as if I am proving something and then either find a contradiction, or encounter a step on the "attempted prove" that acts like a constraint.
For example, in answering the 3rd item, I found a subset of counterexamples that must obey the following:
$$A=\begin{pmatrix}0&b\\c&0\end{pmatrix}, B=\begin{pmatrix}0&f\\g&0\end{pmatrix}$$ $$bg+fc\neq\pm2\sqrt{bc}\sqrt{fg}\\ fg\neq \frac{g^2b}{c}\text{ or }bc\neq 0$$
Since I came across so many similar looking cases (at least in linear algebra and in some abstract algebra) it is tempting to have the following "hypothesis"
Claim: All counterexamples for a given mathematical problem obeys a set of constraint relations that is dependent to the problem.
But is that the full story?
Is there any counterexamples to the claim above?
Now for the subset of counterexamples that obey the claim above, then it should be natural the next step is to think about "optimizing" it, similar to generalising the idea of prove shortening
Is it sensible to think of trying to optimise a set of counterexample to a given problem by finding the worst possible counterexample (i.e. the one which is most nontrivial, least symmetric and breaks the most theorems (but not enough to cause it to fall outside the mathematical object in question) underlying the mathematical object that is covered by the problem?
Tldr:
What kind of fundamental property, possibly at the metamathematical level, that all counterexamples share, that makes counterexamples harder to find in a systematic way than constructing proofs?
To elaborate Qiaochu Yuan said in item 3:
Finding counterexamples is something of a dark art; I have seen literally no mathematical writing of any kind which explicitly discusses how one might go about doing it, even though it is quite an important mathematical skill. Here are some thoughts off the top of my head.
So it seems harder than proofs because there is no known systematic way to do it, other than intuition and trial and error
Understand why this is the case will help me to understand why it is difficult to devise a systematic way to find nontrivial counterexamples such as the windmill blade function