Positive-size finite subsets and coefficientwise products
DefinitionAnalyticCombinatorics_Ch1_OGF_DistinctPartitionsanalytic-combinatoricslean4ogf
The underlying class is the size-grouped powerset of the positive-integer class, with one potential object at every positive size. The rational coefficient topology is discrete, so formal infinite products are interpreted coefficientwise.
Definition code
import Mathlib.Combinatorics.Enumerative.Partition.GenFun
import Mathlib.Data.Fintype.Powerset
import Mathlib.Combinatorics.Enumerative.Composition
import Mathlib.RingTheory.PowerSeries.Basic
import Mathlib.Data.Fintype.Card
set_option autoImplicit true
set_option relaxedAutoImplicit false
set_option maxSynthPendingDepth 3
/-!
# Ch1 §I.3 — Partitions into distinct parts (PSET flagship)
Flajolet & Sedgewick, Part A, Chapter I, §I.3. A partition of `n` into *distinct*
parts is a set of distinct positive integers summing to `n` — an object of
`PSET(ℙ)` of size `n`. Specializing the general powerset transfer `ogf_pset` to the
positive-integer class `ℙ` (`Cₘ=1`, `choose 1 k` supported on `{0,1}`) gives the
classical generating function
`D(z) = ∏_{m≥1} (1 + z^m)`.
-/
namespace AnalyticCombinatorics.Ch1
open PowerSeries
section
open scoped PowerSeries.WithPiTopology
open PowerSeries.WithPiTopology
local instance instTopRatDistinct : TopologicalSpace ℚ := ⊥
end
end AnalyticCombinatorics.Ch1
Source