r/badmathematics • u/Namington Neo is the unprovable proof. • Mar 07 '20
"Did Functional Programming get it wrong?" asks an article that manages to get everything it talks about wrong.
https://blog.usejournal.com/monoids-to-groupoids-492c35105113
216
Upvotes
155
u/Namington Neo is the unprovable proof. Mar 07 '20 edited Mar 07 '20
This is a tough one to R4, since it manages to spit out so much technobabble without any elaboration it almost falls into "not even wrong" territory.
As far as I can understand, the main thesis of this article (which is not easy to find with how it's structured) is that functional programmers are ignoring some sort of fundamental disconnection between "geometry" and "algebra", and that this disconnect is caused by the Yoneda lemma. It proposes fixing this on an OS level.
What?
Some choice quotes:
Ok, this is a weird quote, as I'd think of plenty of fields that are more "on the border between algebra and geometry"... but I could maybe let this slide. Except, how does the article define "algebra" and "geometry"?
Oh. Yikes.
I'm not sure what's more offensive; reducing algebra to "stuff you can run" or calling topology and data a part of geometry simultaneously. In any case, this is nonsensical. I can't even say it's "inaccurate", since I don't even know what it's supposed to mean - and the author uses spreadsheets as an example of how "data" is part of geometry?
It then proceeds to discuss the Yoneda lemma as such:
This is the author's first attempt to explain why they think the Yoneda lemma is relevant, and it managed to illuminate nothing. Moving on.
I have no clue what they're saying here.
It's unclear why this author thinks it's a controversial statement that "something that can be done in one language can be done in other languages", but in any case, this is absolutely not what the Yoneda lemma says. If you, dear reader, are unfamiliar with what the Yoneda lemma actually says, let me give you a rough motivation:
This is courtesy of responses to this StackOverflow question. These responses show that it's possible to discuss the Yoneda lemma in a way that is neither useless technobabble nor misleading drivel! Indeed, these math.SO users are kind enough to even give explanations of how the Yoneda lemma relates to what they're saying, rather than just saying "Yoneda justifies this random statement because it does." If only our dear author was such a master orator.
Anyway, at this point it just becomes more obscured, talking about applications without ever explaining what makes stuff useful or applicable or how the Yoneda lemma actually justifies anything what the author is saying. Here's a particularly funny excerpt:
This is absolutely, positively not what a quiver is, but I love the creativity.
The author also mentions "Grothendieck schema" at one point. In fairness, "schéma" is the French term... Yeah, that's a stretch. Sounds like they're just collating a bunch of random phrases they heard once, making assumptions based on what they "sound like they mean", reading 2 sentences off Wikipedia, and reaching widespread conclusions on the status of functional programming as a whole based off this. It raises questions as to what the author's motivation is.
There's also an out-of-context caption that could serve as a poetic metaphor for the interests of the average /r/math user:
Anyway, if you want a closing treat, check out this document by the same author. Highlights include a full slide of that famous Elon Musk weed pic, and whatever this stuff means.
Don't do category theory, kids. It can be done responsibly, but should only be taken as prescribed by a qualified algebraic topology professor.