@@ -5,6 +5,7 @@ Authors: Nikolas Tapia
55-/
66module
77
8+ public import Mathlib.Algebra.Algebra.Defs
89public import Mathlib.Algebra.Lie.Basic
910public import Mathlib.Algebra.NonAssoc.PreLie.Basic
1011/-!
@@ -84,11 +85,9 @@ instance instLieAlgebra [LieAdmissibleRing L] [LieAdmissibleAlgebra R L] : LieAl
8485
8586end LieAdmissibleAlgebra
8687
87- end instances
88-
8988namespace LeftPreLieRing
9089
91- variable {L : Type *} [LeftPreLieRing L]
90+ variable [LeftPreLieRing L]
9291
9392/-- `LeftPreLieRings` are examples of `LieAdmissibleRings` by the commutativity assumption on the
9493associator. -/
@@ -103,15 +102,15 @@ end LeftPreLieRing
103102
104103namespace LeftPreLieAlgebra
105104
106- variable {R L : Type *} [CommRing R] [LeftPreLieRing L] [LeftPreLieAlgebra R L]
105+ variable [LeftPreLieRing L] [LeftPreLieAlgebra R L]
107106
108107instance instLieAdmissibleAlgebra : LieAdmissibleAlgebra R L where
109108
110109end LeftPreLieAlgebra
111110
112111namespace RightPreLieRing
113112
114- variable {L : Type *} [RightPreLieRing L]
113+ variable [RightPreLieRing L]
115114
116115/-- `RightPreLieRings` are examples of `LieAdmissibleRings` by the commutativity assumption on
117116the associator. -/
@@ -126,8 +125,35 @@ end RightPreLieRing
126125
127126namespace RightPreLieAlgebra
128127
129- variable {R L : Type *} [CommRing R] [RightPreLieRing L] [RightPreLieAlgebra R L]
128+ variable [RightPreLieRing L] [RightPreLieAlgebra R L]
130129
131130instance instLieAdmissibleAlgebra : LieAdmissibleAlgebra R L where
132131
133132end RightPreLieAlgebra
133+
134+ namespace Ring
135+
136+ variable [Ring L]
137+
138+ /-- Every ring is Lie-admissible.
139+ See note [reducible non-instances]. -/
140+ abbrev instLieAdmissibleRing : LieAdmissibleRing L where
141+ assoc_def := by
142+ suffices ∀ a b c : L, associator a b c = 0 by simp
143+ simp
144+
145+ end Ring
146+
147+ namespace Algebra
148+
149+ variable [Ring L] [Algebra R L]
150+ attribute [local instance ] Ring.instLieAdmissibleRing
151+
152+ /-- Every algebra is Lie-admissible.
153+ See note [reducible non-instances]. -/
154+ abbrev instLieAdmissibleAlgebra : LieAdmissibleAlgebra R L where
155+ smul_comm := by simp
156+
157+ end Algebra
158+
159+ end instances
0 commit comments