[step:Derive the same chain formula from the Möbius recurrence]Define a function
\begin{align*}
M:\{(a,b)\in P\times P:a\le b\}\to \mathbb Z
\end{align*}
by
\begin{align*}
M(a,a)=1
\end{align*}
and, for $a<b$,
\begin{align*}
M(a,b)=\sum_{r\ge 0}(-1)^{r+1}|\mathcal C_r(a,b)|,
\end{align*}
where
\begin{align*}
\mathcal C_r(a,b):=\{(w_0,\dots,w_{r+1})\in P^{r+2}:a=w_0<w_1<\cdots<w_r<w_{r+1}=b\}.
\end{align*}
Because $P$ is finite, every displayed sum is finite.
We verify the recurrence in [citetheorem:8139]. Fix $a,b\in P$ with $a<b$. Write
\begin{align*}
c_s(a,b):=|\mathcal C_s(a,b)|
\end{align*}
for each integer $s\ge 0$. Since $a<b$, the set $\mathcal C_0(a,b)$ consists of the single chain $a<b$, so $c_0(a,b)=1$. Expanding the left recurrence gives
\begin{align*}
\sum_{a\le z\le b}M(a,z)=1+\sum_{a<z<b}M(a,z)+M(a,b).
\end{align*}
The term $M(a,b)$ is
\begin{align*}
M(a,b)=\sum_{s\ge 0}(-1)^{s+1}c_s(a,b).
\end{align*}
It remains to reindex the middle sum. For $a<z<b$ and $r\ge 0$, appending $b$ to a chain in $\mathcal C_r(a,z)$ produces a unique chain in $\mathcal C_{r+1}(a,b)$ whose final interior element is $z$. Conversely, every chain in $\mathcal C_s(a,b)$ with $s\ge 1$ has a unique final interior element $z=w_s$, and deleting the terminal $b$ gives an element of $\mathcal C_{s-1}(a,z)$. Therefore
\begin{align*}
\sum_{a<z<b}M(a,z)=\sum_{s\ge 1}(-1)^s c_s(a,b).
\end{align*}
Substituting the two expansions yields
\begin{align*}
\sum_{a\le z\le b}M(a,z)=1+\sum_{s\ge 1}(-1)^s c_s(a,b)+\sum_{s\ge 0}(-1)^{s+1}c_s(a,b).
\end{align*}
The $s=0$ term in the final sum is $-c_0(a,b)=-1$, and for each $s\ge 1$ the two coefficients $(-1)^s$ and $(-1)^{s+1}$ cancel. Hence
\begin{align*}
\sum_{a\le z\le b}M(a,z)=0.
\end{align*}
We have proved $M(a,a)=1$ and
\begin{align*}
\sum_{a\le z\le b}M(a,z)=0
\end{align*}
for every $a<b$. By the uniqueness part of the [interval recursion for the Möbius function](/theorems/8139) in [citetheorem:8139],
\begin{align*}
M(a,b)=\mu_P(a,b)
\end{align*}
for all $a\le b$ in $P$. In particular, for $x<y$,
\begin{align*}
\mu_P(x,y)=\sum_{r\ge 0}(-1)^{r+1}|\mathcal C_r(x,y)|.
\end{align*}[/step]