Skip to content

Commit 78265c1

Browse files
committed
style(RingTheory/Bialgebra/Primitive): golf neg, compact sub
1 parent 9a88ee1 commit 78265c1

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Mathlib/RingTheory/Bialgebra/Primitive.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,11 @@ variable [CommSemiring R] [Ring A] [Bialgebra R A] {a b : A}
8080
/-- Primitive elements in a bialgebra are stable under negation. -/
8181
lemma IsPrimitiveElem.neg (ha : IsPrimitiveElem R a) : IsPrimitiveElem R (-a) :=
8282
by simpa [ha] using (map_add (counit (R := R)) (-a) a).symm,
83-
by rw [map_neg, ha.comul_eq_tmul_add_tmul, neg_add, neg_tmul, tmul_neg]⟩
83+
by simp [ha, neg_tmul, tmul_neg, add_comm]⟩
8484

8585
/-- Primitive elements in a bialgebra are stable under subtraction. -/
8686
lemma IsPrimitiveElem.sub (ha : IsPrimitiveElem R a) (hb : IsPrimitiveElem R b) :
87-
IsPrimitiveElem R (a - b) :=
88-
sub_eq_add_neg a b ▸ ha.add hb.neg
87+
IsPrimitiveElem R (a - b) := sub_eq_add_neg a b ▸ ha.add hb.neg
8988

9089
/-- The commutator `[a, b] = a * b - b * a` of two primitive elements is primitive. -/
9190
lemma IsPrimitiveElem.commutator (ha : IsPrimitiveElem R a) (hb : IsPrimitiveElem R b) :

0 commit comments

Comments
 (0)