Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Mathlib/Algebra/Group/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1088,6 +1088,10 @@ instance AddCommGroup.toGrindIntModule [s : AddCommGroup α] :
add_zsmul n m a := add_zsmul a n m
zsmul_natCast_eq_nsmul n a := by simp }

-- Give the core instance deriving a module structure from a `Grind.IntModule` a higher priority,
-- so that for an `AddCommGroup` it is preferred over the `AddCommMonoid`-based instance above.
attribute [instance 1100] Lean.Grind.IntModule.OfNatModule.ofNatModule

instance IsRightCancelAdd.toGrindAddRightCancel [AddSemigroup α] [IsRightCancelAdd α] :
Grind.AddRightCancel α where
add_right_cancel _ _ _ := add_right_cancel
Loading