-
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(field_theory/intermediate_field): dsimp
lemma
#15188
Conversation
It's not immediately clear to me that these are good simp lemmas; do we have anything comparable for other subobjects? In particular, simplifying |
I am not sure about |
Those coercions seem bizarre to me anyway; I guess that's the same as having a lemma for |
I'm going to make a PR to remove lift2 in favor of |
This PR/issue depends on: |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
I've made it so that #13307 no longer depends on this |
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.
Just to register that the only lemma in this PR that I think is worth having is coe_map
; and even that I'm not sure is good as a simp lemma (as it probably gets applied before set_like.mem_coe
).
I think the difference with the similar |
dsimp
lemmasdsimp
lemma
@@ -273,6 +273,8 @@ def map (f : L →ₐ[K] L') : intermediate_field K L' := | |||
neg_mem' := λ x hx, (S.to_subalgebra.map f).neg_mem hx, | |||
.. S.to_subalgebra.map f} | |||
|
|||
@[simp] lemma coe_map (f : L →ₐ[K] L') : (S.map f : set L') = f '' S := rfl |
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.
Do we have this lemma for submodules etc already? If not, I think we should add them all at the same time, as that's a good way to verify that the lemma is safe as simp
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.
It's submodule.map_coe
, subgroup.coe_map
, submonoid.coe_map
.
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.
All of which are simp
?
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.
Yes.
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
Pull request successfully merged into master. Build succeeded: |
dsimp
lemmadsimp
lemma
restrict_scalars
which replaceslift2
#15191