Specialist working manuscript · Website reading copy · 12 November 2026

Contextuality and Exact Information Resources over Finite Chain Rings

Edition and limits. September 26 revision. Primitive bases, allowed transformations and possible/impossible readout are part of the model, not physical quantum assumptions. Original bylines and dates remain as printed. This is not external peer review, priority clearance or a claim that unfinished work has become a final research paper.

Contextuality and exact information resources in a declared finite-chain-ring modal model.

Download unchanged PDF · Exact source ZIP · Main TeX · Version/provenance

Scope, corrections and later evidence

Read these records before treating the preserved draft as current. They are not silently merged into it. Local-only links in the original notes are presented as references, not working website links.

Complete page-faithful online reading copy

All 12 pages are shown below, including equations, tables, figures and references. Images preserve the supplied PDF rather than attempting a mathematical transcription. They are not reflowing MathML or screen-reader-certified; the PDF, exact TeX and limited extracted text provide alternatives.

PDF page 1 of 12
Original manuscript PDF page 1; use the PDF or exact TeX for accessible mathematical content
PDF page 2 of 12
Original manuscript PDF page 2; use the PDF or exact TeX for accessible mathematical content
PDF page 3 of 12
Original manuscript PDF page 3; use the PDF or exact TeX for accessible mathematical content
PDF page 4 of 12
Original manuscript PDF page 4; use the PDF or exact TeX for accessible mathematical content
PDF page 5 of 12
Original manuscript PDF page 5; use the PDF or exact TeX for accessible mathematical content
PDF page 6 of 12
Original manuscript PDF page 6; use the PDF or exact TeX for accessible mathematical content
PDF page 7 of 12
Original manuscript PDF page 7; use the PDF or exact TeX for accessible mathematical content
PDF page 8 of 12
Original manuscript PDF page 8; use the PDF or exact TeX for accessible mathematical content
PDF page 9 of 12
Original manuscript PDF page 9; use the PDF or exact TeX for accessible mathematical content
PDF page 10 of 12
Original manuscript PDF page 10; use the PDF or exact TeX for accessible mathematical content
PDF page 11 of 12
Original manuscript PDF page 11; use the PDF or exact TeX for accessible mathematical content
PDF page 12 of 12
Original manuscript PDF page 12; use the PDF or exact TeX for accessible mathematical content

Exact source files

