mathlib4 icon indicating copy to clipboard operation
mathlib4 copied to clipboard

feat: BoundedAdd class for consistency with BoundedSub and BoundedMul.

Open kkytola opened this issue 1 year ago • 0 comments
trafficstars

The classes BoundedSub and BoundedMul were added in PRs #12559 and #12790 to generalize subtraction and multiplication operations on bounded continuous functions (especially for the case of codomain NNReal). The existing generality for addition was sufficient, but in the review of #12790 it was pointed out that its assumption LipschitzAdd should probably be replaced for consistency by BoundedAdd (which is then a consequence of LipschitzAdd). This PR adds BoundedAdd and refactors the addition instances on bounded continuous functions accordingly, and additionally golfs the proofs of subtraction instances similarly using Lipschitzness.


Open in Gitpod

kkytola avatar May 19 '24 11:05 kkytola