Skip to content

Commit

Permalink
chore(Algebra/DualNumber): ε commutes (#7928)
Browse files Browse the repository at this point in the history
This doesn't generalize to `TrivSqZeroExt`, as we do not have a notion of `Commute` for `smul`.
  • Loading branch information
eric-wieser committed Oct 26, 2023
1 parent d8e5144 commit 7026a0c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Mathlib/Algebra/DualNumber.lean
Expand Up @@ -87,6 +87,13 @@ theorem inr_eq_smul_eps [MulZeroOneClass R] (r : R) : inr r = (r • ε : R[ε])
ext (mul_zero r).symm (mul_one r).symm
#align dual_number.inr_eq_smul_eps DualNumber.inr_eq_smul_eps

/-- `ε` commutes with every element of the algebra. -/
theorem commute_eps_left [Semiring R] (x : DualNumber R) : Commute ε x := by
ext <;> simp

/-- `ε` commutes with every element of the algebra. -/
theorem commute_eps_right [Semiring R] (x : DualNumber R) : Commute x ε := (commute_eps_left x).symm

/-- For two algebra morphisms out of `R[ε]` to agree, it suffices for them to agree on `ε`. -/
@[ext]
theorem algHom_ext {A} [CommSemiring R] [Semiring A] [Algebra R A] ⦃f g : R[ε] →ₐ[R] A⦄
Expand Down

0 comments on commit 7026a0c

Please sign in to comment.