OctoInform Beta

OpenAI preprint, September 2026 Β· Β§3. Uniform computation and scalar-image constraints

Proposition 3.4: Constructing a witness over 𝔽2\mathbb{F}_2 when every test is false, with |S|+|A|+|E|+1|S|+|A|+|E|+1 real variables and 3|E|+|R|3|E|+|R| comparisons

Scalar-image witnesses and index counts for circuit systems.

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 reductions from uniform Boolean circuit evaluation to variable-dimension Weisfeiler-Leman equivalence problems, a monotone circuit with OR gates, two-input AND gates, designated seed inputs, and terminal test gates is translated into a system of scalar-image constraints over the two-element field 𝔽2\mathbb{F}_2. Each constraint equates the image of a nonempty subset of 𝔽2\mathbb{F}_2 or 𝔽22\mathbb{F}_2^2 under one linear functional to the image of another; a two-coordinate buffer placed on every wire converts these symmetric image equalities into directed propagation of truth values.

When every test gate evaluates to false, the circuit admits an explicit witness satisfying all wire and boundary constraints. Moreover, when a circuit is given by a product description of gate types, connection schemas, and seed or test requests, the index sets for the resulting real variables and comparison schemas have linear cardinalities in those counts.

Circuit systems

Let SS be a set of primary gates and AA be a set of auxiliary gates. A circuit gate over SS and AA is an element of the disjoint union Gate(S,A)=SβŠ”A\mathrm{Gate}(S, A) = S \sqcup A.✦ A circuit port over SS and AA is an element of Port(S,A)=SβŠ”(AΓ—{false,true})\mathrm{Port}(S, A) = S \sqcup (A \times \{\mathrm{false}, \mathrm{true}\}), either a primary gate s∈Ss \in S or a pair (a,b)(a, b) consisting of an auxiliary gate a∈Aa \in A and a Boolean input-port label b∈{false,true}b \in \{\mathrm{false}, \mathrm{true}\}.✦ The target gate map tgt⁡:Port(S,A)β†’Gate(S,A)\operatorname{tgt} : \mathrm{Port}(S, A) \to \mathrm{Gate}(S, A) sends each s∈Ss \in S to ss and each (a,b)∈AΓ—{false,true}(a, b) \in A \times \{\mathrm{false}, \mathrm{true}\} to aa.✦

A circuit system CC over (S,A,E)(S, A, E), where EE is a set of edges, consists of a source map src⁡:Eβ†’Gate(S,A)\operatorname{src} : E \to \mathrm{Gate}(S, A), a destination map dst⁡:Eβ†’Port(S,A)\operatorname{dst} : E \to \mathrm{Port}(S, A), a set of seeds seedsβŠ†S\mathrm{seeds} \subseteq S, and a set of tests testsβŠ†S\mathrm{tests} \subseteq S, subject to the terminality condition that src⁡(e)β‰ s\operatorname{src}(e) \neq s for every s∈testss \in \mathrm{tests} and every e∈Ee \in E.✦

For a circuit system CC over (S,A,E)(S, A, E), the truth predicate TCT_C on Gate(S,A)\mathrm{Gate}(S, A) is the smallest predicate satisfying three closure rules: every seed s∈seedss \in \mathrm{seeds} satisfies TC(s)T_C(s); a primary gate s∈Ss \in S satisfies TC(s)T_C(s) whenever some edge e∈Ee \in E has dst⁡(e)=s\operatorname{dst}(e) = s and TC(src⁡(e))T_C(\operatorname{src}(e)); and an auxiliary gate a∈Aa \in A satisfies TC(a)T_C(a) whenever there exist edges e,f∈Ee, f \in E with dst⁡(e)=(a,false)\operatorname{dst}(e) = (a, \mathrm{false}), dst⁡(f)=(a,true)\operatorname{dst}(f) = (a, \mathrm{true}), TC(src⁡(e))T_C(\operatorname{src}(e)), and TC(src⁡(f))T_C(\operatorname{src}(f)).✦ A gate g∈Gate(S,A)g \in \mathrm{Gate}(S, A) is a true circuit gate when TC(g)T_C(g) holds. A port p∈Port(S,A)p \in \mathrm{Port}(S, A) is a true circuit port, written PC(p)P_C(p), if there exists an edge e∈Ee \in E with dst⁡(e)=p\operatorname{dst}(e) = p and TC(src⁡(e))T_C(\operatorname{src}(e)).✦

Scalar-image witnesses

