Better HN
topnewbestaskshowjobs
Log inSign up

konkin

0 karma · joined Jan 5, 2022 (4y ago) · 5 submissions

Submissions

comment 4y ago · link · parent

> Try out your notation, which I will agree can be unambiguous in a technical sense, but will quickly become unreadable for actual human beings, on a few modest examples.

It's perfectly legible to me and I use it daily in my (mathematical) work.

Again all you're saying is that you're not used to it and it must be a bad notation. Just like how people who were shown Arabic numerals defended Roman numerals.

I'd do you one better and point out that the example should be = 1 λ x square sin x square cos x since having unbound variables is poor form after someone invented lambda calculus.

And yes, you need a symbol for negation which is a step up since a-b is also ambiguous in the same sense.

For the second one you easily see why words are superior to symbols when you stop trying to use hieroglyphs and start using letters instead: div add neg b sqrt sub pow b 2 sub times 4 times a c times 2 a. I can define new functions with well known meaning without having to copy special characters or invent type setting systems.

comment 4y ago · link · parent

>Hah, no, "-> -> a b c" is not easy to parse, except for a computer. going are people not to read easily. It's a silly argument that prefix is fundamentally easier for humans when it disrupts the flow even in your example.

The only argument I'm seeing here is that you can't parse prefix notation and won't put the effort into trying it, which is the same argument people used against Arabic numerals in the middle ages.

A prefix only language is fundamentally easier to read and write to anyone who hasn't spend two decades learning the mishmash of pre, in, post, and upside-down fix that mathematics currently uses.

>But even then, we have things like the integral which uses physical placement to take (typically) up to 3 arguments:

Using four variables. It's amazing to me people defend this type of mess as something meaningful instead of a terrible historical contingency which we should get rid of as quickly as we can. In prefix notation you can just use "integral upper lower function" to convey the same information in pure text without the need for inventing TeX and vector displays.

comment 4y ago · link · parent

>Why do mathematicians need to be told what notation to use by non-mathematicians when their notations (note the plural) are in wide, and apparently successful, use today?

The same reason why geometers needed to be told to start using Arabic numerals by algebraists: mathematics is asking new questions and the old tools aren't good enough. That we even need to make a notational distinction between operators like addition and operators like high order partial derivatives should show that clearly enough.

>How would Polish notation help, for instance, with things like describing set membership or logical relations? How is this more readable (using ASCII):

Start working on longer expressions and the lack of parenthesis becomes a godsend.

-> -> a b c and -> a -> b c can be parsed in only one way, by comparison with infix notation you need miscellaneous parenthesis to show the way you want a -> b -> c to be parsed: (a -> b) -> c and a -> (b -> c). Or you need to memorize an arbitrary number of rules which increase exponentially with each new operator you add.

> Which provides a convention sense of the relationship that the former does not? The second one can be "read" in order: a implies b. The first cannot.

In English and only for binary operators, and even then you can just as easily understand "add 5 and 6" as you can "5 plus 6". How would you use infix notation to express a ternary or higher operator? The notation for the definite integral needs a super and sub script as well as a dummy variable for an operator that is fundamentally a ternary one. By comparison in prefix notation it becomes definite_integral upper_limit lower_limit function.

comment 4y ago · link · parent

Math notation is hopelessly stuck in the 19th century and needs an update to the 20th. Polish notation with operators of known arity is an excellent way to ease natural scientists/mathematicians into a modern tree based grammar for mathematics without a soup of parenthesis, e.g. / 1 / 2 3 vs / / 1 2 3

A full s-expression based grammar for mathematics is unfortunately not something that you can write on paper and requires white space delineation to be readable. On a screen with something like emacs paredit both of those are a breeze however. The fact that higher order functions don't need a special notation is really freeing.