Open Source Math 352
An anonymous reader writes "The American Mathematical society has an opinion piece about open source software vs propietary software used in mathematics. From the article : "Increasingly, proprietary software and the algorithms used are an essential part of mathematical proofs. To quote J. Neubüser, 'with this situation two of the most basic rules of conduct in mathematics are violated: In mathematics information is passed on free of charge and everything is laid open for checking.'""
Re:Not Proven (Score:5, Informative)
Re:Python is part of the answer (Score:5, Informative)
Re:speaking of proprietary (Score:4, Informative)
PDF is neither closed nor uneditable. Adobe publishes the complete PDF format for anyone to use free of charge. It may not be FSF Free (since Adobe requires that implementers adhere to certain rules that violate the principle of Free), but it's definitely not closed. Also, KWord will import it for further editing, text and images, so it's not uneditable (even if it's not ideal).
I agree with your main point, but let's cut PDF some slack.
Re:Should journals reject such proofs? (Score:1, Informative)
Research is already exempt [wikipedia.org] from patent infringement. The "OMG, yuo cant do research because of teh patents!!!!" stuff you read here is pure fearmongering.
Re:speaking of proprietary (Score:3, Informative)
I think (hope) you're joking, but several people who responded seem to be taking this at face value. It's wrong in several ways. PDF is an open format, and if you look at the file info, you see that this particular PDF was generated with Ghostscript. And it's quite simple to edit PDFs. Not as easy as, say HTML, but much easier than if it were, say, a TIFF file. I personally use Adobe Acrobat, but a great many free and commercial apps can read, write, and manipulate PDF files. That's why the format was created, for use in DTP, not a locked document format as some business people seem to imagine.
Re:But the proof steps are known, right? (Score:3, Informative)
Re:Python is part of the answer (Score:5, Informative)
It's a GPL Computer Algebra System and it's in active development. I use it all the time.
Coq is another interesting tool (Score:4, Informative)
This is a tool that can help mathematician prove their theorems.
It was notably being used in the proof of the four color theorem [wikipedia.org], as mentioned on
Re:PDF rant. (Score:3, Informative)
Then get a better PDF reader. Even on a very slow computer, xpdf or ghostview have subsecond load times. If you use mozilla related browsers, then plugger will let you "embed" decent PDF readers. In fact if you install mozplugger under Ubuntu, it uses evince by default. If you don't use mozilla, then set it up to use $viewer as an external helper application.
My guess is that your bias against PDF comes from the awful Adobe viewer.
Re:Python is part of the answer (Score:3, Informative)
Unless you were using an experimental compiler, that usually means a bug in the code, not a bug in the compiler. Run the code with valgrind, you'll probably find out-of-bound addressing, or uninitialized reads (the signs of the problem being in the code, not the compiler)... Or if you use threads, it can also be in your locks...
The reason for that is that such code bugs often result in different code execution at different compiler optimization settings.
Norman Megill's Meta-Math for proof verification (Score:4, Informative)
Re:Python is part of the answer (Score:3, Informative)
Re:look at who's speaking... (Score:3, Informative)
By the way, the article is not about formal automated proofs. It is about what is now standard procedure in mathematical research, namely proofs that look like this:
[Formal mathematical argument]
It's incredibly common right now when reading published mathematical papers to see random citations to using closed source software to do key steps of calculations. Usually even the code used to get the closed source program to yield the result isn't given.
The way many mathematicians read proofs is that they often basically skim the argument to get a general idea of what it is about. Then they decide they want to prove something similar or related, and they "dive" into the most refined details of some key part of the argument. When a part of the argument is "... using Mathematica we deduce
-- William Stein
Re:Why I don't trust Python (Score:4, Informative)
I'm too lazy to see if that's the IEEE 754 result or not (but I suspect it is). But three things in Python's defense:
Sage (Score:3, Informative)
* It uses Python as its programming language so that you can use any existing Python modules with your Sage programs.
* Sage also includes Cython ( http://www.cython.org/ [cython.org] ) which is based on Pyrex and allows one to easily compile Python code down to C for speed.
* Sage's notebook interface with also interface with pretty much every existing computer algebra system, open-source or not.
* Sage includes Maxima, GAP, Scipy, Numpy, and many other open source math packages.
* A very active developer community. If there is something that you need Sage to do, chances are that there will be a number of developers willing to help you out.
For some screenshots, see http://www.sagemath.org/screen_shots/ [sagemath.org] .
One of the things that Sage needs most now is more users. So, if you have an interest in open source math software, definitely check out Sage.
Re:Why I don't trust Python (Score:5, Informative)
I recommend reading What Every Computer Scientist Should Know About Floating-Point Arithmetic [sun.com].
seriously, wtf? (Score:5, Informative)
1. The only reason you would need a "PDF warning" is that you use an operating system with poor support for the format (i.e. Windows). Switching to a real OS, among other benefits, will make reading math papers (which are almost always in PDF format) a pleasure.
2. PDF is an open standard [adobe.com], which has been implemented by many different parties: Adobe and Apple have closed-source implementations; freedesktop.org's poppler and cairo libraries are Free software.
3. The fontface chosen by AMS is orthogonal to the content of the paper - you can easily copy-paste the text and use Computer Modern, Dejavu, Liberation or any other open-source font of your choice. Why would a proprietary font embedded in a PDF file bother you any more than the proprietary fontface of a book?
4. First of all, PDF is editable [petricek.net]. And second, why would you want to edit this particular document? Remember, it's copyrighted by AMS - if you can't prove fair use, you do not have the right to distribute a modified version.
The Wolfram Functions site (Score:2, Informative)
For example, what is Log[a b]? If you look in almost any math book, you'll find Log[a b] = Log[a] + Log[b]. That works fine most of the time, but tends to fail in devastating ways when combined with other functions. The open source programs tend to follow this "good enough" approach.
Log[a*b] == Log[a] + Log[b] + 2*I*Pi*Floor[(Pi-Arg[a]-Arg[b])/(2*Pi)]
is the very careful way to handle the log function.
http://functions.wolfram.com/ElementaryFunctions/Log/16/04/0005/ [wolfram.com]
Re:Python is part of the answer (Score:4, Informative)
Sage has a very good solution to this: Cython [cython.org]. It's a very easy language, almost identitical to Python, which can be used to bind C to Python (for instance, we use GMP and GSL extensively through Cython) as well as compile Python-like code to C, which can be accessed by Python & vice verse. It's very intuitive, and very fast.
Re:Ruby could be the answer as well (Score:2, Informative)
Also, I want to avoid a language discussion, but a lot of languages have some form of iterators, even if the syntax varies slightly. Even Java kind of got them now.
In Python:
for key, value in mydict.iterkeys():
print '%s: %s' % (key, value)
with file('somefile.txt', 'r') as f:
for line in f:
print line
Re:Math is "Free", MY LILY-WHITE ASS. (Score:5, Informative)
Prominent mathematicians have been complaining [ams.org] for [berkeley.edu] years [ams.org] (more links here [umd.edu]) about overpriced journals, and entire editorial boards of some journals have resigned in protest (see a list of mass resignations and similar changes here [ucsb.edu]). There are now plenty of entirely free journals in combinatorics [combinatorics.org], topology [www.emis.de], and other fields, and pretty much everything that gets published these days is either available on the author's website or on the arXiv [arxiv.org].
So modern research tends to be free, but what about all the books you need to read before you understand this research? Sure, a copy of Rudin may be expensive and there's not much we can do about that, but maybe you can learn from the free analysis course notes at MIT's OCW [mit.edu] site. You complain that EGA is out of print, but basically everything Grothendieck wrote is available for free [jussieu.fr], and you can even get them along with tons of other old French publications through NUMDAM [numdam.org]. (There's even a project to transcribe SGA [leidenuniv.nl] into LaTeX.) Lots of other books are free to download legally [gatech.edu] (and this is by no means a complete list), even though many are commercially published as well.
Finally, you can complain all you want about university tuition, but I really doubt that free tuition is going to open up mathematics to the masses. Ultimately the very top students who can't afford it are getting scholarships and grants to cover their education (and I do know some people who got free rides at Princeton because they couldn't afford it -- that school is definitely more generous than most), and since most other people couldn't get into Princeton anyway the tuition is never even an issue for them. The best way to make mathematics more accessible is to give everyone access to free textbooks and current research, and the "marxist university professors" you deride have been gradually moving in that direction for years now.
By the way, what do you think has been done to damage the Princeton math department's reputation? Whatever you think Shapiro and Tilghman have done to the university, nobody in their right mind would deny that it's one of the top few in the world and I doubt most people would openly proclaim any one department to be the best anyway.
Re:Ruby could be the answer as well (Score:4, Informative)
Actually, dict.iterkeys() returns an iterator of that dict's keys alone. You wanted:
or even just:
Princeton Libraries are NOT FREE. (Score:1, Informative)
The books in the Princeton Library are free, thanks to the generousity of far-seeing individuals who realised that their money was better spent on a library than a new yacht.
One other thing: The libraries at Princeton are most decidedly NOT free:
http://library.princeton.edu/about/access-firestone.php [princeton.edu]
http://library.princeton.edu/about/access-branch.php [princeton.edu]
To gain admittance, you need to pony up $33,000 in tuition and $11,000 in room and board.
Each year.
There's a great book on this topic, (Score:3, Informative)
Re:Why I don't trust Python (Score:3, Informative)
The IEEE 754 standard is very well designed and ensures floating-point arithmetic to be accurate, efficient, and compatible across platforms.
But it does mean that when there is a precise answer and it is calculatable (I think the former demands the latter), that I do minimally want Python to store it fully in memory and to not print out questionable and/or incorrect answers.
So you'd be happy if Python generates an exact answer when you ask it to compute 1 + 1e-100000 and it allocates several kilobytes of memory to represent the result? Would you still be happy with this behavior if you are doing a numerical computation involving a million numbers? Exact rational arithmetic is, in general, much slower than floating-point arithmetic, and the cost grows the more operations you perform.
Re:Python is part of the answer (Score:3, Informative)