Slashdot Mirror


Open Source Math

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.'""

14 of 352 comments (clear)

  1. Python is part of the answer by Ckwop · · Score: 5, Insightful

    I am no a mathematician but surely if you're going to submit a computer aided proof you must submit a full copy of the program. The are all manor of subtle mistakes that can be made in a program that could cause serious problems with a proof.

    Suppose you inspect the source and find it to be faultless, how can you trust the compiler. And if you hand compile the compiler, how can you trust the CPU? Surely it's turtles all the way down.

    In many ways, establishing the correctness of a computer-aided proof is very much like security engineering. You want to verify that the whole software stack is operating correctly before you can trust the result. Having the source-code is a pre-requisite to this exercise.

    Changing to topic slightly, I was particularly heartened to see that the open-source mathematics framework being developed one of the authors of the article involves the use of Python.

    My immediate thought when seeing the title to the article was "Python is the answer." When some problem or algorithm intrigues me the first thing that happens is that I reach for the Python interpreter.

    Python seems to deftly marry precision with looseness. When code is laid out in Python I find it is easier to see what it's trying to do than other languages. It's aesthetic qualities aside, it supports a number of features out of the box which I imagine would be ideal of mathematicians. To list a few, it's treating of lists and tuples as first class objects, support for large integers, complex numbers, it's ability to integrate with C for high-performance work.

    I often think of Python as "basic done right" and it's ideal for mathematicians (or anybody) who don't want to think about programming but the problem at hand.

    Simon

    1. Re:Python is part of the answer by Dunbal · · Score: 3, Insightful

      The are all manor of subtle mistakes that can be made in a program that could cause serious problems with a proof.

      No mistakes. After all, the Ultimate Answer really is 42. My program proves it!

      #define MYANSWER "42"

      int main()
      {
            printf("The result is: %s.", MYANSWER);
      }


      No, you CAN'T have the source code... but look, my program proves it! LOOK AT THE PROGRAM!

      --
      Seven puppies were harmed during the making of this post.
    2. Re:Python is part of the answer by poopdeville · · Score: 4, Insightful

      I am no a mathematician but surely if you're going to submit a computer aided proof you must submit a full copy of the program. The are all manor of subtle mistakes that can be made in a program that could cause serious problems with a proof.

      I am a mathematician. Your referees might ask to inspect the source code. This is akin to a biologist being asked to produce her raw data. But it's pointless anyway. Because...

      In many ways, establishing the correctness of a computer-aided proof is very much like security engineering. You want to verify that the whole software stack is operating correctly before you can trust the result. Having the source-code is a pre-requisite to this exercise.

      The AMS isn't worried about the correctness of these "proofs." They aren't proofs. It is logically possible for one of these programs to return the wrong answer, even if the program is correctly implemented. Ergo, it is not a proof.

      Computing, in mathematics, is a source of fresh problems and a vehicle to explore and gain insight about mathematical structures. The AMS is far more concerned about good exploratory algorithms getting swept up by Wolfram Inc., and Mathworks, and the like, and never being seen by mathematicians again.

      Regarding which language is approriate for mathematics, the answer is whichever clearly expresses the idea you're trying to write. Lexical scoping is familiar to us. I know I prefer it, since it lessens my cognitive load. I prefer dynamically typed languages. I need the ability to construct anonymous functions efficiently. And I would prefer automatic memoization. Development time is always an issue. Most languages don't come with extensive mathematical algorithm libraries. So you'll either have to write them yourself (time consuming; boring, unless you're into that stuff) or find some. I've used Perl, Ruby, Scheme, and C.

      --
      After all, I am strangely colored.
  2. speaking of proprietary by larry+bagina · · Score: 3, Insightful

    The article (which is actually a PDF, thanks for the warning) uses proprietary fonts (LucidaBright). While it was typeset with TeX (open), only the PDF (closed and uneditable) is provided.

    --
    Do you even lift?

    These aren't the 'roids you're looking for.

  3. Should journals reject such proofs? by davidwr · · Score: 3, Insightful

    Algorithms cannot be protected by copyright, only by patents and trade secrets. If the algorithm is a trade secret, it has no place in a mathematical proof because it cannot be shared with the world and verified or refuted by anyone interested in doing so.

    If the algorithm is part of a patented device or piece of software, its use in a mathematical proof is not subject to the patent on the grounds that pure math cannot be patented.

    If journals and academic societies refused to publish proofs based on trade secrets and insisted on a covenant not to enforce the patent against researchers doing purely mathematical research or those who publish the research, the problem would mostly go away. An alternative to the covenant is congressional action or a court ruling that says with absolute clarity that mathematical research is exempt from math-related patents directly related to the research.

    --

    Personally, I'm against all such patents but I'm not holding out hope that Congress or the Courts will agree with me.

    --
    Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
  4. Not Proven by nagora · · Score: 3, Insightful
    If a "proof" is published with some steps or information excluded then it's not a proof, it's just an assertion.

    TWW

    --
    "Encyclopedia" is to "Wikipedia" what "Library" is to "Some people at a bus stop"
  5. PDF rant. by serviscope_minor · · Score: 4, Insightful

    Why does this keep coming up on ./? What is wrong with PDF? It's undeitable, sure, that's kind of the point. However, the spec is accessible, and there are plenty of open readers, e.g. xpdf and ghostscript.

    Really, what is wrong with PDFs and why should they require a warning?

    By the way, all scientific papers are disseminated by PDF.

    --
    SJW n. One who posts facts.
  6. Not necessarily bad in all cases... by Ardeaem · · Score: 4, Insightful
    There are some programs which can aid proofs that are closed source. This doesn't HAVE to mean that steps of the proof are omitted. Take, for example, Mathematica for the Web. It can spit out a result, including all the steps (try a derivative). Or check out a sample Otter proof. Mathematica is closed source, Otter is open source. However, even if both of these were closed source, all the steps would be laid bare for all to see.

    In other cases, like the proof of the four color theorem, it seems like the source code is important to see, but not essential. Pseudocode should suffice. Providing pseudocode is akin to saying things like "Simplifying expression (1) yields..."; we don't have to provide EVERY step, but with pseudocode you have enough to determine whether the algorithm itself will work. Checking the source code beyond that is akin to checking someone's algebra.

    Just because we don't know how the program arrived at the steps it did doesn't mean that we shouldn't use it; we can usually check the steps. After all, the human brain has been a closed-source proof machine for thousands of years, and no one has complained about that :) Just require pseudocode in computer aided proofs, and it should be sufficient.

  7. What about hardware? by LM741N · · Score: 3, Insightful

    I would think that hardware errors would be an even worse problem, like the old Pentium bug, since they are so insidious.

  8. Re:Openness is Fundamental to Mathematics by s20451 · · Score: 3, Insightful

    Well, don't get your panties in a big bunch over this. Humans make mistakes in proofs all the time, many of which are not caught before publication (and many not even for some time afterward).

    Also, although it's not in the field of theorem-proving, the mathematical package I use the most -- MATLAB -- is a million times better than the open source equivalent, Octave. I'm not going to use Octave simply because I can inspect the code, because who does that? An error in a software proof would be pretty obvious if it were checked with another independently written piece of software. With MATLAB, I can write my own alternative algorithm using C if I need to, though with significantly more effort and annoyance.

    Furthermore, mathematicians are smart people who are fully aware of the implications of their assumptions, probably moreso than any other group of people I have encountered. Reading the set of comments accompanying this article, saying what mathematicians should and should not consider a proof, is like watching monkeys trying to use a can opener.

    --
    Toronto-area transit rider? Rate your ride.
  9. Math is "Free", MY LILY-WHITE ASS. by mosel-saar-ruwer · · Score: 5, Insightful
    In mathematics information is passed on free of charge and everything is laid open for checking.'

    I'm not going to disagree with the "laid open" part, but the "free of charge" nonsense is just typical marxist university professor hypocrisy.

    Let's price some math texts:

    Atiyah & MacDonald, Commutative Algebra; $57.54, http://www.amazon.com/dp/0201407515/

    Eisenbud, Commutative Algebra; $41.30, http://www.amazon.com/dp/0387942696/

    Hartshorne, Algebraic Geometry; $59.10, http://www.amazon.com/dp/0387902449/

    Elements de Geometrie Algebrique; out of print, http://www.amazon.com/dp/3540051139/

    Rudin, Real and Complex Analysis; $142.50, http://www.amazon.com/dp/0070542341/

    Rudin, Functional Analysis; $137.16, http://www.amazon.com/dp/0070542368/

    Dym & McKean, Fourier Series and Integrals; $85.00, http://www.amazon.com/dp/0122264517/

    Sugiura, Unitary Representations and Harmonic Analysis, 2nd Edition; Out of Print, http://www.abebooks.com/servlet/SearchResults?an=Sugiura&tn=Representations[Someone wants $495.00 for the first edition.]

    Or try a few titles which might be a little more familiar to Slashdotters:

    Knuth, The Art of Computer Programming, Volumes 1-3 Boxed Set; $145.00, http://www.amazon.com/dp/0201485419/

    Sedgewick, Algorithms in C++, Parts 1-5; $93.00, http://www.amazon.com/dp/020172684X/

    Cormen, Leiserson, Rivest & Stein, Introduction to Algorithms; $61.88, http://www.amazon.com/dp/0262032937/

    Aho, Ullman & Hopcroft, Data Structures and Algorithms; $53.20, http://www.amazon.com/dp/0201000237/

    McLachlan, Discriminant Analysis and Statistical Pattern Recognition; $90.40, http://www.amazon.com/dp/0471691151/

    Haykin, Neural Networks: A Comprehensive Foundation; $120.12, http://www.amazon.com/dp/0132733501/

    Duda, Hart & Stork, Pattern Classification; $117.00, http://www.amazon.com/dp/0471056693/

    Fukunaga, Introduction to Statistical Pattern Recognition; $74.40, http://www.amazon.com/dp/0122698517/

    Bishop, Neural Networks for Pattern Recognition; $82.81, http://www.amazon.com/dp/0198538642/

    Bishop, Pattern Recognition and Machine Learning; $66.54, http://www.amazon.com/dp/0387310738/

    Higgins, Sampling Theory in Fourier and Signal Analysis: Volume I; $171.60, http://www.amazon.com/dp/0198596995/

    Higgins & Sten, Sampling Theory in Fourier and Signal Analysis: Volume II; $264.00, http://www.amazon.com/dp/0198534965/

    Princeton, which has the finest mathematics department in the world [or at least had the finest mathematics department in the world, before Harold Shapiro & Shirley Tilghman decided they wanted to turn the

    1. Re:Math is "Free", MY LILY-WHITE ASS. by William+Stein · · Score: 5, Insightful
      > In mathematics information is passed on free of charge and everything is laid open for checking.'

      > I'm not going to disagree with the "laid open" part, but the "free of charge" nonsense
      > is just typical marxist university professor hypocrisy.

      Taken out of context the quote might not make sense to you. The full quote from Neubuser is:

      You can read Sylow's Theorem and its proof in Huppert's book in the
      library [...] then you can use Sylow's Theorem for the rest of your
      life free of charge, but for many computer algebra systems license
      fees have to be paid regularly [...]. You press buttons and you get
      answers in the same way as you get the bright pictures from your
      television set but you cannot control how they were made in either
      case.

      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. Not applying
      these rules to computer algebra systems that are made for mathematical
      research [...] means moving in a most undesirable direction.
      Most important: Can we expect somebody to believe a result of a
      program that he is not allowed to see? Moreover: Do we really want to
      charge colleagues in Moldova several years of their salary for a
      computer algebra system?


      When Neubuser says that mathematics is "free of charge" he means that
      one can use theorems one reads without having to pay to use those theorems.
      He is of course not at all claiming that publishers do not charge for
      books and papers that contain mathematics. Put simply, if I want to use
      the "FactorN" function in Mathematica, I have to pay for the privilege
      every time I use it. If I want to use the theorem that every integer
      factors uniquely as a product of primes, then I never have to pay, even if
      I am using that theorem in a published proof.

        -- William

  10. Re:I'm not the hypocrite here. by Lodragandraoidh · · Score: 4, Insightful

    The issue is not whether software companies should make their source code open - the real issue is should mathematicians accept proprietary applications as proof of theorums?

    As pointed out in the editorial, software developers make mistakes, and this is true regardless of whether that developer is a proprietary software vendor, or a free/open source software project. There is one key difference however, the validity of any given proof can be determined independently when using free/open source code by the very nature of the product (availability of source code). There is no validation for proprietary software beyond the assurances of the company involved.

    When mathematic theory becomes applied mathematics (such as the creation of buildings, bridges, aircraft, or thermonuclear devices), which proof would you prefer to hang your life upon - Microsoft's guarantee, or independent verification and peer review? This becomes ever more critical as we create more complex systems that can not be easily verified by hand, yet rushed into applied use by the expediency/efficiencies they deem to provide.

    --

    Lodragan Draoidh
    The more you explain it, the more I don't understand it. - Mark Twain
  11. OpenAxiom by andhow · · Score: 3, Insightful

    On the subject of open source math, Axiom is an interesting 30 years-and-running project started (I believe) at IBM research that recently became open source. A new branch of the project started recently: http://www.open-axiom.org/ and has several people actively working on it. It differs perhaps most significantly from Maple and Mathematica in its use of strong static type checking. This allows its library creation language to be compiled into C, which gets compiled and loaded back into the interactive top-level. Altogether, a very neat system and a gigantic resource.