/-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
module
public import Mathlib.Algebra.GroupWithZero.Action.Opposite
public import Mathlib.Algebra.Module.Defs
public import Mathlib.Algebra.Ring.Opposite
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Module operations on `Mᵐᵒᵖ`
This file contains definitions that build on top of the group action definitions in
`Mathlib/Algebra/GroupWithZero/Action/Opposite.lean`.
-/
public section
assert_not_exists LinearMap
section
variable {R : Type*} [Semiring R]
-- see Note [lower instance priority]
/-- Like `Semiring.toModule`, but multiplies on the right. -/
instance (priority := 910) Semiring.toOppositeModule : Module Rᵐᵒᵖ R :=
{ MonoidWithZero.toOppositeMulActionWithZero R with
smul_add := fun _ _ _ => add_mul _ _ _
add_smul := fun _ _ _ => mul_add _ _ _ }
end
namespace MulOpposite
universe u v
variable (R : Type u) {M : Type v} [Semiring R] [AddCommMonoid M] [Module R M]
/-- `MulOpposite.distribMulAction` extends to a `Module` -/
instance instModule : Module R Mᵐᵒᵖ where
add_smul _ _ _ := unop_injective <| add_smul _ _ _
zero_smul _ := unop_injective <| zero_smul _ _
end MulOpposite
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland