Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

evaluate int.floor and int.fract with norm_num #15992

Open
vihdzp opened this issue Aug 10, 2022 · 2 comments
Open

evaluate int.floor and int.fract with norm_num #15992

vihdzp opened this issue Aug 10, 2022 · 2 comments
Labels
feature-request This issue is a feature request, either for mathematics, tactics, or CI

Comments

@vihdzp
Copy link
Collaborator

vihdzp commented Aug 10, 2022

Currently, norm_num can only solve goals of the form int.fract x = x, which it does accidentally by simping it to 0 ≤ x ∧ x < 1.

@vihdzp vihdzp added the feature-request This issue is a feature request, either for mathematics, tactics, or CI label Aug 10, 2022
@linesthatinterlace
Copy link
Collaborator

Just trying to understand what you want here. You want goals of the form int.floor x = y to reduce to something like y ≤ x ∧ x < y.succ (for x in a floor_ring and y in int)? I'm not sure what you envisage with int.fract though.

@digama0
Copy link
Member

digama0 commented Sep 2, 2022

The idea is that int.floor and int.fract should compute on rational numerals, for example int.floor (5 / 2) = 2 and int.fract (5 / 2) = 1 / 2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request This issue is a feature request, either for mathematics, tactics, or CI
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants