-
Notifications
You must be signed in to change notification settings - Fork 297
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] - feat(tactic/ring): recursive ring_nf #14429
Conversation
Does it make sense to hide the old behavior behind a |
Yes, it is possible. Are folks interested in such an option? |
No strong opinion -- I see the merits of having the flexibility, but am also excited just to get the new feature merged. |
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.
LGTM
bors d+
(red : transparency) (mode := normalize_mode.horner) (e : expr) : tactic (expr × expr) := | ||
do | ||
(red : transparency) (mode := normalize_mode.horner) : | ||
expr → opt_param _ ff → tactic (expr × expr) |
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.
Can you add to the doc what the new opt_param
does?
✌️ digama0 can now approve this pull request. To approve and merge a pull request, simply reply with |
I think the option is a nice idea but not necessary. Agree with Floris about the docs! |
bors r+ |
Canceled. |
bors r+ |
Canceled. |
bors r+ |
bors r- You also have to provide a docstring to the structure. |
Canceled. |
bors r+ |
As [reported on Zulip](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/.60ring_nf.60.20not.20consistently.20normalizing.3F). This allows `ring_nf` to rewrite inside the atoms of a ring expression, meaning that things like `f (a + b) + c` can simplify in both `+` expressions.
Pull request successfully merged into master. Build succeeded: |
As reported on Zulip. This allows
ring_nf
to rewrite inside the atoms of a ring expression, meaning that things likef (a + b) + c
can simplify in both+
expressions.