OctoInform Beta

OpenAI preprint, September 2026 ยท ยง4. Wire comparisons and global offsets

Definition 4.2: Every wire shift of a subdivided comparison schema over ๐”ฝ2\mathbb{F}_2 decomposes as a cyclic sum of adjacent-coordinate terms

Cyclic row-sum form of wire parity shifts.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

In parity-lift reductions for Weisfeiler-Leman equivalence, a linear system of readout comparisons over the binary field ๐”ฝ2\mathbb{F}_2 is encoded by a ring-structured graph family indexed by Boolean address tuples of length rr. Twisting the blocks of this ring layout by a parity assignment ฮฒ\beta shifts each comparison along its subdivided wire by an ๐”ฝ2\mathbb{F}_2-valued function of the full address. Cyclic row-sum form captures the structural restriction on such address-dependent functions: each value is a cyclic sum of terms that depend only on adjacent coordinates of the address.

Cyclic row-sum form

Let ๐”ฝ2=โ„ค/2โ„ค\mathbb{F}_2 = \mathbb{Z}/2\mathbb{Z} denote the binary field.โœฆ

Upgrading local readout conditions to a graph isomorphism requires tracking how full-address parity shifts decompose into sums over adjacent coordinate pairs.

Let rโˆˆโ„•r \in \mathbb{N} be a natural number, let (Ai)i=0rโˆ’1(A_i)_{i=0}^{r-1} be a family of sets with product A=โˆi=0rโˆ’1AiA = \prod_{i=0}^{r-1} A_i, and let VV be an additive commutative monoid. A function h:Aโ†’Vh : A \to V has cyclic row-sum form if there exist functions fi:Aiร—Ai+1mod⁡rโ†’Vf_i : A_i \times A_{i+1 \bmod r} \to V for each iโˆˆ{0,โ€ฆ,rโˆ’1}i \in \{0, \dots, r-1\} such that, for every a=(a0,โ€ฆ,arโˆ’1)โˆˆAa = (a_0, \dots, a_{r-1}) \in A, h(a)=โˆ‘i=0rโˆ’1fi(ai,ai+1mod⁡r).h(a) = \sum_{i=0}^{r-1} f_i(a_i, a_{i+1 \bmod r}).(1)โœฆ

Ring layouts

For a natural number rโˆˆโ„•r \in \mathbb{N} and sets TT of types and LL of links, a ring layout RR of length rr on TT and LL consists of injective encodings of TT and LL into โ„•\mathbb{N}, a dimension dim⁡R(t)โˆˆ{1,2}\dim_R(t) \in \{1, 2\} for each type tโˆˆTt \in T, and a nonempty finite set of Boolean labels LR(t,i)โІ{0,1}L_R(t, i) \subseteq \{0, 1\} for each tโˆˆTt \in T and slot iโˆˆ{0,โ€ฆ,rโˆ’1}i \in \{0, \dots, r-1\}.โœฆ An element of LR(t,i)L_R(t, i) is a type slot label for tt at slot ii.โœฆ Each link โ„“โˆˆL\ell \in L has distinct first and second endpoint types first⁡R(โ„“),second⁡R(โ„“)โˆˆT\operatorname{first}_R(\ell), \operatorname{second}_R(\ell) \in T such that at least one of dim⁡R(first⁡R(โ„“))\dim_R(\operatorname{first}_R(\ell)) and dim⁡R(second⁡R(โ„“))\dim_R(\operatorname{second}_R(\ell)) equals 11, a nonempty finite set of Boolean link slot matches MR(โ„“,i)โІ{0,1}M_R(\ell, i) \subseteq \{0, 1\} at each slot ii, injective maps from MR(โ„“,i)M_R(\ell, i) into LR(first⁡R(โ„“),i)L_R(\operatorname{first}_R(\ell), i) and LR(second⁡R(โ„“),i)L_R(\operatorname{second}_R(\ell), i), and ๐”ฝ2\mathbb{F}_2-linear forms on ๐”ฝ2dim⁡R(first⁡R(โ„“))\mathbb{F}_2^{\dim_R(\operatorname{first}_R(\ell))} and ๐”ฝ2dim⁡R(second⁡R(โ„“))\mathbb{F}_2^{\dim_R(\operatorname{second}_R(\ell))}.

