Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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.
Jump to
Jump to file
Failed to load files.
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