OctoInform Beta

OpenAI preprint, September 2026 · §1. Introduction · §1

Exact depth-three circuit size: Total gate count in OR-AND-OR circuits agreeing with a function on every input, counting each shared bottom gate once

Exact depth-three circuit size for Boolean functions.

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

Consider depth-three Boolean circuits in OR-AND-OR form with unrestricted fan-in and fan-out and free input negations: bottom OR gates reading literals and Boolean constants, middle AND gates connected to bottom gates, and a single top OR gate connected to middle gates.✦ Bottom gates may be shared among several middle gates.

Depth-three circuits

For a set VV of variables, the Boolean cube {0,1}V\{0,1\}^V is the set of all functions x:V→{0,1}x \colon V \to \{0,1\}, with 00 for false and 11 for true.✦

A literal ℓ\ell over VV is a pair (v,b)∈V×{0,1}(v, b) \in V \times \{0,1\} consisting of a variable v∈Vv \in V and a bit b∈{0,1}b \in \{0,1\}.✦ On x∈{0,1}Vx \in \{0,1\}^V, the truth value ℓ(x)∈{0,1}\ell(x) \in \{0,1\} of a literal ℓ=(v,b)\ell = (v, b) over VV is 11 if x(v)=bx(v) = b and 00 otherwise.✦

A gate input gg over VV is either a literal over VV or a Boolean constant c∈{0,1}c \in \{0,1\}.✦ The value g(x)∈{0,1}g(x) \in \{0,1\} of a gate input gg over VV on x∈{0,1}Vx \in \{0,1\}^V is ℓ(x)\ell(x) when gg is a literal ℓ\ell, and cc when gg is a Boolean constant c∈{0,1}c \in \{0,1\}.✦

A clause KK over VV is a finite list of gate inputs over VV with nonnegative integer length kk and entries (g1,…,gk)(g_1, \dots, g_k).✦ On x∈{0,1}Vx \in \{0,1\}^V, the truth value K(x)∈{0,1}K(x) \in \{0,1\} of a clause K=(g1,…,gk)K = (g_1, \dots, g_k) over VV is 11 if some t∈{1,…,k}t \in \{1, \dots, k\} satisfies gt(x)=1g_t(x) = 1, and 00 otherwise, so the empty clause evaluates to 00.✦

For nonnegative integers rr and ss, a depth-three circuit CC over VV with rr bottom gates and ss middle gates consists of clauses K1,…,KrK_1, \dots, K_r over VV for the bottom gates, subsets A1,…,As⊆{1,…,r}A_1, \dots, A_s \subseteq \{1, \dots, r\} indexing the bottom gates wired into each middle gate, and a subset U⊆{1,…,s}U \subseteq \{1, \dots, s\} indexing the middle gates wired into the top gate.✦

Given a depth-three circuit CC over VV with ss middle gates, the middle-gate output Mj(x)∈{0,1}M_j(x) \in \{0,1\} for each j∈{1,…,s}j \in \{1, \dots, s\} and x∈{0,1}Vx \in \{0,1\}^V is 11 if every i∈Aji \in A_j satisfies Ki(x)=1K_i(x) = 1, and 00 otherwise, so Mj(x)=1M_j(x) = 1 when Aj=∅A_j = \emptyset.✦ The circuit output C(x)∈{0,1}C(x) \in \{0,1\} of CC on x∈{0,1}Vx \in \{0,1\}^V is 11 if Mj(x)=1M_j(x) = 1 for some j∈Uj \in U, and 00 otherwise, so C(x)=0C(x) = 0 when U=∅U = \emptyset.✦

The definition

Definition. Let VV be a set of variables, let CC be a depth-three circuit over VV with rr bottom gates and ss middle gates, and let f:{0,1}V→{0,1}f \colon \{0,1\}^V \to \{0,1\} be a Boolean function. The size |C||C| of CC is |C|=r+s+1.|C| = r + s + 1.(1)✦ The circuit CC computes ff if C(x)=f(x)for every x∈{0,1}V.C(x) = f(x) \qquad \text{for every } x \in \{0,1\}^V.(2)✦

In the paper, the result reads: S3(f)S_3(f) is the minimum total number of AND and OR gates in an OR-AND-OR circuit computing ff exactly.

For a finite variable set VV and a Boolean function f:{0,1}V→{0,1}f \colon \{0,1\}^V \to \{0,1\}, (1) gives the gate count |C||C| in S3(f)S_3(f) and (2) specifies which depth-three circuits CC over VV enter the minimum.

What is checked

The definition above is stated over an arbitrary variable set VV, the Boolean cube {0,1}V\{0,1\}^V, a Boolean function f:{0,1}V→{0,1}f \colon \{0,1\}^V \to \{0,1\}, and a depth-three circuit CC over VV built from literals, gate inputs, clauses, middle gates, and a top gate, together with its circuit output C(x)C(x).