The rank function #
The rank of a divisor $D$ is the integer $r(D) \in \{-1, 0, 1, \ldots\}$ defined by $r(D) \geq k$ if and only if $D - E$ is winnable for every effective divisor $E$ of degree $k$. Equivalently, $r(D) \geq 0$ if and only if $D$ is winnable, and $r(D) = -1$ if and only if $D$ is unwinnable.
See: Corry-Perkinson, Section 5.1.
The rank is well-defined (rank_exists, rank_unique) and realized by the noncomputable
rank function. Key properties established here include:
rank_neg_one_iff_unwinnable: $r(D) = -1 \iff D$ is unwinnable.rank_nonneg_iff_winnable: $r(D) \geq 0 \iff D$ is winnable.rank_le_degree: $r(D) \leq \deg(D)$ for $r(D) \geq 0$.zero_divisor_rank: $r(0) = 0$.
A divisor $D$ is maximal unwinnable if it is unwinnable but $D + \delta_v$ is winnable for every vertex $v$. Such divisors arise in the proof of the Riemann-Roch theorem.
Winnability is preserved under linear equivalence.
Being maximal unwinnable is preserved under linear equivalence.
The set of effective divisors of degree $k$.
This is used to define rank_geq: the relation $r(D) \ge k$ means that $D-E$ is
winnable for every effective divisor $E$ of degree $k$.
Instances For
A divisor is winnable if and only if it is linearly equivalent to an effective divisor.