Let a simple symmetric random walk start from a deterministic integer , and put . Then is a martingale with . The visit count includes time if .
For every integer and step , the pathwise identity
holds with . Subtract the indicator function and sum over time to obtain
The sign function of the current state is a bounded predictable process for the next increment, so the sum is a martingale transform. Alternatively, averaging the two possible next absolute values shows directly that the conditional drift is . Bounds and verify integrability at each finite time.
This is an absolute-value version of the discrete Tanaka formula. The correction records the occasions when the random walk is at the corner of the absolute-value function; away from zero that function is locally linear along a single step.
For an integer and , verify the single-step identity
If , the positive part is linear across the step and ; if , it remains zero and . At , , which is checked for the three permitted values of .
Apply this with and , and telescope over . The result is the discrete Tanaka formula
The first sum is a martingale transform; the second records the correction at the kink of the positive part. The algebraic identity itself needs only the integer values and permitted increments, not the martingale property.
Taking expectations in the single-step discrete Tanaka formula, the martingale transform term vanishes because is bounded and -measurable. Hence
At a state with , the tower property of conditional expectation gives , so the conditional second moment of the increment is . Part (a) gives . Combining these identities yields the discrete Dupire equation
The conditional variance needs a positive-probability conditioning state. The bound does not guarantee . If , both the call-price curvature and the time increment above are zero; the equation can be extended by assigning an arbitrary finite value to at such a state, but its conditional variance is not determined there.
The filtration is generated by the successive independent random variables . Each is adapted, and makes it an integrable random variable. Since independence gives ,
Thus is a martingale.
Write the accumulated number of visits to zero as
It is adapted, and . Thus is also adapted and an integrable random variable. For every integer ,
Conditioning on and using independence of the next step therefore gives
The drift of the absolute value is cancelled exactly by the visit count, so . Hence both and are martingales. The latter is the absolute value martingale of a simple symmetric random walk, a discrete Tanaka formula in which visits to zero supply the correction at the corner of the absolute-value function.