Lably
Skip to content

Polish notation

Mathematics notation with operators preceding operands

  • 6 min read
  • 5 chapters

Related on Lably

Through Operation (mathematics), Logic and Interpreter (computing)

Sometimes the term Polish notation refers collectively to normal Polish notation and reverse Polish notation (prefix notation and postfix notation, the two alternatives to infix notation).

When Polish notation is used as a syntax for mathematical expressions by programming language interpreters it is readily parsed into abstract syntax trees and can, in fact, define a one-to-one representation for the same. Because of this, Lisp (see Implementations, below) and related programming languages define their entire syntax in prefix notation (and others use postfix notation).

History

A quotation from a paper by Jan Łukasiewicz in 1931 states how the notation was invented:

I came upon the idea of a parenthesis-free notation in 1924. I used that notation for the first time in my article Łukasiewicz (1), p. 610, footnote.

The reference cited by Łukasiewicz, i.e., Łukasiewicz (1), is apparently a lithographed report in Polish. The referring paper by Łukasiewicz was reviewed by Henry A. Pogorzelski in the Journal of Symbolic Logic in 1965. Heinrich Behmann, editor in 1924 of the article of Moses Schönfinkel, already had the idea of eliminating parentheses in logic formulas. In one of his papers Łukasiewicz stated that his notation is the most compact and the first linearly written parentheses-free notation, but not the first one as Gottlob Frege had proposed his parentheses-free Begriffsschrift notation in 1879 already.

Alonzo Church mentions this notation in his classic book on mathematical logic as worthy of remark in notational systems even contrasted to Alfred Whitehead and Bertrand Russell's logical notational exposition and work in Principia Mathematica.

In Łukasiewicz's 1951 book, Aristotle's Syllogistic from the Standpoint of Modern Formal Logic, he mentions that the principle of his notation was to write the functors before the arguments to avoid brackets and that he had employed his notation in his logical papers since 1929. He then goes on to cite, as an example, a 1930 paper he wrote with Alfred Tarski on the sentential calculus.

While no longer used much in logic, Polish notation has since found a place in computer science.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Foundations