---
title: 'Arithmetic Barcodes: Algebraic Precision'
url: https://www.emergentmind.com/topics/arithmetic-barcodes
type: topic
---

# Arithmetic Barcodes: Algebraic Precision

Arithmetic barcodes are barcodes in which the filtration parameter is **algebraic precision** rather than geometric scale. In the formulation developed over a discrete valuation ring, especially \( \mathbb{Z}_p \), they measure torsion in network sheaf cohomology: each bar records the precision threshold at which a cohomology class fails to lift through the valuation filtration
\[
\mathbb{Z}_p \supseteq p\mathbb{Z}_p \supseteq p^2\mathbb{Z}_p \supseteq \cdots,
\]
and bars of length \(a\) correspond to \( \mathbb{Z}_p/p^a\mathbb{Z}_p \) torsion summands [2511.00677]. The same phrase also appears in an inverse-problem viewpoint in persistent homology: given a Betti curve \( \beta \), one asks how many distinct barcodes produce that same curve, equivalently how many decompositions of \( \beta \) into interval indicator functions exist; that count is identified with the Kostant partition function and with magic juggling sequences [2602.09011].

## 1. Precision filtrations and arithmetic persistence

The arithmetic-barcode framework replaces the scale filtration of ordinary persistent homology by the valuation filtration of a discrete valuation ring. In the general DVR setting one works with
\[
R \supseteq \mathfrak{p} \supseteq \mathfrak{p}^2 \supseteq \cdots,
\]
and in the \(p\)-adic case with
\[
\mathbb{Z}_p \supseteq p\mathbb{Z}_p \supseteq p^2\mathbb{Z}_p \supseteq \cdots.
\]
For cochains on a graph \(G\) with a sheaf \( \mathcal{F} \), the filtered pieces are defined by
\[
C^i_{(\ge k)}(G;\mathcal{F}) := p^k C^i(G;\mathcal{F}),
\]
so filtration depth is interpreted as divisibility or precision level [2511.00677].

This formalism treats torsion as the primary signal rather than as a computational inconvenience. A cohomology class can be lifted through the tower
\[
H^i(G;\mathcal{F}/p^k\mathcal{F}),
\]
and its “death” occurs at the precision level where lifting fails. The associated exact sequences
\[
0 \to p^k\mathcal{F}/p^{k+1}\mathcal{F} \to \mathcal{F}/p^{k+1}\mathcal{F} \to \mathcal{F}/p^k\mathcal{F} \to 0
\]
produce connecting homomorphisms
\[
\delta_k : H^0(G;\mathcal{F}/p^k\mathcal{F}) \longrightarrow H^1(G;p^k\mathcal{F}/p^{k+1}\mathcal{F}) \cong H^1(G;\mathcal{F}/p\mathcal{F}),
\]
called **digit maps**. These digit maps record the obstructions to lifting mod-\(p^k\) classes to mod-\(p^{k+1}\) and ultimately to the full \(p\)-adic module [2511.00677].

The successive quotients of the filtration are residue-field valued:
\[
p^k C^i / p^{k+1}C^i \cong C^i(G;\mathcal{F}/p\mathcal{F}),
\]
as \( \mathbb{F} \)-vector spaces, where \( \mathbb{F} = R/pR \). This produces a persistence module whose intervals encode **precision lifetimes** rather than scale lifetimes. A plausible implication is that the usual persistence vocabulary of birth, death, and survival can be transferred to settings where the controlling parameter is arithmetic rather than geometric.

## 2. The Digit-SNF Dictionary and interval decomposition

The central structural result is the **Digit-SNF Dictionary**, which identifies stagewise lifting obstructions with the Smith normal form exponents of the coboundary operator. If
\[
d: C^0(G;\mathcal{F}) \to C^1(G;\mathcal{F})
\]
is the coboundary, then there exist unimodular matrices \(U,V\) such that
\[
U[d]V = \operatorname{diag}(p^{a_1},\dots,p^{a_r},0,\dots,0),
\]
with
\[
0 \le a_1 \le \cdots \le a_r,
\]
and \(r=\operatorname{rank}_R(d)\). For each \(k\ge 0\), the digit connecting homomorphism satisfies
\[
\dim_{\mathbb{F}}\operatorname{im}(\delta_k) = \#\{j : 1 \le a_j \le k\},
\]
and consequently
\[
\#\{j : a_j=\ell\} = \dim_{\mathbb{F}}\operatorname{im}(\delta_\ell) - \dim_{\mathbb{F}}\operatorname{im}(\delta_{\ell-1}) \qquad (\ell\ge 1).
\]
Thus the image dimensions of the digit maps are cumulative counts of torsion bars, while first differences recover exact multiplicities [2511.00677].

