The order on Weil divisors and the positive/negative part decomposition #
This file continues the Jacobian roadmap's Layer A formal Weil divisor API
(TauCeti.AlgebraicGeometry.WeilDivisor.Basic) by recording the lattice-ordered-group structure of
formal divisors and the canonical decomposition of a divisor into its effective positive and
negative parts.
The point set X →₀ ℤ already carries the coefficientwise partial order, the lattice
operations ⊔/⊓, and (because ℤ is an ordered group) the lattice-ordered-group positive and
negative parts D⁺ and D⁻ from Mathlib. The contribution here is to connect that order with
the divisor vocabulary already in place: effectivity is nonnegativity, D ≤ E is effectivity of
E - D, the pointwise maximum and minimum of effective divisors are effective, and every
divisor decomposes as D = D⁺ - D⁻ with D⁺, D⁻ effective of disjoint support. We read off
the consequences for the unweighted and weighted degree maps and compute the decomposition of
the basic degree-zero divisors [x] - [y].
This reuses Mathlib's lattice-ordered-group posPart/negPart API
(Mathlib.Algebra.Order.Group.PosPart) and the coefficientwise order and lattice on finitely
supported functions (Mathlib.Order.Preorder.Finsupp, Mathlib.Data.Finsupp.Order); no
external mathematics is vendored.
This advances the Tau Ceti Jacobian roadmap, Layer A, "Divisors on a curve: Weil divisors
⊕_x ℤ", "principal divisors", and "Degree".
The coefficientwise order #
One Weil divisor is ≤ another exactly when it is so coefficientwise.
The coefficientwise order projects to coefficients: D ≤ E gives coeff D x ≤ coeff E x.
Effectivity is exactly nonnegativity in the coefficientwise order.
Adding a point to a divisor gives a larger divisor.
Membership in the effective submonoid is nonnegativity in the coefficientwise order.
D ≤ E exactly when the difference E - D is effective.
Lattice operations #
The coefficient of a pointwise maximum is the maximum of the coefficients.
The coefficient of a pointwise minimum is the minimum of the coefficients.
The pointwise maximum of an effective divisor with any divisor is effective.
The pointwise minimum of two effective divisors is effective.
A pointwise minimum is effective exactly when both divisors are effective.
Removing the infimum from each of two Weil divisors leaves disjoint residual divisors.
Positive and negative parts #
The coefficient of the positive part is the positive part of the coefficient.
The coefficient of the negative part is the negative part of the coefficient.
The positive part of a Weil divisor is effective.
The negative part of a Weil divisor is effective.
The positive and negative parts of a Weil divisor have disjoint supports: no point carries both a positive and a negative coefficient.
A divisor is effective exactly when its negative part vanishes.
A divisor is effective exactly when it equals its own positive part.
Degree of the decomposition #
The weighted degree splits over the positive/negative part decomposition.
The decomposition of a point difference #
For distinct points the positive part of [x] - [y] is the point divisor [x].
For distinct points the negative part of [x] - [y] is the point divisor [y].