-
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
Fix FieldTheory.RatFunc #4513
Comments
Yuri, I already had some suspicions that something like this could be happening, and I had a PR with a beginning of a cleanup: #4373. Naïvely, I just trusted that Lean would pick up the right combination of typeclasses, without having to check it, but it seems that I was wrong. Still, this is very laborious to check by hand, since in the local context you always have all the available variables, and only after elaboration, the final declaration looses the "irrelevant" ones. So, my approach would be to |
Let me also ping @eric-wieser and @Vierkantor, since they were also in the loop for these issues. |
Maybe it would be reasonable to refactor this in mathlib3 to use |
Eric, you are probably right. I find this issue of auto-include/omit more subtle than the autoImplicit ones. Is it possible to disable it? |
No, I don't think so. The exact behavior as I understand it is "all the variables that exist are available inside the proof, but the ones you don't use are removed automatically" |
I started on branch#adomani_section_ratfunc but won't have time to finish in a few hours. |
I finished the sectioning of EDIT: it passes CI. |
…19133) This hopefully closes [#4513](leanprover-community/mathlib4#4513) (or at least mitigates it) and will settle [!4#4373](leanprover-community/mathlib4#4373) in mathlib3.
…19133) This hopefully closes [#4513](leanprover-community/mathlib4#4513) (or at least mitigates it) and will settle [!4#4373](leanprover-community/mathlib4#4373) in mathlib3. Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
An update: @Vierkantor approved the mathlib3 PR. Once it merges, I'll prepare the matching mathlib4 port of |
#4580 passes CI, I merged it into Yuri's PR and it builds locally and passed the building step of CI. It's all looking good! |
This PR re-ports `FieldTheory/RatFunc`, now that the mathlib3 version uses `section`s, after PR[#19133](leanprover-community/mathlib#19133). This closes [#4513](#4513) and closes #4373. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@urkud, I'm guessing that this issue can now be closed, right? |
Yes, indeed. I guess, it was not auto closed because Github doesn't know that your PR was merged, not discarded. |
Probably, but the other PR did autoclose! |
…#4580) This PR re-ports `FieldTheory/RatFunc`, now that the mathlib3 version uses `section`s, after PR[#19133](leanprover-community/mathlib#19133). This closes [leanprover-community#4513](leanprover-community#4513) and closes leanprover-community#4373. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
In the original file, sometimes
K
is a field and sometimesK
is acommutative ring (optionally, a domain). In some sections, this was
incorrectly translated to Lean 4 in #4293. This blocks #4512
The text was updated successfully, but these errors were encountered: