\section{Introduction}\label{sec:intro} For \(n \ge 0\), let \(S_n\) be the symmetric group of permutations of \(\{1,\ldots,n\}\) in one-line notation (\(S_0\) consists of the empty permutation), and call \(|w| = n\) the \emph{size} of \(w \in S_n\). Given \(U \subseteq \{1,\ldots,n\}\), let \(w|U\) denote the permutation obtained by reading the entries of \(w\) at \(U\) in increasing position order and replacing their values by their relative ranks in \(\{1,\ldots,|U|\}\). A permutation \(u\) is a \emph{pattern} of \(w\), written \(u \preceq w\), if \(u = w|U\) for some \(U \subseteq \{1,\ldots,|w|\}\); write \(u \prec w\) when \(u \preceq w\) and \(u \ne w\). For example, \(\pat{927315864}|\{1,2,3,4,5,6\} = \pat{625314}\). The \emph{avoidance class} of a set \(E\) of permutations is \[ \Av(E) = \{w \in \textstyle\bigcup_{n\ge 0} S_n : b \npreceq w \text{ for all } b \in E\}. \] Let \(s_i = (i,i+1)\) (\(1 \le i < n\)) be the standard Coxeter generators of \(S_n\), with composition \((xy)(i) = x(y(i))\). An \emph{inversion} of \(x \in S_n\) is a pair \(i < j\) with \(x(i) > x(j)\). The Coxeter length \(\ell(x)\) is the number of inversions of \(x\), or equivalently the minimum number of factors in a generator expression for \(x\) (a \emph{reduced} expression). In the \emph{Bruhat order} \(\le\) on \(S_n\), \(x \le y\) if and only if some (equivalently, every) reduced expression for \(y\) contains a reduced expression for \(x\) as a subword. Let \(e \in S_n\) be the identity. Inside the complete flag variety \(\mathcal{F}\) of \(\mathbb{C}^n\), for each \(y \in S_n\) let \(x_y\) be the coordinate flag whose \(j\)-dimensional subspace is spanned by the standard basis vectors with indices \(y(1),\ldots,y(j)\), and let \(B \le \mathrm{GL}_n(\mathbb{C})\) be the subgroup of upper triangular matrices. Setting \(X_w = \overline{B \cdot x_w}\), we have \(x_y \in X_w\) if and only if \(y \le w\). For \(y \le w\), the Kazhdan--Lusztig polynomial \(P_{y,w}(q)\) is the local intersection cohomology Poincar\'e polynomial of \(X_w\) at \(x_y\), where the intersection cohomology complex is graded so that smooth points have stalk cohomology in degree \(0\) (shifted by \([-\dim X_w]\) from the perverse normalization), \(q^i\) records cohomological degree \(2i\), and the odd-degree groups vanish \cite{KazhdanLusztig80}. Put \(P_w(q) = P_{e,w}(q)\) and \(F(w) = P_w(1)\), with \(P_e(q) = 1\) in \(S_0\). Each \(P_{y,w}(q)\) has constant term \(1\) and nonnegative integer coefficients, and satisfies \(\deg P_{y,w} \le (\ell(w) - \ell(y) - 1)/2\) for \(y < w\) \cite{KazhdanLusztig79,KazhdanLusztig80}. Write \([q^j]f(q)\) for the coefficient of \(q^j\) in \(f(q)\) and \([q]f(q) = [q^1]f(q)\). For each positive integer \(m\), define \[ \KL_m = \{w : F(w) \le m\} \qquad\text{and}\qquad B_m = \{w : F(w) > m \text{ and } F(u) \le m \text{ for all } u \prec w\}. \] By Billey and Braden's pattern monotonicity theorem \cite[Theorem~1 and \S3.1]{BilleyBraden}, \(u \preceq w\) implies \(F(u) \le F(w)\). Hence \(\KL_m \subseteq \Av(B_m)\); conversely, if \(F(w) > m\), choosing a pattern \(u \preceq w\) of minimum size with \(F(u) > m\) gives \(u \in B_m\), so \(\Av(B_m) \subseteq \KL_m\). Thus \(\KL_m = \Av(B_m)\), and \(B_m\) is the pattern basis of \(\KL_m\). In type \(A\), smoothness of \(X_w\) coincides with rational smoothness \cite{Deodhar} and is characterized by \(F(w) = 1\): smooth Schubert varieties satisfy \(P_w(q) = 1\) \cite{KazhdanLusztig80}, whereas whenever \(X_w\) is singular, \(w\) contains \(\pat{3412}\) or \(\pat{4231}\) by Lakshmibai and Sandhya's criterion \cite{LakshmibaiSandhya}, and both patterns satisfy \(F = 2\). Hence \(B_1 = \{\pat{3412},\pat{4231}\}\). Billey and Weed computed the \(66\)-element basis \(B_2\) and asked whether \(B_m\) is finite for every \(m \ge 1\) \cite[Theorem~A.1 and Appendix~A, Question~(1)]{Woo}. Our main theorem answers this question affirmatively. \begin{theorem}\label{thm:main} For every positive integer \(m\), the basis \(B_m\) is finite. In particular, \(P_{e,w}(1) \le m\) if and only if \(w\) avoids the finite set \(B_m\). \end{theorem} \subsection{Key concepts and outline of the proof} A key tool in the proof of Theorem~\ref{thm:main} is the plateau quotient of Lapid and Shusterman \cite[\S5.4]{LapidShusterman}, which we call the descending core. \begin{definition}\label{def:core} A \emph{decreasing interval} of \(w \in S_n\) is a nonempty set of consecutive positions \(p,p+1,\ldots,p+a-1\) with \(w(p+j) = w(p) - j\) for \(0 \le j < a\). The maximal decreasing intervals partition \(\{1,\ldots,n\}\). Contracting each maximal decreasing interval to a single entry and standardizing yields the \emph{descending core} \(\rho(w)\); equivalently, \(\rho(w) = w|U\) for any subset \(U\) selecting one position from each maximal decreasing interval. Conversely, write \(\delta_a = a\,(a-1)\cdots 1\) for \(a \ge 1\). Given \(v \in S_k\) and positive integers \(a_1,\ldots,a_k\), the \emph{descending inflation} \(v[\delta_{a_1},\ldots,\delta_{a_k}]\) replaces each position \(i\) of \(v\) with a decreasing interval of length \(a_i\), placed in position order \(1,\ldots,k\), so that the values for \(i\) are all smaller than those for \(j\) whenever \(v(i) < v(j)\). \end{definition} For example, the maximal decreasing intervals of \(w = \pat{985437621}\) partition its entries into the four blocks \(\pat{98}\), \(\pat{543}\), \(\pat{76}\), and \(\pat{21}\); reading their value ranks in position order gives \(\rho(w) = \pat{4231}\) (so \(|\rho(w)| = 4\)) and \(w = \pat{4231}[\delta_2,\delta_3,\delta_2,\delta_2]\). Every \(w\) admits a unique representation \(w = \rho(w)[\delta_{a_1},\ldots,\delta_{a_k}]\), where \(k = |\rho(w)|\) and \(a_1,\ldots,a_k\) are the lengths of its maximal decreasing intervals. An \emph{adjacent descent by one} in \(v\) is a pair \(i, i+1\) with \(v(i) = v(i+1) + 1\). In particular, \(\rho(w)\) has no adjacent descent by one, since two adjacent blocks whose ranks were consecutive and decreasing would coalesce in \(w\). \begin{definition}\label{def:graphs} For a permutation \(v \in S_k\): \begin{enumerate} \item The \emph{inversion graph} \(G_v\) is the undirected graph on \(\{1,\ldots,k\}\) joining \(i < j\) whenever \((i,j)\) is an inversion of \(v\). \item The \emph{strict inversion order} \(<_v\) on \(\{1,\ldots,k\}\) is given by \(i <_v j\) if \(i < j\) and \(v(i) > v(j)\), so \(G_v\) is its comparability graph. A relation \(i <_v j\) is a \emph{cover} if no \(k'\) satisfies \(i <_v k' <_v j\). The \emph{Hasse diagram} \(\Gamma_v\) is the directed graph on \(\{1,\ldots,k\}\) with edges \(i \to j\) for covers; its minimal and maximal elements under \(<_v\) are its \emph{sources} (no incoming edges) and \emph{sinks} (no outgoing edges). \item For a graph \(H\) (directed or undirected), write \(V(H)\) and \(E(H)\) for its vertex and edge sets, \(H - x\) for the graph obtained by deleting vertex \(x\) and its incident edges, and \(c(H)\) for its number of connected components (ignoring edge directions). An undirected graph \(H\) has a \emph{cut vertex} \(x\) if \(c(H-x) > c(H)\), and is \emph{\(2\)-connected} if it is connected, has at least three vertices, and has no cut vertex. The \emph{cycle rank} of \(H\) is \(\beta(H) = |E(H)| - |V(H)| + c(H)\). \end{enumerate} \end{definition} A \emph{chain} in a poset is a set of pairwise comparable elements. Figure~\ref{fig:graphs} contrasts \(G_v\) and \(\Gamma_v\) for \(v \in S_9\). \input{figure-graphs} The proof proceeds by showing that \(|\rho(w)| \le 15m - 3\) for all \(w \in B_m\). When \(|\rho(w)| \ge 3\) and \(G_{\rho(w)}\) is not \(2\)-connected, Section~\ref{sec:product} proves a Kazhdan--Lusztig product formula for a partition separated by a decreasing subsequence (with an alternative geometric proof of its Hecke-algebra core, Lemma~\ref{lem:hecke}, in Appendix~\ref{sec:geometric-appendix}), and Section~\ref{sec:cut} constructs such a partition from a component or cut-vertex split, enabling Section~\ref{sec:finiteness} to bound \(|\rho(w)|\) by induction on \(m\). When \(G_{\rho(w)}\) is \(2\)-connected, Section~\ref{sec:linear} identifies \([q]P_u(q)\) with \(\beta(\Gamma_u)\), bounds \(\beta(\Gamma_{\rho(w)})\) by averaging over one-position deletions, and rules out two local configurations in \(\Gamma_{\rho(w)}\); Section~\ref{sec:core-bound} then deduces \(|\rho(w)| \le 15m - 3\) from the interval structure of sources and sinks and two auxiliary posets. Finally, Section~\ref{sec:finiteness} combines both cases and observes that for each fixed core, the block-length vectors of elements in \(B_m\) form an antichain under coordinatewise comparison, so Dickson's lemma \cite{Dickson} completes the proof of Theorem~\ref{thm:main}. Section~\ref{sec:remarks} closes with remarks on effectivity, sharpness of the core bound, and other Weyl groups. \subsection*{Note on the use of AI} Almost all of the proofs and exposition in this paper were produced by AI systems (GPT-6.2 Sol and Gemini 4 Neon). The author's role was limited to reading and understanding the arguments and revising the paper to improve its clarity and presentation, and the author takes responsibility for the correctness of the work.