Write Ο€1,Ο€2:𝔽22→𝔽2\pi_1, \pi_2 : \mathbb{F}_2^2 \to \mathbb{F}_2 for the two coordinate projections on bit pairs, and define the bit pair sum Ξ£:𝔽22→𝔽2\Sigma : \mathbb{F}_2^2 \to \mathbb{F}_2 by Ξ£(x1,x2)=x1+x2\Sigma(x_1, x_2) = x_1 + x_2.✦ For each circuit gate g∈Gate(S,A)g \in \mathrm{Gate}(S, A), the gate value space V(g)V(g) is 𝔽2\mathbb{F}_2 if g∈Sg \in S and 𝔽22\mathbb{F}_2^2 if g∈Ag \in A.✦ The gate output map out⁡g:V(g)→𝔽2\operatorname{out}_g : V(g) \to \mathbb{F}_2 is the identity on 𝔽2\mathbb{F}_2 for g∈Sg \in S and Ξ£\Sigma on 𝔽22\mathbb{F}_2^2 for g∈Ag \in A.✦ For each circuit port p∈Port(S,A)p \in \mathrm{Port}(S, A), the port input projection in⁡p:V(tgt⁡(p))→𝔽2\operatorname{in}_p : V(\operatorname{tgt}(p)) \to \mathbb{F}_2 is the identity on 𝔽2\mathbb{F}_2 when p∈Sp \in S, the first projection Ο€1\pi_1 when p=(a,false)p = (a, \mathrm{false}), and the second projection Ο€2\pi_2 when p=(a,true)p = (a, \mathrm{true}).✦ For any map f:Xβ†’Yf : X \to Y and subset UβŠ†XU \subseteq X, write f(U)={f(u):u∈U}f(U) = \{f(u) : u \in U\}.

Each constraint of a circuit system witness equates two one-dimensional linear images of nonempty subsets over 𝔽2\mathbb{F}_2, decoupling the choices made at different edges.

A circuit system witness for a circuit system CC over (S,A,E)(S, A, E) consists of a family of nonempty subsets G(g)βŠ†V(g)G(g) \subseteq V(g) for g∈Gate(S,A)g \in \mathrm{Gate}(S, A) and a family of nonempty subsets B(e)βŠ†π”½22B(e) \subseteq \mathbb{F}_2^2 for e∈Ee \in E such that for every edge e∈Ee \in E, the source image out⁡src⁡(e)(G(src⁡(e)))\operatorname{out}_{\operatorname{src}(e)}(G(\operatorname{src}(e))) equals both Ο€1(B(e))\pi_1(B(e)) and Ο€2(B(e))\pi_2(B(e)), the buffer sum image Ξ£(B(e))\Sigma(B(e)) equals in⁡dst⁡(e)(G(tgt⁡(dst⁡(e))))\operatorname{in}_{\operatorname{dst}(e)}(G(\operatorname{tgt}(\operatorname{dst}(e)))), and the boundary conditions G(s)={0}G(s) = \{0\} for every s∈seedss \in \mathrm{seeds} and G(t)={1}G(t) = \{1\} for every t∈testst \in \mathrm{tests} hold.✦

For propositions PP and QQ, the AND gate witness set Wand(P,Q)βŠ†π”½22W_{\mathrm{and}}(P, Q) \subseteq \mathbb{F}_2^2 is defined by (1): Wand(P,Q)={(x1,x2)βˆˆπ”½22:(Pβ‡’x1=0) and (Qβ‡’x2=0)}.W_{\mathrm{and}}(P, Q) = \{(x_1, x_2) \in \mathbb{F}_2^2 : (P \Rightarrow x_1 = 0) \text{ and } (Q \Rightarrow x_2 = 0)\}.(1)✦

A two-coordinate buffer turns symmetric image equalities into one-way propagation of forced zeros along each edge of the circuit.

For a subset DβŠ†π”½2D \subseteq \mathbb{F}_2, the buffer pair preimage Buf⁡(D)βŠ†π”½22\operatorname{Buf}(D) \subseteq \mathbb{F}_2^2 is defined by (2): Buf⁡(D)={xβˆˆπ”½22:Ξ£(x)∈D}.\operatorname{Buf}(D) = \{x \in \mathbb{F}_2^2 : \Sigma(x) \in D\}.(2)✦

