Lean4
/-- A family with only finitely many nonzero elements is summable. -/
def ofFinsupp (f : α →₀ HahnSeries Γ R) : SummableFamily Γ R α
where
toFun := f
isPWO_iUnion_support' :=
by
apply (f.support.isPWO_bUnion.2 fun a _ => (f a).isPWO_support).mono
refine Set.iUnion_subset_iff.2 fun a g hg => ?_
have haf : a ∈ f.support := by
rw [Finsupp.mem_support_iff, ← support_nonempty_iff]
exact ⟨g, hg⟩
exact Set.mem_biUnion haf hg
finite_co_support'
g := by
refine f.support.finite_toSet.subset fun a ha => ?_
simp only [mem_coe, Finsupp.mem_support_iff, Ne]
contrapose! ha
simp [ha]