-
Notifications
You must be signed in to change notification settings - Fork 299
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(algebra/punit_instances): add comm_cancel_monoid_with_zero
, normalized_gcd_monoid
, and scalar action instances
#10312
Conversation
3849ff8
to
f596086
Compare
comm_cancel_monoid_with_zero
and normalized_gcd_monoid
instancescomm_cancel_monoid_with_zero
, normalized_gcd_monoid
, and scalar action instances
/-! TODO: provide `mul_semiring_action R punit` -/ | ||
-- importing it here currently causes timeouts elsewhere due to the import order changing |
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.
This was causing horrible timeouts in files I don't care about, so in the interest of getting all the other instances merged I'm going to skip this one.
bors merge |
…normalized_gcd_monoid`, and scalar action instances (#10312) Motivated by [this Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Is.200.20not.20equal.20to.201.3F/near/261366868). This also moves the simp lemmas closer to the instances they refer to.
Build failed (retrying...): |
…normalized_gcd_monoid`, and scalar action instances (#10312) Motivated by [this Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Is.200.20not.20equal.20to.201.3F/near/261366868). This also moves the simp lemmas closer to the instances they refer to.
Build failed (retrying...): |
…normalized_gcd_monoid`, and scalar action instances (#10312) Motivated by [this Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Is.200.20not.20equal.20to.201.3F/near/261366868). This also moves the simp lemmas closer to the instances they refer to.
Build failed (retrying...): |
…normalized_gcd_monoid`, and scalar action instances (#10312) Motivated by [this Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Is.200.20not.20equal.20to.201.3F/near/261366868). This also moves the simp lemmas closer to the instances they refer to.
Build failed (retrying...): |
…normalized_gcd_monoid`, and scalar action instances (#10312) Motivated by [this Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Is.200.20not.20equal.20to.201.3F/near/261366868). This also moves the simp lemmas closer to the instances they refer to.
Build failed: |
0fff71f
to
87efe7d
Compare
The direct cause of the error seems to be that the
|
In addition, |
Does punit appear anywhere in the goal? |
Nope, although |
Another way to fix it is to remind the elaborator that the instance exists: { intros m hm x hx,
have := has_fderiv_within_at_pi.2 (λ i, (h i).fderiv_within m hm x hx),
letI : normed_space 𝕜
(continuous_multilinear_map 𝕜 (λ (i : fin m), E) (Π (i : ι), F' i)) := infer_instance,
convert (L m).has_fderiv_at.comp_has_fderiv_within_at x this }, -- works?! |
Another thought, is this the instance-under-binder issue popping up again? (lean4 #509) That one has similar symptoms of inexplicable failure to find instances that goes away if you put the failing instance on its own and |
I went for the Weirly, |
bors merge |
…normalized_gcd_monoid`, and scalar action instances (#10312) Motivated by [this Zulip thread](https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Is.200.20not.20equal.20to.201.3F/near/261366868). This also moves the simp lemmas closer to the instances they refer to. Co-authored-by: Anne Baanen <vierkantor@vierkantor.com>
Pull request successfully merged into master. Build succeeded: |
comm_cancel_monoid_with_zero
, normalized_gcd_monoid
, and scalar action instancescomm_cancel_monoid_with_zero
, normalized_gcd_monoid
, and scalar action instances
-- TODO: lean can't find the instance without this: If we remove this `letI`, we have to add | ||
-- `local attribute [-instance] punit.mul_action` instead! | ||
letI : normed_space 𝕜 (E [×m]→L[𝕜] (Π i, F' i)) := infer_instance, |
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.
#11972 (accidentally) makes this unecessary
Motivated by this Zulip thread.
This also moves the simp lemmas closer to the instances they refer to.