Skip to content

Commit 9a0e50a

Browse files
committed
feat(Finsupp): single a (m₁ + m₂) b = single a m₁ b + single a m₂ b (leanprover-community#27191)
From Toric
1 parent c728e64 commit 9a0e50a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Mathlib/Data/Finsupp/Single.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,9 @@ variable [AddZeroClass M]
521521
theorem single_add (a : α) (b₁ b₂ : M) : single a (b₁ + b₂) = single a b₁ + single a b₂ :=
522522
(zipWith_single_single _ _ _ _ _).symm
523523

524+
lemma single_add_apply (a : α) (m₁ m₂ : M) (b : α) :
525+
single a (m₁ + m₂) b = single a m₁ b + single a m₂ b := by simp
526+
524527
theorem support_single_add {a : α} {b : M} {f : α →₀ M} (ha : a ∉ f.support) (hb : b ≠ 0) :
525528
support (single a b + f) = cons a f.support ha := by
526529
classical

0 commit comments

Comments
 (0)