Finite slope multisets #
The finite slopes of a convex height sequence are the slopes of all of its unit edges,
counted with multiplicity. This file packages that invariant on FiniteSlopeData, the
canonical presentation of a nonempty convex height sequence with finite domain.
The multiset has cardinality equal to the horizontal length of the polygon. Its sum is the
difference between the endpoint heights. The multiplicity of a real slope σ is the width of
the finite face of slope σ, so a singleton face contributes multiplicity zero.
Main results #
FiniteSlopeData.slopeMultiset: the multiset of unit slopes.FiniteSlopeData.count_slopeMultiset: multiplicities count unit edges of a given slope.FiniteSlopeData.card_slopeMultiset: its cardinality is the horizontal length.FiniteSlopeData.sum_slopeMultiset: its sum is the total height change.FiniteSlopeData.count_slopeMultiset_of_isFiniteFace: the multiplicity of a slope is the width of the finite face of that slope.
References #
- N. Koblitz, p-adic Numbers, p-adic Analysis, and Zeta-Functions, Chapter IV §3.
The multiset of the slopes of the unit edges of finite slope data.
Each i : Fin length contributes one copy of slope i, so repeated slopes retain their
multiplicity. In particular, slope data of length zero has the empty slope multiset.
Instances For
The slope multiset lists the slopes of the unit edges from left to right.
A nondecreasing unit-slope presentation is determined by its anchor and slope multiset. In particular, different subdivisions of equal slopes do not give different unit data.
A value occurs in the slope multiset exactly when it is the slope of a unit edge.
The slope multiset is empty exactly when the represented polygon is a singleton.
The number of finite unit slopes is the horizontal length of the polygon.
The multiplicity of a value in the slope multiset is the number of unit edges with that slope.
The slope multiset of transported slope data is the image of the slope multiset.
The sum of the finite slopes is the sum over the unit edges.
The sum of the finite slopes is the difference between the endpoint heights.
A polygon represented by real finite slope data has a finite face at every real slope.
The multiplicity of a real slope σ in the slope multiset is the width u - l of the
finite face of slope σ. The endpoints l and u are absolute indices.