Zulip Chat Archive

Stream: mathlib4

Topic: isAddCommGroup field in ModuleCat


Kevin Buzzard (Apr 13 2025 at 15:34):

Mathlib has this

structure ModuleCat where
  private mk ::
  /-- the underlying type of an object in `ModuleCat R` -/
  carrier : Type v
  [isAddCommGroup : AddCommGroup carrier]
  [isModule : Module R carrier]

Why isAddCommGroup? Shouldn't this be toAddCommGroup? Or even addCommGroup? Similarly for isModule.

Eric Wieser (Apr 13 2025 at 15:59):

instance X.toY I believe should only be used when X itself is a typeclass

Yaël Dillies (Apr 13 2025 at 19:31):

I would go for addCommGroup


Last updated: May 02 2025 at 03:31 UTC