The barcode itself is obtained from the invariant factor decomposition of cohomology. Each free summand contributes an infinite bar \([0,\infty)\), and each torsion summand \(R/p^aR\) contributes a finite bar \([0,a)\). In the paper’s “Barcode Decomposition” formulation,
\[
V^i_\bullet \cong \bigoplus_{t=1}^{b_i}\mathbb{F}[0,\infty) \oplus \bigoplus_{j=1}^{r_i}\mathbb{F}[0,a_{i,j}),
\]
where \(V^i_k = gr^k H^i(G;\mathcal{F})\). This gives an interval-module decomposition formally parallel to classical persistence, but with intervals indexed by precision thresholds [2511.00677].

The paper also notes that the digit maps factor through the Bockstein,
\[
\operatorname{im}(\delta_k)\subseteq \operatorname{im}(\beta) \subseteq H^{i+1}(G;\mathcal{F}/p\mathcal{F}),
\]
and that the Bockstein spectral sequence collapses at \(E_2\) for graphs because the complex only has degrees \(0\) and \(1\). This places arithmetic barcodes within a standard homological-algebraic framework rather than outside the ordinary apparatus of persistence theory.

## 3. Cycle holonomy, threshold stability, and canonical representatives

For rank-one sheaves, the arithmetic-barcode formalism becomes explicitly computable. In a rank-one unit sheaf on a graph \(G\), each vertex and edge stalk is \(R\), and each edge has a unit scaling \(m_e\in R^\times\). For an oriented edge \(u\to v\),
\[
\mathcal{F}_{u,e}(x)=x,\qquad \mathcal{F}_{v,e}(x)=m_e x.
\]
For a cycle \(C\), the **holonomy** is
\[
h(C) := \prod_{e\in C} m_e \in R^\times.
\]
On the cycle graph \(C_n\), the barcode is determined by \(h(C_n)\): if \(h(C_n)=1\), then
\[
H^0(C_n;\mathcal{F})\cong R,\qquad H^1(C_n;\mathcal{F})\cong R,
\]
so there is an infinite bar; if \(h(C_n)-1\) is a unit, then
\[
H^0(C_n;\mathcal{F})=0,\qquad H^1(C_n;\mathcal{F})=0,
\]
so the barcode is empty; and if
\[
\operatorname{val}(h(C_n)-1)=a>0,
\]
then
\[
H^0(C_n;\mathcal{F})=0,\qquad H^1(C_n;\mathcal{F})\cong R/p^aR,
\]
so the barcode is a single finite bar \([0,a)\) [2511.00677].

This criterion is reflected in the coboundary determinant. For the cycle graph,
\[
d = \begin{pmatrix} -1 & m_0 & 0 & \cdots & 0 \\
0 & -1 & m_1 & \cdots & 0 \\
\vdots & \vdots & \ddots & \ddots & \vdots \\
0 & 0 & \cdots & -1 & m_{n-2} \\
m_{n-1} & 0 & \cdots & 0 & -1 \end{pmatrix},
\]
and
\[
\det(d)=1-h(C_n)=u\cdot(h(C_n)-1)
\]
for some unit \(u\in R^\times\), hence
\[
\operatorname{val}(\det d)=\operatorname{val}(h(C_n)-1).
\]
The bar length is therefore exactly the valuation of the holonomy defect.

