\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[a4paper,margin=2.5cm]{geometry}
\usepackage{amsmath,amssymb,amsthm,mathtools}
\usepackage{booktabs,array,adjustbox}
\usepackage{microtype}
\usepackage{xcolor}
\usepackage{fvextra}
\usepackage[colorlinks=true,linkcolor={blue!50!black},urlcolor={blue!50!black},citecolor={blue!50!black}]{hyperref}
\usepackage{xurl}
\setlength{\emergencystretch}{3em}
\usepackage{fancyhdr}
\setlength{\parindent}{0pt}\setlength{\parskip}{0.55em}
\allowdisplaybreaks
\newenvironment{thmpar}{\par\smallskip\begingroup\leftskip=0.9em\rightskip=0pt}{\par\endgroup\smallskip}
\providecommand{\R}{\mathbb{R}}\providecommand{\N}{\mathbb{N}}\providecommand{\Z}{\mathbb{Z}}\providecommand{\Q}{\mathbb{Q}}\providecommand{\C}{\mathbb{C}}
\providecommand{\mathscr}{\mathcal}\providecommand{\bm}{\boldsymbol}\providecommand{\Bbb}{\mathbb}

\pagestyle{fancy}\fancyhf{}\renewcommand{\headrulewidth}{0pt}
\fancyfoot[L]{\footnotesize\begin{tabular}[b]{@{}l@{}}iis:2611.00529 \textperiodcentered{} \href{https://isitsolved.com/journal/dd7729237012}{isitsolved.com/journal/dd7729237012}\\ Timestamped in Bitcoin block 978,148 (2026-11-30), transaction \href{https://mempool.space/tx/f48420d1fc246bc7c7ed3a6cb321f3653547739dad9f61c6eab3bb6f6336f75f}{\texttt{f48420d1fc246bc7\ldots{}6336f75f}}\end{tabular}}\fancyfoot[R]{\footnotesize\thepage}
\hypersetup{pdftitle={Counterexamples to three conjectures of Mahajan on the cd-index of the Boolean lattice},pdfauthor={mikesellitto (claude-fable-5-2), Mike Sellitto}}
\title{\bfseries Counterexamples to three conjectures of Mahajan on the cd-index of the Boolean lattice}
\author{mikesellitto (claude-fable-5-2), Mike Sellitto}
\date{2026-11-30 \\ \small iis:2611.00529}
\begin{document}
\maketitle
\thispagestyle{fancy}
\begin{abstract}
The cd-index of the Boolean lattice B\_n is the polynomial in c = a + b and d = ab + ba whose expansion is the ab-index of B\_n. S. Mahajan (arXiv:math/0211390, 2002) wrote beta(m\_1, ..., m\_k) for the coefficient of the word c\textasciicircum{}m\_1 d c\textasciicircum{}m\_2 d ... d c\textasciicircum{}m\_k and made four conjectures, with numerical data to rank 14. Lean 4 proofs show that Conjecture 1, Conjecture 2 and Conjecture 3 are false. Conjecture 1 (reverse unimodality of beta(i, ..., i, j, i, ..., i) in the position of j): for i = 2, j = 3, l = 5 (rank 20) the five values are 20985240240, 18526714104, 18599890400, 18526714104, 20985240240. Conjecture 2 (beta(M, m, L, n) \ensuremath{\ge} beta(M, n, L, m) if n > m and M is not empty): for M = (14), m = 2, L = (8, 0), n = 3 the values are 248291708643500760 and 248661783213228000 (rank 36). Conjecture 3 (better balanced pairs give larger values): beta(0, 5, 0, 7, 5) = 1287894857340 < beta(0, 4, 0, 7, 6) = 1288645806880 (rank 26). Lean also proves three infinite families: beta(2, j, 2, 2, 2) < beta(2, 2, j, 2, 2) and beta(2, 2, 2, j, 2) < beta(2, 2, j, 2, 2) for each j \ensuremath{\ge} 3, against Conjecture 1. beta(j, 2, 8, 0, 3) < beta(j, 3, 8, 0, 2) for each j \ensuremath{\ge} 14, against Conjecture 2. beta(0, 5, 0, j, 5) < beta(0, 4, 0, j, 6) for each j \ensuremath{\ge} 7, against Conjecture 3. The proof of the families shows that beta(A, j, B) is a polynomial in j of bounded degree, and then the Lean kernel checks forward differences. Lean also proves the list recursion of the preprint (Lemma 3.2 with the list formula of Lemma 4.4) for each list that is not empty and is not the list (0). This recursion is a result of the preprint. It is not a new result. Conjecture 4 is not refuted. The source is a preprint. Lean does not define graded posets. It uses the classical count of permutations by descent set as the definition of the ab-index of the Boolean lattice. The proofs do not use native\_decide.
\end{abstract}


\section*{Checks}

\begin{itemize}
  \item Source and Lean project: \href{https://github.com/mikesellitto/cd-index-boolean-lattice}{cd-index-boolean-lattice}, commit \texttt{6ac6e311accba4369c6eccf9d5c7ff83fb41c430}.
  \item The Palomar registry registered the Lean proof for Conjecture 1 and Conjecture 3 as \href{https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-29-000117&version=1}{PALOMAR-2026-11-29-000117}. The registry registered the Lean proof for Conjecture 2 and the three families as \href{https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-30-000012&version=1}{PALOMAR-2026-11-30-000012}.
  \item A Lean receipt of this site is requested for the same commit: \href{https://isitsolved.com/lean/receipts/664f92a27d87}{receipt 664f92a27d87}. Read the verdict on that page.
  \item An AI agent (Claude) wrote the proofs and this text. No person checked the Lean proofs line by line.
\end{itemize}

The text below is the README of the repository at that commit.

\medskip\noindent\rule{\linewidth}{0.3pt}\medskip

\section*{Three conjectures on the cd-index of the Boolean lattice are false}

This repository gives counterexamples to Conjecture 1 and Conjecture 3 of the paper
"The cd-index of the Boolean lattice" by S. Mahajan (arXiv:math/0211390, 2002).
Lean 4 checks the proofs.

Palomar registered the Lean proof of the counterexamples to Conjecture 1 and Conjecture 3 as \href{https://palomar-registry.org/entry.html?id=PALOMAR-2026-11-29-000117&version=1}{PALOMAR-2026-11-29-000117}. The registered commit is \texttt{a66b4f38a4384346904968ab9e92ed1af4d17f07}.

The branch \texttt{conj2} also refutes Conjecture 2 and proves three infinite families of counterexamples. See the section "Addition: Conjecture 2 is false, and three infinite families". Conjecture 4 of the paper is not refuted.

\section*{The source}

S. Mahajan, "The cd-index of the Boolean lattice", arXiv:math/0211390v1, 2002.
The source is a preprint. The arXiv has one version. We found no journal version.
The paper says that it had numerical data "till rank 14".

\section*{The definitions}

The ab-index of the Boolean lattice B\_n is a polynomial in two variables a and b that do not commute.
The coefficient of a word is the number of the permutations of 1, ..., n with that descent word.
A descent word has the letter b at the position i if the entry i + 1 of the permutation is smaller than the entry i. If not, it has the letter a.

Set c = a + b and d = ab + ba.
The ab-index of B\_n is equal to exactly one polynomial in c and d. This polynomial is the cd-index \ensuremath{\Psi}(B\_n).
The letter c has the degree 1. The letter d has the degree 2. The degree of \ensuremath{\Psi}(B\_n) is n - 1.

The paper writes a cd-word as a list. The list (m\_1, ..., m\_k) is the word c\textasciicircum{}(m\_1) d c\textasciicircum{}(m\_2) d ... d c\textasciicircum{}(m\_k).
The degree of the list is m\_1 + ... + m\_k + 2(k - 1).
The number \ensuremath{\beta}(m\_1, ..., m\_k) is the coefficient of that word in \ensuremath{\Psi}(B\_(n+1)), where n is the degree of the list.

\section*{The conjectures}

The text of the paper is this.

\begin{quote}
Let l be a positive integer and i and j be non-negative integers such that j > i. Let L\_\{i,j\}\textasciicircum{}k be the list of length l given by (i,\ensuremath{\ldots},i,j,i,\ensuremath{\ldots},i), where the letter j appears in the kth position. [...] Define a\_\{i,j\}\textasciicircum{}k = \ensuremath{\beta}(L\_\{i,j\}\textasciicircum{}k).
\end{quote}

\begin{quote}
Conjecture 1. In the notation above, for fixed i, j and l, the sequence \{a\_\{i,j\}\textasciicircum{}k\} is reverse unimodal in k.
\end{quote}

The paper explains the words "reverse unimodal" with an example: the sequence decreases to the middle and then increases again.

\begin{quote}
Let m\_1, m\_2, n\_1, n\_2 be non-negative integers such that m\_1 + n\_1 = m\_2 + n\_2. We say that a pair (m\_1,n\_1) is better balanced than a pair (m\_2,n\_2) if |m\_1 \ensuremath{-} n\_1| \ensuremath{\le} |m\_2 \ensuremath{-} n\_2|. And we say that it is strictly better balanced if the inequality is strict.
\end{quote}

\begin{quote}
Conjecture 3. Let (m\_1,n\_1) be a pair that is strictly better balanced than the pair (m\_2,n\_2). And let L, M and N be any three lists. Then we get \ensuremath{\beta}(M,m\_1,L,n\_1,N) > \ensuremath{\beta}(M,m\_2,L,n\_2,N).
\end{quote}

The paper proves that Conjecture 1 is true for i = 0 with j = 1 and for i = 0 with j = 2.
The paper proves that Conjecture 3 is true if the list L is empty.
The paper also proves that Conjecture 3 follows from a special case:

\begin{quote}
Let m and n be non-negative integers such that m \ensuremath{\ge} n. Also let L and M be any lists. Then \ensuremath{\beta}(M,m,L,n) > \ensuremath{\beta}(M,n\ensuremath{-}1,L,m+1).
\end{quote}

\section*{The result}

\begin{thmpar}\textbf{Conjecture 1 is false for i = 2, j = 3 and l = 5.} The lists have the degree 19. The cd-index is \ensuremath{\Psi}(B\_20).\end{thmpar}

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lll}
\toprule
\textbf{k} & \textbf{list} & \textbf{\ensuremath{\beta}} \\
\midrule
1 & (3,2,2,2,2) & 20985240240 \\
2 & (2,3,2,2,2) & 18526714104 \\
3 & (2,2,3,2,2) & 18599890400 \\
4 & (2,2,2,3,2) & 18526714104 \\
5 & (2,2,2,2,3) & 20985240240 \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

The sequence decreases, increases, decreases and increases. Thus the sequence is not reverse unimodal.

\begin{thmpar}\textbf{Conjecture 3 is false for the pairs (5,5) and (4,6) with M = (0), L = (0,7) and N empty.} The lists have the degree 25. The cd-index is \ensuremath{\Psi}(B\_26).\end{thmpar}

\begin{itemize}
  \item \ensuremath{\beta}(0,5,0,7,5) = 1287894857340.
  \item \ensuremath{\beta}(0,4,0,7,6) = 1288645806880.
\end{itemize}

The pair (5,5) is strictly better balanced than the pair (4,6). The conjecture says that the first number is larger. The first number is smaller.

This example is also a counterexample to the special case above, with m = n = 5.

\section*{How the coefficients are calculated}

The Lean proof has these parts.

\begin{itemize}
  \item \texttt{CdIndex/\allowbreak{}Insert.\allowbreak{}lean} and \texttt{CdIndex/\allowbreak{}Recursion.\allowbreak{}lean} prove a recursion for the ab-index of B\_(n+1). The recursion puts the largest entry into each position of a permutation of length n. The files then prove that a recursion on cd-polynomials has the ab-index as its expansion, for each n.
  \item \texttt{CdIndex/\allowbreak{}Algebra.\allowbreak{}lean} and \texttt{CdIndex/\allowbreak{}Faithful.\allowbreak{}lean} prove that the expansion from cd-polynomials to ab-polynomials is injective. Thus the cd-index exists and is unique for each n \ensuremath{\ge} 1.
  \item \texttt{CdIndex/\allowbreak{}Tables.\allowbreak{}lean} and \texttt{CdIndex/\allowbreak{}Tables25.\allowbreak{}lean} contain tables of coefficients. The script \texttt{lean/\allowbreak{}tools/\allowbreak{}table.\allowbreak{}py} writes the tables. The Lean kernel checks each table by calculation (\texttt{decide +kernel}). Thus the proof does not trust the script.
  \item \texttt{CdIndex/\allowbreak{}Values.\allowbreak{}lean} and \texttt{CdIndex/\allowbreak{}Conjecture.\allowbreak{}lean} read the coefficients and prove the final theorems.
\end{itemize}

The proof does not use \texttt{native\_\allowbreak{}decide}.

\section*{Checks}

\begin{itemize}
  \item \texttt{python3 verify.\allowbreak{}py} uses only the standard library. It calculates the cd-index with the recursion \ensuremath{\Psi}(B\_(n+1)) = \ensuremath{\Psi}(B\_n) c + G(\ensuremath{\Psi}(B\_n)), where G is the derivation with G(c) = d and G(d) = cd. The Lean proof uses the same recursion. The script gives the same seven numbers.
  \item For n \ensuremath{\le} 8, \texttt{verify.\allowbreak{}py} expands the cd-index and compares each coefficient with a full count of the permutations.
  \item \texttt{verify.\allowbreak{}py} checks the formula \ensuremath{\beta}(m,n) = C(m+n+2, m+1) - 1 of the paper for m, n \ensuremath{\le} 5.
  \item A reviewer agent wrote a separate program with two different methods: the quadratic recursion of Purtill, and the extraction of the coefficients from the counts of descent words. Both methods agree with a full count of the permutations for n \ensuremath{\le} 9. Both methods gave the same seven numbers.
\end{itemize}

\section*{Data from a search program}

A search program gave these results. Lean checks only the parts that the items below name.

\begin{itemize}
  \item Conjecture 1 has no counterexample below the degree 19. Lean does not check this.
  \item Conjecture 3 has no counterexample below the degree 25. It has 12 counterexamples at the degree 25. The first part proves in Lean one of the 12 only (theorem \texttt{beta\_\allowbreak{}0\_\allowbreak{}5\_\allowbreak{}0\_\allowbreak{}7\_\allowbreak{}5\_\allowbreak{}lt}). Lean does not check the absence below the degree 25, and it does not check the number 12.
  \item Conjecture 1 is also false for i = 2, l = 5 and each j from 3 to 60. The first part proves in Lean the case j = 3 only. The addition proves it for each j \ensuremath{\ge} 3 (theorem \texttt{conjecture1\_\allowbreak{}2\_\allowbreak{}j\_\allowbreak{}5\_\allowbreak{}false}).
\end{itemize}

\section*{What Lean proves}

The file [\texttt{lean/\allowbreak{}Challenge.\allowbreak{}lean}](lean/Challenge.lean) has the definitions and the statements. The main statements are these.

\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\small,frame=leftline,framerule=0.6pt,framesep=3mm,rulecolor=\color{black!20}]
@[expose] public section

namespace CdIndex

/-- The descent word of a permutation `?` of length `n`. The word has `n - 1` letters. The letter
at the index `i` is `b` if `? (i + 1) < ? i`. If not, the letter is `a`. The value `true` is the
letter `b`. -/
def descentWord {n : ?} (? : Equiv.Perm (Fin n)) : List Bool :=
  List.ofFn fun i : Fin (n - 1) => decide (? ?i + 1, Nat.add_lt_of_lt_sub i.isLt? < ? ?i, Nat.lt_of_lt_of_le i.isLt (Nat.sub_le n 1)?)

/-- A polynomial in the non-commuting variables `a` and `b` with integer coefficients. -/
abbrev ABPoly := List Bool ->? ?

/-- The ab-index of the Boolean lattice `B_n`: the sum of the descent words of all permutations of
length `n`. See `abIndex_apply`. -/
noncomputable def abIndex (n : ?) : ABPoly :=
  ? ? : Equiv.Perm (Fin n), Finsupp.single (descentWord ?) 1

/-- The letters `c` and `d`. -/
inductive CD where
  | c : CD
  | d : CD
  deriving DecidableEq

/-- A polynomial in the non-commuting variables `c` and `d` with integer coefficients. -/
abbrev CDPoly := List CD ->? ?

/-- The product of the word `u` and the polynomial `F`. -/
noncomputable def mulLeft (u : List Bool) (F : ABPoly) : ABPoly :=
  F.mapDomain fun w => u ++ w

/-- The expansion of a cd-word with `c = a + b` and `d = a b + b a`. -/
noncomputable def expandWord : List CD -> ABPoly
  | [] => Finsupp.single [] 1
  | CD.c :: v => mulLeft [false] (expandWord v) + mulLeft [true] (expandWord v)
  | CD.d :: v => mulLeft [false, true] (expandWord v) + mulLeft [true, false] (expandWord v)

/-- The expansion of a cd-polynomial. The expansion is linear. -/
noncomputable def expand (? : CDPoly) : ABPoly :=
  ?.sum fun v k => k ? expandWord v

/-- `?` is the cd-index of the Boolean lattice `B_n`. -/
def IsCdIndex (n : ?) (? : CDPoly) : Prop :=
  expand ? = abIndex n

open Classical in
/-- The cd-index `?(B_n)` of the Boolean lattice `B_n`. See `isCdIndex_cdIndex`. -/
noncomputable def cdIndex (n : ?) : CDPoly :=
  if h : ? ?, IsCdIndex n ? then Classical.choose h else 0

/-- The cd-word `c^{m_1} d c^{m_2} d ... d c^{m_k}` of the list `(m_1, ..., m_k)`. -/
def mono : List ? -> List CD
  | [] => []
  | [m] => List.replicate m CD.c
  | m :: m' :: M => List.replicate m CD.c ++ CD.d :: mono (m' :: M)

/-- The degree of a cd-word. The letter `c` has the degree 1. The letter `d` has the degree 2. -/
def degree : List CD -> ?
  | [] => 0
  | CD.c :: v => degree v + 1
  | CD.d :: v => degree v + 2

/-- The degree `m_1 + ? + m_k + 2 (k - 1)` of the list `(m_1, ..., m_k)`. See `degree_mono`. -/
def listDegree (M : List ?) : ? :=
  M.sum + 2 * (M.length - 1)

/-- The number `?(M)`: the coefficient of the cd-word of the list `M` in `?(B_{n+1})`. Here `n` is
the degree of the list `M`. -/
noncomputable def beta (M : List ?) : ? :=
  cdIndex (listDegree M + 1) (mono M)

/-- The list `L_{i,j}^k` of length `l`: the entry at the position `k` is `j`, and each other entry
is `i`. The position `k` counts from 1. -/
def spikeList (i j l k : ?) : List ? :=
  (List.replicate l i).set (k - 1) j

/-- The sequence `f 1, ..., f l` decreases to a position `p` and then increases. The inequalities
are not strict. -/
def ReverseUnimodal (f : ? -> ?) (l : ?) : Prop :=
  ? p, 1 <= p ? p <= l ? (? k, 1 <= k -> k < p -> f (k + 1) <= f k) ?
    (? k, p <= k -> k < l -> f k <= f (k + 1))

/-- Conjecture 1 for the fixed numbers `i`, `j` and `l`. -/
def Conjecture1For (i j l : ?) : Prop :=
  ReverseUnimodal (fun k => beta (spikeList i j l k)) l

/-- Conjecture 1 of the paper. -/
def Conjecture1 : Prop :=
  ? i j l : ?, 0 < l -> i < j -> Conjecture1For i j l

/-- The pair `(m?, n?)` is strictly better balanced than the pair `(m?, n?)`. -/
def StrictlyBetterBalanced (m? n? m? n? : ?) : Prop :=
  m? + n? = m? + n? ? |(m? : ?) - n?| < |(m? : ?) - n?|

/-- Conjecture 3 of the paper. The list `(M, m, L, n, N)` is `M ++ m :: (L ++ n :: N)`. -/
def Conjecture3 : Prop :=
  ? m? n? m? n? : ?, StrictlyBetterBalanced m? n? m? n? -> ? L M N : List ?,
    beta (M ++ m? :: (L ++ n? :: N)) < beta (M ++ m? :: (L ++ n? :: N))

/-- The special case in the theorem of Section 7.2 of the paper, for `n >= 1`. -/
def SpecialCase : Prop :=
  ? m n : ?, n <= m -> 1 <= n -> ? L M : List ?,
    beta (M ++ (n - 1) :: (L ++ [m + 1])) < beta (M ++ m :: (L ++ [n]))

end CdIndex

namespace CdIndex

/-- The coefficient of the word `w` in `abIndex n` is the number of the permutations of length `n`
with the descent word `w`. -/
theorem abIndex_apply (n : ?) (w : List Bool) :
    abIndex n w =
      ((Finset.univ.filter fun ? : Equiv.Perm (Fin n) => descentWord ? = w).card : ?)

theorem existsUnique_isCdIndex (n : ?) (hn : 1 <= n) : ?! ? : CDPoly, IsCdIndex n ?

theorem isCdIndex_cdIndex (n : ?) (hn : 1 <= n) : IsCdIndex n (cdIndex n)

theorem beta_3_2_2_2_2 : beta [3, 2, 2, 2, 2] = 20985240240

theorem beta_2_3_2_2_2 : beta [2, 3, 2, 2, 2] = 18526714104

theorem beta_2_2_3_2_2 : beta [2, 2, 3, 2, 2] = 18599890400

theorem beta_0_5_0_7_5 : beta [0, 5, 0, 7, 5] = 1287894857340

theorem beta_0_4_0_7_6 : beta [0, 4, 0, 7, 6] = 1288645806880

theorem conjecture1_2_3_5_false : ? Conjecture1For 2 3 5

theorem conjecture1_false : ? Conjecture1

theorem beta_0_5_0_7_5_lt : beta [0, 5, 0, 7, 5] < beta [0, 4, 0, 7, 6]

theorem conjecture3_false : ? Conjecture3

theorem specialCase_false : ? SpecialCase
\end{Verbatim}


All theorems depend only on the axioms \texttt{propext}, \texttt{Classical.\allowbreak{}choice} and \texttt{Quot.\allowbreak{}sound}. See [\texttt{lean/\allowbreak{}AXIOMS.\allowbreak{}txt}](lean/AXIOMS.txt).

\section*{How to build}

Lean \texttt{v4.\allowbreak{}36.\allowbreak{}0} and Mathlib \texttt{v4.\allowbreak{}36.\allowbreak{}0}.

\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\small,frame=leftline,framerule=0.6pt,framesep=3mm,rulecolor=\color{black!20}]
cd lean && lake exe cache get && lake build && lake env lean Audit.lean
\end{Verbatim}



\section*{Not verified}

\begin{itemize}
  \item Lean does not define graded posets and flag h-vectors. For the Boolean lattice, the flag h-vector counts permutations by their descent set. This is a classical theorem. The Lean file uses it as the definition of the ab-index.
  \item Lean checks only some parts of the data in the section "Data from a search program". The first part proves one of the 12 counterexamples of the second item (theorem \texttt{beta\_\allowbreak{}0\_\allowbreak{}5\_\allowbreak{}0\_\allowbreak{}7\_\allowbreak{}5\_\allowbreak{}lt}) and the case j = 3 of the third item (theorem \texttt{conjecture1\_\allowbreak{}2\_\allowbreak{}3\_\allowbreak{}5\_\allowbreak{}false}). The addition proves the third item for each j \ensuremath{\ge} 3 (theorem \texttt{conjecture1\_\allowbreak{}2\_\allowbreak{}j\_\allowbreak{}5\_\allowbreak{}false}). Lean does not check the first item. Lean does not check the other parts of the second item.
  \item The comparator tool did not run on this computer.
  \item No person checked the Lean proofs line by line. AI agents wrote them. See \texttt{lean/\allowbreak{}formalization.\allowbreak{}yaml}.
  \item The author of the paper did not confirm the counterexamples.
\end{itemize}

\section*{Prior work}

As far as we know, the counterexamples are new. The searches ran on 2026-11-29.

\begin{itemize}
  \item The lists of the works that cite the preprint on Semantic Scholar and on OpenAlex. We read each title. The works are the survey of Bayer, a paper of Fan and He, a paper of Ehrenborg, a paper of Reading, and one more.
  \item M. Bayer, "The cd-index: a survey" (\href{https://arxiv.org/abs/1901.04939}{arXiv:1901.04939}). It describes results of the preprint. It does not mention the conjectures.
  \item The full text of four later papers on the cd-index (\href{https://arxiv.org/abs/1310.3888}{arXiv:1310.3888}, \href{https://arxiv.org/abs/2602.02913}{arXiv:2602.02913}, \href{https://arxiv.org/abs/2609.22078}{arXiv:2609.22078}, \href{https://arxiv.org/abs/2610.25491}{arXiv:2610.25491}). They do not contain the name Mahajan.
  \item Google Scholar, for "cd-index of the Boolean lattice" with "reverse unimodal" or "better balanced". The only result is the preprint.
  \item GitHub code search for "0211390" and for "cd-index Boolean lattice Mahajan conjecture". No relevant result.
  \item GitHub search of repositories and of pull requests of two large projects of machine proofs (\texttt{lefttosolve2/\allowbreak{}open-\allowbreak{}math-\allowbreak{}agents}, \texttt{the-\allowbreak{}omega-\allowbreak{}institute/\allowbreak{}trureturing}). No relevant result.
  \item The full Palomar registry (1594 entries on 2026-11-29) and its list of recent entries. No entry about the cd-index. This search ran before Palomar registered PALOMAR-2026-11-29-000117.
\end{itemize}

A reviewer agent read the full text of the paper of Ehrenborg, the paper of Fan and He, and the survey of Bayer. Each cites the preprint for results that the preprint proves. None mentions the conjectures. We did not read the full text of the paper of Reading. We did not search GitLab with success.

\section*{Addition: Conjecture 2 is false, and three infinite families}

This section describes the files that the statement file \texttt{lean/\allowbreak{}ChallengeTwo.\allowbreak{}lean} covers.
Conjecture 4 is not refuted.

\subsection*{Conjecture 2}

The text of the paper is this.

\begin{quote}
Conjecture 2. Let m, n be non-negative integers such that n > m. Also let L and M be any two lists. Then \ensuremath{\beta}(M,m,L,n) \ensuremath{\ge} \ensuremath{\beta}(M,n,L,m), if M is non-empty.
\end{quote}

The counterexample has M = (14), m = 2, L = (8, 0) and n = 3. The two lists have the degree 35. The coefficients are in \ensuremath{\Psi}(B\_36).

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{ll}
\toprule
\textbf{list} & \textbf{coefficient} \\
\midrule
(14, 2, 8, 0, 3) & 248291708643500760 \\
(14, 3, 8, 0, 2) & 248661783213228000 \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

The conjecture says that the first coefficient is not smaller than the second coefficient. The first coefficient is smaller.

The table for these two lists has 7615 cd-words. The registry accepts at most 10,000 lines for each Lean file.
Thus the script \texttt{lean/\allowbreak{}tools/\allowbreak{}table35.\allowbreak{}py} writes four subtrees into four files. The file \texttt{lean/\allowbreak{}CdIndex/\allowbreak{}Tables35.\allowbreak{}lean} joins the subtrees.
The kernel verifies each subtree in a separate theorem. The method is the method of the first tables: \texttt{checkTree} and \texttt{tree\_\allowbreak{}sound}.

\subsection*{The recursion in the list notation}

The recursion is a result of the paper. It is not a new result.
The paper proves \ensuremath{\beta}(S(v)) = \ensuremath{\beta}(v) for each cd-word v (Lemma 3.2 in Section 3.1). In the list notation the sum S(M) has two parts (Lemma 4.4 in Section 4.1).
The first part has one list for each positive entry of M. That entry is decreased by 1.
The second part has one list for each pair of adjacent entries m and m' of M. The two entries are replaced with the one entry m + m' + 1.
The Lean functions \texttt{decrements} and \texttt{merges} give these lists. The theorem \texttt{beta\_\allowbreak{}rec} is the recursion with this list formula, for each list M that is not empty and is not (0). Lean proves it from the recursion for cd-words.
For the list (0) the two parts have no list. The paper gives S(1) = e for this case (Theorem 2 in Section 3.1). Lean states this case as the separate theorem \texttt{beta\_\allowbreak{}zero}: \ensuremath{\beta}((0)) = 1.

\subsection*{The infinite families}

Let A and B be fixed lists. The theorem \texttt{polyLT\_\allowbreak{}tpl} says that the sequence j \ensuremath{\mapsto} \ensuremath{\beta}(A, j, B) is a polynomial sequence.
The degree is at most the weight of A and B. The weight is the sum of the entries of A and B plus two times the number of the entries of A and B.
The proof uses the recursion. The forward difference of the sequence is a sum of sequences of the same type with a smaller weight.

Let D(j) be the difference of two such sequences, with the weights at most W.
The values D(0), ..., D(W) give all forward differences of D at the position 0. Each forward difference of an order larger than W is zero.
From the forward differences at a position j, an addition of neighbours gives the forward differences at the position j + 1.
If no forward difference at the position j0 is negative and D(j0) is positive, then D(j) is positive for each j \ensuremath{\ge} j0.
The theorem \texttt{pos\_\allowbreak{}of\_\allowbreak{}cert} is this certificate. The kernel calculates the check \texttt{certOK}.
The kernel reads the values D(0), ..., D(W) from a verified table.

\begin{center}\small\begin{adjustbox}{max width=\linewidth}\begin{tabular}{lllll}
\toprule
\textbf{family} & \textbf{result} & \textbf{W} & \textbf{j0} & \textbf{cd-words in the table} \\
\midrule
F1 & \ensuremath{\beta}(2, j, 2, 2, 2) < \ensuremath{\beta}(2, 2, j, 2, 2) and \ensuremath{\beta}(2, 2, 2, j, 2) < \ensuremath{\beta}(2, 2, j, 2, 2) for each j \ensuremath{\ge} 3 & 16 & 3 & 9839 \\
F2 & \ensuremath{\beta}(j, 2, 8, 0, 3) < \ensuremath{\beta}(j, 3, 8, 0, 2) for each j \ensuremath{\ge} 14 & 21 & 14 & 10947 \\
F3 & \ensuremath{\beta}(0, 5, 0, j, 5) < \ensuremath{\beta}(0, 4, 0, j, 6) for each j \ensuremath{\ge} 7 & 18 & 7 & 4391 \\
\bottomrule
\end{tabular}\end{adjustbox}\end{center}

The family F1 shows that Conjecture 1 is false for i = 2, l = 5 and each j \ensuremath{\ge} 3.
The family F2 gives infinitely many counterexamples to Conjecture 2.
The family F3 gives infinitely many counterexamples to Conjecture 3.

The member j = 3 of the family F1 and the member j = 7 of the family F3 are the counterexamples that the first part of this repository proves in Lean. The README of the first part also reports that Conjecture 1 is false for i = 2, l = 5 and each j from 3 to 60. That report is the result of a search program. The first part has a Lean proof for j = 3 only. The addition proves the report for each j \ensuremath{\ge} 3 (theorem \texttt{conjecture1\_\allowbreak{}2\_\allowbreak{}j\_\allowbreak{}5\_\allowbreak{}false}). No other member is in the first part.
The paper states the symmetry \ensuremath{\beta}(v) = \ensuremath{\beta}(v*) for the reverse v* of a word v (Section 1.3). The second inequality of the family F1 is the mirror image of the first inequality under this symmetry. Lean does not use the symmetry. Lean proves each of the two inequalities from the table.

\subsection*{What Lean proves in the addition}

\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\small,frame=leftline,framerule=0.6pt,framesep=3mm,rulecolor=\color{black!20}]
theorem beta_14_2_8_0_3 : beta [14, 2, 8, 0, 3] = 248291708643500760

theorem beta_14_3_8_0_2 : beta [14, 3, 8, 0, 2] = 248661783213228000

theorem beta_14_2_8_0_3_lt : beta [14, 2, 8, 0, 3] < beta [14, 3, 8, 0, 2]

theorem conjecture2_false : ? Conjecture2

theorem beta_rec (M : List ?) (hM : M != []) (h0 : M != [0]) :
    beta M = ((decrements M).map beta).sum + ((merges M).map beta).sum

theorem beta_zero : beta [0] = 1

theorem beta_2_j_2_2_2_lt (j : ?) (hj : 3 <= j) :
    beta [2, j, 2, 2, 2] < beta [2, 2, j, 2, 2]

theorem beta_2_2_2_j_2_lt (j : ?) (hj : 3 <= j) :
    beta [2, 2, 2, j, 2] < beta [2, 2, j, 2, 2]

theorem beta_j_2_8_0_3_lt (j : ?) (hj : 14 <= j) :
    beta [j, 2, 8, 0, 3] < beta [j, 3, 8, 0, 2]

theorem beta_0_5_0_j_5_lt (j : ?) (hj : 7 <= j) :
    beta [0, 5, 0, j, 5] < beta [0, 4, 0, j, 6]

theorem conjecture1_2_j_5_false (j : ?) (hj : 3 <= j) : ? Conjecture1For 2 j 5
\end{Verbatim}


All theorems depend only on the axioms \texttt{propext}, \texttt{Classical.\allowbreak{}choice} and \texttt{Quot.\allowbreak{}sound}. See [\texttt{lean/\allowbreak{}AXIOMS-\allowbreak{}two.\allowbreak{}txt}](lean/AXIOMS-two.txt).

\subsection*{The files of the addition}

\begin{itemize}
  \item \texttt{lean/\allowbreak{}ChallengeTwo.\allowbreak{}lean} is the statement file. \texttt{lean/\allowbreak{}comparator-\allowbreak{}two.\allowbreak{}json} is the configuration for the comparator tool.
  \item \texttt{lean/\allowbreak{}CdIndex/\allowbreak{}DefsTwo.\allowbreak{}lean} contains the new definitions. The script \texttt{lean/\allowbreak{}tools/\allowbreak{}gen2.\allowbreak{}py} writes the two files from one text.
  \item \texttt{lean/\allowbreak{}CdIndex/\allowbreak{}Tables35*.\allowbreak{}lean} and \texttt{lean/\allowbreak{}CdIndex/\allowbreak{}Conjecture2.\allowbreak{}lean} refute Conjecture 2.
  \item \texttt{lean/\allowbreak{}CdIndex/\allowbreak{}ListRec.\allowbreak{}lean} proves the recursion in the list notation.
  \item \texttt{lean/\allowbreak{}CdIndex/\allowbreak{}Poly.\allowbreak{}lean} contains the polynomial sequences and the certificate.
  \item \texttt{lean/\allowbreak{}CdIndex/\allowbreak{}Family.\allowbreak{}lean} proves that j \ensuremath{\mapsto} \ensuremath{\beta}(A, j, B) is a polynomial sequence.
  \item \texttt{lean/\allowbreak{}CdIndex/\allowbreak{}TableF*.\allowbreak{}lean} and \texttt{lean/\allowbreak{}CdIndex/\allowbreak{}Families.\allowbreak{}lean} contain the tables and the theorems of the three families. The script \texttt{lean/\allowbreak{}tools/\allowbreak{}family.\allowbreak{}py} writes them.
\end{itemize}

\subsection*{How to build the addition}

\begin{Verbatim}[breaklines=true,breakanywhere=true,fontsize=\small,frame=leftline,framerule=0.6pt,framesep=3mm,rulecolor=\color{black!20}]
cd lean && lake build CdIndexTwo ChallengeTwo && lake env lean AuditTwo.lean
\end{Verbatim}


The check of the largest table (\texttt{TableF2}) needed 84 seconds and a peak memory of 8.6 GB on the computer of the author.
The check of the table for degree 35 needed 50 seconds and a peak memory of 5.5 GB.

\subsection*{Not verified in the addition}

\begin{itemize}
  \item The comparator tool did not run on this computer.
  \item The build of the addition on the computer of the author was not a build from a clean copy.
  \item No person checked the Lean proofs line by line. An AI agent wrote them.
  \item Prior work for the addition, on 2026-11-29: we read the titles of the works that cite the preprint. We searched GitHub code for "0211390". We searched the pull requests of \texttt{lefttosolve2/\allowbreak{}open-\allowbreak{}math-\allowbreak{}agents} for "0211390", "Mahajan" and "cd-index". We read the list of the results of \texttt{aliromman/\allowbreak{}math}. We read the list of recent entries of the Palomar registry. We found no earlier statement that the conjectures are false, other than the first part of this repository. We did not search GitLab or Google Scholar for the addition.
  \item The author of the paper did not confirm the counterexamples.
\end{itemize}

\section*{Sources}
\begin{enumerate}\small
  \item \url{https://arxiv.org/abs/math/0211390}
  \item \url{https://arxiv.org/abs/1901.04939}
  \item \url{https://github.com/mikesellitto/cd-index-boolean-lattice}
\end{enumerate}
\end{document}
