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

norm_num fails with simple inequalities using real exponents #11374

Closed
TFBloom opened this issue Jan 11, 2022 · 2 comments
Closed

norm_num fails with simple inequalities using real exponents #11374

TFBloom opened this issue Jan 11, 2022 · 2 comments

Comments

@TFBloom
Copy link

TFBloom commented Jan 11, 2022

While norm_num can e.g. prove 1 < 2^2 (all naturals) or (1:\R) < (2:\R)^2, it fails with (1:\R) < (2:\R)^(2:\R).

Similarly(?), neither norm_num nor linarith can prove (x:R), (x>0) implies (2:R)^x < (3:R)^x.

It would be very convenient if norm_num (and/or linarith?) could work with simple inequalities involving real exponents like this.

@digama0
Copy link
Member

digama0 commented Jan 11, 2022

You can prove these by rewriting (2 : real) = \u (2 : nat) by norm_cast, then simp it to a natural exponent and use norm_num. For the (2:R)^x < (3:R)^x example, that's certainly out of scope of both norm_num and linarith, but mono might do the trick. You should probably bring this up on Zulip because some design work is needed for a suitable tactic to define the target language.

@TFBloom
Copy link
Author

TFBloom commented Jan 11, 2022

Thanks - I should have clarified that I can prove them via other ways (e.g. the second is an application of real.rpow_le_rpow), it was just that I'd like a tactic to work this out automatically. mono looks very useful, thank you. I'll bring this up on Zulip.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants