I am learning the lean/mathlib system for automatically checking proofs, and was genuinely surprised that to prove unique existence, the structure there forces us to separately prove these properties:
- uniqueness
- existence
Surely, uniqueness already implies existence?
Example
Consider the condition $x-2=3.$
First, I simply try $x=5$ without worrying about how I found this "witness". Since $x=5 \implies x-2=5-2=3,$ I have shown that the condition is satisfied by this solution. I can see that this shows the existence of a solution, but doesn't show there are no more.
Next, I apply a series of algebraic manipulations on the given condition, and I may arrive at a set of solutions. I arrive at a single solution: $x-2=3 \implies x-2+2=3+2 \implies x=5.$ If the condition were a quadratic, then the algebraic manipulations would lead me to two solutions.
Hence, I have shown that the condition leads to a unique solution (which automatically proves existence), and I didn't need to separately show existence and uniqueness.
- For this example, am I correct that proving existence is redundant?
- If so, then is this just for such simple cases?