Difference between revisions of "Haskell and mathematics"

From HaskellWiki
Jump to navigation Jump to search
(Haskell for maths)
Line 33: Line 33:
 
==Tutorials and blogs on Haskell for mathematicians==
 
==Tutorials and blogs on Haskell for mathematicians==
   
  +
* [http://sigfpe.blogspot.com/2006/11/why-isnt-listt-monad.html Why isn't ListT list a monad?]
 
* [http://sigfpe.blogspot.com/2006/11/yoneda-lemma.html Reverse Engineering Machines with the Yoneda Lemma]
 
* [http://sigfpe.blogspot.com/2006/11/yoneda-lemma.html Reverse Engineering Machines with the Yoneda Lemma]
 
* [http://sigfpe.blogspot.com/2006/11/variable-substitution-gives.html Variable substitution gives a...]
 
* [http://sigfpe.blogspot.com/2006/11/variable-substitution-gives.html Variable substitution gives a...]

Revision as of 06:34, 14 December 2006

Haskell is growing in popularity among mathematicians. As one blogger put it:

"after my involving myself in the subject, one thing that stands out is the relatively low distance between thought expressed in my ordinary day-to-day mathematical discourse, and thought expressed in Haskell code."

and

"How can Haskell not be the programming language that all mathematicians should learn?"

To paraphrase Hilbert ("Physics is too complicated for Physicists"), the relative obscurity of Haskell (a language with a strict notion of functions, higher-order-functions, and types) amongst mathematicians may be that:

"Haskell is too mathematical for many mathematicians."

This page collects resources for using Haskell to do mathematics.

Textbooks

Cover Kees Doets and Jan van Eijck
The Haskell Road to Logic, Maths and Programming
King's College Publications, London, 2004. ISBN 0-9543006-9-6 (14.00 pounds, $25.00).

Book description:
The purpose of this book is to teach logic and mathematical reasoning in practice, and to connect logical reasoning with computer programming. Throughout the text, abstract concepts are linked to concrete representations in Haskell. Everything one has to know about programming in Haskell to understand the examples in the book is explained as we go along, but we do not cover every aspect of the language. Haskell is a marvelous demonstration tool for logic and maths because its functional character allows implementations to remain very close to the concepts that get implemented, while the laziness permits smooth handling of infinite data structures. We do not assume that our readers have previous experience with either programming or construction of formal proofs. We do assume previous acquaintance with mathematical notation, at the level of secondary school mathematics. Wherever necessary, we will recall relevant facts. Everything one needs to know about mathematical reasoning or programming is explained as we go along. We do assume that our readers are able to retrieve software from the Internet and install it, and that they know how to use an editor for constructing program texts.

Cover Jrgen Bokowski
Computational Oriented Matroids,

Cambridge University Press, November 2005, 450 pages. ISBN 0521849306

Book description:
Oriented matroids play the role of matrices in discrete geometry, when metrical properties, such as angles or distances, are neither required nor available. Thus they are of great use in such areas as graph theory, combinatorial optimization and convex geometry. The combination of concrete applications and computation, the profusion of illustrations, and the large number of examples and exercises will make this an ideal introductory text on the subject. It will also be valuable for self-study for mathematicians and computer scientists working in discrete and computational geometry.

Libraries

A growing collection of Haskell math libraries.

Theorem proving

There has been a long tradition of mechanised reasoning in and about Haskell.

Tutorials and blogs on Haskell for mathematicians