235 points · by guerrilla · 5y ago · 82 comments
Since taking an interest I’ve worked through a couple books on the topic and have listened to a ton of talks/interviews Emily Riehl has given (as well as others).
I really enjoyed her talk at lambda world, “A categorical view of computational effects” (both the content and audio/video quality of this talk are very good!)
Stoked to see this article on HN! I can’t tell if category theory is becoming more popular or if I’m just living in a algorithmically curated/tailored world.
I have a question for people who are familiar with recent developments. Forty years ago, the opinions of other math grad students about category theory were divided. Some thought it had the potential to yield great breakthroughs and solve previously unsolved problems in many branches of mathematics. Others thought it was pretty and useful for identifying similar structures in different fields but wasn’t much use for making significant new mathematical discoveries. A sentence in Emily Riehl’s book—“The category-theoretic perspective can function as a simplifying abstraction, isolating propositions that hold for formal reasons from those whose proofs require techniques particular to a given mathematical discipline”—seems to align with the latter opinion.
What has in fact happened in recent decades? Has category theory turned out to be mainly a “simplifying abstraction” as well as an interesting branch of mathematics in its own right? Or has it been used to prove meaty new results in other fields as well?
> Others thought it was pretty and useful for identifying similar structures in different fields but wasn’t much use for making significant new mathematical discoveries. A sentence in Emily Riehl’s book—“The category-theoretic perspective can function as a simplifying abstraction, isolating propositions that hold for formal reasons from those whose proofs require techniques particular to a given mathematical discipline”—seems to align with the latter opinion.
Two points:
1. Being able to “lift and shift” techniques is a big deal in mathematics — so the two cases are the same. A lot of recent innovations are along those lines, where techniques in one area were applied to a new area. In that sense, category theory is wonderful because it gives us a map for how to move techniques around. You could even go so far as to say the algebra-geometry correspondence is category theory’s first “big win”, as it came about as a way to formalize that body of work.
2. Category theory is the native language of data fusion, while categorical syntax is easy to represent in an image-completion kind of way... so category theory is useful for labs working on using machine learning to fuse data and extract semantically meaningful information. Or labs working on an AI model which can suggest improvements to itself.
In short: yes, with some exceptions. The majority of mathematicians are working on problems where category theory is of no importance.
A quick list of some of the major exceptions I'm aware of: the general cluster of ideas surrounding the Fukaya category, derived categories, and homological mirror symmetry [0]; geometric Langlands [1]; and the bulk of modern algebraic topology (I have in mind homotopy theory especially). It's also incredibly useful, practically speaking, for modern algebraic geometry and number theory, although my impression is that you have to get pretty deep in the weeds before it becomes more than a linguistic convenience. For a taste of the latter, see the discussion at the beginning of the category section of this algebraic geometry text (which is in principle accessible to someone who has taken an undergraduate course in abstract algebra – though I feel in reality a significant amount of mathematical maturity is required): Section 1.1 of http://math.stanford.edu/~vakil/216blog/.
Also, it has become somewhat of a meme here to talk about Homotopy Type Theory. I think this is overhyped; the experts in foundations don't seem to think highly of it. Many arguments for its utility or theoretical importance are, in my opinion, misguided – for example, the claim that set theory proves "junk theorems" such as "pi" being an element of "4."
[0]: https://en.wikipedia.org/wiki/Homological_mirror_symmetry [1]: https://en.wikipedia.org/wiki/Geometric_Langlands_correspond...
Feel free to name some of these experts. The only thing I've seen is remarks by generally renowned mathematicians such as Terry Tao who have no interest in either foundations or formal verification (which isn't an indictment, its quite removed from mainstream mathematics), so I don't see why anyone would use this to evaluate the merit of HoTT.
>Many arguments for its utility or theoretical importance are, in my opinion, misguided – for example, the claim that set theory proves "junk theorems" such as "pi" being an element of "4."
What? Either whoever said that has no clue what they're talking about or you are misremembering their argument. No, set theory doesn't allow you to prove that pi is an element of 4 - but it allows you to state it. And this is actually an issue in so far as that when you want to state actually meaningful theorems, you constantly have to make assertions about what an object is actually supposed to be. If you do this in a formalized, machine amenable way you just end up with a form of type theory.
And this isn't actually an argument in favor of HoTT, but just some form of (dependent) type theory, all of which essentially run along the lines of 'This makes proof assistants better/easier to use'. I've never heard a legitimate argument for why dependent type theory is overhyped - even hardcore Isabelle folks will have a hard time disputing that dependent type theory has made much more noteworthy recent advancements.
The main argument (from the point of general proof engineering) for HoTT is computable univalence i.e. being able to transfer properties along isomorphisms without the computation getting stuck which is a huge deal. Is it a large enough deal that everyone will adopt it? Who knows, it might be that a more 'practical' proof assistant such as Lean, focusing simply on better automation engineering, will win out, but the hype around HoTT is definitely not just a 'meme'. People over hyping category theory doesn't invalidate the actual research being done.
I will retire in two years, after I turn sixty-five. I’ve started to ask myself if that will be too late for me to try to study pure mathematics again.
And it can be useful to think of them more abstractly than they actually are, even if you're not going to use them that way (or even talk about them that way in your code). Just making some "ridiculously abstract" connections can help provide a missing piece of architecture, even if you keep the math story to yourself (which you likely should).
So it can (potentially?) be useful to model various things in terms of what they mean "at the most abstract level", and then find ways to capture chunks of that into various architectural abstractions that make sense without category theory (kind of like a Karnaugh map, in a sense).
Sorry if that seems like a lot of "purple prose" or self-important... it really isn't. I think it's the same thing that a lot of people mean when they say "I don't use Haskell but learning it made me a better programmer." I don't use abstract algebra, but learning it made me a better programmer (those statements might even be homomorphic, depending on the Haskell involved)
Whiteboard diagrams work because they’re a categorical diagram related to the semantics of the program I’m trying to write.
In the sense that CT and TT are “equivalent”, your whiteboard diagrams are your program.
This genre of abstraction is all over the place in category theory and it gets way more interesting, but seeing products defined like this and how incredibly unifying of an abstraction it is was the first place that I really saw what the categorical perspective brought to the table.
*Cartesian product within the category of sets and functions between them (amounting to multiplication of cardinals, if one just cares about the action on objects), least common multiple within the category of positive integers ordered by divisibility (a partial ordering being just a special kind of category), logical conjunction within the category of truth values (which can be thought of as sets with at most one element), and structs or record types in the category whose objects are the types of your favorite programming language and morphisms are the programs between them. (From Chinjut, last time I brought up categorical products on hn: https://news.ycombinator.com/item?id=8780786)
[0] https://rnhmjoj.github.io/category-theory-for-programmers/sr...
If you'd to see how this applies more directly to programming, work like this is a direct application of the same definitional strategy for abstraction: https://blog.sumtypeofway.com/posts/introduction-to-recursio...
I wrote up a bit on it here https://github.com/adamnemecek/adjoint
Are there any good books you can recommend on the subject?
If you don't know that much math, I'd recommend Tom Leinster's Basic Category Theory [2] or Steve Awodey's Category Theory [3] (particularly if you have some background in computer science or programming).
https://www.goodreads.com/book/show/2047855.Category_Theory
It's a mathematics book written by a philosophy professor that is extremely readable for computer scientists. Very CMU, much wow, such deduction.
Short version: Even Lurie wasn't ready to generalize from one example :)
Nothing to be ashamed of in any other part of mathematics, I'd say.
> The Mathemagician’s Axiom of Textbook Prerequisites: Let M be the minimum actual prerequisites for an average student being able to read and understand a given presentation of a subject in a mathematics textbook. Let A be the author’s stated prerequisites. Then usually: A <<<<<<< M
> ... My intended audience might be described as peri-graduate students, ranging from advanced mathematics undergraduates, to graduate students, to perhaps even research mathematicians in other disciplines.
I have used Haskell for years, but consider myself a novice at dealing with Monads, etc., while good at writing pure Haskell code. (I wrote a Haskell book, which is free on my website https://markwatson.com/books/).
A few years ago, I randomly had dinner with a math professor who specialized in Category Theory, and it was a very cool conversation. I hope that reading Emily Riehl’s book and listening to some of her teaching videos, that I can grok enough CT to enjoy it.
If science is a career to acquire cash then it's quite easy to get compromised into focusing on the wrong motivations even if your intentions are quite pure - abstract fields tend to be rather "useless" and thus the same influencing power and money isn't available leading those folks to have a much clearer ability to ethically reason about problems. When you've got co-workers depending on a project going forward to keep a roof over their heads it's a lot easier to compromise morals.
Huh?
Some thing don't change.
Your example doesn’t seem related to politics or feminism at all though. Downplaying the difficulty of everything is just a quirk, one that I personally happen to love. All textbooks have titles like “Elementary X” or “Introductory Y”, no matter how complex. I’ve always found that funny.
Obliged by a authoritarian state (that could be violent, or destroy your career) is incomparable to some peer (that seems not very interested in begin violent nor career destroying) believing others should be obliged. Incomparable. Not sure what logical fallacy this is, but "incomparable" should do the trick.
Why would you want to compare the two, I ask myself?
It’s not quite mandatory to praise feminism yet, for private individuals, but what do you think would happen to the academic career of someone who openly opposed feminism!
Oh, wait, no. You were just dismissing her opinions out of hand by likening her to the founder of an oppressive state.
Though I haven't read her books so I don't know how political they actually are, I just replied to the comment about politicising mathematics.
I would not go as far as saying they're obliged, but I'm no mathematician!
For anyone who would like to read more on the subject, I'd recommend the works of Julia Serano. She's written extensively about how feminine women are mistreated in academia, even by other feminists and queer women; her most prominent book is Whipping Girl: A Transsexual Woman on Sexism and the Scapegoating of Femininity, but she also has a number of other books and essays on the subject. She's also coined the term "femmephobia" to refer to the phenomenon.
There are a lot of really strange social dynamics that women can get hit by in the workplace and that one was certainly new to me.
I was curious to see if it got closed, so I clicked the link
https://mathoverflow.net/questions/43690/whats-a-mathematici...
Yes, it's closed
CT on the other had always struck me as a long list of if expressions with if expressions inside at infinitum.
At the same time, I had a bit of a nagging fear by this line -
> As a semi-androgynous queer woman, I think that I kind of fit in in the mathematics community better than I would if I were a cis, straight female. I think it also means I’m less likely to get hit on, which is a horrible thing that has happened to a lot of young women in fields where there aren’t enough women.
Obviously without defining "hit on", I do not want to draw too many conclusions. But as a guy, it makes me quite scared that just asking a someone out for a coffee (which I do to people regardless of gender / sex), might get construed as "hitting on" and a horrible thing. All due respect to the people who have been subjected to sexually predatory behavior though. Would like to hear others opinion on the same.
https://hn.algolia.com/?dateRange=all&page=0&prefix=true&sor...
That goes 10x when the topic is an ideological one. It's clear you weren't starting an ideological flamewar on purpose but that's what generic ideological tangents lead to.
https://hn.algolia.com/?dateRange=all&page=0&prefix=true&sor...
The best way to avoid this is to stay grounded in the specifics of the article, especially the ones which have the richest diffs from past repetitive discussion.
https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so...
As a guy I kind of get where you’re coming from. Sort of. I think being “scared” is a bit much (or can at least be portrayed as the “wrong” connotation to those that care). The way I’d phrase this is, “I want to respect people’s boundaries and certain situations can be trickier to navigate than others and I’d rather not mess it up.”
You can’t account for how someone else will perceive your actions/intentions. In fact, they could probably vary (ie what if someone is looking to be hit on on Tuesday but not Wednesday? What if a person thinks “everyone hits on them”).
For me, I try to treat everyone with respect. Maybe I want to talk more about something, but the other person doesn’t—I’m aware this could be the case so I always try to leave/create/make space for them (ie always provide a way out of the convo for the other person).
I also try to ask myself if “grabbing a coffee” over some conversation is necessary. Interesting people have a ton of people wanting to grab coffee, so maybe a group thing would be better. I also try to consider the persons time (male or female); of course I’d love to steal some time from them or make a professional connection, but you can’t always get what you want.
> is not intrinsically
Your post does not contradict the parent.
For better or worse, any type of interaction (professional or not) is occasionally used as a side channel for romantic interests, and so risks getting misinterpreted as one. Cyber-optimist hopes that online dating platforms will pull this ever-present shadow out of everyday socialization, or at least de-mine the workplace, have proven futile; enough people want the ambiguity. The only reasonable option is to grow a thicker skin and learn saying no and laughing it off.
The uncertainty comes mostly from the interpretation of the asked.
> is not intrinsically
The uncertainty comes mostly from the way in which the asker asks.
I believe the latter is more representative.
Do you think my framing is inaccurate given what she said? How would you describe the negative association with being hit on in the quote above?
>Translating "hit on" as "prey on" might be a sign that you have an unhealthy view of human relationships.
Seeing someone cute at a wedding and making a pass is a far cry from what's been happening in academia for decades where power dynamics are often obvious. There's a reason why very few people would have a problem being (tastefully) hit on in a social situation and why people complain about it happening in a professional situation.