Skip to content

Commit 0d6aac3

Browse files
committed
feat(NonAssoc/LieAdmissible): prove every ring/algebra is LieAdmissible (leanprover-community#29434)
-awaiting-author
1 parent a762a33 commit 0d6aac3

1 file changed

Lines changed: 32 additions & 6 deletions

File tree

  • Mathlib/Algebra/NonAssoc/LieAdmissible

Mathlib/Algebra/NonAssoc/LieAdmissible/Defs.lean

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Authors: Nikolas Tapia
55
-/
66
module
77

8+
public import Mathlib.Algebra.Algebra.Defs
89
public import Mathlib.Algebra.Lie.Basic
910
public import Mathlib.Algebra.NonAssoc.PreLie.Basic
1011
/-!
@@ -84,11 +85,9 @@ instance instLieAlgebra [LieAdmissibleRing L] [LieAdmissibleAlgebra R L] : LieAl
8485

8586
end LieAdmissibleAlgebra
8687

87-
end instances
88-
8988
namespace 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
9493
associator. -/
@@ -103,15 +102,15 @@ end LeftPreLieRing
103102

104103
namespace LeftPreLieAlgebra
105104

106-
variable {R L : Type*} [CommRing R] [LeftPreLieRing L] [LeftPreLieAlgebra R L]
105+
variable [LeftPreLieRing L] [LeftPreLieAlgebra R L]
107106

108107
instance instLieAdmissibleAlgebra : LieAdmissibleAlgebra R L where
109108

110109
end LeftPreLieAlgebra
111110

112111
namespace RightPreLieRing
113112

114-
variable {L : Type*} [RightPreLieRing L]
113+
variable [RightPreLieRing L]
115114

116115
/-- `RightPreLieRings` are examples of `LieAdmissibleRings` by the commutativity assumption on
117116
the associator. -/
@@ -126,8 +125,35 @@ end RightPreLieRing
126125

127126
namespace RightPreLieAlgebra
128127

129-
variable {R L : Type*} [CommRing R] [RightPreLieRing L] [RightPreLieAlgebra R L]
128+
variable [RightPreLieRing L] [RightPreLieAlgebra R L]
130129

131130
instance instLieAdmissibleAlgebra : LieAdmissibleAlgebra R L where
132131

133132
end 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

Comments
 (0)