[step:Encode the permutation by its growth diagram]
Let $\Lambda$ denote the Young lattice, whose elements are partitions and whose cover relation is addition of one box. For the permutation $\pi=\pi_1\cdots\pi_n$, define the permutation matrix set
\begin{align*}
M_\pi := \{(i,\pi_i):1\le i\le n\}\subset \{1,\dots,n\}\times\{1,\dots,n\}.
\end{align*}
A Fomin growth diagram for $\pi$ is an assignment $\Gamma_\pi:\{0,\dots,n\}\times\{0,\dots,n\}\to \Lambda$ with empty partitions on the south and west boundaries,
\begin{align*}
\Gamma_\pi(i,0)=\varnothing,\qquad \Gamma_\pi(0,j)=\varnothing,
\end{align*}
and with each unit square determined by the Fomin local rule from the three southwest-corner partitions and whether the square contains a mark of $M_\pi$.
By the growth-diagram convention fixed in the theorem statement, equivalently the row-insertion [Robinson-Schensted-Knuth bijection theorem](/theorems/8435) in this convention, the north boundary chain
\begin{align*}\varnothing=\Gamma_\pi(0,n)\subset \Gamma_\pi(1,n)\subset \cdots \subset \Gamma_\pi(n,n)\end{align*}
encodes the recording tableau $Q(\pi)$, while the east boundary chain
\begin{align*}\varnothing=\Gamma_\pi(n,0)\subset \Gamma_\pi(n,1)\subset \cdots \subset \Gamma_\pi(n,n)\end{align*}
encodes the insertion tableau $P(\pi)$. More explicitly, if a saturated chain of partitions
\begin{align*}
\varnothing=\lambda_0\subset\lambda_1\subset\cdots\subset\lambda_n
\end{align*}
has $|\lambda_k|=k$ for every $k$, then it encodes the standard tableau whose entry $k$ is placed in the unique box of $\lambda_k\setminus\lambda_{k-1}$.
[/step]