Oh, a very rare programming-maths-music meme. Best I can do is 50.
Programmer Humor
Post funny things about programming here! (Or just rant about your favourite programming language.)
Rules:
- Posts must be relevant to programming, programmers, or computer science.
- No NSFW content.
- Jokes must be in good taste. No hate speech, bigotry, etc.
Bravo.
what are piano axioms? online searching only leads me to https://en.wikipedia.org/wiki/Peano_axioms?wprov=sfti1#
They're being defined right in this post. 🙃
Prolog is a language that allows you to specify a whole bunch of rules/axioms and then you can query logical conclusions that can be made from these.
If you go to https://swish.swi-prolog.org/ and click on "Create a [Program]", then paste the post text on the left side (without the Theorem 1, as that one doesn't compile), then you can query it in the bottom right.
For example, if you ask it between which keys there's a gap of just 1 semitone:
?- semitone_gap(X, Y, 1)
Then it will first tell you that X=e & Y=f, as the first possible solution. Then you can click "Next" and it'll tell you another solution is X=b & Y=c.
Just a joke on what makes a piano, i suppose the pun is intended but Peano's axiom are famous mathematical axioms.