Paperlane

no. 22 · Wednesday 25 November 2026

Depth of leaves in closed linear $λ$-terms: exact recurrence, limit law and edge window

Olivier Bodini

math.CO · via cs.LO

Abstract

Let $K_n$ (resp.\ $D_n$) be the depth of a uniform leaf (resp.\ node) in a uniform closed linear $λ$-term of size $n$. A bijective \emph{grafting identity} yields an exact polynomial-time recurrence for the full depth profile. By the method of moments, $K_n/n$ converges in law to the density $3x/\sqrt{1-2x}$ on $[0,\frac12]$, i.e.\ $2K_n/n\to\Beta(2,\frac12)$, with $\mathbb E[K_n^r]/n^r\to3(r+1)!/(2r+3)!!$; likewise $1-2D_n/n\to\Beta(\frac12,1)$. A backward Markov chain gives the corresponding local limits for $k\le(\frac12-\varepsilon)n$. The limit density diverges at $\frac12$, and the profile has a second scale: a window of width $\sqrt n$ around $n/2$, which carries a fraction of order $n^{-1/4}$ of the nodes, at a density $n^{1/4}$ times larger than in the bulk. We prove that a single explicit function describes both regimes: uniformly in $d$, \[ n^{3/4}\,\mathbb P(D_n=d)=g\Bigl(\tfrac{d-n/2}{\sqrt n}\Bigr)+O(n^{-1/16}),\qquad n^{3/4}\,\mathbb P(K_n=d)=\tfrac{3d}{n}\,g\Bigl(\tfrac{d-n/2}{\sqrt n}\Bigr)+O(n^{-1/16}), \] where $g(y)=2^{-1/2}e^{-y^2}D_{-1/2}(2y)$ is a parabolic cylinder function. In particular $\mathbb P(K_n>n/2)\sim\frac34\,\mathbb E|Z|^{1/2}\,n^{-1/4}\approx0.6166\,n^{-1/4}$ with $Z$ standard Gaussian. The proofs rest on harmonic functions of the heat equation evaluated along the backward chain.

fields
Combinatorics