r/ProgrammerHumor • • 3d ago

Meme grhProvedThroughTheLastOne

Post image
1.7k Upvotes

39 comments sorted by

220

u/PolyglotTV 3d ago

I was a grader in college. There is also "proof by exhaustion" where they fill the entire page with size 6 font gibberish and you have to prove than none of their incoherent buzzwords match the answer key and at some point just give in and give them half credit.

17

u/_404_LogicNotFound_ 3d ago

damn this gave me a real good laugh

102

u/Jbolt3737 3d ago

The programming equivalent is just

IwdbdbjejfaowiJdofjeoeEIFBEPDN;
W9didjwown202i374ndlfkrnrj;
{Sjworjmewofbakwoensndbbeoejdbd, qodjeoenf, ejen};

You can't prove that this isn't hello world in some esolang

28

u/Daniikk1012 3d ago

Hey, this at least resembles a programming language with some structure, which can't be said about some esolangs!

24

u/Funwithloops 2d ago

Oh hey this works perfectly in my new programming language. I'm proud of how simple the compiler is but it could use some more features.

const { readFileSync, writeFileSync } = require('fs');

function main() {
    const inputFile = process.argv[2];
    const outputFile = process.argv[3]
    if (!inputFile) {
        console.error("Please provide an input file.");
        process.exit(1);
    }
    if(!outputFile) {
        console.error("Please provide an output file.");
        process.exit(1);
    }
    const compiledSrc = compileCode(readFileSync(inputFile, 'utf-8'));

    writeFileSync(outputFile, compiledSrc);
}

function compileCode(code) {
    if(code === 'IwdbdbjejfaowiJdofjeoeEIFBEPDN;\nW9didjwown202i374ndlfkrnrj;\n{Sjworjmewofbakwoensndbbeoejdbd, qodjeoenf, ejen};') {
        return 'console.log("Hello, World!");';
    }
    throw new Error(`Code not supported: ${code}`);
}

main();

13

u/Jbolt3737 2d ago

I was actually tempted to try and make a ruleset/specification for a Turing complete language in which that keyboard spam was Hello World, and have the ReadMe just be "Look at the compiler if you want to learn the language. Good luck!"

20

u/Daniikk1012 3d ago

2

u/Minimum_Cockroach233 2d ago

Math is about showing dominance, anyways.

5

u/NomaTyx 3d ago

i feel like most of my professors would give a zero for that, and then let the student point it out when they question the grade

5

u/TessaFractal 3d ago

Seeing a 250000 word proof makes me think that approach is still going strong.

1

u/SnugglyCoderGuy 2d ago

The wronger the answer, the more effort that goes into grading it.

48

u/_blueye_ 3d ago edited 2d ago

"We will prove the lemma after the break"

break

"The lemma we proved before the break..."

14

u/P-Jean 3d ago

I prefer proof by exhaustion. Just ramble on for a few pages until the reader gives up.

30

u/Princekb 3d ago

Proof by 250,000 pages of lean code

15

u/nicuramar 2d ago

No, that page count refers to the “human readable” proof. The lean proof is 17 million lines of Lean.

9

u/Paager 3d ago

According to the course

7

u/Kadabrium 3d ago

lean -O3

5

u/Successful-Active-21 3d ago

proof by compilation

4

u/Jatinchd 3d ago

pilot twist, it's C language.

4

u/Ok-Dot2551 3d ago

Proof by seeing Comes very handy in geometric proofs Proove that this triangle is equilateral Yea that looks like an equilateral triangle, hence proved

2

u/Z3t4 2d ago edited 2d ago

|| true

Q.E.D.

6

u/VancouverVentilator 3d ago

Proof by exit code 0 is unironically accepted by everyone who thinks we can start calling the Riemann hypothesis a theorem. Delusional

5

u/nicuramar 2d ago

Hm.. what’s your point?

-3

u/VancouverVentilator 2d ago

My point is as long as the lean program exits successfully, everyone unanimously agrees Q.E.D.; definitely noooo possible way an exploit can be used to return 0... Riiiiight?

8

u/nicuramar 2d ago

This proof in particular has been looked at by several independent Lean engines, and passes all of them, so I don’t think that’s very likely.

1

u/VancouverVentilator 19h ago

Yea likely is a stretch but I didn't lie

4

u/JoJoModding 2d ago

Indeed I am now convinced that the theorem is proven. I am convinced that every theorem claimed in the Lean proof, i.e. the Riemann Hypothesis and each intermediate lemma, logically follows from axioms of mathematics I (and you) believe in.

Why should I not be convinced of that fact? Is a computer not the ideal tool for methodically checking if the conclusions are deduced from the assumptions using a tightly constrained, syntactic set of logical rules?

I also do not believe that the proof exploits any bugs. The proof does not do anything fishy, its overall approach is believable, and it has been verified by several independently-developed checkers, some of which are themselves verified.

Please help me understand how I am delusional.

1

u/lucklesspedestrian 1d ago

I agree but there's just some unfortunate things about the whole situation. The timing of the announcement, right after the IPO, was weird. It would have been nice if the proof were summarized before being announced so we can understand the breakthrough. While the proof may not have errors, it could have significant redundancy

-2

u/awesome-alpaca-ace 2d ago

No one has verified that monstrosity. "Verified", sure

3

u/JoJoModding 2d ago

What do you mean by verified, and what by scare-quotes-verified? And what is the problem with the latter?

1

u/Ahquinox 20h ago

Will this now actually be called the Riemann theorem or will people keep calling it the Riemann hypotheses (and specify that is has since been proven)?

1

u/Informal_Branch1065 1d ago

Proof by interviewing yourself about your own dream

1

u/StickFigureFan 1d ago

Proof by: this margin is too small to fit my proof

1

u/Meatslinger 3d ago

Some days I'd be hopelessly lost without good ol' "echo $?".

0

u/[deleted] 1d ago

[deleted] — view deleted comment

1

u/bot-sleuth-bot 1d ago

This bot has limited bandwidth and is not a toy for your amusement. Please only use it for its intended purpose.

I am a bot. This action was performed automatically. Check my profile for more information.