Take a birth-death chain on . At each interior state, move up one state with probability and down one state with probability . The endpoints are absorbing states: . This is a small gambler's ruin model in which the state can represent capital, and reaching is success.
Figure 1.
Five states with fair interior transitions and absorbing endpoints; each displayed value is the probability of reaching 4 before 0.
Details.
Let be the hitting time of endpoint , and let be the first endpoint hitting time. The desired hitting probability is . First-step analysis and the Markov property give
The interior equation says adjacent differences are equal. Four equal increments must bridge the boundary values and , so
For example, from state the hitting probability is , and its one-step average is . Individual sample paths can wander back and forth, but the same averaging rule already accounts for all of them.
Now ask how long it takes to reach either endpoint. The expected hitting time counts steps, including the transition that first reaches an endpoint. First-step analysis gives
This is a discrete Poisson equation, in the interior. The extra counts the step just taken. The quadratic values
satisfy the equations; from state , steps. The hitting probability is harmonic, whereas the expected hitting time has a nonzero source term. These are special cases of expected duration of symmetric gambler's ruin; see Hao Wu's MIT lecture 16, gambler's ruin, slide 9.
For a biased random walk with upward and downward, keep the same absorbing states. The interior harmonic equation becomes . Using biased gambler's ruin probability with these boundary values gives
The three interior hitting probabilities are approximately , , and . Thus starting at now succeeds about of the time. A direct check is . The curved profile reflects the unequal transition weights: its successive increments shrink by the factor . The formula, with the endpoint denoted there, is verified in Karger and Lynch's MIT lecture 26, sections 2.3-2.4; the five-state numbers here are direct substitutions.
Figure 2.
Hitting 4 before 0 for fair and upward-biased walks, compared with the fair walk's expected number of steps to either endpoint; lines join discrete state values.
Details.
Why does harmonic averaging produce the correct hitting probability? With the natural filtration , the Markov property gives the conditional expectation identity
For a function harmonic everywhere, this makes a martingale whenever it is integrable. For a function harmonic only in the interior, is a stopped martingale. In either five-state example, . Also, from any interior state at most three consecutive upward steps reach , with probability at least . Repeated three-step blocks give , so is almost surely finite and has finite expected value; compare finite-interval exit times have geometric tails. Applying optional stopping at and then the bounded convergence theorem gives
The boundedness and finite hitting time justify this passage to the limit. See Steven Lalley's notes, harmonic functions and stopped expectations, theorem 1, and stopped martingale in discrete time for this bounded version of optional stopping.
Uniqueness has a short maximum principle explanation. On a finite state space, the difference of two harmonic extensions with the same boundary conditions is zero on the boundary. If its positive maximum occurs inside, the weighted average forces every successor with positive transition probability to have the same maximum. A path to the boundary propagates that maximum to zero, a contradiction. Applying the argument to the negative of the difference proves uniqueness. Reachability of the boundary is essential: an interior closed communicating class can retain an arbitrary constant.
// Target: markov-process.bigb
The modular group is acting on the complex upper half-plane by
Its central element acts trivially on points, so the effective group is . It is generated by and : the Euclidean algorithm reduces the bottom row of a matrix using these operations until it is a translation. The relations hold in the projective group.
A standard fundamental domain of the modular group is
To see that each orbit meets it, use . Choose a coprime integer pair minimizing the nonzero lattice modulus ; a modular matrix with that bottom row maximizes the imaginary part. Translate to the central strip. If the result had modulus below one, inversion would further increase its imaginary part, a contradiction. Interior representatives are unique: for a point in the interior, when . For use ; for use the strip and the strict unit-circle bound. Thus such a matrix lowers the imaginary part, which would contradict the same fact applied to its inverse if both representatives were in the interior. Matrices with are translations, and cannot move one interior strip point to another.
The vertical sides are identified by , and the circular halves by . The exceptional points with elliptic stabilizers of the modular group are represented by and , of projective stabilizer orders two and three. The rational boundary points together with infinity form one modular cusp orbit. In the hyperbolic metric the region has area .
A useful subgroup is the level-two principal congruence subgroup,
Reduction modulo two is onto , which has six elements and permutes the three nonzero vectors. Hence its kernel has index six, and the quotient is . In the projective action, is torsion-free. Indeed finite-order nonidentity modular elements have trace zero or ; matrices in have even trace, and trace zero is impossible because are odd while are even: with would imply . The subgroup has three modular cusp classes, represented by , each of width two. Parity of a primitive pair distinguishes these classes, and elementary level-two row operations reduce each class to its representative. Six translates of supply a fundamental region. Its compactified level-two modular curve is obtained by adjoining these three modular cusp points.
Invariant holomorphic functions arise naturally from theta constants. In the radian convention of Question 4, put , and define
Here . The theta-constant inversion and translation laws, obtained by Gaussian Poisson summation and by reindexing, interchange under with the common factor , leave fixed up to that factor, and under interchange while multiplying by . Together with the Jacobi abstruse identity , this gives
These transformations generate the six permutations of . In particular and fix ; with , these generate . Thus the modular lambda function is invariant under this subgroup, but not under the whole modular group. Its even theta constants do not vanish on , so it is holomorphic there and avoids . Near infinity, , with , which is the width-two modular cusp coordinate. The two transformation laws give modular cusp values one at zero and infinity at one, with the same simple local orders. Thus has exactly one simple pole on the compactified level-two quotient and no pole in the half-plane. A meromorphic map with one simple pole has degree one, so it identifies that quotient with the sphere and the open quotient with . This proves the coordinate assertion and describes all three modular cusps.
Symmetrizing this subgroup invariant produces a full modular-invariant function:
Substitution shows that this rational expression is unchanged by both and , hence by and . It is the Klein j-invariant. Its denominator does not vanish on , so it is holomorphic there; at the modular cusp it has , a simple pole in . It therefore remains nonconstant without being a bounded holomorphic function on the compactified quotient. In fact a holomorphic invariant extending holomorphically to the compactified modular curve would be constant by the maximum principle.
This also connects invariance to elliptic curves: changing an oriented basis of the lattice gives precisely the modular action after a rescaling. On the compact full modular quotient, has just the one simple modular cusp pole, so its map to the sphere has degree one. It therefore classifies the resulting homothety of complex lattices classes, while the modular lambda function retains a level-two labeling of the branch points in the Legendre model . Finally, a modular form of nonzero weight obeys a transformation law with a factor , not plain invariance; ratios of equal-weight forms instead give weight-zero modular functions. The distinction between forms, invariant holomorphic functions on the open half-plane, and their modular cusp behavior is essential to this construction.
Strong maximum principle for harmonic functions Created 2026-09-24 Updated 2026-10-14
If a harmonic function on a connected domain attains an interior maximum or minimum, it is constant. The mean value property forces equality throughout every sufficiently small ball around an interior extremum, and connectedness propagates the equality.
This is the strong harmonic instance of the maximum principle.