by cabalamat · 5y ago · 0 comments
One main cause for this belief is that in a programming there is one true noation (or rather, a separate one for each language) that is unambiguous and clearly defined.
I dislike maths notation as I find it lacks rigour.
I was filled with crushing disappointment when I learned mathematical notation is "shorthand" and there isn't a formal grammar. Same goes for learning writers take "shortcuts" with the expectation the reader will "fill in the gaps". Ostensibly this is so the writer can do "less writing" and the reader can do "less reading".
There's so much "pure" and "universal" about math, but the humans who write about it are too lazy to write about it in a rigorous manner.
I can't write software w/ the expectation the computer "just knows" or that it will "fill in the gaps". Sure-- I can call libraries, write in a higher-level language to let the compiler make machine language for me, etc. I can inspect and understand the underlying implementations if I want to, though. Nothing relies on the machine "just knowing".
It's feels like the same goddamn laziness that plagues every other human endeavor outside of programming. People can't be bothered to be exact about things because being exact is hard and people avoid hard work.
"We'll have a face-to-face to discuss this there's too much here to put in an email."
Math notation is the way it is because it's what mathematicians have found useful for the purpose of doing and communicating math. If you are upset and disappointed that that's how it is then there's not a lot we can do about it. If there was a better way of doing it, people would be jumping on it. If a different way of doing it would let you achieve more, people would be doing it.
It's not laziness, and I think you very much have got the wrong idea of how it works, why it works, and why it is as it is. Your anger comes across very clearly, and I'm saddened that your experience has left you feeling that way.
Maths is very much about communicating what the results are and why they are true, then giving enough guidance to let someone else work through the details should they choose. Simply giving someone absolutely all the details is not really communicating why something is true.
I'm not good at this, but let me try an analogy. A computer doesn't have to understand why a program gives the result it does, it just has to have the exact algorithm to execute. On the other hand, if I want you to understand why when n is an integer greater than 1, { n divides (n-1)!+1 } if and only if { n is prime } then I can sketch the idea and let you work through it. Giving you all and every step of a proof using Peano axioms isn't going to help you understand.
Similarly, I can express in one of the computer proof assistants the proof that when p is an odd prime, { x^2=-1 has a solution mod p } if and only if { p = 4k+1 for some k }, but that doesn't give a sense of why it's true. But I can sketch a reason why it works, and you can then work out the details, and in that way I'm letting you develop a sense of why it works that way.
Math isn't computing, and complaining that the notation isn't like a computer program is expressing your disappointment (which I'm not trying to minimise, and is probably very real) but is missing the point.
Math isn't computing, and "Doing Math" is not "Writing Programs".
I often wish people were more like computers. It probably wouldn't make the world better but it would make it more comprehensible.
It might also help to think of "scope" in the computing sense. Often you have a paragraph in a math paper using symbols one way, then somewhere else the same symbols crop up with a different meaning. But the scope has changed, and when you practise, you can recognise the change of scope.
We reuse variable names in different scopes, and when something is introduced exactly here, only here, and only persists for a short time, sometimes it's not worth giving it a long, descriptive name. That's also similar to what happens in math. If I have a loop counting from 1 to 10, sometimes it's not worth doing more than:
for x in [1..10] {
/* five lines of code */
}
If you want to know what "x" means then it's right there, and giving it a long descriptive name might very well hamper reading the code rather than making it clearer. That's a judgement call, but it brings the same issues to mind.I hope that helps. You may still not like math, or the notation, but maybe if gives you a handle on what's going on.
PS: There are plenty of mathematicians who complain about some traditional notations too, but not generally the big stuff.
That's only really a good description for the most well trod areas, where people habe bothered to iterate. I think a more realistic statement would be:
"Math notation is the way it is because some mathematician found it sufficient to do and communicate math, and others found it tolerable enough to not bother to change."
Personally, though, my problem has always been where publications use letters and symbols to mean things that are just "known" in some subfield that isn't directly referenced. It's not a problem for direct back and forth communication during development, true, but it dramatically increases the burden on someone who wants to jump in.
That all said, it would still be quite nice if it was somehow more accessable. A lot of papers containing material that's probably actually quite standardizable remain opaque to me, and the notation invariably falls by the wayside if there's a code or language description available.
Many times, math notatons have been thought to be minimal, or most clear possibly, only to fall by the wayside
Whereas this notation serves domain specialists well, it still leaves people like me somewhat confused
A cheat sheet - even to the practical norms - would go a long way
Math is difficult, and a lot of what we have is the result of the sharpest minds doing their best to eke out whatever better understanding of something they can manage. Getting any sort of explanation for something is hard enough, but to get a clear theory with good notation takes an order of magnitude more effort and insight. This can take decades more of collective work.
Imagine complaining about cartographers from a thousand years ago having sketchy maps in "unexplored" regions. Maps are supposed to be precise, you say, there's actual earth there that the map represents! But it takes an extraordinary amount of effort to actually send people to these places to map it out -- it's hardly laziness. Mathematics can be the same way, where areas that are seemingly unrigorous are the sketches of what some explorers have seen (and they check that their accounts line up), then others hopefully come along and map it all in detail.
When reading papers, there's a fine balance of how much detail I want to see. For unfamiliar arguments and notation, it's great to have it explained right there, but I've found having too much detail frustrating sometimes, since after slogging through a page of it you realize "oh, this is the standard argument for such-and-such, I wish they had just said so." You tend to figure that something is being explained because there is some difference that's being pointed out.
I've been doing some formalization in Lean/mathlib, and it is truly an enormous amount of work to make things fully rigorous, even making it so that all notation has a formal grammar. It relies on Lean to fill in unstated details, and figuring out ways to get it to do that properly and efficiently, since otherwise the notation gets completely unworkable.
Are you sure it's laziness? Maybe it's a result of there not actually being any universal notation (not even within subfields) or the exactness you refer to really isn't necessary. This doesn't mean that unclear exposition is a good thing. Mathematical writing (as with all writing) should strive towards clarity. But clarity doesn't require some sort of minutely perfectly consistently notation which would be required by a computer because humans are better than computers at handling exactly those kinds of situations.
> People can't be bothered to be exact about things because being exact is hard and people avoid hard work.
I think you have it wrong. People can't be bothered to be as exact because they don't need to. People can understand things even if they are inexact. So can mathematicians. Honestly this is a feature. If computers would just intuitively understand what I tell them to do like a human assistant would, that would be a step up not a step down in human computer interfaces.
I made this point in another comment, but I think it bears repeating and elaboration: Consistency isn't required (at least outside any single paper), but explicitness would be a tremendous boon.
Software incorporates outside context all the time, but it pretty much always does it explicitly (though the explicitness may be transitive, ie. dependencies of dependencies). Math papers often assume context that is not explicitly noted in the citations, nor those papers' citations, etc.
Instead, some of the context might only be found in other papers that cite the same papers you are tracking down. You sometimes need to follow citations both backward and forward from every link in the chain. And unlike following citations backward (ie. the ones each author considered most relevant), the forward links aren't curated and many (perhaps most) will be blind alleys (there also may be cycles in the citation graph, but these are relatively rare). But somehow you have to collect knowledge (or at least passing familiarity) with an encyclopedic corpus in order to at least recognize and place the context left implicit in any one paper in order to understand it.
It's maddening.
That is just an example of bad exposition in my opinion. It's also not technically "unclear" in any notational sense so it's a bit of an aside from this argument. But I agree with you 100% that it is bad bad bad. This is a perfect example of why arguments like "does this proof make coq happy" totally misses the point.
Shall we be satisfied with the same low standards in a technical field, because it is how it is?
Hands-on users of math notation are complaining that it sucks. I'm not sure why a dismissive "works for me" is so often the default response.
It is really easy to complain. People also complain about every popular programming language, but it is really hard to make something that is actually better. It is easy to make something that you yourself think is better, but it is hard to make something that is better in practice.
Are you sure this is because the notation is unclear/imprecise or because you just don't like it? I like certain programming languages and certain programming styles and really don't like others. But in none of the cases (those I like nor those I don't) are they not 100% "clear". The code compiles and executes after all so there really isn't much of an argument that somehow it's underspecified.
The same thing exists in mathematics. There are certain fields of math whose traditional notation/style/approach/etc. are totally incomprehensible to me. There are also many mathematicians who would say the same about my preferences as well.
So my point is that all people are _different_. Some people like certain things and some people like others. How can you hope to please everyone simultaneously? In my experience, there is no field at all that is as precise as mathematics. Sure "code" is precise, but (imo) professional programmers are nowhere near as precise in any general design or conversation than mathematicians. So I find the attack on supposedly bad mathematical notation a bit odd.
Mathematicians constantly try to come up with better methods of explaining things. They put more effort into it than basically any field in my experience. The problems are really that we as humans don't all think the same and that mathematics is just plain hard. We've improved mathematical communication immensely throughout history and we will continue to do so. But we'll never reach some sort of perfect communication style because no single such style could ever exist.
Yes, we are too lazy to be 100% formal and many times we are too lazy to be mostly formal. This is mostly because we target our writing to other mathematicians who have no need to see every small step and including every step makes the proofs long. On the other hand, I do feel that generally speaking mathematicians should show more of their work and skip fewer steps.
I find your statement "People can't be bothered to be exact about things because being exact is hard and people avoid hard work." to be very true. Being precise is difficult.
I see this a lot from programmers, but in essence, you seem to be complaining that maths notation isn't what you want it to be, but is instead something else that mathematicians (and physicists and engineers) find useful.
CS as a field just seems to have a higher base standard for explaining their notation and ideas. It helps in cross-collaboration by making it significantly easier to self study.
Related to this, I'd say math books have a significantly worse pedagogical culture in regards to both notation and defining pre-requisites. It's very common for a math book to say "we expect readers to have taken a discrete math course" and not defining notation despite knowing the topics covered in discrete math vary greatly from school to school and may not overlap. Math professors frequently have to paper over these problems at Uni as they realize the class does not understand some notation. CS are just better about this, and I can only explain it as a part of the culture and tradition.
CS professors writes just as incomprehensible math as everyone else, as you can see many here brings up examples of CS professors writing incomprehensible math in their papers.
Math notations are two-dimensional and don't suffer very badly from structural ambiguities, so that actually fixes almost nothing.
The problem in unfamiliar math notations is rarely the chunking of which clump is a child of which clump.
E.g say that some paper uses, say, angle brackets, with some deep meaning that you can learn about if you recurse three levels down in the list of references.
I'm not confused that in <Ap>, the Ap thing is a child of the angle brackets; and calling it (frob (A p)) doesn't help much in this regard.
However, at least you can search literature for the word frob more easily than for angle brackets.
Doesn't help that then notation is often poorly defined, and sometimes a weird mix of notations is presented.
Overall the situation is also not pleasant for math people changing topics, or physicists reading papers from physical chemistry professors who 'grew up' in mathematical chemistry.
Take sequential Monte Carlo / sequential importance sampling for instance. This powerpoint on it is clownishly bad: http://people.eecs.berkeley.edu/~jordan/courses/260-spring10...
This is supposed to be an algorithm implemented in code. It's essentially illegible without code examples, which it doesn't feature. Code examples tell you what the cipher signifies; at no point does the cipher provide any value to the learner. Fanciful bayes-theoretical statements and so on basically reduce to "iteratively build enlarging valid states." Given the fact that this simple statement is missing, I question if the professor has some sort of communication disorder or if they're just a troll. Similar to pomo philosophers, it's probably a mix.
Try to understand programming based on a programming lecture powerpoint, it is usually impossible.
Edit: Also you can't write code for what he is talking about in that lecture. Code cannot deal with infinities or continuous values. You'd get approximations which isn't the same thing, then you'd need to prove that those approximations are good enough which would have to be done without code anyway.
Haskell is unreadable to one who has not trained in it or similar languages ... why don't they make the syntax more readable? Or C++ with its modern templating ... why don't they change the syntax to make it more readable?
You might be tired of wandering into someone else's area of expertise and telling them:
You must change! You must make it more accessible!
Believe me, mathematicians are tired of non-mathematicians wandering up and saying:
Look! Computer programs are easy and intuitive and everyone can understand them, even without training! Make math like that!
Do you really believe that math notation is deliberately designed to make it hard for people untrained in math to learn how to use it? Do you really believe that no one has tried to make it more accessible?
Do you really believe you know more about why math notation is what it is than mathematicians and trained mathematics educators do?
It looks that way, to many people, even in this thread.
> why don't they change the syntax to make it more readable?
They do, actually. Quite often at that. It's called releasing new version.
> Look! Computer programs are easy and intuitive and everyone can understand them, even without training! Make math like that!
No. Computer code is as far from intuitive as it can be. Nobody says otherwise. So you don't need to do anything to get there, the notation's good on that front (meaning: completely non-intuitive).
That's where the IDEs come in. And debuggers. And other tools. Lots of tools. They really help. You could use them, because the IDEs-for-math already exist. In college I had exactly one semester to familiarize myself with one of them, and it was never mentioned again until graduation.
> Do you really believe that math notation is deliberately designed to make it hard for people untrained in math to learn how to use it?
Why, do you believe it's not possible for it to be that way? See: https://en.wikipedia.org/wiki/Pythagoras#Prohibitions_and_re...
> Do you really believe that no one has tried to make it more accessible?
Why did they fail? (If they didn't - where's the exponential growth of first years' mathematicians in training)
> Do you really believe you know more about why math notation is what it is than mathematicians and trained mathematics educators do?
I'm 100% not interested in why it is like this, it's not my problem, so I really wouldn't know. Would you be interested in how at some point you had to write `class X(object):` and that it later changed to simply `class X:`? Would you go hunt on the mailing list to see who exactly came up with the idea? Or why they thought it would be better that way? Would you be interested in that if you just had to write a 10-lines of Python, to scrape some web site?
Surely you must realize that you're protesting this because it has this reputation, though?
And surely you must realize that it has this reputation for a reason?
When I was a teenager and took my first calculus course, I struggled with summation for three days. When I finally went to my dad he looked at me funny and said "your teacher is an idiot, isn't he? It's a for loop."
I had been writing for loops for seven years at that age. I almost cried. It was like a lightswitch.
The problem was always that nobody had ever actually explained what the symbol meant in any practical way. Every piece of terminology was explained with other terminology, when there was absolutely no reason to do so.
Mathematics has the reputation for impermeability and unwelcomingness for a reason.
It's because you guys are ignoring us saying "we want to learn, please write out a cheat sheet" and saying "yes, but don't you see" instead of just building the easy on-ramp that every other field on earth has built
.
> > You might be tired of wandering into someone else's area of expertise and telling them: > > You must change! You must make it more accessible!
No, we generally just fix the problem. If people are saying "this isn't accessible enough," we just work on it.
I would like for you personally to be aware of Bret Victor's work. He's incredibly potent and clear on these topics.
Programmers work really really hard on learnability and understandability. This is a big deal to us. That's why we can't understand why it's not a big deal to you.
http://worrydream.com/LearnableProgramming/
We have, in fact, mostly given up on waiting for you, and started to make our own tooling to understand your work, using obvious principles like live editors and witnessable effects.
http://worrydream.com/MediaForThinkingTheUnthinkable/
Edit: those are the talk notes. Wrong link, sorry. I should have used this instead: https://vimeo.com/67076984
This is a big part of how we criticize ourselves, is for failing to provide the tooling to allow new modes of approach.
https://www.youtube.com/watch?v=PUv66718DII
We frequently think of our programming languages as new modes for thought. This line of discussion is particularly popular in the Lisp, Haskell, and Forth communities, though it crops up at some level everywhere.
We frequently think that the more opaque the language, the less useful it is in this way.
That's why programming languages, which are arguably 70 years old as a field, have so much more powerful tools for teaching and explanation than math, which is literally older than spoken language
You guys don't even have documentation extraction going yet. We have documentation where you have a little code box and you can type things and try it. You can screw with it. You can see what happens.
This is why we care about things like Active Reading and explorable explanations.
http://worrydream.com/ExplorableExplanations/
This is why we care about things like live reactive documents. It really changes your ability to intuitively understand things.
Math hasn't grokked non-symbolic communication since Archimedes, that's why it took nearly two thousand years to catch up with him.
We are asking you to come into step with the didactic tools of the modern world. It's not the 1850s anymore. We have better stuff than blackboards.
Are these flat symbolic equations cutting it for you guys to communicate with one another? Sure.
Are they cutting it for you guys to onboard new talent, or make your wealth available to the outside? No. (Do you realize that there is an outside to you, which isn't true of most technical fields anymore?)
These problems are not unique to mathematics, of course. Formal logic is similar. Within my own field of programming, the AI field is similar, as is control theory, as tends to be database work. They don't want to open the doors. You have to spend six years earning it.
But the hard truth is there are more difficult fields than mathematics that have managed to surmount these problems, such as physics (which no, is not applied mathematics,) and I think it might be time to stop protesting and start asking yourself "am I failing the next generation of mathematicians?"
An example of who I believe to be genuinely good math communicators in the modern era are Three Blue One Brown.
.
> > Believe me, mathematicians are tired of non-mathematicians wandering up and saying: > > Look! Computer programs are easy and intuitive and everyone can understand them, even without training! Make math like that!
Then fix the problem.
It IS fixable.
.
> Do you really believe that math notation is deliberately designed to make it hard for people untrained in math to learn how to use it?
Given the way you guys push back on being asked to write simple reference material?
No, but I understand why they do.
.
> Do you really believe that no one has tried to make it more accessible?
No. Instead, I believe that nobody has succeeded.
Try to calm down a bit, won't you? People tried to explain Berkeley sockets in a simple way for 12 years before Beej showed up and succeeded. The Little Schemer was 16 years after Lisp.
Explaining is one of the very hardest things that exists.
We're not saying you didn't try! The battlefield is littered with the corpses of attempts to get past Flatland.
We're just saying "you haven't succeeded yet and this is important. Keep trying."
.
> Do you really believe you know more about why math notation is what it is than mathematicians and trained mathematics educators do?
No. The literal ask is for you to repair that. Crimeny.
Leave math notation whatever it is
Just do a better job of documenting it
This is such a disingenuous take. How many of the source code files you write are 100% self contained and well defined? I'd bet not a single one of them are. You reference libraries, you depend on specific compiler/runtime/OS versions, you reference other files etc. If you take a look at any of these scientific papers you call "badly defined", did you really go through all of the referenced papers and look if they defined the things you didn't get? If not then you can't be sure that the paper uses undefined notation. If you argue that it is too much work to go through that many references, well that is what you would have to do to understand one of your program files.
When you get down to the microcode of the CPU that implements the ISA you might have an issue if it's ill-specified. You might be talking about an ISA like RISC-V, though, specified at a level sufficient to go down to the gates. You might be talking about an ISA like 6502 where the gate-level implementations have been reverse-engineered.
You can take programming all the way down boolean logic if you need to and the tools are readily available. They don't rely on you "just knowing" something.
I doubt you actually can do that and understand it all. A computer can do it, but I doubt you the human can do that and get a perfect picture of any non trivial program without making errors. Human math is a human language first and foremost, its grammar is human language which is used to define things and symbols. This lets us write things that humans can actually read and understand the entirety of, unlike a million lines of code or cpu instructions.
Show me a program written by 10 programmers over 10 years and I doubt anyone really understands all of it. But we have mathematical fields that hundreds of mathematicians have written over centuries, and people still are able to understand it all perfectly. It is true that a computer can easily read a computer program, but since we are arguing about teaching humans you would need to show evidence that humans can actually read and understand complex code well.
Someone hasn't read the C spec, with all its specified as undefined behavior.
Programs working on real systems is very different from those systems being formally specified. I suspect that if you only had access to the pile of documentation and no real computer system - if you were an alien trying to reconstruct it, for example - you'd hit serious problems.
All behavior in an implementation can be teased-out if given sufficient time.
> if you were an alien trying to reconstruct it, for example - you'd hit serious problems.
I can't speak to alien minds. Considering the feats of reverse-engineering I've seen in the IT world (software security, semiconductor reverse-engineering) or cryptography (the breaking the Japanese Purple cipher in WWII, for example) I think it's safe to say humans are really, really good at reverse-engineering other human-created systems from close-to-nothing. Starting with documentation would be a step-up.
If programmers would write code like that (even fortran programmers use 3 characters), noone would be able to understand the code...
It doesn't carry over to programming where explicit variables are better suited. In mathematics one is dealing with relatively few concepts compared to a typical program so assigning a single letter (applied consistently) to each is not a problem. This is not so in programming, except for a few cases like using i and j for loop variables (back when programs had explicit loops).
Mathematical writing is similar. At some point you have to assume an audience, which may be more or less mathematically literate. If you're writing for graduate students or experts in a domain, you don't include a tutorial and description of literally every term, you can assume they're familiar with the domain jargon (just like C programmers can assume that others who read their program understand pointers and other program elements). Whenever something is being used that is unique to the context, a definition is typically provided, at least if the writer is halfway decent.
If the audience is assumed to be less mathematically literate (like a Calculus course textbook audience), then more terms will be defined (chapter 1 of most Calculus books include a definition of "function"). But a paper on some Calculus topic shouldn't have to define the integral, it should be able to use it because the audience will be expected to understand Calculus.
Take a look at this and tell me it would be easier to understand if all the symbols were words instead of single characters: https://www.grc.nasa.gov/www/k-12/airplane/nseqs.html
1. They explain all abbreviations at the top.
2. There is a lenghty text explaining the formula.
3. It's mathematically pretty easy if you know partial differentation.
Also scientists and engineers write pretty horrible code....
From a more science based background i often think programmers write horrible code as i search in vain for where anything actually happens in a sea of abstractions.
https://docs.oracle.com/javase/tutorial/java/generics/types....
I recall my disappointment when as an artist I started studying different maths for use in animation. I would open a book from a university library and expected to find a page with summary of notation used in the book. Maps have this, I would grumble, why not math books?
I disagree. Math notation has evolved to be as it is because it is useful for the purpose of doing math. If there were some way of doing it better, people would be evolving to be doing so.
In some ways they are ... people are using computer algebra packages more for a lot of the grunt work, and are using proof assistants to verify some things, but there's a lot of math that's still done by sketching why something is true and letting the reader work through it. Math notation isn't about executing algorithms, it's about communicating what the result is, and why it works.
"Doing Math" is not "Writing Programs", so math notation is different.
I don't see why wouldn't it be some kind of local maximum. Maybe there are better ways, but they are sufficiently far away from current notation, that they aren't even thought about.
It's absolutely not used only because "this is how people have been doing it for a long time". It's a very efficient notation to decode.
Yes this is why we all use Hungarian notation and GNU indentation.
And then there is SQL.