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 . Each constraint equates the image of a nonempty subset of or 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 be a set of primary gates and be a set of auxiliary gates. A circuit gate over and is an element of the disjoint union .β¦ A circuit port over and is an element of , either a primary gate or a pair consisting of an auxiliary gate and a Boolean input-port label .β¦ The target gate map sends each to and each to .β¦
A circuit system over , where is a set of edges, consists of a source map , a destination map , a set of seeds , and a set of tests , subject to the terminality condition that for every and every .β¦
For a circuit system over , the truth predicate on is the smallest predicate satisfying three closure rules: every seed satisfies ; a primary gate satisfies whenever some edge has and ; and an auxiliary gate satisfies whenever there exist edges with , , , and .β¦ A gate is a true circuit gate when holds. A port is a true circuit port, written , if there exists an edge with and .β¦
Scalar-image witnesses
Write for the two coordinate projections on bit pairs, and define the bit pair sum by .β¦ For each circuit gate , the gate value space is if and if .β¦ The gate output map is the identity on for and on for .β¦ For each circuit port , the port input projection is the identity on when , the first projection when , and the second projection when .β¦ For any map and subset , write .
Each constraint of a circuit system witness equates two one-dimensional linear images of nonempty subsets over , decoupling the choices made at different edges.
A circuit system witness for a circuit system over consists of a family of nonempty subsets for and a family of nonempty subsets for such that for every edge , the source image equals both and , the buffer sum image equals , and the boundary conditions for every and for every hold.β¦
For propositions and , the AND gate witness set is defined by (1): (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 , the buffer pair preimage is defined by (2): (2)β¦
Given a circuit system over , the canonical gate witness value set is defined for by (3): (3)β¦ The canonical edge buffer value set is defined for by (4): (4)β¦
Description index sets
For a primary gate set , an auxiliary gate set , and an edge set , the real variable index set is the disjoint union defined by (5): (5)β¦ whose summands index the circuit gates, the edge buffers, and one unit element. For an edge set and a request set , the comparison index set is the disjoint union defined by (6): (6)β¦ consisting of three copies of , corresponding to the three comparisons per edge, together with .
The claim
Proposition 3.4. Let be a circuit system over in which no test gate is true, that is, for every . Then the canonical families and form a circuit system witness for : every and is nonempty, and for every edge , every seed , and every test , (7)β¦ If , , and are finite, then the real variable index set satisfies (8)β¦ If and are finite, then the comparison index set satisfies (9)β¦
What is checked
The canonical witness construction (7) in Proposition 3.4 is stated over any circuit system on arbitrary sets , , and in which no test gate is true, using the inductive truth predicates and and the subset families and over and ; the cardinality identities (8) and (9) are stated over finite sets , , , and for the disjoint unions and . For these constructions, the Lean library also establishes that and are nonempty for every gate and edge , that equals both and for every edge , and that equals for every edge whenever no test gate is true.β¦