main.tex
   1 \documentclass[11pt]{article}
   2 \usepackage[margin=1in]{geometry}
   3 \usepackage[T1]{fontenc}
   4 \usepackage{lmodern,amsmath,amssymb,amsthm,mathtools,booktabs,array,longtable,graphicx}
   5 \usepackage{microtype,url,hyperref,placeins}
   6 \hypersetup{hidelinks,pdftitle={Contextuality and Exact Information Resources over Finite Chain Rings}}
   7 \newtheorem{theorem}{Theorem}[section]
   8 \newtheorem{lemma}[theorem]{Lemma}
   9 \newtheorem{proposition}[theorem]{Proposition}
  10 \newtheorem{corollary}[theorem]{Corollary}
  11 \theoremstyle{definition}\newtheorem{definition}[theorem]{Definition}
  12 \theoremstyle{remark}\newtheorem{remark}[theorem]{Remark}
  13 \newcommand{\F}{\mathbb F}
  14 \newcommand{\A}{\F_2[u]/(u^4)}
  15 \DeclareMathOperator{\GL}{GL}
  16 \DeclareMathOperator{\Mat}{Mat}
  17 \DeclareMathOperator{\rank}{rank}
  18 \DeclareMathOperator{\diag}{diag}
  19 \DeclareMathOperator{\Span}{span}
  20 \setlength{\emergencystretch}{3em}
  21 \title{Contextuality and Exact Information Resources\\over Finite Chain Rings}
  22 \author{Brian Theory\\\small B-Theory}
  23 \date{26 September 2026}
  24 \begin{document}
  25 \maketitle
  26 \begin{abstract}
  27 We study nonzero bipartite matrices over a finite commutative chain ring using all primitive projective local bases, setting-indexed outcomes and nonzero-amplitude support. Two Smith invariants determine the support type: the number $r$ of nonzero factors and the multiplicity $h$ of the least exponent. The model is local when $r=1$, logically but not strongly contextual when $r\geq2$ and $h=1$, and strongly contextual when $h\geq2$. A residue-hyperplane criterion and a valuation-uniform Hardy construction give the classification. For a square $d$-dimensional resource, invertible local orbit encoding and one arbitrary complete joint basis readout admit exactly $dh$ messages. Universal exact raw-vector teleportation, with a complete joint covector basis and unrestricted invertible corrections, instead requires an invertible resource. We prove the existence of complete invertible-matrix analyzers over finite local rings and exhibit nonprimitive resources separating maximal orbit coding from teleportation. For primitive resources, maximal coding and universal exact raw teleportation coincide. Tensor choice and preparation closure delimit the interpretation. Finite checks accompany the proofs; no physical probability model or priority claim follows from them.
  28 \end{abstract}
  29 
  30 \section{Introduction}
  31 Replacing complex amplitudes by a finite scalar system makes it possible to separate algebraic support from probability. In modal quantum theory, an effect is possible when its contraction with a state is nonzero. Field models already support entanglement, nonlocal support and communication protocols \cite{Schumacher2010,Schumacher2012}. Passing from a field to a ring introduces a different question: which aspects of a resource survive when nonzero amplitudes can annihilate one another?
  32 
  33 This paper answers that question for static bipartite resources over finite commutative chain rings, with complete local basis families. The classification uses two elementary pieces of Smith data. At least two nonzero Smith factors are necessary and sufficient for a Hardy obstruction. Leading multiplicity detects whether any global outcome assignment survives. Under a separately stated exact communication task, the same leading multiplicity measures the number of linearly distinguishable orbit messages. Universal exact teleportation distinguishes yet another property, invertibility.
  34 
  35 The contribution is the complete chain-ring classification and the comparison of contextuality, exact orbit coding and raw-vector teleportation through related Smith invariants under explicit contracts. Smith theory, the language of support contextuality, Hardy implications and modal protocols are established ingredients. The results do not propose a physical theory, and do not infer a Born rule. In particular, allowing all nonzero ring vectors is useful for static resource questions but does not define a preparation theory closed under arbitrary balanced tensor products.
  36 
  37 The proofs are self-contained. The source comparison below identifies established ingredients and the hypotheses that distinguish the present tasks. It makes no claim of historical firstness. A standalone computational supplement supplies finite checks with their exact scope; an optional Boolean-interface note is separate from the article and is not a dependency of its results.
  38 
  39 \subsection{Relation to established work}
  40 Schumacher and Westmoreland's two-mobit model already gives a nonlocal support table and a four-message orbit code \cite{Schumacher2010}; their later treatment develops generalized field effects and modal probability-completion questions \cite{Schumacher2012}. These supply background, not new claims here. The support hierarchy follows the global-section formulation of Abramsky and Brandenburger \cite{AbramskyBrandenburger2011}. Our settings are local bases. We do not additionally require the same effect ray to carry a context-independent truth value across distinct bases.
  41 
  42 That distinction matters for comparisons with modal noncontextuality and free-will arguments \cite{SchumacherFreeWill} and the uncolorability of integer-matrix idempotents \cite{BenZvi2017}. The latter concerns compatible idempotent decompositions and transports to arbitrary scalar rings; it is not a Smith classification of a fixed bipartite state with basis-indexed outcomes. Finite-chain-ring module structure and projective ring geometry are likewise classical \cite{HonoldLandjev2000,Byrne2021}. The use of primitive rows is a standard local-ring construction. Our assertions concern their complete bilinear support tables and two specified information tasks.
  43 
  44 State admissibility is a substantive difference from other ring models. In de Beaudrap's generic state space, the coordinates must generate the unit ideal \cite{deBeaudrap2014}. Over a local ring this means that at least one coordinate is a unit. Our nonprimitive nilpotent separator is therefore excluded from that state space; its conclusions belong to the static all-nonzero-vector contract used here. Categorical finite-field protocols can also use a different measurement notion: Varughese's Example~8.3 uses three Bell outcomes on a nine-dimensional pair \cite{Varughese2009}. It does not provide the complete nine-row covector analyzer required by our teleportation contract.
  45 
  46 
  47 
  48 The matrix-spanning ingredient is classical: nonsingular-summand results go back to Wolfson and Zelinsky, and Henriksen proves the stronger statement that every square matrix of size greater than one over a unital ring is a sum of three units \cite{Zelinsky1954,Henriksen1974}. Lemma~\ref{lem:span} supplies a short proof sufficient for our use, followed by residue-basis lifting. Neither this spanning fact nor the existence of modal protocols is asserted as a new general result.
  49 
  50 Finite-chain-ring coding also uses module invariants, but its optimization problem must be distinguished. Feng et al.\ study a stochastic channel $Y=AX+BE$ with random transfer and error matrices, deriving capacity results under specified distributions \cite{Feng2014}. Here a sender controls $U$ in $UM$ for a fixed resource $M$, and a single complete joint basis readout must identify the message at every supported outcome. A direct consequence of the former channel definition makes the distinction concrete: if $A$ is uniform in $\GL_d(K)$ and noise is absent, then $AUM$ has the same distribution for every $U\in\GL_d(K)$. This observation is our comparison of the two tasks, not a claim made in that source about the present theorem.
  51 
  52 \begin{table}[ht]\centering\small
  53 \begin{tabular}{>{\raggedright\arraybackslash}p{.19\linewidth}>{\raggedright\arraybackslash}p{.25\linewidth}>{\raggedright\arraybackslash}p{.43\linewidth}}
  54 \toprule
  55 Source and domain & Admissible objects & Operations, readout and conclusion\\\midrule
  56 Modal theory \cite{Schumacher2010,Schumacher2012}; fields & Nonzero state vectors; composite vector spaces & Reversible linear maps and basis effects; nonzero contraction gives possibility. Includes finite-field coding and teleportation examples.\\[3pt]
  57 Ring computation \cite{deBeaudrap2014}; commutative rings & Generic vectors whose coordinates generate the unit ideal & Model-dependent algebraic transformations and outcome rules; this admissibility excludes our nonprimitive separator.\\[3pt]
  58 Chain-ring codes \cite{HonoldLandjev2000,Byrne2021} & Submodules and their module types & Code equivalence, geometry and enumeration; no fixed-resource joint support readout or raw teleportation task.\\[3pt]
  59 Matrix channels \cite{Feng2014}; chain rings & Input matrices in a prescribed ambient module & Random $A,B,E$ in $Y=AX+BE$; stochastic decoding and capacity, rather than a controlled orbit with disjoint nonzero supports.\\[3pt]
  60 This article; chain rings & Every nonzero static matrix, including nonprimitive ones & All local bases for support; full $\GL_d(K)$ encoders and one complete joint decoder for exact coding; complete covector analysis and invertible corrections for exact raw recovery. Conclusions: Smith trichotomy, $dh$ messages, and invertibility criterion.\\
  61 \bottomrule
  62 \end{tabular}
  63 \caption{Comparison by scalar domain, admissibility and task. The support hierarchy itself is the established global-section hierarchy \cite{AbramskyBrandenburger2011}. Theorem~\ref{thm:teleport} also applies to finite commutative local rings that are not chain rings.}\label{tab:prior}
  64 \end{table}
  65 
  66 \FloatBarrier
  67 \section{Scalar, state and measurement contracts}\label{sec:contract}
  68 Let $K$ be a finite commutative chain ring with identity, maximal ideal $J=(\pi)$, residue field $k=K/J$ of size $q$, and nilpotency index $s$, so $\pi^s=0$ and $\pi^{s-1}\ne0$. The field case has $s=1$. Bars denote reduction modulo $J$. An element is a unit exactly when its residue is nonzero. A square matrix is invertible exactly when its residue is invertible, by the determinant criterion.
  69 
  70 Every nonzero element is a unit times a unique power $\pi^a$, $0\leq a<s$. Repeatedly moving an entry of minimal valuation to the first position and using elementary row and column operations gives Smith form
  71 \[
  72  PMQ^T=\diag(\pi^{a_1},\ldots,\pi^{a_r},0,\ldots),\qquad
  73  0\leq a_1\leq\cdots\leq a_r<s,
  74 \]
  75 with $P\in\GL_m(K)$ and $Q\in\GL_n(K)$. Clearing a pivot is possible because it divides all remaining entries; induction gives the diagonal form. The invariant exponents can equivalently be recovered from the module type \cite{HonoldLandjev2000,Byrne2021}. We write $r$ for the number of nonzero factors and
  76 \[
  77  a=a_1,\qquad h=\#\{i:a_i=a\}.
  78 \]
  79 Writing $M=\pi^a N$ involves a choice of preimage, not division by a unit. Its residue $\bar N$ is well-defined: entrywise, the ambiguity lies in $\operatorname{Ann}(\pi^a)=(\pi^{s-a})\subseteq J$ (and is zero when $a=0$). Thus $h=\rank_k\bar N$. In contrast, $\bar M$ is zero whenever $a>0$; its rank is then not the leading multiplicity.
  80 
  81 \begin{definition}[Complete-basis support]
  82 A primitive row in $K^m$ has a unit coordinate. Its projective ray is its orbit under unit scaling. A local setting is an unordered basis of primitive projective rows, represented by an invertible matrix. For a nonzero resource $M\in K^m\otimes_K K^n\cong\Mat_{m\times n}(K)$, the outcome pair represented by rows $x,y$ is supported exactly when
  83 \[
  84  xMy^T\ne0.
  85 \]
  86 All such local settings are admitted, and local reversible changes are the full groups $\GL_m(K)$ and $\GL_n(K)$.
  87 \end{definition}
  88 
  89 Unit rescaling does not change support. Each context has a supported event because invertible changes cannot send nonzero $M$ to zero. The support marginal for $x$ is independent of Bob's basis: some coordinate of $xMB^T$ is nonzero if and only if $xM\ne0$. Hence these support tables satisfy possibilistic no-signalling, without any assigned real probabilities.
  90 
  91 A \emph{global assignment} chooses one outcome for each local setting, with every chosen cross pair supported. A model is \emph{local} here if every supported event extends to such an assignment. It is \emph{logically contextual} if some event does not extend, and \emph{strongly contextual} if no global assignment exists. This is a support-level definition; ``local'' is not a statement about a particular probability distribution.
  92 
  93 Two further tasks use the same scalars but different measurements. Their distinctions are essential.
  94 \begin{center}\small
  95 \begin{tabular}{p{.15\linewidth}p{.74\linewidth}}
  96 \toprule
  97 Task & Contract \\\midrule
  98 Support & Nonzero static $M$; balanced tensor over $K$; all primitive projective local bases; nonzero contraction means possible. \\
  99 Orbit coding & Square $M$, $d\geq2$; encodings $UM$ with $U\in\GL_d(K)$; one invertible $K$-linear joint decoder on $d^2$ coordinates; every possible outcome identifies the message. No discard and reprepare. \\
 100 Teleportation & Every nonzero raw input, including correlations with an untouched reference; complete basis of primitive joint covectors; all possible branches corrected exactly by allowed invertible maps. No selected successful branch or postselection. \\\bottomrule
 101 \end{tabular}
 102 \end{center}
 103 For support and coding, multiplying a whole resource by a unit is immaterial. Teleportation below demands actual vector recovery and does not silently replace this by an unspecified projective task.
 104 
 105 
 106 
 107 \subsection{Resource map and a worked comparison}
 108 Table~\ref{tab:map} previews the consequences of Theorems~\ref{thm:trichotomy}, \ref{thm:code} and~\ref{thm:teleport} for square resources. Primitivity of $M$, viewed as a vector of entries, is equivalent to $a=0$.
 109 \begin{table}[ht]\centering\small
 110 \begin{tabular}{ccl}
 111 \toprule
 112 Smith region & Orbit messages & Support and raw teleportation\\\midrule
 113 $r=1$ & $d$ & Local; singular for $d\geq2$\\
 114 $r\geq2,\ h=1$ & $d$ & Logical, not strong; singular\\
 115 $2\leq h<d$ & $dh$ & Strong; singular\\
 116 $h=d,\ a>0$ & $d^2$ & Strong; nonprimitive, singular\\
 117 $h=d,\ a=0$ & $d^2$ & Strong; invertible, universally teleporting\\\bottomrule
 118 \end{tabular}
 119 \caption{Square resources under the stated contracts, $d\geq2$. Zero is excluded.}\label{tab:map}
 120 \end{table}
 121 
 122 For $A=\A$, compare the four resources in Table~\ref{tab:examples}. In $M=\diag(u,u)=uI_2$, a choice of leading preimage is $N=I_2$, so $a=1$ and $h=2$ even though $\bar M=0$. All four orbit messages remain distinguishable, but the nonzero input $(u^3,0)^T$ is annihilated by $M$ and cannot be universally recovered. By contrast, $\diag(1,u^2)$ is primitive and has two nonzero factors, but only one leading factor; it has a Hardy obstruction and also a global assignment. These examples distinguish $r$, $h$ and invertibility without changing the scalar ring.
 123 \begin{table}[ht]\centering\small
 124 \begin{tabular}{lccclcc}
 125 \toprule
 126 $M$ over $A$ & $r$ & $a$ & $h$ & Support & Messages & Teleports\\\midrule
 127 $\diag(1,0)$ & 1 & 0 & 1 & Local & 2 & No\\
 128 $\diag(1,u^2)$ & 2 & 0 & 1 & Logical, not strong & 2 & No\\
 129 $\diag(u,u)$ & 2 & 1 & 2 & Strong & 4 & No\\
 130 $I_2$ & 2 & 0 & 2 & Strong & 4 & Yes\\\bottomrule
 131 \end{tabular}
 132 \caption{A worked comparison over one chain ring. Teleportation means universal exact raw-vector recovery.}\label{tab:examples}
 133 \end{table}
 134 
 135 \section{Complete-basis contextuality}\label{sec:classification}
 136 The first lemma requires only that $K$ be finite, commutative and local.
 137 \begin{lemma}[Residue-hyperplane criterion]\label{lem:hyperplane}
 138 A complete-basis support model has a global assignment if and only if there are hyperplanes $H_A\subset k^m$ and $H_B\subset k^n$ such that $xMy^T\ne0$ for every pair of primitive lifts whose residues lie outside $H_A$ and $H_B$.
 139 \end{lemma}
 140 \begin{proof}
 141 Let $U_A$ be the union of the rays selected by a global assignment. Its complement contains no basis, since the corresponding setting would have to select a ray in that complement. If the reductions of the complement spanned $k^m$, one could select a residue basis from them; its lifts would form an invertible basis over $K$. Thus those reductions lie in a proper subspace, which is contained in a hyperplane $H_A$. Every primitive lift of a residue vector outside $H_A$ belongs to $U_A$. Construct $H_B$ in the same way. Every pair from $U_A\times U_B$ is selected in some pair of settings, and is therefore supported.
 142 
 143 Conversely, any basis has a row reducing outside a given hyperplane. Select one in every setting on each side. The stated condition makes every chosen cross pair supported, giving a global assignment.
 144 \end{proof}
 145 
 146 \begin{lemma}[Uniform Hardy witness]\label{lem:hardy}
 147 For $D=\diag(p,q_0)$ with $p=\pi^a$, $q_0=\pi^b\ne0$ and $a\leq b$, put $c=\pi^{b-a}$. The local bases
 148 \[
 149  F=\begin{pmatrix}0&1\\1&0\end{pmatrix},\quad
 150  X=\begin{pmatrix}1&0\\1&1\end{pmatrix},\quad
 151  C=\begin{pmatrix}1&0\\-c&1\end{pmatrix}
 152 \]
 153 give a supported event with no global extension, using $F,C$ for Alice and $F,X$ for Bob.
 154 \end{lemma}
 155 \begin{proof}
 156 All three determinants are units, and $pc=q_0$. Direct multiplication gives
 157 \begin{align*}
 158  FDF^T&=\begin{pmatrix}q_0&0\\0&p\end{pmatrix},&
 159  FDX^T&=\begin{pmatrix}0&q_0\\p&p\end{pmatrix},\\
 160  CDX^T&=\begin{pmatrix}p&p\\-q_0&0\end{pmatrix},&
 161  CDF^T&=\begin{pmatrix}0&p\\q_0&-q_0\end{pmatrix}.
 162 \end{align*}
 163 Index outcomes by $0,1$. The forcing chain from the supported seed is
 164 \[
 165 (F_A=0,F_B=0)\ \Longrightarrow\ X_B=1
 166 \ \Longrightarrow\ C_A=0\ \Longrightarrow\ F_B=1,
 167 \]
 168 a contradiction. Each implication excludes an outcome using, successively, the zero entries in $FDX^T$, $CDX^T$ and $CDF^T$. The support strings, in row order, are $1001,0111,1110,0111$. The minus sign cannot be dropped outside characteristic two.
 169 \end{proof}
 170 
 171 \begin{theorem}[Smith trichotomy]\label{thm:trichotomy}
 172 For nonzero $M\in\Mat_{m\times n}(K)$, the complete-basis support type is
 173 \[
 174 \begin{array}{rcl}
 175 r=1&\Longleftrightarrow&\text{local},\\
 176 r\geq2,\ h=1&\Longleftrightarrow&\text{logical but not strong},\\
 177 h\geq2&\Longleftrightarrow&\text{strong}.
 178 \end{array}
 179 \]
 180 \end{theorem}
 181 \begin{proof}
 182 Invertible left and right changes merely relabel the complete basis families, so take Smith form.
 183 
 184 Suppose $r=1$, with sole nonzero entry $p$ in position $(1,1)$. Retain the outcomes of any supported seed event $(x,y)$. In every other setting choose a row with unit first coordinate. A new--new pair has contraction equal to $p$ times a unit. The seed condition $px_1y_1\ne0$ implies $px_1\ne0$ and $py_1\ne0$, so a seed--new pair is also supported. The seed therefore extends.
 185 
 186 If $h=1$, choose a row with unit first coordinate in every setting. In the divided matrix, each selected contraction is a product of units plus terms in the radical, hence is a unit. Multiplication by the nonzero $\pi^a$ gives a supported cross pair. A global assignment exists.
 187 
 188 If $h\geq2$, write $M=\pi^a M_0$, so $\bar M_0$ has rank $h$. Suppose the hyperplanes of Lemma~\ref{lem:hyperplane} existed, and write $H_B=\ker\beta$. The vectors outside $H_A$ span $k^m$. Since the row space of $\bar M_0$ has dimension at least two, some $x\notin H_A$ has $w=x\bar M_0$ outside the line spanned by $\beta$. There is $y\in\ker w$ with $\beta(y)\ne0$. Lift $x,y$ to rows $\tilde x,\tilde y$. The row $\tilde xM_0$ has a unit coordinate, whereas its contraction with $\tilde y$ lies in $J$. Subtracting that contraction divided by the unit from the corresponding coordinate of $\tilde y$ cancels it exactly and changes no residue. This yields lifts outside both hyperplanes with zero contraction, a contradiction.
 189 
 190 Finally, if $r\geq2$, embed Lemma~\ref{lem:hardy} in the first two nonzero Smith coordinates and extend its bases with standard rows. The embedded matrices are block diagonal. At each forcing step, the already selected row is supported only in the first two coordinates and therefore has zero contraction with every added coordinate outcome on the other side. No additional outcome can escape the forcing chain. Thus the same seed cannot extend, even in higher dimensions. These observations exhaust all nonzero cases.
 191 \end{proof}
 192 
 193 There are $q^{sm}-q^{(s-1)m}$ primitive rows in $K^m$. Unit scaling acts freely, and $|K^\times|=q^{s-1}(q-1)$. Consequently the numbers of rays and unordered projective bases are
 194 \[
 195  q^{(s-1)(m-1)}\frac{q^m-1}{q-1},\qquad
 196  \frac{q^{m^2(s-1)}|\GL_m(k)|}{|K^\times|^m m!}.
 197 \]
 198 For $K=\A$ and $m=2$, these are $24$ rays and $192$ bases. These counting facts are background; enumeration is unnecessary for the classification proof.
 199 
 200 \section{Exact orbit coding and teleportation}\label{sec:tasks}
 201 The following classical spanning fact is included with a constructive proof; stronger units-generation results are available in \cite{Zelinsky1954,Henriksen1974}.
 202 \begin{lemma}[Invertible matrices span]\label{lem:span}
 203 For a field $k$ and $d\geq2$, $\GL_d(k)$ spans $\Mat_d(k)$. Over a finite commutative local ring $K$, there is a $K$-basis of $\Mat_d(K)$ consisting entirely of invertible matrices.
 204 \end{lemma}
 205 \begin{proof}
 206 For $i\ne j$, $E_{ij}=(I+E_{ij})-I$. For a diagonal unit $E_{ii}$, choose a permutation matrix $P$ with $Pe_j=e_i$, $j\ne i$. Then $P(I+E_{ji})-P=E_{ii}$, again a difference of invertibles. This works over every field, including $\F_2$. Select $d^2$ independent invertibles from this spanning family over $k$ and lift their entries to $K$. Each lifted matrix is invertible. The square matrix of their flattened vectors is also invertible, because its residue is a basis matrix. The lifts therefore form the asserted basis.
 207 \end{proof}
 208 
 209 \begin{theorem}[Leading-layer orbit codebook]\label{thm:code}
 210 For $M\in\Mat_d(K)\setminus\{0\}$, $d\geq2$, the maximum number of messages under the orbit-coding contract of Section~\ref{sec:contract} is $N_{\max}=dh$.
 211 \end{theorem}
 212 \begin{proof}
 213 Write $M=\pi^aN$. The leading residue of each divided codeword $UN$ lies in
 214 \[
 215  V=\{X\bar N:X\in\Mat_d(k)\},\qquad \dim_k V=dh.
 216 \]
 217 Each row of $X\bar N$ belongs to the $h$-dimensional row space of $\bar N$, and all such rows can be chosen independently, proving $\dim_kV=dh$. Put $v_i=\operatorname{vec}(U_iN)$ and let $D\in\GL_{d^2}(K)$ be a proposed decoder. The vectors $\bar v_i$ and $\bar D\bar v_i$ are nonzero. If a coordinate of $Dv_i$ has nonzero residue, it is a unit, and multiplication by $\pi^a\ne0$ cannot kill it. Thus
 218 \[
 219 \operatorname{supp}(\bar D\bar v_i)
 220 \subseteq\operatorname{supp}(\pi^aDv_i).
 221 \]
 222 Exact decoding requires the supports on the right to be pairwise disjoint. Consequently the nonzero field vectors on the left have disjoint supports and are linearly independent. They lie in the $dh$-dimensional space $\bar D\operatorname{vec}(V)$, giving the upper bound. The reverse support inclusion is neither asserted nor needed.
 223 
 224 By Lemma~\ref{lem:span}, images of invertible residue matrices span $V$. Choose $dh$ of these images that are independent and lift the encoders to $U_1,\ldots,U_{dh}\in\GL_d(K)$. The columns $\operatorname{vec}(U_iN)$ are independent modulo $J$. Extend the residue columns to a basis and lift the added columns arbitrarily. The resulting matrix $B$ over $K$ is invertible. Its inverse sends the actual codewords to $\pi^ae_i$, each with a unique possible coordinate outcome. This attains the bound.
 225 \end{proof}
 226 
 227 \begin{corollary}\label{cor:equiv}
 228 With the complete-basis support and orbit-coding contracts matched, $N_{\max}>d$ if and only if $M$ is strongly contextual.
 229 \end{corollary}
 230 \begin{proof}
 231 Both conditions are equivalent to $h\geq2$.
 232 \end{proof}
 233 The $d$-message comparison is the dimension baseline for a fresh $d$-coordinate carrier with complete basis readout. It is not an entropy or an asymptotic channel capacity. If encoders may discard the resource, or decoders are restricted, the stated optimization changes. Over a field $h=r$, giving the familiar linear-algebra orbit count $dr$; the two-mobit four-message protocol is already known \cite{Schumacher2010}.
 234 
 235 A joint effect is a primitive covector
 236 \[
 237 e:K^d\otimes_K K^d\longrightarrow K,
 238 \qquad E_{ij}=e(e_i\otimes e_j),
 239 \]
 240 where the first factor holds the input and the second Alice's share of the resource. A complete analysis is a basis of $d^2$ such covectors. Its analysis matrix has rows $\operatorname{vec}(E)^T$ and must be invertible. This is different from requiring an individual reshape $E$ to have matrix rank one: $E$ may be invertible and need not represent a decomposable local effect. For $M=\sum_{j,k}M_{jk}e_j\otimes e_k$, contraction gives
 241 \[
 242 (T_ex)_k=\sum_{i,j}E_{ij}x_iM_{jk},\qquad T_e=M^TE^T.
 243 \]
 244 The branch label is communicated to Bob, who applies a fixed correction for that label.
 245 
 246 \begin{theorem}[Universal raw teleportation]\label{thm:teleport}
 247 Let $K$ be a finite commutative local ring. For nonzero $M\in\Mat_d(K)$, $d\geq2$, universal exact raw-vector teleportation with a complete joint covector basis and unrestricted invertible corrections is possible if and only if $M$ is invertible.
 248 \end{theorem}
 249 \begin{proof}
 250 Use the contraction convention above, so a branch with reshape $E$ has transfer $T=M^TE^T$. If a nonzero branch map had a nonzero kernel vector $z$, choose $x$ with $Tx\ne0$. Both $x$ and $x+z$ are nonzero and give the same possible branch output. A fixed correction cannot recover both. Thus each nonzero universally correct branch is injective. On the finite free module $K^d$, it is bijective and its inverse is linear; its invertibility forces $M$ to be invertible. A complete effect basis and nonzero $M$ exclude the possibility that every branch map is zero: the reshapes span all matrices, so this would force $M^TE_{ij}=0$ for all $i,j$ and hence $M=0$.
 251 
 252 Conversely, choose the invertible-matrix basis of Lemma~\ref{lem:span} as the reshapes of the joint effects. It is a complete analysis basis, and every transfer $M^TE^T$ is invertible. Correct with its inverse. The identity $T^{-1}T=I$ remains an identity after tensoring with the identity on an untouched reference, proving the reference-preserving statement as well.
 253 \end{proof}
 254 
 255 The analyzer existence step is a residue-lifting corollary of the classical spanning fact. It requires both invertibility of each reshape and invertibility of the full analysis matrix. Its inclusion removes a dimension restriction from sufficiency when all the required bases and corrections are admitted; it does not assert that a physically restricted gate set can implement them.
 256 
 257 \begin{corollary}[A nonprimitive separator]\label{cor:separator}
 258 For a chain ring of length $s>1$ and $0<a<s$, the resource $\pi^a I_d$ is strongly contextual and has $d^2$ exact orbit messages, but cannot teleport universally under Theorem~\ref{thm:teleport}.
 259 \end{corollary}
 260 \begin{proof}
 261 Its leading multiplicity is $d$. It also annihilates every vector multiplied by $\pi^{s-a}$, so is singular. Apply Theorems~\ref{thm:trichotomy}--\ref{thm:teleport}.
 262 \end{proof}
 263 The smallest example is $\varepsilon I_2$ over $\F_2[\varepsilon]/(\varepsilon^2)$. The role of nonprimitivity is exact:
 264 \begin{corollary}[Primitive-resource boundary]\label{cor:primitive}
 265 For a primitive $M\in\Mat_d(K)$ over a finite commutative chain ring, under the stated contracts,
 266 \[
 267 N_{\max}=d^2\quad\Longleftrightarrow\quad M\text{ invertible}
 268 \quad\Longleftrightarrow\quad\text{universal exact raw teleportation}.
 269 \]
 270 \end{corollary}
 271 \begin{proof}
 272 Primitivity gives $a=0$. By Theorem~\ref{thm:code}, maximal coding is equivalent to $h=d$, so all Smith factors are units. Apply Theorem~\ref{thm:teleport}.
 273 \end{proof}
 274 Thus the maximal-coding/nonteleportation separation requires nonprimitive resources and does not occur in the generic state class of \cite{deBeaudrap2014}. This does not equate strong contextuality with teleportation for primitive resources: $2\leq h<d$ is still possible when $d>2$.
 275 
 276 \section{Boundaries of the resource comparison}\label{sec:boundaries}
 277 \subsection{Balanced tensors and regular binary expansion}
 278 In $A=\A$, balanced scalar multiplication identifies $A\otimes_A A$ with $A$. Therefore
 279 \[
 280  u^3\otimes_Au=0,\qquad u^3\otimes_{\F_2}u\ne0.
 281 \]
 282 The second assertion follows by applying field-linear functionals that are nonzero on each factor. Nonzero preparations thus need not remain nonzero under the balanced tensor. Primitive vectors do remain primitive, since a product of unit coordinates is a unit. Yet that restriction is not closed under the proposed conditional support update: applying the second standard effect to $\diag(1,u)$ gives the nonprimitive nonzero vector $(0,u)$.
 283 
 284 The regular representation of $A$ is a faithful algebra map to $4\times4$ binary matrices. It is not a monoidal equivalence between the balanced and literal tensor spaces. Expanding a Smith factor $u^a$ gives binary rank $4-a$, whence
 285 \[
 286  \rank_{\F_2}\lambda(M)=\sum_{i=1}^r(4-a_i).
 287 \]
 288 Unrestricted independent binary row and column operations classify a matrix only by that total rank. They can consequently erase distinctions detected by restricted $A$-linear operations.
 289 
 290 For instance, $\diag(1,u^2)$ and $\diag(u,u)$ both have binary rank six but leading multiplicities one and two. To avoid relying on a nonprimitive comparison, the primitive matrices
 291 \[
 292  \diag(1,1,u^3),\qquad \diag(1,u,u^2)
 293 \]
 294 both have binary rank nine, while their leading multiplicities are two and one. Their $A$-linear orbit codebooks have sizes six and three; both are singular, and hence neither universally teleports in the stated task.
 295 
 296 \subsection{A boundary on the number of settings}
 297 \begin{theorem}[Absence of strong contextuality with two settings]\label{thm:two}
 298 A nonzero tensor with any finite number of parties over $\F_2$, two-dimensional local carriers, and at most two complete binary settings per party has a global assignment. The same conclusion holds over a finite commutative local ring with residue field $\F_2$.
 299 \end{theorem}
 300 \begin{proof}
 301 Two distinct binary bases share a row $a$ and have other rows $b$ and $a+b$. If they coincide, use $b$ as the other row in both settings. Expand the tensor in the coordinates dual to $(a,b)$ at each site. Choose an inclusion-minimal set $S$ of sites using the $b$ coordinate whose coefficient is nonzero. Outside $S$ select $a$. Inside $S$ select the nonshared row of the chosen setting. Every joint contraction is the coefficient for $S$ plus coefficients of proper subsets, all of which vanish. Thus every selected joint event is supported.
 302 
 303 For a local ring with radical $J$, choose the last nonzero radical layer containing all tensor coefficients: the tensor lies in $(J^a)^{2^n}$ but not in $(J^{a+1})^{2^n}$. Choose an $\F_2$-linear functional on $J^a/J^{a+1}$ for which the coefficient tensor is nonzero. Reduce each local basis modulo $J$ and apply the field argument. Every selected original contraction has nonzero image under this functional and is therefore nonzero.
 304 \end{proof}
 305 This does not exclude Hardy logical contextuality, which concerns failure to extend a particular event. Nor does it cover three settings or a different residue field. For two parties, the exclusion of a strongly contextual binary two-setting table is close to the established PR-box and modal-table boundaries \cite{AbramskyBrandenburger2011,Schumacher2012}; the proof above states explicitly what extends to arbitrary party number and radical layers.
 306 
 307 \section{Finite verification and reproducibility}\label{sec:verification}
 308 The proofs establish the general statements. The standalone supplement contains a separate checker developed for the September 2026 audit and rerun for this revision. It uses only the Python standard library. It is not the earlier historical runner, whose dependencies are absent from the original article package. The current evidence claims refer only to the files and commands in this supplement.
 309 
 310 The support checker enumerates primitive rays, complete bases and exact contraction tables. Forbidden outcome pairs become binary clauses; implication-graph reachability decides global assignments and whether each supported event extends. Smith data are computed afterward for comparison, not used to decide support type. Identical support tables are cached. For the binary field these decisions are also checked by direct assignment enumeration.
 311 
 312 \begin{center}\small
 313 \begin{tabular}{p{.27\linewidth}p{.61\linewidth}}
 314 \toprule
 315 Check & Coverage and limitation\\\midrule
 316 Direct support & All $22{,}170$ nonzero $2\times2$ resources over $\F_2,\F_3,\F_4$, $\F_2[u]/(u^2)$, $\F_2[u]/(u^3)$, $\F_3[u]/(u^2)$, and $\mathbb Z/4,\mathbb Z/8,\mathbb Z/9$; zero disagreements.\\[3pt]
 317 Length-four support & Fourteen nonzero Smith representatives and 24 deterministic sampled resources over $A=\A$, each using all 192 local bases; not all $65{,}535$ nonzero resources.\\[3pt]
 318 Hardy and analyzers & 36 ring/exponent Hardy cases; 28 analyzer configurations, checking each reshape and the complete analysis matrix, plus correction identities for one invertible resource per configuration.\\[3pt]
 319 Coding & 52 explicit encoder/decoder certificates across seven rings, including all fourteen nonzero $A$ Smith representatives. These certify achievability; the general upper bound is analytic.\\[3pt]
 320 Binary coding optimum & All 15 nonzero $2\times2$ binary resources, all $20{,}160$ invertible joint decoders per resource, and all disjoint-support subsets of each decoded orbit.\\[3pt]
 321 Two-setting boundary & All 255 nonzero three-party binary tensors for a representative pair of distinct settings per party; the arbitrary-party and ring statements are analytic.\\\bottomrule
 322 \end{tabular}
 323 \end{center}
 324 
 325 \input{smith_table}
 326 
 327 Table~\ref{tab:smith} uses a separate exhaustive Smith inventory of all $65{,}536$ matrices over $A$, including zero. Its support labels are assigned by Theorem~\ref{thm:trichotomy}; they are not direct support decisions on the entire population. The nonzero counts are $5{,}265$ local, $34{,}056$ logical but not strong, and $26{,}214$ strong. The direct dual-number check yields $81$, $72$ and $102$ respectively for its 255 nonzero matrices.
 328 
 329 A separately supplied process-semantics implementation is included unchanged for an additional, scoped cross-check: its Smith types and independently computed regular-representation binary ranks are checked on all $65{,}536$ matrices over $A$. Its inventory agrees with the audit checker. This comparison does not constitute another full support classification or a rerun of every historical process-semantics suite.
 330 
 331 From the extracted revision directory, run \texttt{python supplement/run\_reproduction.py}. The wrapper refuses optimized Python execution, runs the full stated population, compares substantive outputs with the supplied reference results, regenerates Table~\ref{tab:smith}, and writes commands, interpreter/platform, exit statuses, runtimes and SHA-256 hashes. Runtime and platform fields are excluded from substantive-output comparisons. The Boolean coefficient-support identity is analytic; no historical LM-product or missing canonical-runner result is claimed as reproduced here. These finite checks corroborate the proofs and do not certify historical priority.
 332 
 333 \section{Discussion}
 334 The resource hierarchy is controlled by different questions about the same Smith form. At least two nonzero Smith factors permit a logical obstruction; leading multiplicity controls the absence of every global assignment and the size of an exact orbit code; invertibility controls universal raw-vector transfer. None of these statements identifies a physical capability without the relevant operation and readout assumptions.
 335 
 336 There are two particularly useful limits. First, the nilpotent maximal-code example is a static nonprimitive resource, so it cannot by itself justify a closed process theory. For primitive resources, maximal orbit coding and universal raw teleportation coincide by Corollary~\ref{cor:primitive}. Second, the codebook/contextuality equivalence compares matched complete-basis contracts. Restricting gates, changing the scalar tensor, adding discard-and-reprepare, or weakening exactness requires a new theorem.
 337 
 338 The next mathematical questions are a classification beyond chain rings, a process semantics closed under both preparation and conditioning, and resource comparisons for restricted measurement families. These remain open here. The contribution is the classification and the explicit comparison of resource criteria. The primary-source comparison is bounded; it does not certify historical firstness for the specific classification or orbit formula.
 339 
 340 \bibliographystyle{plain}
 341 \bibliography{references}
 342 \end{document}
