AlgebraicCurves.Divisors.Proofs.Divisor_exists_pullbackAlong_single_one_eq_sum.PullbackEnum.exists_fin_sum_eq_sum_nsmul
Source context 3 commands
Surrounding namespaces, section variables, and local commands at this declaration.
section ProofImplementation
namespace AlgebraicCurves.Divisors.Proofs.Divisor_exists_pullbackAlong_single_one_eq_sum
namespace PullbackEnumLean source · statement
theorem exists_fin_sum_eq_sum_nsmul {α M : Type*} [AddCommMonoid M] (s : Finset α)
(e : α → ℕ) (f : α → M) :
∀ n : ℕ, ∑ a ∈ s, e a = n →
∃ W : Fin n → α, (∀ i, W i ∈ s) ∧ ∑ i, f (W i) = ∑ a ∈ s, e a • f a