-
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] - feat(algebra/ring): the codomain of a ring hom is trivial iff ... #3676
Conversation
bors merge |
src/algebra/ring/basic.lean
Outdated
λ h x, set.mem_singleton_iff.mp (h ▸ set.mem_range_self x)⟩ | ||
|
||
/-- `f : R →+* S` doesn't map `1` to `0` if `S` is nontrivial -/ | ||
lemma map_one_ne_zero_of_nontrivial [nontrivial β] : f 1 ≠ 0 := |
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.
I don't think that we should mention of_nontrivial
in lemma names. E.g., we avoid it in zero_ne_one
. Why should we mention it in ring_hom.map_one_ne_zero
? Same for map_monic_ne_zero
.
Otherwise LGTM.
I'll fix @urkud 's suggestion. bors r- |
Canceled. |
Forgot to say: clearly, |
✌️ Vierkantor can now approve this pull request. To approve and merge a pull request, simply reply with |
Co-authored-by: Yury G. Kudryashov <urkud@urkud.name>
bors r+ |
) In the discussion of #3488, Johan (currently on vacation, so I'm not pinging him) noted that we were missing the lemma "if `f` is a ring homomorphism, `∀ x, f x = 0` implies that the codomain is trivial". This PR adds a couple of ways to derive from homomorphisms that rings are trivial. I used `0 = 1` to express that the ring is trivial because that seems to be the one that is used in practice. Co-authored-by: Vierkantor <vierkantor@vierkantor.com>
Pull request successfully merged into master. Build succeeded: |
In the discussion of #3488, Johan (currently on vacation, so I'm not pinging him) noted that we were missing the lemma "if
f
is a ring homomorphism,∀ x, f x = 0
implies that the codomain is trivial". This PR adds a couple of ways to derive from homomorphisms that rings are trivial.I used
0 = 1
to express that the ring is trivial because that seems to be the one that is used in practice.