337 Contextuality as Corollaries

The topos formulation of Isham and Butterfield [607] and the sheaf formulation of Abramsky and Brandenburger [651] are built from presheaves, sieves, Heyting algebras, global sections, semirings of weights and a parity count. Each of these is obtained here from the idempotent \(a^2=a\), the diagonal \(\Delta \), and the cone, so that the central statements of both papers follow as corollaries. The Kochen–Specker theorem [606] itself, for the 18-vector cover, reduces to the identity \(1=0\) in \(\mathbb {F}_2\).

337.1 Values are idempotents

A valuation assigns to each projector a number compatible with products of commuting operators. Since \(\hat P^2=\hat P\),

\begin{equation} V(\hat P)=V(\hat P^2)=V(\hat P)^2 \quad \Longrightarrow \quad V(\hat P)\in \{0,1\}, \tag{21111}\end{equation}
which is the starting point of [607]. Within one context an orthogonal resolution satisfies \(\sum _i\hat P_i=\hat 1\) and \(\hat P_i\hat P_j=0\), so
\begin{equation} \sum _iV(\hat P_i)=1, \qquad V(\hat P_i)\,V(\hat P_j)=0 : \tag{21112}\end{equation}
exactly one projector takes the value \(1\). This is the formula \(\mathsf {ONE}(C)\) of [651], and it is excluded middle together with non-contradiction, read in one context.

337.2 Restriction is composition, gluing is the diagonal

For a set \(X\) of measurements and outcomes \(O\), the sections over \(U\subseteq X\) are maps \(s:U\to O\), and restriction is composition with the inclusion,

