How the adds scale

What an add costs as its numbers grow: for each successor of m in unary, and for each bit in binary. The nets are counted in rewrites and the tree calculi in steps. Every line settles flat, so every one of these adds is linear in the size of its input; what differs is the height of the line.

Unary, m + mrewrites or steps for each successor of m
Binary, a + brewrites or steps for each bit
Tree calculus with nothing shared, unarynodes copied for each successor of m
Tree calculus with nothing shared, binarynodes copied for each bit

A net rewrite replaces one pair of agents, and its copies are among the rewrites counted above. A tree calculus step rewrites one redex, but it can duplicate a whole argument: with trees shared that is free, and with trees copied for real the two lower charts show what it costs. There the work for each successor or bit keeps growing with the numbers, so the whole add is no longer linear.

The numbers