Skip to content

Commit

Permalink
feat: add a coe to ideal quotient rings (#6620)
Browse files Browse the repository at this point in the history
Like we have for (Add)Subgroups already
  • Loading branch information
alexjbest committed Aug 23, 2023
1 parent 23e7b3d commit 330b78e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Mathlib/GroupTheory/Coset.lean
Expand Up @@ -481,7 +481,7 @@ theorem induction_on {C : α ⧸ s → Prop} (x : α ⧸ s) (H : ∀ z, C (Quoti
#align quotient_add_group.induction_on QuotientAddGroup.induction_on

@[to_additive]
instance : CoeTC α (α ⧸ s) :=
instance : Coe α (α ⧸ s) :=
⟨mk⟩

@[to_additive (attr := elab_as_elim)]
Expand Down
3 changes: 3 additions & 0 deletions Mathlib/RingTheory/Ideal/Quotient.lean
Expand Up @@ -104,6 +104,9 @@ def mk (I : Ideal R) : R →+* R ⧸ I where
map_add' _ _ := rfl
#align ideal.quotient.mk Ideal.Quotient.mk

instance {I : Ideal R} : Coe R (R ⧸ I) :=
⟨Ideal.Quotient.mk I⟩

/-- Two `RingHom`s from the quotient by an ideal are equal if their
compositions with `Ideal.Quotient.mk'` are equal.
Expand Down

0 comments on commit 330b78e

Please sign in to comment.