The average-cost Bellman equation is
If a constant and bounded relative cost function solve this equation and a stationary control attains the infimum in each state, that control is optimal and its long-run expected average cost is . Indeed the Bellman inequality telescopes along any controlled trajectory; dividing by the number of steps removes the bounded endpoint terms and gives a lower bound . The attaining policy makes the inequalities equalities. An unbounded requires the corresponding endpoint/transversality justification, which the question permits for this example.
To maximize occupation of zero, minimize and try with . For , the expected increment of is , minimized at ; for , it is , minimized at . At zero its expected next value is , independent of . Thus away from zero and at zero. Solving gives
An optimal control always biases a nonzero position towards zero: on positive integers, on negative integers, and any allowed at zero.
As an independent occupation check, fix the choice at zero. The stationary positive tail begins at and has common ratio ; the negative tail begins at with the same ratio. Summing these geometric tails gives , reproducing the boxed optimum. The chain has period two, but its time-averaged occupation still converges to this stationary proportion.
Interpret as the conditional rejection probability. The Type I error is , the Type II error is , the size is , and the power is . Their weighted sum is
Pointwise minimization over forces rejection where and acceptance where , with arbitrary randomization on equality. Conversely those choices minimize every integrand. The equivalence holds almost everywhere, since changing a test on a common null set cannot change its errors. With both weights strictly positive, any simultaneous improvement of the two errors, strict in at least one, would lower this weighted sum. Every such positive-threshold likelihood ratio test is admissible for the two simple hypotheses.
For the specified densities the likelihood ratio is
It increases strictly on from zero to . For , the likelihood-ratio test rejects when . Larger thresholds accept almost surely. Threshold zero rejects everywhere above and permits arbitrary rejection below , where both weighted choices tie; values at individual endpoints do not affect errors. These describe all nonnegative-threshold likelihood ratio tests, including their limiting accept-all and reject-all cases.
The upper-tail test has size . If , it is a positive-threshold likelihood ratio test and is admissible. If , it rejects exactly the alternative's support, with power one; no test can retain power one with smaller size, so it remains admissible. If , it still has power one but wastes rejection probability on , where the alternative density vanishes. The test has the same power and smaller size, so
Nevertheless is a uniformly most powerful test at size against all : for , apply the Neyman-Pearson lemma; for , its power is already the maximum one. It is also admissible against the composite alternative. Indeed choose any . Strict monotonicity of its likelihood ratio makes the unique positive-threshold minimizer up to null sets. A test dominating it for the composite problem would either improve the weighted simple risk at this , impossible, or tie that risk and coincide almost everywhere. Since throughout , such coincidence also precludes improvement at any other .
A simple function is a measurable function taking finitely many values, expressible as for disjoint measurable sets. For nonnegative coefficients define . The Lebesgue integral of a nonnegative measurable is
Suppose with each simple. Their integrals increase and are bounded above by . For the reverse bound, fix any simple and . The sets increase to a set containing . Hence , whose right side tends to by continuity from below of the measure on the finitely many level sets of . Let and then take the supremum over . This proves , including infinite limiting integrals.
The monotone convergence theorem states the same conclusion for any nonnegative measurable sequence , without simplicity. The preceding lower-bound argument works unchanged: and monotonicity of the integral give . Taking limits and the same two suprema proves
The upper bound follows from . Finiteness of the measure makes all bounded simple integrals finite in this proof; the theorem in fact extends to arbitrary measure spaces.
A divisor on a compact connected Riemann surface is a finite formal sum with integer coefficients; its degree is . A canonical divisor is the divisor of zeros and poles of a nonzero meromorphic differential. Two divisors are linearly equivalent when their difference is the divisor of a nonzero meromorphic function. Such principal divisors have degree zero, but equal degree does not generally imply linear equivalence of divisors.
For example take distinct points on a genus-one surface. If were principal, its function would define a degree-one meromorphic map to the sphere, since it has just one simple pole. A degree-one map between compact Riemann surfaces is a biholomorphism, contradicting their different genera. Thus these degree-one divisors are not equivalent.
Define and . The Riemann-Roch theorem states
Since all holomorphic functions on the compact surface are constant, . Setting gives . Multiplication by a fixed meromorphic differential identifies with holomorphic differentials, so their dimension is . Setting then gives
For , choose a nonzero holomorphic differential, whose effective canonical divisor has degree two. Since , contains a nonconstant meromorphic function. Its pole divisor is bounded by that effective , proving existence of a nonconstant function with total pole multiplicity at most two.

There are unlisted articles, also show them or only show them.