The oracle of the McKay–Murray–Williams merge tree #
McKay, Murray and Williams decide MCSP[s] on N = 2 ^ n-bit truth tables with a merge tree over
the subcubes of {0, 1} ^ n [McKayMurrayWilliams2019, Lemma 3.1]. The [MMW19] bullet of
[ChenHiraharaOliveiraPichRajgopalSanthanam2020, Appendix A.2, Proposition 63] states the resulting
oracle circuits: MCSP[s] ∈ [O(N/poly(s)), poly(s), O(n/log s)]–Circuit[N/poly(s)], from a tree
whose nodes merge many children at once and whose leaves read poly(s) table bits. This module
fixes one oracle for such trees and proves what its queries answer. The circuits are built on top.
The state of a subcube p (Cslib.MCSP.subcubeState) is its validity bit and least size-s
certificate. If L encodes CircuitMinMergeLanguage, then Cslib.MCSP.mergeVec L merges the
states of p ++ [false] and p ++ [true] into that of p (Cslib.MCSP.mergeVec_eq_subcubeState).
Iterating it k times (Cslib.MCSP.iterMergeVec) merges the 2 ^ k states of the subcubes
p ++ e, e ∈ {0, 1} ^ k, into the state of p (Cslib.MCSP.iterMergeVec_eq_subcubeState), by
induction on k from the binary step. At a point, the state depends only on the value of the
function there (Cslib.MCSP.subcubeState_eq_pointState).
A query (Cslib.MCSP.MergeTree.Query) carries n, s, the prefix p, the number k of merge
levels, a leaf flag, the requested bit j as a unary field, and a payload: the 2 ^ k child states
for an inner node, or the 2 ^ k table bits at the points p ++ e for a leaf. Its answer is
bit j of the k-fold merge of its children. The oracle Cslib.MCSP.MergeTree.oracle is the set
of encodings of the queries answering yes. It is one language for every n and s, which the
header carries. A node query built from correct child states
(Cslib.MCSP.MergeTree.encQuery_ofNode_mem_oracle_iff_merge) or from table bits
(Cslib.MCSP.MergeTree.encQuery_ofNode_mem_oracle_iff_leaf) answers bit j of the state of p.
At the root, bit 0 is the answer of MCSP[s] (Cslib.GapMCSP.yesSet s, the yes set alone, with
no gap). For a node query with j < stateWidth n s, the header length does not depend on j or on
the payload (Cslib.MCSP.MergeTree.length_encQuery_ofNode).
Relation to the source. CHOPRS Definition 62 allows any oracle language, and CHOPRS do not bound
its uniform complexity ("for our discussion, this is not going to be relevant"); neither does this
module. The oracle is derived from CircuitMinMergeLanguage, the binary Circuit-Min-Merge
language of Cslib.MCSP.circuitMinMergeLanguage_mem_PPolyOn: k levels of its merge step, plus
leaf queries on 2 ^ k table bits. Querying CircuitMinMergeLanguage itself gives only the
binary-tree parameters: each oracle gate answers one bit, so each of the N - 1 binary merges takes
stateWidth n s oracle gates, for ≈ N · poly(n, s) oracle gates of fan-in poly(n, s) and
adaptivity n.
Main definitions #
Cslib.MCSP.mergeLanguage: the encodings ofCircuitMinMergeLanguage.Cslib.MCSP.iterMergeVec:klevels ofmergeVec, merging2 ^ kstates.Cslib.MCSP.pointState: the state of a point with a given value.Cslib.MCSP.MergeTree.Query,Cslib.MCSP.MergeTree.encQuery,Cslib.MCSP.MergeTree.Query.ofNode: queries, their encoding, and the query of a tree node.Cslib.MCSP.MergeTree.childState,Cslib.MCSP.MergeTree.Query.answer: the children read from a payload, and the answer to a query.Cslib.MCSP.MergeTree.oracle: the merge-tree oracle.
Main results #
Cslib.MCSP.iterMergeVec_eq_subcubeState:kmerge levels map the states of the2 ^ ksubcubes belowpto the state ofp.Cslib.MCSP.MergeTree.encQuery_ofNode_mem_oracle_iff_merge,Cslib.MCSP.MergeTree.encQuery_ofNode_mem_oracle_iff_leaf: inner and leaf node queries answer a bit of the state of their subcube.Cslib.MCSP.MergeTree.encQuery_ofNode_nil_mem_oracle_iff_leaf: a single root leaf query answersMCSP[s].Cslib.MCSP.MergeTree.length_encQuery,Cslib.MCSP.MergeTree.encQuery_ofNode,Cslib.MCSP.MergeTree.length_encQuery_ofNode: a node query is a fixed header followed by its payload.
References #
Iterated merges #
The encodings of CircuitMinMergeLanguage under encMerge.
mergeLanguage encodes CircuitMinMergeLanguage; mergeVec_eq_subcubeState takes the
reverse direction.
k merge levels. If L encodes CircuitMinMergeLanguage and y e is the state of the
subcube p ++ e for every e ∈ {0, 1} ^ k, where p ++ e has at most n bits, then
iterMergeVec L n s p k y is the state of p.
The state of the subcube p for the constant function b. At a point p, it is the state
of every function with value b there (Cslib.MCSP.subcubeState_eq_pointState).
The state of a point p is the point state of the value of f at p.
Queries and the oracle #
A query to the merge-tree oracle: bit j of the levels-fold merge
(Cslib.MCSP.iterMergeVec) of the 2 ^ levels children of the subcube subcube, for arity arity
and size bound size.
- arity : ℕ
The arity
nof the truth table. - size : ℕ
The size bound
s. The prefix
pof the node's subcube.- levels : ℕ
The number
kof merge levels; the node has2 ^ kchildren. - leaf : Bool
Whether the children are points read from table bits (
true) or subcubes whose states the payload holds (false). The requested bit
j, as the number oftruebits of a unary field.
The length of a query: twice its unary parameters, prefix and bit field, plus 8 for
the six frame terminators and the framed leaf flag, plus the payload.
The header length of a node query for a bit j ≤ stateWidth n s does not depend on j.
The state of child e of a node with prefix p, k merge levels and payload v: for a leaf,
the point state of p ++ e for table bit equivFin k e; otherwise the block of stateWidth n s
payload bits starting at equivFin k e · stateWidth n s. Missing bits read as false.
The answer to a query: bit j of the levels-fold merge of its children under
mergeLanguage, where j is the number of true bits of the bit field, or false when
j ≥ stateWidth arity size.
The merge-tree oracle: the encodings of the queries whose answer is true. It is one
language for every arity n and size bound s, since every query carries them, so it can be
fixed before n.
It is derived from CircuitMinMergeLanguage: a query asks for a bit of k levels of its merge
step (Cslib.MCSP.iterMergeVec of Cslib.MCSP.mergeVec under Cslib.MCSP.mergeLanguage), on
2 ^ k child states, or, at a leaf, on the point states of 2 ^ k table bits. Querying
CircuitMinMergeLanguage itself, one binary merge per oracle gate, gives only the binary-tree
parameters. No bound on the complexity of this language is claimed.
A single root leaf query with k = n already decides MCSP[s]
(Cslib.MCSP.MergeTree.encQuery_ofNode_nil_mem_oracle_iff_leaf), so the content of the
[MMW19] bullet lies in the oracle-gate, fan-in and adaptivity bounds of the circuit built from
these queries, not in the oracle.
A node query for bit j < stateWidth n s answers bit j of the merge of its children.
Correctness of node queries #
An inner node. If block equivFin k e of the payload v holds the state of the subcube
p ++ e for every e ∈ {0, 1} ^ k, where p ++ e has at most n bits, then the node query for
bit j is in the oracle exactly when bit j of the state of p is true.
A leaf. If bit equivFin k e of the payload v is the value of f at the point p ++ e
for every e ∈ {0, 1} ^ k, where p ++ e has n bits, then the node query for bit j is in the
oracle exactly when bit j of the state of p is true.
The root, as a leaf, answers MCSP[s]. If bit equivFin n e of the payload v is bit
equivFin n e of the truth table T, then bit 0 of the root leaf query with n levels is the
answer of MCSP[s] (GapMCSP.yesSet s) on T.