A link match address for a link โ„“โˆˆL\ell \in L is a tuple a=(a0,โ€ฆ,arโˆ’1)a = (a_0, \dots, a_{r-1}) in the product MR(โ„“)=โˆi=0rโˆ’1MR(โ„“,i)M_R(\ell) = \prod_{i=0}^{r-1} M_R(\ell, i).โœฆ A horizontal block name of RR is a tuple (t,i,b,c)(t, i, b, c) with tโˆˆTt \in T, iโˆˆ{0,โ€ฆ,rโˆ’1}i \in \{0, \dots, r-1\}, bโˆˆLR(t,i)b \in L_R(t, i), and cโˆˆLR(t,i+1mod⁡r)c \in L_R(t, i+1 \bmod r).โœฆ A ring layout square of RR is a tuple (โ„“,i,b,c)(\ell, i, b, c) with โ„“โˆˆL\ell \in L, iโˆˆ{0,โ€ฆ,rโˆ’1}i \in \{0, \dots, r-1\}, bโˆˆMR(โ„“,i)b \in M_R(\ell, i), and cโˆˆMR(โ„“,i+1mod⁡r)c \in M_R(\ell, i+1 \bmod r).โœฆ The set Block⁡(R)\operatorname{Block}(R) of ring layout blocks of RR is the disjoint union of its horizontal block names and its ring layout squares.โœฆ

Given a parity assignment ฮฒ:Block⁡(R)โ†’๐”ฝ2\beta : \operatorname{Block}(R) \to \mathbb{F}_2, a link โ„“โˆˆL\ell \in L, and a link match address aโˆˆMR(โ„“)a \in M_R(\ell), the link parity shift ฮ”R,ฮฒ(โ„“,a)โˆˆ๐”ฝ2\Delta_{R,\beta}(\ell, a) \in \mathbb{F}_2 is defined by ฮ”R,ฮฒ(โ„“,a)=โˆ‘i=0rโˆ’1ฮฒ(โ„“,i,ai,ai+1mod⁡r),\Delta_{R,\beta}(\ell, a) = \sum_{i=0}^{r-1} \beta(\ell, i, a_i, a_{i+1 \bmod r}),(2)โœฆ where each summand evaluates ฮฒ\beta at the corresponding ring layout square.

Comparison schemas

For a natural number rโˆˆโ„•r \in \mathbb{N} and sets PP of real types and EE of comparisons, a comparison schema SS of length rr on PP and EE consists of injective encodings of PP and EE into โ„•\mathbb{N}, a dimension dim⁡S(p)โˆˆ{1,2}\dim_S(p) \in \{1, 2\} for each pโˆˆPp \in P, source and target maps src⁡,tgt⁡:Eโ†’P\operatorname{src}, \operatorname{tgt} : E \to P, a nonempty finite domain set De(i)โІ{0,1}D_e(i) \subseteq \{0, 1\} for each eโˆˆEe \in E and iโˆˆ{0,โ€ฆ,rโˆ’1}i \in \{0, \dots, r-1\}, an injective coordinate map De(i)โ†’{0,1}D_e(i) \to \{0, 1\} for each eโˆˆEe \in E and ii, and left and right ๐”ฝ2\mathbb{F}_2-linear forms on ๐”ฝ2dim⁡S(src⁡(e))\mathbb{F}_2^{\dim_S(\operatorname{src}(e))} and ๐”ฝ2dim⁡S(tgt⁡(e))\mathbb{F}_2^{\dim_S(\operatorname{tgt}(e))} for each eโˆˆEe \in E.โœฆ A domain address for eโˆˆEe \in E is a tuple a=(a0,โ€ฆ,arโˆ’1)a = (a_0, \dots, a_{r-1}) in the product De=โˆi=0rโˆ’1De(i)D_e = \prod_{i=0}^{r-1} D_e(i).โœฆ

