-
Notifications
You must be signed in to change notification settings - Fork 251
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
[Merged by Bors] - chore: use Qq in new Gamma positivity extension #7900
Conversation
let pa' ← mkAppM ``Gamma_nonneg_of_nonneg #[pa] | ||
pure (.nonnegative pa') | ||
have pa' : Q(0 ≤ $a) := pa | ||
pure (.nonnegative (q(Gamma_nonneg_of_nonneg $pa') : Q(0 ≤ $e))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should be able to do
| .positive (pa : Q(0 < $a)) =>
pure (.positive (q(Gamma_pos_of_pos $pa) : Q(0 < $e)))
| .nonnegative (pa : Q(0 ≤ $a)) =>
pure (.nonnegative (q(Gamma_nonneg_of_nonneg $pa) : Q(0 ≤ $e)))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aha! Done.
This makes me think we need some sort of |
maintainer merge |
🚀 Pull request has been placed on the maintainer queue by alexjbest. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 🎉
bors merge
Adds Qq static checking, as requested in this comment: #7888 (comment) The `have pa' : Q(..) := pa` lines are necessary to sort out typeclass instances of `LE` and `LT`.
Pull request successfully merged into master. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Adds Qq static checking, as requested in this comment: #7888 (comment) The `have pa' : Q(..) := pa` lines are necessary to sort out typeclass instances of `LE` and `LT`.
Adds Qq static checking, as requested in this comment: #7888 (comment)
The
have pa' : Q(..) := pa
lines are necessary to sort out typeclass instances ofLE
andLT
.