r/math • u/vintergroena • 3d ago
Could we rigorously define, study and optimize some notion of proof "elegance" or "simplicity"?
In recent months, there have been an influx of proofs that seem to be technically correct, but are lengthy and difficult to comprehend due to you-know-what techniques.
The formal verification systems mostly utilize some notion of proof-irrelevance. A proposition is either proven or it's not and that's it, there's nothing more to look at.
But this is contrary to intuition and taste of mathematicians, who mostly have clear preference and even a somewhat of a consensus for what makes a proof elegant, valuable, or insightful besides it being just a mechanistically correct argument.
But to my knowledge, these notions themselves haven't been made formal, although it seems like they could be: A simple approach could be to measure the size of a derivation graph in a formal logic system that goes from the axioms to the theorem and try to minimize its size. This is not a very polished definition, perhaps a much better one could be proposed, but take it as some sort of baseline, or just one optimization criterion among many.
Then we could ask for not only "a proof" but for "the proof" and have a way to motivate alternative proof techniques to established theorems as truly novel contributions within a rigorous framework (in the sense that showing a proof is better according to a criterion than another proof or showing that it's the best one would be theorems on its own)
Maybe this hasn't really been practically possible until recently and that's why it hasn't been done, but I think some of these limitations are disappearing.
What are your thoughts?
89
u/813108 3d ago •
I'm just going to point out that this is Hilbert's 24th problem.
27
u/BuyDipsShortVIX 3d ago •
It's really a non-answer but the reason why notions of elegance are so attractive to practitioners is because of how hard they are to define and even then, we can still spot it when we see it, we sure as shit know when a solution is inelegant. There is an entire cognitive architecture going on in our brains that handles for this stuff.
I'm unsure if you're a programmer, but crude comparisons could be drawn between code quality/formatting. The notion of elegant code is a worthwhile ambition to me, but other languages will define it differently, and others will force it upon you.
This is IMO why programmers have chosen to derive metrics under the overall idea of elegant code, cyclomatic complexity etc.
Anyway, I feel like I've over explained with this answer, whilst simultaneously not given it the length it deserves. Use this to illustrate an underlying point, perhaps?
8
u/rhombecka 3d ago
Maybe it would be easier to look for things that nudge a proof in the direction of more elegant.
Let’s say we are trying to prove that n^3 - n is divisible by 3 for integer n. You could take it by cases mod 3, searching for 3 tomes something and that would work. But you could also observe that n^3 - n = (n-1)n(n+1), which is the product of 3 consecutive numbers, so one of them must be divisible by three.
Most people are more satisfied with the latter proof because it’s short and sweet, but I’d argue that it would be more elegant even if it was longer somehow. The former proof by cases makes it almost seem like the quantity just happens to be “threeven” while the latter proof gets at the heart of what makes a number divisible by another number.
So I think elegance appeals to whatever motivated people to care about the theorem in the first place and why the standard definitions in a field were chosen to mean what they do.
6
u/38thTimesACharm 3d ago
I don't think so, because of fundamental limits on the nature of information and compression. There's a consensus among mathematicians on the aesthetic qualities of proofs because we are all humans who are all processing these proofs with more or less similar hardware. I suspect there isn't anything simpler that can make all the same judgements in all the same circumstances.
So, a formal verifier for how elegant a proof is would essentially be a complete simulation of a human brain, and an elegant proof generator would be functionally conscious.
14
u/vajraadhvan Arithmetic Geometry 3d ago
No more than you could formalise aesthetics
5
u/RatioBound 3d ago
I doubt it. Whenever I co-author with someone that has a different training, for anything more involved, our opinions of what is more elegant differs. It is often best to stick to one of the co-authors style.
7
u/Kaomet 3d ago
Proof irrelevance is an abstraction. The underlying proof terms contains all kind of subtlety.
By Curry Howard correspondance, they are algorithms, so first we would need to define some equivalence class over algorithms finer than "has the same type" (=proove the same theorem).
Algorithmic complexity comes to mind, but here it's the wrong target to optimize : we care more about a proof being short than the underlying computation being efficient.
Then, some proof are basically certificate : some formula fall from the sky, get verified, and used in the proof. While sometimes there is a theory which let you compute the right formula. Eg, an integral can be checked by deriving, but maybe there is a technique that works in many cases.
In proof theory, a "lemma falling from the sky" is a cut introduction. And the "shortest proof" would typically use this as a technique.
1
u/ninjeff 9h ago
Google Goodhart’s law
3
u/akd_io 3d ago
Not a mathematician, but if I recall correctly, the episodes 17, 20, and 21 of the Type Theory Forall podcast touch on elegance exactly. I believe Conal Elliott uses a definition along the lines of explaining something simply/ealisy/concisely using abstractions we have already learned for some other reason.
I've been interested in bottom up Program Synthesis and Library Learning since reading the DreamCoder paper, and believe this could be a good avenue to generate concise, elegant proofs if we can constrain the search space enough. Which might be a big if, I'm not sure.
Very interested in this these days, so feel free to dm or I can try to elaborate here too.
3
u/boterkoeken Logic 3d ago
Not exactly the same but it’s interesting to note that there are formal definitions of more than just valid, correct proof. For example this work on what makes an explanatory proof. It could inspire some ideas in the direction that you are thinking about.
https://academic.oup.com/philmat/article-abstract/32/2/145/7459861
3
u/Specific-Use-1344 2d ago
I think Paul Erdos would have something to say about this
8
u/McPhage 3d ago
There’s a physicist (whose name I don’t remember off the top of my head) who says that the focus on elegance and beauty in physics is leading people astray—there’s no reason to assume that the truth is something we consider beautiful, and if that’s all we look for, we might never find out what the truth actually is.
2
u/Syresiv 3d ago
At a guess, I think it's theoretically possible but insanely difficult.
Take one of my favorite proofs in math: that there are infinitely many prime numbers.
That follows our notion of elegance and simplicity, but there are also some jumps in the logic that are clear to most humans, but aren't explicitly stated. Like:
We'd have to formalize the notion in a way that doesn't feel like it's repeating too many things that audience already knows, but doesn't skip nontrivial steps either. That's incredibly tricky.
2
u/ProfessorOne6500 3d ago
If there existed a function that maps a proof to a scale of beauty in some dimention n with each maybe correlating to a beauty factor like simplicity , number of lemmas invoked , type of proof (direct , contradiction , exhaustion etc) then you would need a proof that this function works as accordingly , doesnt map one thing to 2 outputs and has all the wanted properties ... where would this proof place? Would the "nothing" proof be infinitely elegant or infinitely inelegant?
2
u/rtlnbntng 2d ago
I think one of the key properties is not the actual simplicity of the proof, but it's generalizability. Take any big theorem in mathlib for example. We often measure it's "proof length" by the length of the mathlib file that proves it, but if you extracted the minimum fragment of the whole of mathlib that it takes to prove this fact, you could make a very different claim that the proof was hundreds of thousands or millions of lines long. The reason we feel this doesn't count is because many theorems proceed from the results in mathlib and the proofs of those modulo mathlib are quite short.
I think you'd want to first define what it means for a set of propositions to be "elegant", which would roughly measure the average proof length for some class of statements modulo that set of propositions. Then you can say that a proof P of X is elegant if:
-there is a set of propositions A and a class of statements C for which:
-A is elegant for C
-X is in C
-P is in A
An example could be:
X = Euler's identify for the sum of inverse squares
C = all identities regarding infinite sums of squares
P = derivation of X from Parseval's identity
A = the general body of propositions constituting "Fourier Analysis"
1
u/ccppurcell 3d ago
What's the shortest lean proof? Is the obvious first start. Maybe to capture elegance better we could ask for the fewest imports?
1
u/CSMasterClass 3d ago
Birkhoff wrote some papers trying to mathematize esthetics. His effors did not get pick up.
1
u/etcetera-etcetera- 3d ago
This is a question of aesthetics and there is a wide boy of research in philosophy on exactly the topic of mathematical beauty
1
u/irchans Numerical Analysis 2d ago
I like the ideas of Juergen Schmidhubersee https://people.idsia.ch/~juergen/beauty.html and https://arxiv.org/abs/0709.0674 .
Basically, compression is beauty according to Schmidhuber. One possibly impractical way to numerically express the beauty of a proof is to see how many bytes it takes to formalize that proof in LEAN. The shorter the formalization, the more beautiful the proof. You may wish to zip the flies first. (This only works if the standard theorems and definitions in that subfield of math are already formalized.)
1
u/HappiestIguana 2d ago
Well the easiest approach would be to say that the "best" proof is the one that is shortest when formalized in your system (whether that means least lines, lesst characters or what, I leave to you).
But I think I can do better. Define the complexity of a formal proof as the number of bits of the smallest program+input which outputs the proof.
This is similar to the Hutter Prize, which is a contest of who can compress 1GB of Wikipedia to the smallest program+input.
This is an objective measure, computable in principle, although basically impossible to compute in practice. But it would capture the idea of a proof that is, in a rigorous sense, as pared down as possible even in principle
1
u/robertodeltoro 1d ago
To understand how far we are from this, let me point out that we don't even have a meaningful equivalence relation on the set of all ZFC proofs that captures our intuitive understanding of when two proofs are "basically the same" or "fundamentally different."
Timothy Chow's answer here is really relevant to what you're asking.
1
u/lemniscateall 3d ago
No. Elegance, beauty, simplicity, interest, etc, are all aesthetic attributes, not logical or formal ones. These motivate human beings to do formal investigations but are not themselves formal qualities.
-12
u/mickey_kneecaps 3d ago
Hmmm, after perusing this subreddit I have to say that I have no idea what you are talking about. I don’t see any news about lengthy or difficult to comprehend proofs posted here.
Did something important happen in the world of mathematics recently?