Left to Solve
Problems / MathOverflow (not formalized)

Compute the expected value of the next step of a sorted random walk

Open, not yet stated in LeanMathOverflow (not formalized)Probabilitydifficulty55/100

Statement

Here's what I'm thinking about. If you have a random walk (move +1 or -1 at each step) of some fixed length, then if you're at the maximum of the walk, the next step you take is -1 with probability 1. Similarly, if you're at the minimum, then the next step you take is +1 with probability 1. I'm wondering if these are special cases of a more general phenomenon. My guess is that if you're near the maximum of the walk, then the expected value of the next step is negative and if you're near the minimum of the walk, then the expected value of the next step is positive. I'm trying to make this intuition rigorous. Here's what I've got so far.

Start with an N step random walk:

• I have a random variable with .

• Fix and take independent trials to get , where .

• Now the random walk is given by , where we take .

Now what I want to do is to sort the walk based on position:

• Let , where ties are broken by taking the earlier instance.

• Let be the sort permutation for getting from so that means that .

Finally, the problem I have …

Posed by Random Walker · pr.probability, random-walks, probability-distributions

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-71011.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-71011.lean

import Mathlib

/-!
# Compute the expected value of the next step of a sorted random walk

Source: https://mathoverflow.net/questions/71011
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_71011

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_71011