Skip to content

Commit

Permalink
fix(congruence): use has_coe_t instead of has_coe (#2086)
Browse files Browse the repository at this point in the history
* fix(congruence): use has_coe_t instead of has_coe

* capitalization

Does that matter for doc generation?

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
mergify[bot] committed Mar 4, 2020
1 parent 9fc675c commit 7d6c4fb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/group_theory/congruence.lean
Original file line number Diff line number Diff line change
Expand Up @@ -186,9 +186,11 @@ variables (c)
@[to_additive "Defining the quotient by an additive congruence relation of a type with an addition."]
protected def quotient := quotient $ c.to_setoid

/-- Coercion from a type with a multiplication to its quotient by a congruence relation. -/
/-- Coercion from a type with a multiplication to its quotient by a congruence relation.
See Note [use has_coe_t]. -/
@[to_additive "Coercion from a type with an addition to its quotient by an additive congruence relation", priority 0]
instance : has_coe M c.quotient := ⟨@quotient.mk _ c.to_setoid⟩
instance : has_coe_t M c.quotient := ⟨@quotient.mk _ c.to_setoid⟩

/-- The quotient of a type with decidable equality by a congruence relation also has
decidable equality. -/
Expand Down

0 comments on commit 7d6c4fb

Please sign in to comment.