\begin{equation} \mathcal {E}(U)=O^{U}, \qquad s\mapsto s|_{U'}=s\circ \iota _{U'U}. \tag{21113}\end{equation}
Functoriality, \(\mathrm {res}^{U'}_{U}\circ \mathrm {res}^{U''}_{U'} =\mathrm {res}^{U''}_{U}\), is associativity of composition. A family \(s_i\in \mathcal {E}(U_i)\) glues exactly when, on every overlap, the pair of values lies on the diagonal,
\begin{equation} \bigl (s_i(m),\,s_j(m)\bigr )\in \Delta _O \qquad (m\in U_i\cap U_j), \tag{21114}\end{equation}
for then the union of the graphs is itself a graph. This is the sheaf condition of [651], and its triviality there is the triviality of the diagonal. The same condition on marginals of distributions is no-signalling: \(e_C|_{C\cap C'}=e_{C'}|_{C\cap C'}\).

337.3 Sieves, Heyting algebras and the classifier

Sieves are closed sets. A sieve on \(A\) is a set \(S\) of arrows into \(A\) closed under precomposition, \(f\in S\Rightarrow f\circ g\in S\); in a poset it is a lower set. It is a fixed point of the closure \(S\mapsto S\cup (S\circ \mathrm {Arr})\), of the same least-fixed-point form as \(\mathbb {N}\) and the cone, and the principal sieve \(\downarrow \!A\) is the largest.

The Heyting algebra. Sieves on \(A\) are ordered by inclusion, with

\begin{equation} S_1\wedge S_2=S_1\cap S_2, \qquad S_1\vee S_2=S_1\cup S_2, \qquad S\le (S_1\Rightarrow S_2)\iff S\wedge S_1\le S_2 , \tag{21115}\end{equation}
so implication is right adjoint to meet, the pattern of \(F\dashv U\) and \(\Sigma _f\dashv f^{*}\). Meet is idempotent, \(S\wedge S=S\), and non-contradiction holds, \(S\wedge \neg S=0\) with \(\neg S=S\Rightarrow 0\). What is missing is the complement \(1-a\): no subtraction is available, so neither \(\neg \neg S=S\) nor \(S\vee \neg S=1\) need hold. A Heyting algebra is therefore the idempotent structure of Subsection 328.2 with \(\mathsf {LNC}\) kept and the involution \(a\mapsto 1-a\) removed; it is Boolean precisely when \(\neg \neg =\mathrm {id}\).

The subobject classifier. In sets, a subset is a map into \(\{0,1\}\). In presheaves, a subobject \(K\subseteq X\) is classified by

\begin{equation} \chi ^K_A(x)=\{\,f:B\to A\ :\ X(f)(x)\in K(B)\,\}, \tag{21116}\end{equation}
the sieve of arrows along which \(x\) enters \(K\). When the base is a single point this returns \(\{0,1\}\), the idempotents.

337.4 Global sections

A global section of a presheaf \(X\) is a choice \(\gamma _A\in X(A)\) with

\begin{equation} X(f)(\gamma _A)=\gamma _B \qquad (f:B\to A), \tag{21117}\end{equation}
that is, every restriction pair lies on the diagonal. For the spectral presheaf \(\Sigma (\hat A)=\sigma (\hat A)\) with \(\Sigma (f)(\lambda )=f(\lambda )\) this is the functional composition principle
\begin{equation} V\bigl (h(\hat A)\bigr )=h\bigl (V(\hat A)\bigr ), \tag{21118}\end{equation}
the commutation of a valuation with composition. Hence the reading of the Kochen–Specker theorem in [607]:
\begin{equation} \dim \mathcal {H}>2 \quad \Longrightarrow \quad \Gamma (\Sigma )=\varnothing . \tag{21119}\end{equation}
Local sections exist; what fails is the diagonal condition across all contexts at once.

337.5 Three semirings: idempotent, cone, signed

The weights of [651] range over a commutative semiring \(R\), and the three cases used there are the three structures met throughout:

Semiring Addition Structure Global section problem
\(\mathbb {B}=(\{0,1\},\vee ,\wedge )\) \(a+a=a\) idempotent satisfiability
\(\mathbb {R}_{\ge 0}\) \(P+P\subseteq P\) cone linear programming
\(\mathbb {R}\) \(-1\) present signed linear algebra

The support map \(\mathbb {R}_{\ge 0}\to \mathbb {B}\), nonzero to \(1\), is a semiring homomorphism, so a global section over the cone yields one over the idempotents. There is no homomorphism from \(\mathbb {R}\):

\begin{equation} 0=h(0)=h\bigl (1+(-1)\bigr )=h(1)\vee h(-1)=1 , \tag{21120}\end{equation}
which is the obstruction that excluded an order on \(\mathbb {F}_2\) — an idempotent addition cannot receive a negative. Over \(\mathbb {R}\) every no-signalling model has a global section; leaving the cone removes contextuality altogether. It is the cone condition that makes contextuality an obstruction at all.

337.6 The linear system and the hierarchy

With the incidence matrix \(M[(C,s),t]=1\) iff \(t|_C=s\) for global assignments \(t\in O^{X}\), a global section is a solution of

\begin{equation} MX=V, \qquad \textstyle \sum _tX(t)=1, \tag{21121}\end{equation}
over the chosen semiring. Writing \(S_e=\{t:\forall C,\ t|_C\in \operatorname {supp}e_C\}\), the hierarchy of [651] is the order in which the three semirings fail:

Level Fails over Example
probabilistic \(\mathbb {R}_{\ge 0}\) Bell
possibilistic \(\mathbb {B}\) (support) Hardy
strong \(S_e=\varnothing \) GHZ, Kochen–Specker

Factorisable hidden-variable models are equivalent to global sections, since a factorised distribution is a product of marginals and the marginals agree on overlaps — again the diagonal.

337.7 Kochen–Specker as \(1=0\) in \(\mathbb {F}_2\)

Let \(s:X\to \{0,1\}\) satisfy \(\mathsf {ONE}(C)\) for every \(C\in \mathcal {M}\), and count the ones in two ways:

\begin{equation} \sum _{C\in \mathcal {M}}\sum _{m\in C}s(m)=|\mathcal {M}|, \qquad \sum _{C\in \mathcal {M}}\sum _{m\in C}s(m)=\sum _{m\in X}|\mathcal {M}(m)|\,s(m), \tag{21122}\end{equation}
where \(\mathcal {M}(m)\) is the set of contexts containing \(m\). For the 18-vector cover in \(\mathbb {R}^4\) [652], \(|\mathcal {M}|=9\) and \(|\mathcal {M}(m)|=2\) for every \(m\). Reducing modulo two,
\begin{equation} 1\equiv 9=2\sum _ms(m)\equiv 0 \pmod 2 , \tag{21123}\end{equation}
so no such \(s\) exists. The parity proofs of [651] are this computation in \(\mathbb {F}_2\): excluded middle and non-contradiction in each context force the count to be odd, the double covering forces it to be even, and the two-element field cannot hold both.

337.8 Summary

Notion in [607, 651] Here Source
\(V(\hat P)\in \{0,1\}\) \(V=V^2\) \(a^2=a\)
\(\mathsf {ONE}(C)\) \(\sum \Pi _i=1\), \(\Pi _i\Pi _j=0\) \(\mathsf {LEM}\), \(\mathsf {LNC}\)
presheaf restriction by composition associativity
sheaf condition, no-signalling values agree on overlaps \(\Delta \)
FUNC, global section restriction pairs on \(\Delta \) \(\Delta \)
sieve closed under precomposition least fixed point
Heyting algebra idempotent, \(\mathsf {LNC}\), no \(1-a\) \(a^2=a\) without involution
\(\mathbb {B}\), \(\mathbb {R}_{\ge 0}\), \(\mathbb {R}\) idempotent, cone, signed \(a^2=a\), \(P\), \(\vartheta \)
no map \(\mathbb {R}\to \mathbb {B}\) \(1\vee h(-1)=0\) as for \(\mathbb {F}_2\)
parity proof \(1\equiv 0\pmod 2\) \(\mathbb {F}_2\)
\begin{equation} a^2=a,\ \Delta ,\ P \ \Longrightarrow \ \text {presheaves, sieves, }\Omega ,\ \Gamma \ \Longrightarrow \ \Gamma (\Sigma )=\varnothing ,\quad \text {Bell}<\text {Hardy}<\text {GHZ},\quad 1\equiv 0\ (\mathrm {mod}\ 2). \tag{21124}\end{equation}

Remark 337.1 (The 18-vector construction on the same foundation). The realisation of the 18-vector cover in \(\mathbb {R}^4\) [652] uses no ingredient beyond those already derived. Its vectors have components in \(\{0,\pm 1\}\), so inner products are integers, obtained from the pair construction of \(\mathbb {Z}\) with the sign as the involution \(\vartheta \), and the projectors have rational entries, obtained from the same pair construction applied to multiplication.

Orthogonality is a vanishing. Two vectors are orthogonal when

\begin{equation} \langle u,v\rangle =\sum _{i=1}^{4}u_iv_i=0, \tag{21125}\end{equation}
an equation \(L=R\) in the form \(L-R=0\), evaluated by finitely many integer sums and products.

Projectors and resolutions. Each vector gives a rank-one projector \(\Pi _v=vv^{\mathsf T}/\langle v,v\rangle \), with \(\langle v,v\rangle \in \{1,2,4\}\) and \(\Pi _v^2=\Pi _v\). Each of the nine contexts is an orthogonal basis, so

\begin{equation} \sum _{v\in C}\Pi _v=\hat 1, \qquad \Pi _u\Pi _v=0\quad (u\neq v\in C), \tag{21126}\end{equation}
which are excluded middle and non-contradiction in that context, and force \(\mathsf {ONE}(C)\) on any value assignment.

The verification is primitive recursive. That each of the nine columns is an orthogonal set, and that each of the eighteen vectors lies in exactly two columns, is a finite check of integer equalities, all computed in \(\mathbb {Z}\) and decidable in PRA. Nothing in the construction leaves the arithmetic of Subsection 328.

The theorem. With the cover verified, the parity count of Section 337 gives \(1\equiv 0\pmod 2\). The Kochen–Specker theorem for this cover is therefore a statement whose every component — integers and rationals, signs, orthogonality as vanishing, idempotent projectors, the two logical laws per context, and reduction modulo two — has been obtained from \(a^2=a\) and \(\Delta \). The specific vectors are data; the reasoning that turns them into a no-go result is the framework itself.