Given a circuit system CC over (S,A,E)(S, A, E), the canonical gate witness value set GC(g)βŠ†V(g)G_C(g) \subseteq V(g) is defined for g∈Gate(S,A)g \in \mathrm{Gate}(S, A) by (3): GC(g)={{1},g=s∈tests,{xβˆˆπ”½2:TC(s)β‡’x=0},g=s∈S\tests,Wand(PC(a,false),PC(a,true)),g=a∈A.G_C(g) = \begin{cases} \{1\}, & g = s \in \mathrm{tests}, \\ \{x \in \mathbb{F}_2 : T_C(s) \Rightarrow x = 0\}, & g = s \in S \setminus \mathrm{tests}, \\ W_{\mathrm{and}}(P_C(a, \mathrm{false}),\, P_C(a, \mathrm{true})), & g = a \in A. \end{cases}(3)✦ The canonical edge buffer value set BC(e)βŠ†π”½22B_C(e) \subseteq \mathbb{F}_2^2 is defined for e∈Ee \in E by (4): BC(e)={{(0,0)},TC(src⁡(e)),Buf⁡(in⁡dst⁡(e)(GC(tgt⁡(dst⁡(e))))),Β¬TC(src⁡(e)).B_C(e) = \begin{cases} \{(0, 0)\}, & T_C(\operatorname{src}(e)), \\ \operatorname{Buf}(\operatorname{in}_{\operatorname{dst}(e)}(G_C(\operatorname{tgt}(\operatorname{dst}(e))))), & \neg T_C(\operatorname{src}(e)). \end{cases}(4)✦

Description index sets

For a primary gate set SS, an auxiliary gate set AA, and an edge set EE, the real variable index set 𝒫(S,A,E)\mathcal{P}(S, A, E) is the disjoint union defined by (5): 𝒫(S,A,E)=Gate(S,A)βŠ”(EβŠ”{*}),\mathcal{P}(S, A, E) = \mathrm{Gate}(S, A) \sqcup (E \sqcup \{*\}),(5)✦ whose summands index the circuit gates, the edge buffers, and one unit element. For an edge set EE and a request set RR, the comparison index set β„°(E,R)\mathcal{E}(E, R) is the disjoint union defined by (6): β„°(E,R)=(EβŠ”(EβŠ”E))βŠ”R,\mathcal{E}(E, R) = (E \sqcup (E \sqcup E)) \sqcup R,(6)✦ consisting of three copies of EE, corresponding to the three comparisons per edge, together with RR.

The claim

Proposition 3.4. Let CC be a circuit system over (S,A,E)(S, A, E) in which no test gate is true, that is, Β¬TC(t)\neg T_C(t) for every t∈testst \in \mathrm{tests}. Then the canonical families GCG_C and BCB_C form a circuit system witness for CC: every GC(g)G_C(g) and BC(e)B_C(e) is nonempty, and for every edge e∈Ee \in E, every seed s∈seedss \in \mathrm{seeds}, and every test t∈testst \in \mathrm{tests}, out⁡src⁡(e)(GC(src⁡(e)))=Ο€1(BC(e)),out⁡src⁡(e)(GC(src⁡(e)))=Ο€2(BC(e)),Ξ£(BC(e))=in⁡dst⁡(e)(GC(tgt⁡(dst⁡(e)))),GC(s)={0},GC(t)={1}.\begin{aligned} \operatorname{out}_{\operatorname{src}(e)}(G_C(\operatorname{src}(e))) &= \pi_1(B_C(e)), \\ \operatorname{out}_{\operatorname{src}(e)}(G_C(\operatorname{src}(e))) &= \pi_2(B_C(e)), \\ \Sigma(B_C(e)) &= \operatorname{in}_{\operatorname{dst}(e)}(G_C(\operatorname{tgt}(\operatorname{dst}(e)))), \\ G_C(s) &= \{0\}, \\ G_C(t) &= \{1\}. \end{aligned}(7)✦ If SS, AA, and EE are finite, then the real variable index set satisfies |𝒫(S,A,E)|=|S|+|A|+|E|+1.|\mathcal{P}(S, A, E)| = |S| + |A| + |E| + 1.(8)✦ If EE and RR are finite, then the comparison index set satisfies |β„°(E,R)|=3|E|+|R|.|\mathcal{E}(E, R)| = 3|E| + |R|.(9)✦

What is checked

The canonical witness construction (7) in Proposition 3.4 is stated over any circuit system CC on arbitrary sets SS, AA, and EE in which no test gate is true, using the inductive truth predicates TCT_C and PCP_C and the subset families GCG_C and BCB_C over 𝔽2\mathbb{F}_2 and 𝔽22\mathbb{F}_2^2; the cardinality identities (8) and (9) are stated over finite sets SS, AA, EE, and RR for the disjoint unions 𝒫(S,A,E)\mathcal{P}(S, A, E) and β„°(E,R)\mathcal{E}(E, R). For these constructions, the Lean library also establishes that GC(g)G_C(g) and BC(e)B_C(e) are nonempty for every gate gg and edge ee, that out⁡src⁡(e)(GC(src⁡(e)))\operatorname{out}_{\operatorname{src}(e)}(G_C(\operatorname{src}(e))) equals both Ο€1(BC(e))\pi_1(B_C(e)) and Ο€2(BC(e))\pi_2(B_C(e)) for every edge ee, and that Ξ£(BC(e))\Sigma(B_C(e)) equals in⁡dst⁡(e)(GC(tgt⁡(dst⁡(e))))\operatorname{in}_{\operatorname{dst}(e)}(G_C(\operatorname{tgt}(\operatorname{dst}(e)))) for every edge ee whenever no test gate is true.✦