Does the term 'linear' just not exist in this context, or does it have a different meaning?
Does the term 'linear' just not exist in this context, or does it have a different meaning?
With linear algebra, a function f is linear if, for any a,b, f(a+b)=f(a)+f(b)
Suppose there is a vending machine that sells soda for $1 each (doesn't have a menu, just dispenses the soda, for simplicity). If you put in $1, you get a soda. If you put in $1+$1, you get a soda + a soda.
The amount of soda you get is linear in the amount of money you put in.
This might not be a correct explanation of why it is called linear.
Also I don't really understand how the affine fits in this analogy, other than that "affine" is a somewhat weaker assumption than linear.
I hope someone can give a better answer than I did, because I thought I knew the answer, but when I tried to explain it, I found that I did not really know the answer.
Then drdeca (https://news.ycombinator.com/item?id=14684219) 's explanation of why affine logic is so called seems plausible, but I haven't looked into it.