Fix a natural number nโˆˆโ„•n \in \mathbb{N}. The comparison ring layout โ„’n(S)\mathcal{L}_n(S) of length rr subdivides each comparison eโˆˆEe \in E into n+2n + 2 links. Its set of internal layout types is Tn=PโŠ”(Eร—{0,โ€ฆ,n})T_n = P \sqcup (E \times \{0, \dots, n\})โœฆ, and its set of subdivided wire links is Ln=EโŠ”((Eร—{0,โ€ฆ,nโˆ’1})โŠ”E)L_n = E \sqcup ((E \times \{0, \dots, n-1\}) \sqcup E), consisting for each eโˆˆEe \in E of an initial link โ„“0(e)\ell_0(e), middle links โ„“mid(e,j)\ell_{\mathrm{mid}}(e, j) for jโˆˆ{0,โ€ฆ,nโˆ’1}j \in \{0, \dots, n-1\}, and a final link โ„“1(e)\ell_1(e).โœฆ The underlying wire map wn:Lnโ†’Ew_n : L_n \to E sends โ„“0(e)\ell_0(e), โ„“mid(e,j)\ell_{\mathrm{mid}}(e, j), and โ„“1(e)\ell_1(e) to ee.โœฆ The first and second endpoints of โ„“0(e)\ell_0(e) are src⁡(e)\operatorname{src}(e) and (e,0)(e, 0); those of โ„“mid(e,j)\ell_{\mathrm{mid}}(e, j) are (e,j)(e, j) and (e,j+1)(e, j+1); and those of โ„“1(e)\ell_1(e) are (e,n)(e, n) and tgt⁡(e)\operatorname{tgt}(e).

The layout block dimension on TnT_n assigns dim⁡S(p)\dim_S(p) to each pโˆˆPp \in P and 11 to each (e,k)โˆˆEร—{0,โ€ฆ,n}(e, k) \in E \times \{0, \dots, n\}.โœฆ At slot iโˆˆ{0,โ€ฆ,rโˆ’1}i \in \{0, \dots, r-1\}, the layout label set is {0,1}\{0, 1\} on each pโˆˆPp \in P and De(i)D_e(i) on each (e,k)(e, k)โœฆ, while the match label set of every link โ„“โˆˆLn\ell \in L_n is Dwn(โ„“)(i)D_{w_n(\ell)}(i). At slot ii, the injective first endpoint label map is the inclusion De(i)โ†ช{0,1}D_e(i) \hookrightarrow \{0, 1\} on โ„“0(e)\ell_0(e) and the identity on De(i)D_e(i) on โ„“mid(e,j)\ell_{\mathrm{mid}}(e, j) and โ„“1(e)\ell_1(e)โœฆ, while the injective second endpoint label map is the identity on De(i)D_e(i) on โ„“0(e)\ell_0(e) and โ„“mid(e,j)\ell_{\mathrm{mid}}(e, j) and the schemaโ€™s injective coordinate map De(i)โ†’{0,1}D_e(i) \to \{0, 1\} on โ„“1(e)\ell_1(e).โœฆ The first endpoint ๐”ฝ2\mathbb{F}_2-linear form is the schemaโ€™s left form for ee on โ„“0(e)\ell_0(e) and the coordinate projection ๐”ฝ21โ†’๐”ฝ2\mathbb{F}_2^1 \to \mathbb{F}_2 on โ„“mid(e,j)\ell_{\mathrm{mid}}(e, j) and โ„“1(e)\ell_1(e)โœฆ, while the second endpoint ๐”ฝ2\mathbb{F}_2-linear form is the coordinate projection ๐”ฝ21โ†’๐”ฝ2\mathbb{F}_2^1 \to \mathbb{F}_2 on โ„“0(e)\ell_0(e) and โ„“mid(e,j)\ell_{\mathrm{mid}}(e, j) and the schemaโ€™s right form for ee on โ„“1(e)\ell_1(e).โœฆ Injective encodings of TnT_n and LnL_n into โ„•\mathbb{N} are built from the real type and comparison encodings of SS and the canonical finite index encoding {0,โ€ฆ,mโˆ’1}โ†ชโ„•\{0, \dots, m-1\} \hookrightarrow \mathbb{N} by combining the disjoint union encoding (xโ†ฆ2a(x)x \mapsto 2a(x) on the left summand and yโ†ฆ2b(y)+1y \mapsto 2b(y) + 1 on the right) with the product natural encoding (composing a product of embeddings into โ„•\mathbb{N} with the pairing bijection (a,b)โ†ฆb2+a(a, b) \mapsto b^2 + a for a<ba < b and a2+a+ba^2 + a + b for aโ‰ฅba \ge b).