Arithmetic barcodes also satisfy a threshold stability statement. If two coboundary operators satisfy
\[
d\equiv d' \pmod{p^m},
\]
then for every \(k<m\),
\[
\delta_k(d)=\delta_k(d'),
\]
and hence the bar multiplicities for lengths \(\ell<m\) agree:
\[
\#\{j:a_j(d)=\ell\}=\#\{j:a_j(d')=\ell\} \qquad (1\le \ell<m).
\]
Equivalently,
\[
\mathrm{Bar}^1(d)\cap[0,m)=\mathrm{Bar}^1(d')\cap[0,m).
\]
If
\[
m > \max_j a_j(d),
\]
then the entire barcode is preserved. The paper also introduces integral idempotents projecting onto the kernel, the saturated image of the coboundary, and the free part of cohomology, with reduction modulo \(p^k\) commuting with these projectors for all \(k\) [2511.00677]. This provides canonical cohomology representatives without requiring an inner product or Hodge theory.

## 4. Barcode spaces, coordinates, and stratifications

Arithmetic barcodes remain part of the broader theory of barcode spaces. In that broader setting, a persistence barcode is a finite multiset of intervals. If a barcode has exactly \(n\) intervals, it can be encoded as
\[
(x_1,d_1,x_2,d_2,\ldots,x_n,d_n),
\]
where \(x_i\) is the birth time and \(d_i\) is the length of the \(i\)-th interval; because intervals are unordered, one passes to an orbit space under the action of the symmetric group \(S_n\), obtaining \(B_n\), and then the full barcode space
\[
B=\coprod_n B_n /_{\sim},
\]
where \(\sim\) identifies barcodes differing only by deletion of zero-length bars [1604.00113].

Within this framework, tropical algebra supplies stable numerical coordinates on barcode space. In max-plus arithmetic,
\[
a\boxplus b := \max(a,b), \qquad a\odot b := a+b.
\]
The resulting tropical rational functions are built from finitely many \(\max\), \(\min\), and \(+\) operations applied to linear forms. The paper constructs 2-symmetric functions compatible with permutation invariance and proves Lipschitz stability with respect to both bottleneck and Wasserstein distances. A countable family of tropical rational coordinates separates points in barcode space, providing a stable feature map from persistent homology to standard machine-learning pipelines [1604.00113].

A complementary geometric description views the space \(\mathcal{B}_n\) of barcodes with \(n\) bars as a quotient
\[
\Sym_n\backslash \big(\mathbb{R}^n\times \mathbb{R}^n\big),
\]
with strict barcodes classified by a permutation \(\sigma_B=\tau_b^{-1}\tau_d\) comparing the birth-ordering and death-ordering. Using the Coxeter complex of \(\Sym_n\), this is extended to arbitrary barcodes by marked double cosets of parabolic subgroups. The resulting “Coxeter coordinates”
\[
(\bar b,\|v_b\|,b_\theta,\bar d,\|v_d\|,d_\theta)
\]
record the means and standard deviations of births and deaths together with an angular Coxeter-complex component. The strata consist of barcodes with the same averages and standard deviations of birth and death times and the same permutation type, and the quotient description produces modified bottleneck and Wasserstein-type metrics in which bars are not matched to the diagonal [2112.10571].

These classical constructions do not define arithmetic barcodes, but they supply the ambient language in which barcode-valued invariants are represented, compared, and converted into coordinates.

## 5. The inverse problem: counting barcodes with a fixed Betti curve

A distinct use of the phrase “Arithmetic Barcodes” concerns an inverse problem for persistent homology. A barcode \(B\) on \([n]\) is a multiset of intervals \(I=[i,j)\subseteq [n]\), with multiplicities allowed,
\[
B=\{(I_j,m_j)\},
\]
and its Betti curve \( \beta=\varphi(B) \) counts how many intervals contain each index:
\[
\beta(i)=\sum_{j:\, I_j\cap\{i\}\neq\varnothing} m_j.
\]
Equivalently,
\[
\beta = \sum_{[i,j)\subseteq [n]} b_{i,j}\,\mathbf 1_{[i,j)},
\]
where \(b_{i,j}\in \mathbb Z_{\ge 0}\) is the multiplicity of \([i,j)\). The inverse problem is therefore: given \( \beta \), count all nonnegative integer families \( (b_{i,j}) \) such that
\[
\beta(k)=\sum_{i\le k<j} b_{i,j}\qquad (k\in[n]).
\]
The corresponding fiber is denoted
\[
\mathbf{Barc}(\beta)=\varphi^{-1}(\beta)
\]
[2602.09011].

Representation-theoretically, a persistence module \(F:\mathbf{[n]}\to\mathbf{vect}\) is interpreted as a type \(A_n\) quiver representation. By the structure theorem for finite-dimensional representations, every such module decomposes uniquely into indecomposables, and for type \(A_n\) the indecomposables are precisely interval modules \(\mathbbm{k}[i,j)\). The Betti curve is the dimension vector,
\[
\dim(F)=\beta,
\]
so counting barcodes with fixed \( \beta \) is counting decompositions of a dimension vector into interval indecomposables [2602.09011].

The first main theorem identifies this count with the Kostant partition function:
\[
|\mathbf{Barc}(\beta)| = K(\mu), \qquad \mu=\sum_{i=1}^n \beta_i \alpha_i,
\]
where \(\alpha_i=\mathbf e_i-\mathbf e_{i+1}\) are the simple roots of type \(A_n\). In this setting the positive roots
\[
\mathbf e_i-\mathbf e_j = \alpha_i+\cdots+\alpha_{j-1}
\]
correspond combinatorially to intervals \([i,j)\). The paper also gives the recursive formula
\[
|\mathbf{Barc}(\beta)| = \sum_{Y\sqsubset \beta} |\mathbf{Barc}(\beta-Y)|,
\]
where \(Y\sqsubset \beta\) means that \(Y\) is non-increasing, \(y_1=\beta_1\), and \(y_i\le \beta_i\) for all \(i\neq 1\). This recursion groups barcodes according to the multiset of intervals that begin at \(1\) [2602.09011].

A second main theorem gives a bijection with magic juggling sequences. For
\[
\delta(\beta)= (\beta_1,\ \beta_2-\beta_1,\ \dots,\ \beta_n-\beta_{n-1},\ -\beta_n),
\]
the map
\[
\sigma_\beta:\mathbf{Barc}(\beta)\xrightarrow{\sim} JS(\langle\delta(\beta)\rangle,\langle 0\rangle,n)
\]
is a bijection. Combined with the juggling identity
\[
K(\mu)=\left|JS(\langle \mu_1,\dots,\mu_n\rangle,\langle \mu_1+\cdots+\mu_n\rangle,n)\right|,
\]
this yields the barcode–Kostant identity again. The statistical significance is that the count \(|\mathbf{Barc}(\beta)|\) quantifies how lossy the passage from barcodes to Betti curves is: the examples \(\beta=(2,3,2)\) and \(\beta=(2,3,1,1,1)\) come from \(13\) and \(32\) different barcodes, respectively [2602.09011].

## 6. Conceptual significance and research directions

Arithmetic barcodes recast persistence in terms of precision hierarchies. In the network-sheaf formulation, the filtration parameter is algebraic precision; torsion classes \(R/p^aR\) become finite bars; digit maps recover Smith exponents; cycle holonomy provides explicit bar lengths in rank-one cases; and threshold stability gives barcode invariance under perturbations that respect precision [2511.00677]. The applications named in that framework include distributed consensus protocols with quantized communication, sensor network synchronization, and systems where measurement precision creates natural hierarchical structure.

The inverse-problem formulation addresses a different question: not how a barcode is produced from a filtered object, but how much information is lost when one replaces a barcode by a Betti curve. There the count of the fiber \(\mathbf{Barc}(\beta)\) becomes a quantitative measure of compression, and the equivalence with the Kostant partition function and with magic juggling sequences places the question simultaneously in persistent homology, representation theory, and enumerative combinatorics [2602.09011].

Taken together, these usages show that “arithmetic barcodes” names a family of ideas rather than a single construction. In one direction, arithmetic data become barcodes through valuation filtrations and Smith normal form. In another, barcodes themselves become arithmetic objects through exact counting problems. A plausible implication is that both directions enlarge the role of barcodes beyond descriptive summaries: they become interfaces between topological data analysis, discrete valuation algebra, quiver representation theory, and combinatorial models of counting.

Source: https://www.emergentmind.com/topics/arithmetic-barcodes