r/math • • 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?

41 Upvotes

36 comments sorted by

89

u/813108 3d ago • Bravo

I'm just going to point out that this is Hilbert's 24th problem.

4

u/vintergroena 3d ago

Thank you!

44

u/vajraadhvan Arithmetic Geometry 3d ago edited 3d ago

Under a given set of conditions there can be but one simplest proof. Quite generally, if there are two proofs for a theorem, you must keep going until you have derived each from the other ... Given two routes, it is not right to take either of these two or to look for a third; it is necessary to investigate the area lying between the two routes.

I wonder if Hilbert would have been delighted or horrified by homotopy type theory.

6

u/Syresiv 3d ago

But it also depends on what counts as complete. Like, suppose I want to prove SSS - that is, that any two triangles with the same set of sides also have the same set of angles. I might say:

  • the angle between any two sides must satisfy c2=a2+b2-2ab cos(ç)
  • for any possible a b and c, there's only one valid solution to cos(ç)
  • 0 < ç < 180, and cosine is injective on that domain
  • therefore, ç is uniquely determined by the sides
  • same argument for all other angles

That's pretty simple, but would it count as complete? It depends on the law of cosines, which in turn relies on the Pythagorean Theorem. And it relies on the injectivity of cosine on that domain. Would this proof be skipping steps?

7

u/new2bay 3d ago

I half expected that to be a Rickroll.

2

u/buwlerman Cryptography 3d ago

Interesting.

I don't think you can really look at a single proof in isolation. A proof that falls out of of a well motivated theory tends to be more understandable than an ad hoc proof with no obvious connections to other parts of mathematics, even if the latter can be shorter in total.

A second try is to look at the lengths of proofs for a set of "interesting" results, where one result can use the others. I don't think we can give a good formalization of something approximating "interesting" though.

27

u/BuyDipsShortVIX 3d ago • Bravo

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.

1

u/Enough-Mud3116 3d ago edited 3d ago

There’s a simpler solution.

By Fermat’s little theorem n^p congruent to n modulo p for any p- in this case, p=3 and you have n^3 congruent to n mod 3. Then n^3 - n congruent to 0 mod p so it’s divisible by 3.

In general, n^p-n is divisible by any prime p for all integer n.

Proof of Fermat’s little theorem falls directly from properties of the Frobenius map over a finite field of characteristic p.

The multiplicative group Fp has p-1 elements. By Lagrange’s theorem from group theory, it follows that the multiplicative order of any element of Fp must divide p-1. Then a^(p−1) = 1 for all a in Fp and it follows that a^p = a for all a in Fp.

For the elegance sense, the ability to make general statements of expressions and its relationship to other ideas is what constitutes elegance

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.

3

u/HateVoltronMachine 3d ago

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).

This is what Homotopy Type Theory is all about (paths as proofs and holes in proof space make for qualitatively different proofs that don't transform into each other).

1

u/ninjeff 9h ago

Google Goodhart’s law

1

u/vintergroena 8h ago

Yes, mathematics is getting Goodharted right now, when the success metric is "proof or disproof of open conjecture that is technically correct on the purely formalist side". But imho, this has always only been a proxy for other, more important, but more difficult to measure things

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

1

u/WMe6 18h ago

Horrified faces when it turns out that the 250,000 page Riemann proof is in the BOOK.

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.

5

u/38thTimesACharm 2d ago

It doesn't apply to math. From a given set of axioms, there are endless true and endless false statements. This Turing machine halts, this one doesn't. This Diophantine equation has solutions, this one doesn't. It's entirely up to us which questions we care about, and that would obviously include those with solutions which appeal to our aesthetic senses.

2

u/WMe6 2d ago

For the natural sciences, yes, absolutely. There is absolutely no reason to believe we live in a universe that obeys the most elegant looking equations.

For math, I'm not sure everyone agrees on what beauty is. The classification of simple finite groups comes to mind. Why would anyone say that 26/27 sporadic groups is elegant or beautiful? The proof in that case is a monstrosity and there are good reasons to think it can't be made too much shorter than a bookshelf. Yet, I'm sure some will say it is indeed beautiful.

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.

  • Take any finite subset of the prime numbers P
  • Take the product of that subset, q
  • What's q+1 divisible by?

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:

  • k and k+1 are always coprime (arithmetic theorem)
  • Therefore, P cannot contain every prime number
  • Since we only assumed P is finite, the set of all prime numbers cannot be finite

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. 

1

u/Spiritual-Bus3484 2d ago

Elegance = less is more

Shorter proofs are more elegant.

What could possibly be less arbitrary?

-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?