News for hackers. Stuff that matters.
Re:How to Read Mathematics by jordigh on Tuesday December 12, 2017 @10:50PM (#15911877)
One thing that I really would like to impress upon computer people is that mathematics is not (usually) a formal computer language. Symbols and technical terms change meaning depending on the author, people write with different "accents". There's a little ambiguity and informality at times, but a whole lot less than other kinds of writing.

Mathematics is (usually) written for humans, not computers. Don't attempt to read mathematics as you read code. To keep making bad analogies, it's a bit more like reading music. Picking the right tempo, the notes to accentuate, the interpretation -- this all requires a human. Computer still make crude approximations.

Re:How to Read Mathematics by retox on Wednesday December 13, 2017 @03:23AM (#15912862)
Why is that? Why is there not a universal way of writing mathematics that is not ambiguous and can be read by anyone that understands the 'language'?

I have a deep dread and fear of numbers and mathematics in general because I don't understand them and I have never learned. Now I learn that there isn't one thing to learn but a vast array? No thanks. I had this apparently romantic view that an equation is an equation (the same equation) anywhere in the world.

Re:How to Read Mathematics by TuringTest on Wednesday December 13, 2017 @05:17AM (#15913317)
> Why is that? Why is there not a universal way of writing mathematics that is not ambiguous and can be read by anyone that understands the 'language'?

There is one, it's called formal logic. The problem with it is that it's not adequate to explain things, only to prove theorems formally; any strict unambiguous proof written in formal logic looks more like a debug trace than a scientific article.

To provide a proper explanation of a mathematical result, at many points in the proof you need to summarize the hundreds of intermediate mechanical steps and write the insight behind them in common language, using potentially ambiguous words.

Re:How to Read Mathematics by Smaug123 on Wednesday December 13, 2017 @04:12AM (#15913062)
Why is there not a universal way of writing anything that is not ambiguous and can be read by anyone that understands the 'language'? Because humans have a tendency to defy attempts at classification and constraint. Constructed real-world languages (Lojban, Esperanto) haven't really taken off, while non-constructed languages mix and match whenever they feel like it ("le parking", "Schadenfreude"). The same is true in maths: people use what is easiest.
Re:How to Read Mathematics by erasemus on Wednesday December 13, 2017 @05:33AM (#15913383)
Because whenever we read something we have to guess the meaning. To the human mind, all communications are inherently contextual and metaphorical. To put it another way each individual has his own internal private language into which everything he reads must be translated.
Re:How to Read Mathematics by emacsgifs on Wednesday December 13, 2017 @08:38AM (#15914085)
It's as if we truly believe that 0 is positive charged and 1 is negative charged.

Or to take us a step further, that a certain arrangements of electrons is "negative" and the inverse arrangement is "positive"

I often tell CS people that everything in computing is metaphor and it honestly disturbs me that 80% of the time I get blank looks.

Re:How to Read Mathematics by sevensor on Thursday December 14, 2017 @09:39AM (#15922523)
> I often tell CS people that everything in computing is metaphor and it honestly disturbs me that 80% of the time I get blank looks

This is why people think Machine "Learning" means that the Singularity is near.

Re:How to Read Mathematics by Aaargh20318 on Monday December 18, 2017 @09:04AM (#15951633)
> Why is there not a universal way of writing anything that is not ambiguous and can be read by anyone that understands the 'language'?

You mean like Lojban (https://en.wikipedia.org/wiki/Lojban) ?

Re:How to Read Mathematics by joppy on Wednesday December 13, 2017 @08:44AM (#15914118)
Why should all mathematics be written using exactly the same language and conventions? Should all computer programs be written in the same language? People modify the language (natural, mathematical, programming) they are using to suit their problem. It is unreasonable to expect that the kind of language you use at the foundations of mathematics for example (set axioms and so on) would be efficient and useful for stating properties of much more complex objects: this exactly parallels computer programming languages.

Admittedly, there are no big tables containing "definitions" of these languages. But I think it is common opinion that if you don't understand the language a paper is using, then there is a very large chance you don't know the underlying theory, and the paper will make no sense anyway.

Re:How to Read Mathematics by Firadeoclus on Monday December 18, 2017 @04:57AM (#15950585)
There's also a small but non-negligible chance that you could have understood the paper because you know (part of) the underlying theory under a different name, using different notation and concepts but leading to the same results.
Re:How to Read Mathematics by remus on Wednesday December 13, 2017 @05:17AM (#15913316)
> Now I learn that there isn't one thing to learn but a vast array? No thanks. I had this apparently romantic view that an equation is an equation (the same equation) anywhere in the world.

It's not as bad as that! You're very unlikely to hit this sort of issue until you're reading research papers (unless you decide you're very interested in mathematical history). Pretty much all the material youll come across up to ~undergrad level will use very, very similar notation.

Re:How to Read Mathematics by pbhjpbhj on Wednesday December 13, 2017 @08:57AM (#15914200)
The first alternate notation I think in maths, I used was dot (period) notation for scalar multiplication. Next would be different versions of standard form (aka engineering notation).

Later, at high-school (UK, 16-18yo) we used both d/dx type notation for differentiation and x-dot (a dot above the letter for each level of differentiation).

There would be 3 versions of x= ut + (at^2)/2 that we'd know, this one, d/dx, and dot-notation; primarily the former was used in physics and the latter in maths. We'd also use suffixed numbering, u_0, u_1 on occasions and use u, v, w on other occasions.

One important point - they're not different equations, just written differently.

You write for your audience, in an advanced paper you can abbreviate and use shorthand because you know the reader (in general) will understand.

As an undergrad I found that each department I studied in would tend to use different notation - chemistry, ecology, maths, physics, computing - for the same things. Though sometimes different professors would buck the trend ... they also had different accents and vocabulary, our QFT professor loved the word recapitulation.

You also get different symbol use, like rho for density in one domain and d in another; but that's not really notation per se.

TL;DR sometimes you come across different notation earlier. Different notation doesn't change the equation.

Re:How to Read Mathematics by bzbarsky on Wednesday December 13, 2017 @02:42PM (#15916922)
There are at least three different commonly used notations I'm aware of for division.... And that's not counting the long division process, for which I'm aware of at least two different notations (usage varies by country).
Re:How to Read Mathematics by meken on Wednesday December 13, 2017 @03:46AM (#15912953)
I think the answer is that such a language would be overly verbose. You could ask the same question about human language and the same answer applies.
Re:How to Read Mathematics by heavenlyblue on Wednesday December 13, 2017 @04:39AM (#15913150)
It probably is also the case that the language used in sci articles is constantly changing, too.

We may take advantage of libraries in programming (but even then they may not work on all of the physical platforms), but it's not that well defined, what is "the fundamental language" of mathematics; at least not as of today.

Although I find it cool that tools like Coq are getting increasingly popular, so we will eventually get there.

Re:How to Read Mathematics by pathsjs on Wednesday December 13, 2017 @08:00AM (#15913912)
An exercise that I made during my degree and phd years in maths was to always take notes in a consistent notation across the various lectures, regardless of the convention used by the teacher. It forced me to pay attention and as a bonus I have a consistent set of notes for most undergraduate mathematics :-)
Re:How to Read Mathematics by jiggunjer on Wednesday December 13, 2017 @07:31AM (#15913803)
I had this reaction to sign language. Seemed like deaf people missed a good opportunity, but then I realized that how we talk and think is shaped very much by our language. Similarly scholars from different backgrounds have different ways of expressing a precise mathematical concept. This one paper I read implicitly treated complex scalars as real vectors, took me some time to clear up the confusion.
Re:How to Read Mathematics by rsj_hn on Wednesday December 13, 2017 @07:29AM (#15913791)
What do you mean by "writing" mathematics? The glib answer is that math is a superset of programming and there are non-computable arithmetic functions, so programming is not rich enough to describe what you need to describe when you are talking about math.

I think a more intuitive answer is that in math you are generally talking about relations between infinite sets of objects, whereas in programming you are living in a (in practice) finite space and are evaluating everything into an integer. Programming is about calculating integers, mathematics is about proving theorems. The language has to be very different because what is crucial about evaluating integers unambiguously is peripheral to proving theorems and vice versa.

You can ask, why is it so painful to give a formal proof of correctness of your program? It's impossible to do for all but the most trivial programs. You know that a brilliant person, given years of work, might be able to come up with a proof of correctness, but you also know that the language they would use to do that would be very different from the language that you as programmer would use to write your program. So it goes in both directions. Programs evaluate numbers, they are essentially adding machines, and central to that is the erasure of state via addition.

Math is about symbolic relations and erasure of state is via relations on infinite sets. For example, you want to prove that if a group has a prime number of elements, then it must be cyclic. So pick a generator, raise it to powers, and get a subgroup. Then by Cauchy's theorem, the order of the subgroup has to divide the order of the main group, and that order is prime, so therefore the subgroup has to be the whole group.

There are many things to unpack in that statement. For example, Cauchy's theorem, which says that if a A is a subgroup of B, then the order of A divides the order of B. So

Cauchy's theorem + Group is prime order => non-zero subgroups must be the whole group.

And then every non-zero group has a non-trivial cyclic subgroup + non-zero subgroups must be the whole group => the whole group is a cyclic group.

So it's bit like adding numbers, in that you forget state, but the rules are much more complicated involving quantifiers and a huge universe of sets.

To build a computer that could reason that way, you'd need an infinite set of registers, rules for quantifiers, etc. and your unit of memory would be abstract set relations instead of a zero or 1.

You can try to simulate special cases of that in software, say with an SMT solver. If you look at the DSL of writing code for SMT solvers, it looks different from the code that a programmer is used to writing, and the best SMT solver can't really do anything too interesting from a math point of view, with very rare exceptions.

Moreover in math as practiced, no one (except some logicians) writes in formal logic. It would be too cumbersome. Simple statements like "a harmonic function on a disk achieves its maximum and minimum value on the boundary of its domain" would require thousands of pages of formal symbols and quantifiers. No one can think like that, and so we don't write math that way because we also want to forget things and make compact statements, but what we forget in math is relationships among infinite sets, things like, what are the real numbers, what is a function on the real numbers, what is a differential, what is a harmonic function, what is the maximum of a function, what is a disk, all of that is packed into our statement and replaced with a math statement that is much more compact in the same way that 1 && 0 are replaced by 0 in a computer register, but the computer register is not rich enough to model relations on sets.

Re:How to Read Mathematics by Koshkin on Wednesday December 13, 2017 @11:10AM (#15915099)
> Math is about symbolic relations

Tell this to anybody who is familiar with, say, algebraic topology. This is a very narrow view of mathematics. Mathematics is much, much deeper than that. Even the pure algebra is no longer about "symbolic relations".

In fact, today the correct view of mathematics would be much closer to that of theoretical physics: both study one or the other form of reality, using pretty much the same method.

Re:How to Read Mathematics by agentultra on Wednesday December 13, 2017 @10:17AM (#15914725)
> You can ask, why is it so painful to give a formal proof of correctness of your program?

It's not!

It turns out that the dependently-typed lambda calculus is sufficient. See the research into Lean[0].

It seems we had discovered a portal called, Curry-Howard. You can throw in theorems in one side and out come proofs on the other. Programs are mathematical objects. And programming is a subset of mathematics. I like to think of it as an applied mathematics.

It just so happens that practitioners of this language don't require knowledge of the other side of the portal in order to write their proofs. They just write their proofs without any theorems, or at best, a large suite of examples.

To me writing proofs is programming.

[0] http://leanprover.github.io/

Re:How to Read Mathematics by internetman55 on Wednesday December 13, 2017 @08:05AM (#15913950)
This is true. The CS folks are my university tended to be quite strict about writing out quantifiers for everything, while a very accomplished math researcher in our department told our class to "please write in English" instead of using those symbols, because he wouldn't be able to read them.

I asked a friend why he thought this was, and he suspected that the CS department's focus on formal languages and automatic theorem proving is what lead to their use of logical symbols.

Re:How to Read Mathematics by opportune on Wednesday December 13, 2017 @08:52AM (#15914169)
I was this guy to certain professors: at the end of the day it's less about formality and more about someone's ability to understand you at a high level and assess you. To me, I was trying to convey my ideas as precisely as possible. To my professor, I was being so verbose that it would have taken him at least an hour to thoroughly assess the rigor with which I had approach my proof, which simply doesn't scale to all students.

Your friend in math is definitions. IME clever definitions minimize the sheer amount of rigor you need to get from point A to point B through their abstractions. The more "natural" or easily understandable a definition is, the easier it is to use that definition as a ground truth in your theorems.

For example, I have an unpublished proof of a graph/game-theory conjecture. Proving the theorem's correctness is extremely convoluted if you rely on atomic definitions of graphs, valid actions, etc. However, as you define new relationships precisely, it becomes much easier. The more abstractly you approach the problem, the simpler the problem becomes, given the correct abstractions.

Re:How to Read Mathematics by lostcolony on Wednesday December 13, 2017 @08:44AM (#15914119)
More computers understand only what they're told. You -have- to be exact.

Humans can infer. If it doesn't make sense, they realize something is wrong and attempt to make sense of it.

As to why the mathematician preferred 'English', I think it's because quantifiers aren't universal. Mathematical notation itself isn't universal. That is, while the student may be internally consistent and exact in their qualifiers, they are not universally consistent between students, nor with the professor's expectation. The professor wanted to immediately grok what the student was trying to do, not have to approach every single turned in assignment as though it was an unfamiliar mathematical paper, using its own notation, that he had to interpret (where some symbols may share a standard meaning across papers, others won't)

Re:How to Read Mathematics by catnaroek on Wednesday December 13, 2017 @10:04AM (#15914629)
I am very much in the math camp, not the computer science camp, but I enjoy annoying mathematicians by explicitly using quantifiers every now and then. Other ways to annoy mathematicians are bringing up pathological examples and remarking that what they have just said doesn't hold in trivial degenerate cases (e.g., the empty set).
Re:How to Read Mathematics by protonfish on Wednesday December 13, 2017 @08:49AM (#15914150)
But humans can't read it, nor can computers. Maybe it's time to ask if we can do better than traditional formal mathematical notation.
Re:How to Read Mathematics by bjl on Wednesday December 13, 2017 @09:21AM (#15914335)
Plenty of humans can read formal mathematical notation just fine.
Re:How to Read Mathematics by andrepd on Wednesday December 13, 2017 @09:29AM (#15914390)
What do you mean by "humans can't read it".
Re:How to Read Mathematics by protonfish on Wednesday December 13, 2017 @10:39AM (#15914882)
What I mean is that mathematical notation was never developed with the intention of being easily understood. Nobody writes out a formula and then spends time making it more readable. In programming they do - it's called refactoring. How mathematicians typically polish an already correct formula is called "simplification." This usually leads to their collection of symbols being even more inscrutable. But the more mathematical proofs, formulae, and other statements are unintelligible, the more they make you appear really smart, so the natural tendency is to obfuscate mathematical statements as much as possible. And because this notation cannot be executed by a machine, there is no way to easily prove that it isn't complete gibberish.
Re:How to Read Mathematics by Koshkin on Wednesday December 13, 2017 @11:26AM (#15915221)
In the actual practice of learning and using mathematics, mathematical notation is often much, much more readable (and potentially much less ambiguous) than any text in a natural language that would attempt to convey the same meaning as a mathematical formula.

What must be noted though is that historically the language of mathematical formulas, unlike more "human-readable" text, has been designed to serve several distinct purposes, and conveying the meaning was originally not the most important one; rather, the language of formulas serves the purpose similar to that of programming languages of today, which is to let one to efficiently and, to a large extent, mechanically perform - and thus radically simplify - 1) calculations; 2) logical reasoning; 3) transformations that lead to discovery of new facts.

Re:How to Read Mathematics by gizmo686 on Wednesday December 13, 2017 @11:24AM (#15915197)
"To the absolute number multiplied by four times the [coefficient of the] square, add the square of the [coefficient of the] middle term; the square root of the same, less the [coefficient of the] middle term, being divided by twice the [coefficient of the] square is the value." -Brahmagupta, 628AD

I would say we have come a long way.

Mathamaticians absolutly do spend effort on making their work readable. However, this readability is general not within the equations themselves, but rather in the prose around the equations and in how the proof is presented. Of course, skill levels vary in this, and most mathematicians only ever write for other mathematicians, so that is the audience they have practice with (and, if you read a math paper, likely the intended audience).

Also, generally the "equation" is not what mathamaticians are even trying to explain because it is vastly simpler then what they actually worked on, which is the proof.

For example, suppose quadratic equations were actually really difficult, and a mathamtician finally figured out how to solve them. She would probably say something along the lines of:

"A quadratic equation has solutions x=(-b +- sqrt(b^2 - 4ac))/2a.

[Entire paper talking about how to complete the square]"

The entire point of the equation is to be simple to write down and use. It is not intended to be understood.

Sometimes they say an equation without explanation. That is either bad writing, or knowing the audience. Ideally, every equation would come with either an explanation or reference; but if I am writing a research paper, I am probably not going to cite every fact that can be found in an undergrad calculus textbook.