Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

[Merged by Bors] - feat(algebra/monoid_algebra): add mem.span_support #7323

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/algebra/monoid_algebra.lean
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,17 @@ calc (f * g) x = sum g (λ a b, (f * single a b) x) :

end

section span

variables [semiring k] [mul_one_class G]

lemma mem_span_support (f : monoid_algebra k G) :
f ∈ submodule.span k (monoid_algebra.of k G '' (f.support : set G)) :=
by rw [monoid_algebra.of, monoid_hom.coe_mk, ← finsupp.supported_eq_span_single,
finsupp.mem_supported]

end span

end monoid_algebra

/-! ### Additive monoids -/
Expand Down Expand Up @@ -890,6 +901,17 @@ lemma lift_nc_smul {R : Type*} [add_zero_class G] [semiring R] (f : k →+* R)

end misc_theorems

section span

variables [semiring k] [add_zero_class G]

lemma mem_span_support (f : add_monoid_algebra k G) :
f ∈ submodule.span k (add_monoid_algebra.of k G '' (f.support : set G)) :=
by rw [add_monoid_algebra.of, monoid_hom.coe_mk, ← finsupp.supported_eq_span_single,
finsupp.mem_supported]

end span

end add_monoid_algebra

/-!
Expand Down