Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a simplification lemma for `(x - y).toNat` when the subtraction is known to not overflow (i.e., `y ≤ x`). We make a new section for this for two reasons: 1. Definitions of subtraction occur before the definition of `BitVec.le_def`, so we cannot directly place this lemma at `sub`. 2. There are other theorems of this kind, for addition and multiplication, which can morally live in the same section.
- Loading branch information