Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vihdzp opened this issue Aug 10, 2022 · 2 comments · May be fixed by #16502
Open

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

vihdzp opened this issue Aug 10, 2022 · 2 comments · May be fixed by #16502
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 join this conversation on GitHub. Already have an account? Sign in to comment
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