Wire shifts

Because every subdivided wire link on a comparison eโˆˆEe \in E has match label set De(i)D_e(i) at each slot ii, its link match addresses coincide with the domain addresses aโˆˆDea \in D_e. For a parity assignment ฮฒ:Block⁡(โ„’n(S))โ†’๐”ฝ2\beta : \operatorname{Block}(\mathcal{L}_n(S)) \to \mathbb{F}_2, a comparison eโˆˆEe \in E, a domain address aโˆˆDea \in D_e, and each jโˆˆ{0,โ€ฆ,nโˆ’1}j \in \{0, \dots, n-1\}, the first link shift, middle link shifts, and last link shift are the link parity shifts (2) given by ฮ”efirst(a)=ฮ”โ„’n(S),ฮฒ(โ„“0(e),a),ฮ”e,jmid(a)=ฮ”โ„’n(S),ฮฒ(โ„“mid(e,j),a),ฮ”elast(a)=ฮ”โ„’n(S),ฮฒ(โ„“1(e),a).\begin{aligned} \Delta^{\mathrm{first}}_e(a) &= \Delta_{\mathcal{L}_n(S),\beta}(\ell_0(e), a), \\ \Delta^{\mathrm{mid}}_{e,j}(a) &= \Delta_{\mathcal{L}_n(S),\beta}(\ell_{\mathrm{mid}}(e, j), a), \\ \Delta^{\mathrm{last}}_e(a) &= \Delta_{\mathcal{L}_n(S),\beta}(\ell_1(e), a). \end{aligned}(3) The wire shift ฮ”e:Deโ†’๐”ฝ2\Delta_e : D_e \to \mathbb{F}_2 of ee is the sum in ๐”ฝ2\mathbb{F}_2 of the link shifts (3): ฮ”e(a)=ฮ”efirst(a)+โˆ‘j=0nโˆ’1ฮ”e,jmid(a)+ฮ”elast(a).\Delta_e(a) = \Delta^{\mathrm{first}}_e(a) + \sum_{j=0}^{n-1} \Delta^{\mathrm{mid}}_{e,j}(a) + \Delta^{\mathrm{last}}_e(a).(4)โœฆ

The claim

Theorem. Let r,nโˆˆโ„•r, n \in \mathbb{N}, let SS be a comparison schema of length rr on sets PP of real types and EE of comparisons, let ฮฒ:Block⁡(โ„’n(S))โ†’๐”ฝ2\beta : \operatorname{Block}(\mathcal{L}_n(S)) \to \mathbb{F}_2 be a parity assignment on its comparison ring layout, and let eโˆˆEe \in E be a comparison. Then the wire shift ฮ”e:Deโ†’๐”ฝ2\Delta_e : D_e \to \mathbb{F}_2 has cyclic row-sum form: there exist functions fi:De(i)ร—De(i+1mod⁡r)โ†’๐”ฝ2f_i : D_e(i) \times D_e(i+1 \bmod r) \to \mathbb{F}_2 for iโˆˆ{0,โ€ฆ,rโˆ’1}i \in \{0, \dots, r-1\} such that, for every domain address aโˆˆDea \in D_e, ฮ”e(a)=โˆ‘i=0rโˆ’1fi(ai,ai+1mod⁡r).\Delta_e(a) = \sum_{i=0}^{r-1} f_i(a_i, a_{i+1 \bmod r}).(5)โœฆ

What is checked

The Lean library states Definition 4.2 for an arbitrary natural number rr, an arbitrary comparison schema SS of length rr on real types PP and comparisons EE, an arbitrary subdivision parameter nโˆˆโ„•n \in \mathbb{N}, an arbitrary parity assignment ฮฒ\beta on the blocks of the comparison ring layout โ„’n(S)\mathcal{L}_n(S), and an arbitrary comparison eโˆˆEe \in E, asserting the cyclic row-sum decomposition (5) of the wire shift (4) under the condition (1) over the binary field ๐”ฝ2\mathbb{F}_2.