logoalt Hacker News

stevefan1999today at 12:51 PM1 replyview on HN

I'm not sure, but maybe it is due to that the expression a - b can be replaced as a + (-b)?

Similarly, I think a * b and a / b can be replaced with the same trick, but then I realized it may not work on non-abelian, or where multiplicative inverse is not available...


Replies

Sharlintoday at 12:53 PM

We’re in the semiring of positive integers, so there are no additive (or multiplicative) inverses.