\documentclass[10pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[margin=25mm]{geometry} \usepackage{amsmath,amssymb,amsthm} \usepackage[hidelinks]{hyperref} \newtheorem{theorem}{Theorem} \newtheorem{lemma}[theorem]{Lemma} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \newcommand{\Z}{\mathbb Z} \newcommand{\cL}{\mathcal L} \newcommand{\cM}{\mathcal M} \newcommand{\MC}{\mathit{MC}} \newcommand{\bos}{\bot} \newcommand{\eos}{\dagger} \newcommand{\Tok}{\widetilde A} \newcommand{\pr}[2]{\pi(#1\mid #2)} \title{Vanishing of Higher Magnitude Homology\\ for Finite Prefix Models} \author{Ryoji Hirayama\\[0.4em] \small Graduate School of Mathematics, Nagoya University} \date{} \begin{document} \maketitle \begin{abstract} Bradley and Vigneaux define a generalized distance on a finite prefix poset using next-token probabilities. They conjecture that its higher magnitude homology vanishes. Motivated by their expression of magnitude as a weighted sum of homological Euler characteristics, we verify this conjecture for their explicit complex, in which both endpoint faces are zero. For each finite length, the homology groups in degrees two and above are zero. The degree-one homology group is free abelian, with one generator for each positive-probability edge of that length. The proof constructs a contracting homotopy for each component whose endpoints have an interior prefix. This homotopy inserts the least interior prefix. Edge probabilities zero and one are both allowed. \end{abstract} \section{Introduction} Bradley--Vigneaux \cite[\S\S2, 3.13]{BV25} model next-token probabilities by an enriched category of texts and express its magnitude as a weighted sum of Euler characteristics. They describe the degree-zero and degree-one homology groups \cite[p.~22]{BV25}, following the low-degree calculations of Leinster--Shulman \cite[Theorems 4.1 and 4.3]{LS21}, and conjecture that the higher groups vanish. An identity of alternating sums alone does not imply this vanishing. Theorem~\ref{thm:vanishing} verifies their conjecture for the finite prefix model and the explicit complex of \cite[\S3.13]{BV25}. Our contraction is the elementary cone contraction on each nonempty open prefix interval, in keeping with the interval order-complex viewpoint of Kaneta--Yoshinaga \cite[\S4.3]{KY21}. We give it directly at the chain level to include asymmetric distances and zero-length edges, with the endpoint convention specified below. \section{Prefix order and the probabilistic distance} Let $M$ be a monoid. Define $a\preceq b$ if $at=b$ for some $t\in M$. This relation is a preorder. For a free monoid, this is the prefix order. Fix a finite alphabet $A$, distinct beginning and end symbols $\bos,\eos\notin A$, and an integer $N\ge1$. Put $\Tok=A\sqcup\{\eos\}$ and equip \[ L=\{\bos a\mid a\in A^*,\ |a|\le N-1\} \sqcup \{\bos a\eos\mid a\in A^*,\ |a|\le N-2\} \] with the prefix order. A set with a negative length bound is understood to be empty. For $x\in L$, let $|x|$ denote its length, including the beginning and end symbols. Let $I\subseteq L$ be the set of nonmaximal elements. The elements covering $x\in I$ are precisely $xc$ for $c\in\Tok$. If $x0$; its length is $-\log p_x(c)$. Such an edge may have length zero. \section{The magnitude complex} We assume throughout that the length parameter $\ell$ satisfies $0\le\ell<\infty$. For $k\ge0$, let \begin{align*} G_{k,\ell} &=\left\{(x_0,\ldots,x_k)\in L^{k+1}\ \middle|\ x_i\ne x_{i+1}\ (0\le i0$. \begin{lemma}\label{lem:chains} For $k\ge1$, a tuple $(x_0,\ldots,x_k)$ belongs to $G_{k,\ell}$ if and only if \[ x_00,\qquad d(x_0,x_k)=\ell. \] Every interior point of such a tuple satisfies \[ d(x_{i-1},x_i)+d(x_i,x_{i+1})=d(x_{i-1},x_{i+1}). \] \end{lemma} \begin{proof} The condition $d(u,v)<\infty$ is equivalent to $u\le v$ and $\pr{v}{u}>0$. Let $(x_0,\ldots,x_k)\in G_{k,\ell}$. Each adjacent distance is finite. Since adjacent points are distinct, we have $x_00,\ -\log p_x(c)=\ell\,\} \] be the set of positive-probability edges of length $\ell$. For every $0\le\ell<\infty$, \begin{align*} H_{k,\ell}(\cM)&=0 &&(k\ge2),\\ H_{1,\ell}(\cM)&\cong\Z[E^+_\ell],\\ H_{0,0}(\cM)&\cong\Z[L],\qquad H_{0,\ell}(\cM)=0 &&(\ell>0). \end{align*} The degree-one isomorphism identifies an edge $x\to xc$ with the homology class of the cycle $(x,xc)$. \end{theorem} \begin{proof} The differential preserves endpoints. Hence the complex in degrees at least one splits as a direct sum of components $C(x,y)$. The sum runs over all pairs $(x,y)$ satisfying $x0$, and $d(x,y)=\ell$. For $q\ge1$, a basis of $C(x,y)_q$ consists of the tuples \[ \sigma=(x,z_1,\ldots,z_{q-1},y),\qquad x0\\d(x,y)=\ell}}C(x,y). \end{equation} If the open interval $(x,y)=\{z\mid x