Zulip Chat Archive

Stream: new members

Topic: Ring homomorphism of fields is injective


Sebastian Monnet (Dec 23 2021 at 18:02):

I'd like to use the fact that a ring homomorphism between fields is injective. This must already by in mathlib somewhere, but I can't find it. Does anyone know where it is?

Arthur Paulino (Dec 23 2021 at 18:03):

Have you tried stating it and then closing the goal with library_search? Sometimes it works

Kevin Buzzard (Dec 23 2021 at 18:03):

example (K L : Type) [field K] [field L] [algebra K L] : function.injective (algebra_map K L) := by library_search

works for me, and tells me it's ring_hom.injective

Kevin Buzzard (Dec 23 2021 at 18:04):

Half the problem with questions like this is that there are often different ways to state the theorem, so it's usually best if you state a sorried mwe

Sebastian Monnet (Dec 23 2021 at 19:43):

Ahh library search is a great trick - thank you!

Sebastian Monnet (Dec 23 2021 at 19:44):

Kevin Buzzard said:

Half the problem with questions like this is that there are often different ways to state the theorem, so it's usually best if you state a sorried mwe

Okay will do that in future


Last updated: Dec 20 2023 at 11:08 UTC