245 points · by gballan · 4y ago · 172 comments
I'd have to look up what the "/" in "M/L" means in the 5th reply (I didn't)
There are so many _symbols_ used in mathematics. It's all as if they're spells written by wizened greybeard wizards and passed down to apprentices throughout the centuries.
Think of it as jumping into a new codebase you have never worked with before. It is full of strange functions calling each other for unknown reasons. It takes a while to get a good intuition for why.
M/L could be written Field-extension(M, L). That might make it easier to Google what's going on, rather than having to pick up a group theory book. And indeed in this case it would be extra helpful, because M/L could also mean "quotient group" or even "division" depending on the type of the objects M and L. I personally prefer M:L for field extensions.
But Googling individual concepts is hardly a good way to learn group theory. So I don't think it matters too much. For anyone that spends enough time working in the given field, the notation is by far the easiest thing to figure out.
In general it is nice that mathematics - still being largely a handwritten endeavor - has the freedom to introduce new notation where it makes sense. See https://mathoverflow.net/questions/42929/suggestions-for-goo... for cool examples of new notation improving the lives of everyone.
I want to emphasize this because the weirdness of math notation comes up often. The difficulty of grasping mathematical concepts far outweighs notational concerns. Getting used to notation in a specific field is an absolute drop in the bucket compared to understanding the theorems and proofs, and often the reason notation is so idiosyncratic and inconsistent is because it's meant to try to reflect human intuition, which is idiosyncratic and inconsistent in comparison to the mathematics from which it is derived.
Once you really get into mathematics, notation is so far down the list of things that make learning mathematics hard that I don't think it's worth the associated cost of trying to change it on a large scale.
The immediate example for me would be lambda calculus which makes a lot of sense to me when expressed in code (be it lisp, python or Rust) but just looks like vomit in theoretical papers, for instance:
(λy.M)[x := N] = λy.(M[x := N]), if x ≠ y and y ∉ FV(N)
This looks like a perl one liner from an obfuscation contest.Why is it that software engineers in a few decades have come to the conclusion that proper variable naming is important and abuse of sigils a bad idea but mathematics don't feel the same way?
For other people, the function of math in the school system seems to be mainly to sort them by math ability -- and for that, artificial barriers aren't a problem. So there's little demand for better UX design for nonspecialists. Sucks if you think society would be better off if more people appreciated/understood/applied more math.
Having done consulting, I frankly disagree. Except pathological cases most of the codebases I've been involved in it's possible to open a file at random at quickly make sense of what happens even without prior exposure. With math papers my experience is that you have to go 3/4 references deep before startit to understand where the notation comes from which wastes hours and hours. They should provide normalized names that could be searched for in e.g. a coq-based database of math concepts or something like that.
Most of the time you'd need even more hours to understand not the notation but the concept themselves. In this list there isn't that much weird notation compared to weird words. For example, 'The Krull dimension of a noetherian integral domain is finite'. Even without notation, I'd expect a non-math major to have to go read 8-10 wikipedia pages just to understand "Krull dimension".
In math it is a strange symbol in a PDF and you cannot search for at all
I think about this analogy from time to time, when I get frustrated by maths. Myself not being mathematician but on occasion needing to read a research paper, my frustration is typically begins with the raw syntax of maths. It’s so obviously optimized for the combined limitations of the human brain’s limited short term memory and the human hand’s speed of writing/typing. Which probably is the correct optimization for high level practitioners.
For communication with non experts, it’s dreadful, but I think fixable post-facto with a auto-notation tool. Think black.py for maths.
A terse equation or statement in mathematics represents what you will understand, the rest of the paper is to get you there.
Wanting to read the main equations and understand them, so as to use that knowledge reading the paper, is backward. If the main equation was ax^2+bx+c=0, you wouldn't need to read the paper, right? It's about the quadratic equation, it's aimed at primary students.
But that's how it works, we keep pounding away at the paper: taking notes, following references, thinking a lot about each of the definitions, then eventually, you look at the main equation and say "oh. ok. I know what this says now".
I've basically abandoned all languages/ecosystems that aren't, at the very least, extremely grep-friendly. Static types preferred so I can get that sweet, sweet auto-refactoring, jump-to-references/definition, docs-on-hover, et c.
If we expected people to read code like they're expected to read math, I'd have taken the huge pay hit and left the profession by now. It'd be a choice between that or a spiral into depression ending in tragedy. I don't know how math-loving folks can stand it.
Variables, as opposed to notation, tend to be local in scope, so 1) it isn't vital to have a memorable name and 2) it wouldn't really help to have a 'proper' name, either. As an example, if we're talking about two elements from a group, we usually talk about two elements, a and b, in a group, G. Could you call them elements 1 and 2 from an ExampleGroup? Maybe, but there's no clarity provided since these variables are only scoped for a given section. Additionally, longer equations means that it takes longer to read through and check steps like algebraic manipulation in a proof, or application of a lemma or theorem.
What is globally scoped are things like theorems, lemmas, definitions, etc., and those are easy to track down since they are by convention numbered after chapter and section.
Software engineers have built careers off of making code more readable, both in terms of the language itself and the codebase it applies to. Mathematicians seem to go out of their way to make their work as obtuse as possible.
Can you imagine if software engineers had stopped at C? If we were all still trying to apply the spiral rule [0] to read everything? That's what reading math papers feels like. It feels like you stopped at C and are unwilling to even consider that there could be a better way to express things.
Mathematicians go out of their way to make their work as understandable as possible. If they wanted to make it as obtuse as possible, you'd just see a picture of chaotic scribbles on a blackboard.
> That's what reading math papers feels like. It feels like you stopped at C and are unwilling to even consider that there could be a better way to express things.
Do you have any suggestions?
Mathematics is a hard subject because it deals with concepts in several levels deep of abstraction. That's a complexity that you can't escape. You can't expect to read a math paper (aimed at researchers in the same field) and understand everything, the same way it would be unreasonable to ask you to write your code in a way that someone who isn't familiar with either programming or the concepts your code works with to understand it if they went to read it.
It's a misconception commonly held by non-mathematicians that the symbols are somehow the key to mathematics. I often see complaints, particularly on HN, of it being "impossible to read" research mathematics due to "all the dense symbols".
This isn't how it works. You learn the mathematics. That's hard. As you go along, you realize that some things that require a lot of words can be condensed. So you make up symbols, or, more likely, the source that you're using teaches you some commonly-agreed-upon symbols. Now, once you've learned the math at hand, the symbol isn't the issue anymore.
(Sure, it's a bit of a pain when people disagree about symbols for concepts that everyone agrees should be abbreviated, but in the big picture it's minor)
In contrast, the language of mathematical notation is used for expressing concepts that are utterly unfamiliar and unintuitive. As a language, mathematical notation is nowhere near the complexity of a full human language, or even a programming language. It's much simpler than that. But the concepts behind it don't come naturally and have to be studied carefully.
On the other hand, you cannot use non-standard symbols to represent a sound in English. For example, nobody reading an English text will pronounce the letter "k" as "d" whereas mathematicians might do something like that, but they'll let you know in the opening pages of their book.
And stuff that used to be simple algebra is now explained as something like 'Abelian group linear transformations'.
I haven't heard of "smash products on pointed spaces" for example, and idk why I would think them to be associative. Fun language though.
> And stuff that used to be simple algebra is now explained as something like 'Abelian group linear transformations'.
"Simple algebra" means different things in different professions? For example, Dummit&Foote's Abstract Algebra[0] would be considered "elementary algebra" by most mathematicians. For another example, Principles of Mathematical Analysis by Walter Rudin[1] is "elementary analysis".
[0] https://www.amazon.com/Abstract-Algebra-3rd-David-Dummit/dp/...
[1] https://www.amazon.com/Principles-Mathematical-Analysis-Inte...
I've done mathematics in secondary school (coordinate systems, Pythagorean wotsit), but I can still visualize those and put them into practical use. Later on I had statistics and linear algebra - that last one I had to redo and really work on, it was only after I did a minor in game design that I could finally map that math to a practical application.
But I just don't have the background - or interest! - in anything else related to math. And I don't miss it either, else I would force myself to learn about it.
There's a couple of professions/qualities I have a lot of respect for, mathematicians is one of them. I appreciate them for three reasons: their ability to deal with the sheer complexity correctly and calmly, the fact it is unbiased, like science used to be (or rather: a couple of sciences aren't). The third reason is the one outlined above, generally: its a quality I've been unable to possess.
M/L means that M is a field-extension over L. A concrete example would be C/R (the complex numbers over the reals).
Algebraic number theory, in particular Galois theory, studies field extensions by looking at the group of symmetries: the field automorphisms of the larger field that fix the smaller field. For the concrete example above, the Galois group is a group with two elements: the identity function and the function that maps i to -i and keeps real numbers fixed. It's not a coincidence that the dimension of C as an R-vector space is the same as the size of this group (or that the degree of the polynomial that has i (and -i) as roots has degree 2).
On the note of notation, mathematics repurposes notation all the time, hopefully in a way that helps the person reading to understand by analogy or at least not be mislead by the ananlogy.
You said M/L and the / I think of then is quotient group, but that's apparently not what it means (I wouldn't know without reading it in context).
If X and Y are vector spaces (e.g., a line or a plane through the origin), then X+Y is the sum of all elements of each.
If you think about this example (dim(X)=1 and dim(Y)=2) you can easily recover the first formula intutively. There are two cases for the formula
dim(X+Y) = dim(X) + dim(Y) - dim(X ∩ Y)
Case 1: X is a line inside the plane Y. In that case X+Y=Y and X∩Y=X, and the formula of the dimensions becomes 2=1+2-1Case 2: X intersects Y at the origin. In that case X+Y is a three-dimensional space and X∩Y is 0, thus the formula says 3=1+2-0.
I think I must understand when you say "X + Y" is the sum of elements that you're not using a formal sum {x} + {y} of each element x, and y but you mean sort of like the union of elements in X and Y?
To add to the confusion, in some contexts the sum is the same as ("isomorphic to") the product!
That's exactly what they are!
It’s about whether Euclid’s proof that there’s no finite set of primes is a proof by contradiction or not. The fact that this is disputed at all shows a certain unwillingness to use original sources — maybe each of them only looked at a different textbook’s restatement of the proof. Because no matter whether a proof of the theorem can be stated without contradiction, it took me all of 30 seconds to find a translation of the original proof to show that Euclid did in fact use one:
> I say that G is not the same with any of the numbers A, B, and C.
> If possible, let it be so. Now A, B, and C measure DE, therefore G also measures DE. But it also measures EF. Therefore G, being a number, measures the remainder, the unit DF, which is absurd.
(http://aleph0.clarku.edu/~djoyce/java/elements/bookIX/propIX...)
Within constructive logic, there are different non-equivalent definitions of infiniteness (that are all equivalent in classical logic):
- A set is non-finite if its finiteness leads to a contradiction.
- A set is infinite if any finite subset of it can be extended.
Infiniteness implies non-finiteness, but non-finiteness does not imply infiniteness. Further discussion can be found here: http://nlab-pages.s3.us-east-2.amazonaws.com/nlab/show/infin...Within the context of the MathOverflow answer, the claim that Euclid's proof establishes infiniteness as opposed to non-finiteness, is correct. And the proof is therefore not "by contradiction", because that would only show non-finiteness.
[edit] Edited out some impoliteness.
Edit: The above added a nit-picky side-point to your original response, which was a lot shorter. Afterwards, you edited your reply to be a lot more exhaustive and a lot less... friendly? I don't think that's the best way to use HN's edit window. But see my grandchild comment below for my response to all the points you edited in afterwards.
And this construction can be carried out algorithmically: Just find the prime factors of ABC+1.
Obviously, this is not computationally efficient, but constructive logic doesn't care. Constructive logic only cares that a construction can be carried out, and that its worst case time complexity has some explicit bound. The existence of this bound for finding larger primes implies a weak bound on the density of the primes.
Also, I made some edits to my original comment.
(1) Given a finite set of primes {p_1, ... p_n}, then there exists another prime not in that set.
However, turning that into the following statement does require proof by contradiction (or, equivalently, the law of the excluded middle):
(2) There are an infinite number of primes
Euclid himself made statement (1) and proved it without contradiction, so looking at the original source gives the impression that you don't need it. But (2) is so similar-looking that many people incorrectly make the deduction that it doesn't need proof by contradiction either.
If A is the set of all primes, then A is an infinite set.
Contrapositive proof: Suppose A is a finite set containing only primes. By (1) we know there exists some p not in A and therefore A is not the set of all primes.
I don't believe contrapositive needs law of excluded middle but I'm honestly not sure. Logic is not my area
Let's say you know A and ~B=>~A, then you can deduce B. Proof by contradiction: assume otherwise, i.e. ~B, then by ~B=>~A you have ~A, but that contradicts A.
So if you have ~B=>~A then you have A=>B.
Proof by contradiction has the following form: ~A -> false |- A. But the quoted proof has the form A -> false |- ~A.
This is FUD designed to discredit intuitionistic logic.
An instance of LEM is not "a logical error"; it is merely a claim which requires justification. For the claim at hand -- i.e. some natural number G is a member of a finite, constructed set, or it is not -- the corresponding LEM instance is perfectly true [and proven]. We say that the claim is decidable. So (given that we have a proof the claim is decidable) there would be no problem in intuitionistic logic with this part of Euclid's proof even if it took the form of a proof by contradiction (which of course it doesn't).
To make a more general rebuttal of the FUD, proofs by contradiction are not automatically invalid in intuitionistic logic; they just require one extra piece of evidence.
Furthermore the claim that whether something is a proof by contradiction depends on one's position on the logical validity of LEM is ridiculous on its face. There is a fact of the matter as to whether any given proof is by contradiction. There may be disagreements as to the definition of "proof by contradiction", but the definition which includes proof of negation is completely useless. In mathematics we usually treat useless definitions as in some sense "false" in order to facilitate communication - e.g., 1 could be prime depending on definitions, but that would be useless so we facilitate communication by treating "1 is prime" as false. Likewise here we should treat as false the claim that the quoted section of Euclid's proof is by contradiction.
Source for claims about LEM/proof by contradiction: https://www.ams.org/journals/bull/2017-54-03/S0273-0979-2016...
All I mean by saying it's a "logical error" is that it's not an argument which is always valid. Of course particular instances can still be correct.
I think a definition of "proof by contradiction" which includes proof of negation is useful if you are reasoning classically (and this doesn't have to be something you always do, or always avoid; you can reason classically some of the time and intuitionistically some of the time). Although the ideal situation to avoid any confusion would be to have three separate terms, one covering both types of proof and two for the individual types.
For example, the answers mention the belief that if 3 distributions are pairwise independent then they're jointly independent. Another false belief is that if 2 distributions are independent then they are conditionally independent. Also, people might think that you can pick a real number from R uniformly.
This one seems to stand out though - is there a specific "non-math" situation where this is going to cause problems ?
> If f is a smooth function with df = 0, then f is constant.
I assume the smoothness and df = 0 criteria are said to hold on the whole domain, right? Yet the claim is that f fails to be constant over the same domain?
There is a similar thing in graph theory, where the kernel of the incidence matrix counts how many connected components a graph has.
(-1,2) are all number between -1 and 2, but not including -1 and 2. [-1,2] however are the same numbers, but including -1 and 2. Slightly different sets, where the former is open and the latter is closed.
Another way to think about it is for any point in (-1,2), we can find some number that is "closer to the boundary" but still in the set. This is not true for [-1,2] if we pick -1, because any number below -1 is suddenly outside the set. -1 is a boundary point, and therefore that side of the interval is not open!
Why do we need this? Well, lots of calculus is about sequences that converge in smaller and smaller distances. One can for example define whether a function "jumps" by checking whether the inputs have boundary points or not (etc.).
But for math people, this is not general enough, because it requires things like distances. Hence, they have a more general definition: There's a collection of stuff, and open sets are sets of this stuff that follow some rules.
Now here is the important part: Closed sets do not have an extra set of rules. Instead, they are just defined as the complement (or opposite) of an open set.
So R - the set of all real numbers - has a complement which is the empty set. The opposite of "all numbers" is nothing! Since R is open, by definition, the empty set is closed.
Cool. But then, if we take our rules, we see the the empty set is also open. Whoops. Then, again by definition - the opposite of the empty set - which is R, so all numbers - is closed.
Confusion conclusion: Both R and its complement, the empty set, are both closed and open at the same time.
Note that sets are always closed or open relative to some other specified (often implied) set S.
In some courses, a closed set (in S) is defined to be a set which is the complement S-T for some open set T. In others, a closed set (in S) is defined to be a set which contains all its limit points (in S). And then whichever isn't the definition gets proven as a theorem.
The misconception is about not knowing that the generalization to arbitrary sets has some unexpected properties.
(Half-open intervals are neither open nor closed, by the way)
Wow, pretty sure I read this in New Scientist magazine in the early 2000s, quoting some "cryptography expert". Guess he wasn't such an expert.
Why would this be wrong? If the derivative is zero everywhere, how would the function not be constant? Or does this mean something completely different?
EDIT: Someone already provided the answer here https://news.ycombinator.com/item?id=30146426
To the question of how advanced these are, with only a few exceptions, the majority of things there are covered in undergraduate analysis, algebra, and topology courses.
At the University of Waterloo, CS is strictly in the faculty of Math, so I'd expect students to know much of this (I think? I'm in Computer Engineering at UW, which is a distinctively different program).
OTOH, I'd imagine things are different in universities where CS is thought of as its own major, with no Software Engineering/Computer Engineering as an alternative.
Things like "Many students believe that 1 plus the product of the first primes is always a prime number" (a misunderstandment of Euclid's proof that there exist infinitely many prime numbers) or "If A implies B then B implies A" (difference between a necessary and a sufficient condition) are literally middle-school math.
Things like "If 𝑓(𝑥,𝑦) is a polynomial with real coefficients, then the image of 𝑓 is a closed subset of ℝ" are high-school level.
The top answer about dimensions of vector spaces is a well-known undergraduate-level "trap".
"The Krull dimension of a noetherian integral domain is finite." is, to be brutally honest, not a sentence I understand in the slightest.
Also
> "If 𝑓(𝑥,𝑦) is a polynomial with real coefficients, then the image of 𝑓 is a closed subset of ℝ"
I don't think that this is high school level. Secondary school level math rarely touches anything related to multivariate polynomials (and usually doesn't have a notion of "closed sets" beyond closed intervals, but that's not as relevant apart from how the problem is stated).
I don't doubt that what you're saying is true, it's just something far outside what I personally am familiar with.