Set `simpl never` for `Pos` and `N`.
Previously, we set simpl never
for just Pos.mul
and N.add
. That's pretty inconsistent and annoying. For example:
Eval simpl in (2 + x)%positive.
(*
= match x with
| q~1 => match q with
| q0~1 => (Pos.succ q0)~0
| q0~0 => q0~1
| 1 => 2
end~1
| q~0 => match q with
| q0~1 => (Pos.succ q0)~0
| q0~0 => q0~1
| 1 => 2
end~0
| 1 => 3
end
: positive
*)
I copied the list of simpl never
declarations for Z
and removed the operations (e.g., opp
) that are not available for N
or Pos
.
Edited by Robbert Krebbers
Merge request reports
Activity
added 8 commits
-
21bc4cba...2febd0b9 - 6 commits from branch
master
- ef6186da - Add `simpl never` for `Pos` and `N`.
- 827bc7fa - CHANGELOG.
-
21bc4cba...2febd0b9 - 6 commits from branch
enabled an automatic merge when the pipeline for 827bc7fa succeeds
added 10 commits
-
827bc7fa...47d252f5 - 8 commits from branch
master
- ae8c9665 - Add `simpl never` for `Pos` and `N`.
- 82da9f06 - CHANGELOG.
-
827bc7fa...47d252f5 - 8 commits from branch
enabled an automatic merge when the pipeline for 82da9f06 succeeds
mentioned in commit 2f90d657
Please register or sign in to reply