references.bib
   1 @article{Schumacher2010,
   2  author={Benjamin Schumacher and Michael D. Westmoreland},
   3  title={Modal Quantum Theory}, journal={Foundations of Physics},
   4  year={2012}, volume={42}, number={7}, pages={918--925},
   5  doi={10.1007/s10701-012-9650-z},
   6  note={\href{https://doi.org/10.1007/s10701-012-9650-z}{doi:10.1007/s10701-012-9650-z}; \href{https://arxiv.org/abs/1010.2929}{arXiv:1010.2929}}}
   7 @incollection{Schumacher2012,
   8  author={Benjamin Schumacher and Michael D. Westmoreland},
   9  title={Almost Quantum Theory},
  10  editor={Giulio Chiribella and Robert W. Spekkens},
  11  booktitle={Quantum Theory: Informational Foundations and Foils},
  12  series={Fundamental Theories of Physics}, volume={181},
  13  publisher={Springer}, address={Dordrecht}, year={2016}, pages={45--81},
  14  doi={10.1007/978-94-017-7303-4_3},
  15  note={\href{https://doi.org/10.1007/978-94-017-7303-4_3}{doi:10.1007/978-94-017-7303-4\_3}; \href{https://arxiv.org/abs/1204.0701}{arXiv:1204.0701}}}
  16 @misc{SchumacherFreeWill,
  17  author={Benjamin Schumacher and Michael D. Westmoreland},
  18  title={Non-contextuality and free will in modal quantum theory}, year={2010},
  19  howpublished={\href{https://arxiv.org/abs/1010.5452}{arXiv:1010.5452}}}
  20 @article{AbramskyBrandenburger2011,
  21  author={Samson Abramsky and Adam Brandenburger},
  22  title={The Sheaf-Theoretic Structure of Non-Locality and Contextuality},
  23  journal={New Journal of Physics}, year={2011}, volume={13}, pages={113036},
  24  doi={10.1088/1367-2630/13/11/113036},
  25  note={\href{https://doi.org/10.1088/1367-2630/13/11/113036}{doi:10.1088/1367-2630/13/11/113036}; \href{https://arxiv.org/abs/1102.0264}{arXiv:1102.0264}}}
  26 @article{Byrne2021,
  27  author={Eimear Byrne and Anna-Lena Horlemann and Karan Khathuria and Violetta Weger},
  28  title={Density of Free Modules over Finite Chain Rings},
  29  journal={Linear Algebra and its Applications}, year={2022}, volume={651}, pages={1--25},
  30  doi={10.1016/j.laa.2022.06.013},
  31  note={\href{https://doi.org/10.1016/j.laa.2022.06.013}{doi:10.1016/j.laa.2022.06.013}; \href{https://arxiv.org/abs/2106.09403}{arXiv:2106.09403}}}
  32 @article{HonoldLandjev2000,
  33  author={Thomas Honold and Ivan Landjev}, title={Linear Codes over Finite Chain Rings},
  34  journal={Electronic Journal of Combinatorics}, year={2000}, volume={7}, number={1}, pages={R11},
  35  doi={10.37236/1489}, note={\href{https://doi.org/10.37236/1489}{doi:10.37236/1489}. Volume year 2000; published online December 1999}}
  36 @article{BenZvi2017,
  37  author={Michael Ben-Zvi and Alexander Ma and Manuel Reyes},
  38  title={A {Kochen--Specker} theorem for integer matrices and noncommutative spectrum functors},
  39  journal={Journal of Algebra}, year={2017}, volume={491}, pages={280--313},
  40  doi={10.1016/j.jalgebra.2017.08.008},
  41  note={With an appendix by Alexandru Chirvasitu. \href{https://doi.org/10.1016/j.jalgebra.2017.08.008}{doi:10.1016/j.jalgebra.2017.08.008}; \href{https://arxiv.org/abs/1509.03618}{arXiv:1509.03618}}}
  42 @misc{deBeaudrap2014,
  43  author={Niel de Beaudrap},title={On computation with `probabilities' modulo k},
  44  year={2014},howpublished={\href{https://arxiv.org/abs/1405.7381}{arXiv:1405.7381}}}
  45 @mastersthesis{Varughese2009,
  46  author={Matthew Varughese},title={Categorical Quantum Computing with Finite Fields},
  47  school={University of Oxford},year={2009},
  48  note={Examples 8.3--8.4. \url{https://www.cs.ox.ac.uk/people/aleks.kissinger/theses/bob/Varughese.pdf}}}
  49 @article{Zelinsky1954,
  50  author={Daniel Zelinsky},title={Every linear transformation is a sum of nonsingular ones},
  51  journal={Proceedings of the American Mathematical Society},year={1954},volume={5},number={4},pages={627--630},
  52  doi={10.1090/S0002-9939-1954-0062728-7},
  53  note={\href{https://doi.org/10.1090/S0002-9939-1954-0062728-7}{doi:10.1090/S0002-9939-1954-0062728-7}}}
  54 @article{Henriksen1974,
  55  author={Melvin Henriksen},title={Two Classes of Rings Generated by Their Units},
  56  journal={Journal of Algebra},year={1974},volume={31},number={1},pages={182--193},
  57  doi={10.1016/0021-8693(74)90013-1},
  58  note={\href{https://doi.org/10.1016/0021-8693(74)90013-1}{doi:10.1016/0021-8693(74)90013-1}}}
  59 @article{Feng2014,
  60  author={Chen Feng and Roberto W. N{\'o}brega and Frank R. Kschischang and Danilo Silva},
  61  title={Communication over Finite-Chain-Ring Matrix Channels},
  62  journal={IEEE Transactions on Information Theory},year={2014},volume={60},pages={5899--5917},
  63  doi={10.1109/TIT.2014.2346079},
  64  note={\href{https://doi.org/10.1109/TIT.2014.2346079}{doi:10.1109/TIT.2014.2346079}; \href{https://arxiv.org/abs/1304.2523}{arXiv:1304.2523}}}
smith_table.tex
   1 \begin{table}[ht]\centering\small
   2 \begin{tabular}{rrrrrrll}
   3 \toprule
   4 $(a,b)$ & Count & $r$ & $h$ & Binary rank & Messages & Support & Teleport\\\midrule
   5 $(0,0)$ & 24,576 & 2 & 2 & 8 & 4 & Strong & Yes\\
   6 $(0,1)$ & 18,432 & 2 & 1 & 7 & 2 & Logical & No\\
   7 $(0,2)$ & 9,216 & 2 & 1 & 6 & 2 & Logical & No\\
   8 $(0,3)$ & 4,608 & 2 & 1 & 5 & 2 & Logical & No\\
   9 $(0,4)$ & 4,608 & 1 & 1 & 4 & 2 & Local & No\\
  10 $(1,1)$ & 1,536 & 2 & 2 & 6 & 4 & Strong & No\\
  11 $(1,2)$ & 1,152 & 2 & 1 & 5 & 2 & Logical & No\\
  12 $(1,3)$ & 576 & 2 & 1 & 4 & 2 & Logical & No\\
  13 $(1,4)$ & 576 & 1 & 1 & 3 & 2 & Local & No\\
  14 $(2,2)$ & 96 & 2 & 2 & 4 & 4 & Strong & No\\
  15 $(2,3)$ & 72 & 2 & 1 & 3 & 2 & Logical & No\\
  16 $(2,4)$ & 72 & 1 & 1 & 2 & 2 & Local & No\\
  17 $(3,3)$ & 6 & 2 & 2 & 2 & 4 & Strong & No\\
  18 $(3,4)$ & 9 & 1 & 1 & 1 & 2 & Local & No\\
  19 $(4,4)$ & 1 & 0 & 0 & 0 & n/a & Excluded & n/a\\
  20 \bottomrule\end{tabular}
  21 \caption{All fifteen Smith classes over $A=\mathbb F_2[u]/(u^4)$ for $2\times2$ matrices. Exponent $4$ denotes zero. Counts are exhaustively enumerated; the remaining columns apply the analytic formulas. Logical means logical but not strong. Zero is excluded from the resource tasks.}\label{tab:smith}
  22 \end{table}

Related boundaries: CM model correctness audit. No simulation, timing or full computational campaign was rerun for this reading-copy release. No physical or cognitive advantage follows from making these documents accessible.