L.1 Forest cycle-completion and orientation counting for quantum walks
Continuing Chapter 16, §16.2, this section collects the full combinatorial cycle-completion counts for directed, alternating, and undirected glued-tree forests.
L.1.1 Static Directed Forests: Completing One Global Cycle
In the classical glued-trees argument, “connect randomly to an unused endpoint” can conceal a constraint: the target is one cycle through all leaves, so a small component must not close early. First isolate this constraint in a static directed model. Suppose the prescribed edges are and , with an isolated vertex . The three components are , , and ; the only single-cycle completions are the permutations and . Thus the successor of is equally likely to be or , and is never . Adding respects the degree bounds but leaves the other vertices outside that cycle.
The underlying permutation-contraction correspondence is classical. Gessel, Generalized Rook Polynomials and Orthogonal Polynomials (1989, 159–176, 10.1007/978-1-4684-0637-5_13, author’s original), defines compatible conditions by distinct rows and columns in Section 2, defines as the actual intersection of satisfying sets in Section 3, page 5, and gives the permutation-contraction bijection in Section 8, page 11. The cycle count changes by the number of directed cycles among the prescribed edges.
A closer source for the endpoints, counts, and probabilities below is Boaz Tsaban, Permutation graphs, fast forward permutations, and sampling the cycle structure of a permutation, Journal of Algorithms 47 (2003), 104–121, 10.1016/S0196-6774(03)00017-8. On pages 107–109, Lemma 1.1 obtains path components with unique minimal and maximal endpoints from an acyclic partial permutation graph; Lemma 1.2 connects these endpoints to exhaust all single-cycle completions and gives their factorial count; Lemma 1.3 distinguishes closing a component from merging distinct components; and Definition 1.4 and Lemma 1.5 give uniform endpoint choices and query-sequence probabilities for forward and inverse permutation queries. These endpoint, counting, and probability laws already appear in the literature; they do not originate in this book.
Below we present these classical results using actual completion sets on the same vertex set, an endpoint bijection, and static conditional distributions, retaining the full written proof. Tsaban’s query model concerns values of a permutation and its inverse; it does not directly cover the full adaptive query history of glued trees. No mathematical novelty is claimed. Formalization is registered in request #11; the Lean results for path order, endpoint completion, and exact counts precede the combined derivation on the original vertex set.
Contracting each weak component to a point turns a completed cycle into a cycle of components. Below, the components, endpoints, and completion sets are defined directly from the original edge relation; a full cycle here means a permutation with exactly one orbit on its vertex set.
Let be a finite type and let be right-unique, left-unique, and acyclic in the sense that Relation.TransGen E is irreflexive. Write . For each actual component , define its vertex fiber by
There is a unique bijection such that, for every pair of indices ,
Fiber elements are identified here with their underlying vertices. The bijection visits every vertex of the component exactly once, and the equivalence characterizes all directed edges. No lower bound of two on the component count is required: an isolated component has a singleton enumeration, and an empty carrier has no component .
Any two vertices in one component have directed paths to its tail. Reverse these paths and use uniqueness of predecessors to compare the vertices. Acyclicity then makes directed reachability a strict total order on the fiber. Enumerate the finite fiber in this order. An original edge cannot skip an intermediate position: uniqueness of successors would force a nonempty directed cycle. Conversely, a nonempty path between consecutive positions cannot have an intermediate vertex, so it is an original edge. The index change between two enumerations satisfying the equivalence is strictly increasing. A strictly increasing self-map of a finite linear order is the identity, proving uniqueness. The full proof is checked by the Lean kernel.
Let be a finite type and be right-unique (at most one outgoing neighbor), left-unique (at most one incoming neighbor), and acyclic in the sense that Relation.TransGen E is irreflexive. Assume that the weak-component quotient has at least two elements. Let and be the subtypes of vertices with no outgoing and no incoming -edge. Let consist of the actual permutations extending and satisfying IsCycleOn Set.univ, and let consist of the actual permutations on satisfying IsCycleOn Set.univ.
Then there are equivalences , , and . The underlying vertices of and lie in component , and every completion satisfies the endpoint equation .
Moreover, is nonempty and has finite cardinality (using natural-number truncated subtraction and factorial). The defined UniformCompletionLaw also holds: there are uniform probability masses on actual full cycles and on completions. The extension event meets the support of , and conditioning by PMF.filter equals the pushforward of along the natural inclusion into the full-cycle set. The pushforward of along is uniform on component full cycles. Under this same , the probability that the raw endpoint image equals is when and when , where .
Finiteness, acyclicity, and uniqueness of successors identify a tail in each weak component; applying the same argument to the reversed relation identifies its head. Every extending permutation bijects the tails with the heads. First returns to the heads identify the orbits of the original permutation with those of the component permutation, giving the equivalence between full-cycle completions. This equivalence gives the factorial count and nonemptiness. Conditioning and pushing forward finite uniform probability masses give the same completion law, and the endpoint equation transports component-successor marginals back to the original vertices. The full proof is checked by the Lean kernel.
Let be a right-unique and left-unique relation on a finite vertex set with irreflexive Relation.TransGen E. Write and , including every isolated vertex among the weak components. Then the actual edge set has cardinality .
For any uniform probability mass on the actual full cycles on , the outer measure of the extension event is , and this value is strictly positive.
Projection to the source is a bijection from the edges to the vertices with an outgoing edge. The complementary vertices are the component tails. The endpoint-completion equivalence counts the extension event, and uniformity divides that count by the total number of full cycles.
Theorem L.1 identifies the path in each component. Theorem L.2 gives the completion equivalence and conditional law, and Theorem L.3 gives the edge count and the event mass before conditioning. The next subsection covers static classification and counting under alternation. Orientation fibers over ordinary undirected full cycles appear in Theorem L.10.
Let be a finite labelled set of cardinality , and let . Suppose every vertex has at most one incoming and at most one outgoing edge in , and has no directed cycle. Let be the set of all weak components of , including every isolated vertex, and suppose .
Each component is a directed path uniquely determined by , with a unique head having no incoming edge and a unique tail having no outgoing edge. For an isolated component both endpoints are . Moreover, . For a nonempty finite set , write for its permutations with exactly one orbit. Define the actual completion sets
Then , and there is a bijection
The endpoint equation uniquely determines . The inverse retains every -edge and adds for each . It exhausts , rather than merely constructing a family within it.
We have . Let be uniform on and uniform on . Then
and conditioning on extension of gives exactly . The pushforward of under is uniform on . For every ,
The following gives a full static account of Tsaban’s component endpoints, single-cycle completions, and uniform law; the contraction correspondence also appears in Gessel’s Section 8. Both existence of a completion and exhaustiveness of the correspondence are proved explicitly.
Derive the paths from the raw edge set. From any vertex, follow its unique predecessor backwards. Finiteness and the absence of directed cycles force this process to end at a vertex with no incoming edge. Following the unique successor forwards from likewise visits no vertex twice and ends at a vertex with no outgoing edge. Every internal vertex already has an incoming and an outgoing edge; has no incoming edge and no outgoing edge. Thus no vertex outside this path can be joined to it by an -edge. The path is exactly the starting vertex’s entire weak component. Only lacks a predecessor and only lacks a successor, so its order and endpoints are unique. An isolated vertex gives a path of length zero. Summing edges over all components gives , without assuming a supplied path list.
Contract every actual extending permutation. First take any permutation of extending , without assuming it has only one orbit. Every non-head already has its incoming edge fixed by . Injectivity forces the image of each tail to be a head. Surjectivity supplies a preimage for every head, and that preimage must be a tail because the images of non-tails are fixed inside their paths. Hence bijects all tails with all heads, uniquely determining a component permutation by .
Conversely, for any permutation of , retain the successors within each path and specify the successors of tails by this equation. Each non-head has its original path predecessor, and each head has exactly the tail of as predecessor. The resulting map is a permutation of extending . These operations are pointwise inverses. Following the lifted permutation traverses every vertex of the current path before entering the head of the component specified by . Its orbits therefore correspond bijectively to those of ; in particular, one has exactly one orbit if and only if the other does. Restriction gives the asserted on all of .
Count and condition. Fix a component . Arrange all components as , connect them in that order, and return from the last to . This gives a single-orbit and hence an actual completion, proving nonemptiness. Starting at fixed , each component cycle has exactly one such ordering, so there are of them. Likewise . Each originally has mass ; dividing by the positive event probability gives conditional mass . A bijection has one preimage per point, so its pushforward is uniform as well.
Finally, since , a single-orbit cannot fix , and the same-component endpoint event is empty. For , start the component cycle at and require next. The remaining components can appear in any order, giving possibilities. The endpoint probability is , including when .
Boundaries and the obstruction. Isolated vertices must enter the component count: if , then , and the theorem recovers the uniform law on all single cycles. In particular, when , the unique completion exchanges the two vertices; it is a directed two-cycle, not a two-sided polygon in an undirected simple graph. When , each tail must lead to the other component’s head. The final closure at lies outside the theorem’s probability formula: a path already spanning all vertices must then close from its tail to its own head. The presence of other components makes early closure an obstruction; the degree bounds alone do not forbid it.
Frieze–Suen, Counting the Number of Hamilton Cycles in Random Digraphs (10.1002/rsa.3240030303, original, pages 4–5), also contract directed paths to identify uniquely all Hamilton cycles containing the prescribed edges, obtaining the count . Their prescribed edges belong to an already given Hamilton cycle. Here extension existence is first proved for arbitrary raw satisfying the hypotheses, and then gives the same count; existence must not be assumed in advance.
L.1.2 Alternating forests: counting with both endpoint colors retained
Ordinary contraction treats each path as one label. Requiring the full cycle to alternate red and blue also requires retaining each path’s head and tail colors. The smallest obstruction already occurs with two edges: and each alternate, yet cannot form an alternating full cycle on all four vertices, because both available connectors would lead to a head of the same color. In contrast, and have the unique completion . These are actual labelled vertices; contraction does not merge the component labels.
Write for red and blue (false,true in the source), with and . For any finite set , define
Here the set in IsCycleOn is the whole carrier. Thus , whereas the identity on a singleton is a full cycle. Cycle notation suppresses only the starting point: cyclic rotations of describe the same permutation, while reversing the order generally describes another permutation. There is no further quotient by reversal.
For every natural number , finite labelled set , relation , and coloring , assume that each vertex has at most one outgoing and at most one incoming -neighbor; is irreflexive; every -edge joins opposite colors; and .
Let be the actual weak-component quotient of all vertices by the equivalence relation generated by , including every isolated vertex; write for a vertex’s quotient class. Let and be the actual vertex subtypes with no incoming and no outgoing edge, respectively, and define
There are equivalences
with actual component membership and , and the connector equation, for every and ,
Using these same endpoints, define the four actual component counts
Then , , and . Put . The cardinality is
All subtraction is truncated natural-number subtraction, and . When , the condition follows from the component total and nonemptiness above; it is not an additional hypothesis.
Actual endpoints and all completions. Follow the unique predecessors and successors in raw . Finiteness and acyclicity make both searches terminate; the path argument in the preceding subsection identifies the resulting path with the entire weak component, yielding the bijections and both quotient-membership equations. An isolated vertex is its own head and tail. Neither a path decomposition nor a completion is supplied in advance.
For any actual permutation extending , successors of non-tail vertices and predecessors of non-head vertices are already fixed. Injectivity and surjectivity therefore make the remaining tails biject precisely with all heads, determining a unique component permutation . Conversely, retain every internal path edge and add ; this recovers the original permutation pointwise. After visiting a head, the walk must traverse its entire component, and the next head visited is exactly . This first-return correspondence identifies the orbits on both sides. The original permutation is consequently a full cycle exactly when is a component full cycle. Internal edges already alternate, so alternation everywhere is equivalent to opposite colors at every tail connector. Restricting the correspondence gives on the whole of , with its connector equation, rather than the image of a selected construction. The quotient map carries nonemptiness of to nonemptiness of ; a representative of a quotient class gives the converse. Both sides thus obey this subsection’s nonempty-cycle convention, including its exclusion of the empty carrier.
Balance from occupied incoming and outgoing edges. The raw edges biject red vertices having an outgoing edge with blue vertices having an incoming edge. Unique successors define the map, unique predecessors give injectivity, incoming-edge existence gives surjectivity, and edge alternation fixes the colors. Write for their common cardinality. Subtracting these occupied vertices from the two color fibers, both of size , gives
Transporting along , the two sides are and , respectively, so . The four endpoint types partition all components, giving the total. If , the original red fiber is nonempty, hence so is the quotient. Each conclusion follows from the raw hypotheses.
Component labels as auxiliary two-state arcs. Set and . Regard each actual component label as an auxiliary arc . Compatibility is exactly . Thus count crossing arcs , while count loops at ; the source-state fibers have sizes and . A loop here is an auxiliary arc, not an edge of the original forest. Parallel arcs retain distinct component labels.
Delete a loop and reinsert it before its actual successor. For , use strong induction on the number of component labels. If is a loop at state , the retained carrier still has crossing arcs in each direction. Therefore and both source-state fibers remain nonempty. This nonemptiness requirement is essential.
Take any compatible full cycle on the original carrier. Since another label remains, ; compatibility gives . Delete by connecting its actual predecessor directly to , obtaining a permutation of . Compatibility survives: the sole rewritten connection satisfies . Conversely, for any compatible full cycle on and any slot with , replace by . These operations are inverse. First returns skipping take one or two steps and preserve orbit relations among all retained labels; belongs to the same orbit as . Hence there is one full cycle before deletion exactly when there is one afterward.
This is a product bijection between all actual full cycles and all retained full cycles paired with all slots of the required state. Deleting a red loop leaves a source fiber of size , multiplying the count by ; a blue loop gives the factor . Both retained source fibers have at least elements, so the identity for advances the factorial recurrence. No deletion step treats a singleton loop as insertion into an empty carrier.
The first-return base case with crossing arcs only. With no loops, there are labels in each source-state fiber . Restricting any compatible permutation gives bijections and ; conversely, every such pair combines into a unique actual permutation on the two fibers. Every blue label enters the red fiber in one step, and a red label’s first return takes exactly two steps, with return permutation . All labels lie in one orbit exactly when . The complete parameters are therefore an arbitrary bijection and an arbitrary red-fiber full cycle , with uniquely recovered. This accounts for every compatible permutation. The base count is
Fix an order for reinserting the labelled loops. The red slot counts are , and the blue slot counts are , yielding .
Zero crossing inventory and the empty carrier. If , every auxiliary arc is a loop, and compatible permutations preserve source color. When are both positive, the two nonempty color sets cannot lie in one orbit, so the count is zero. If and , source color is constant and every full cycle on the labels is compatible. Fixing one label as the written starting point leaves the other labels free to appear in any order, giving . This includes the identity cycle of a single loop, treated separately from deletion with a nonempty retained carrier. Finally, if , both color fibers are empty, so and are empty. The explicit nonemptiness condition gives zero actual completions; truncated subtraction followed by must not introduce an empty cycle. Transporting these counts through gives the four branches. The full proof is checked by the Lean kernel.
The direct source entry for this unbounded inventory count is compatible_cycle_card. The positive-crossing branch has classical BEST provenance: Paidi Creed and Mary Cryan, The number of Euler tours of random directed graphs, Electronic Journal of Combinatorics 20(3) (2013), P13, 10.37236/2377, Theorem 1, pages 2–3 (original). Pages 1–2 identify Euler tours modulo cyclic rotation only; the discussion and footnote following the theorem allow loops and parallel arcs. For , the auxiliary two-state graph is strongly connected. There are spanning in-trees into either root, and outdegrees , so BEST gives the same positive-inventory formula. The formal proof here uses actual deletion, insertion, and first returns rather than a general BEST theorem as a black box. Ordinary forest contraction retains the Tsaban and Gessel provenance given above. The empty carrier, disconnected zero-crossing inventories, endpoint balance, and complete raw-forest synthesis are not attributed verbatim to those sources, and no literature novelty is claimed.
Both feasible and impossible cases can be checked by hand. For , the four isolated vertices give , and count : and . A single path spanning all vertices has ; the component identity cycle gives its unique closure. The two oppositely directed paths at the start of this subsection have , giving count zero. Thus the theorem assumes neither a completion, a positive count, a supplied path decomposition, nor strong connectivity.
Under the hypotheses of Theorem L.5, assume each color class has vertices. Let be all directed alternating full cycles on the original labelled vertices, the event of extending , and the number of actual completions from that classification. There is a uniform probability mass on , giving each cycle mass , with
Lean expresses this finite event probability as an outer measure. It is strictly positive if and only if is nonempty.
For each component , its tail and head lie in . The bijection from completions to compatible component full cycles satisfies . Given a witness that meets the support of , there is a uniform probability mass on actual completions with mass at each completion. The pushforward of along inclusion is conditioned on . The pushforward of the same along gives mass to each compatible component full cycle.
On the original labels, choosing the opposite of the source color as the target color gives an inventory of crossing labels in each direction and full cycles. Equivalently, fix a red label as the starting point and order all blue labels and the remaining red labels in their respective slots. The extension event consists of exactly the permutations in the completion set, so uniformity gives the ratio of the two cardinalities. On a positive event, normalization assigns equal mass to every completion, and the component bijection transfers that mass to its unique corresponding cycle.
Gessel applies a linear functional to a product of cycle rook polynomials to obtain the cycle-weight enumerator for permutations that exchange two equally sized parts. The linear coefficient of this enumerator gives the same . For the empty forest, and the event has probability . The incompatible pair of paths at the start of this subsection has and probability . Original, Section 8, page 12
Use the uniform law on compatible component cycles from Theorem L.6. Fix distinct components . The event has probability zero if .
If , remove label and set the source color of to . Leave all other source colors and the remaining destination colors unchanged. Let be the remaining carrier, the two source-color counts, the number of false-to-true labels, and the two same-color counts. Define
The conditional probability of the connector is , where is the original positive completion count.
The component bijection identifies the event with . In such a cycle, the predecessor of is redirected to after is removed. Assigning the old source color of preserves compatibility at that redirected edge. The inverse inserts immediately before , using for the inserted edge. The resulting transition inventory is balanced: the auxiliary transitions and are replaced by . The inventory count on is therefore . Each original compatible component cycle has mass .
Each label in a finite component set has a source color and a destination color , and each of the two source colors occurs at least twice. Assume at least one single-cycle permutation satisfies for every label , and sample uniformly among those permutations. Fix a label and a set of targets excluding . Let count labels whose source color equals . Then
Theorem L.7 expresses a prescribed connector’s probability as the ratio of the counts after and before contraction. A color mismatch gives probability zero. For a color match, substituting the contracted transition counts into that ratio bounds the mass of a single target by . Sum over . The full proof is checked by the Lean kernel.
Let be a directed relation prescribed on a finite set with vertices of each color, and write . Suppose and at least one directed alternating full cycle extends . Sample uniformly from those completions.
The weak components of have unique tails and heads. For a component and a set of components that excludes , the probability that the successor of the tail of is the head of a component in is at most
In a completion every vertex has one incoming edge and one outgoing edge, so prescribes at most one of each at every vertex. Any directed cycle in would already contain every vertex, which is impossible under the edge count. Classify the components by their endpoints using Theorem L.5. Each prescribed edge removes at most one head from a color class, so each class has at least heads. Apply Theorem L.8 to the uniform admissible single-cycle permutation of components with the head colors and the colors required by the tails. The full proof is checked by the Lean kernel.
L.1.3 Undirected full cycles: two orientations of the same completed graph
On an undirected cycle through five labelled vertices, clockwise and counterclockwise traversal give different successor permutations with exactly the same edges. Forgetting direction must identify those two actual representations, rather than merely divide a count by two. The correspondence below keeps the original labelled vertices; the prescribed edges may even already form a complete cycle.
The full application is developed in trureturing’s RotationFaces exposition. Its frozen supplier, cycle_boundary_walk, identifies the two directions of a simple closed walk from an actual rotation system and an exact binary facial boundary. The broader statement below must first construct those inputs from graphs and permutations. It therefore retains a complete written proof rather than a Lean badge for the whole application.
Let be a finite labelled set with , and let be any simple graph on . Define
Let contain all actual pairs where orients each edge of exactly once, contains no other edges, and has at most one incoming and one outgoing edge at each vertex; extends , meaning . Every isolate of remains in . Define the undirected shadow by
Then is onto . Above the shadow of any , the entire fiber consists of exactly the two distinct actual pairs
Reversal is an involution without fixed points and induces an equivalence
It sends each class to that same actual completed graph, preserving every adjacency event. The set may be empty.
For any distinct , let add just the undirected edge . There is also an equivalence
This equivalence keeps and the same shadow and commutes with reversal. Neither nor is required to be a forest: closing a spanning path and the case are included.
Construct an actual representation from the raw graph. In a finite connected simple graph of degree two everywhere, start at any vertex and continue along edges, always avoiding the edge just traversed. Degree two makes each next step unique, and finiteness eventually forces a repeated vertex. The first repetition must return to the starting vertex: any other repeated vertex already has two neighbors on the simple path so far, and another arrival would require a third neighbor or an immediate backtrack. This gives a simple closed walk . Both edges at each vertex of the cycle are already occupied, so no edge can leave it. Connectedness therefore makes its support all of and its undirected edges exactly those of .
Taking successors along defines a full-cycle permutation on . Since , it has neither fixed points nor two-cycles, and its shadow is exactly . For , put
Every edge of has exactly one direction along , with at most one incoming and one outgoing edge per vertex. Thus is an actual lift, giving the existence needed for surjectivity. No orientation, path decomposition or completion was supplied with .
Read the shadow and orientation of any actual lift. Conversely, take any . The full-cycle condition makes every orbit have length , so and . The shadow has exactly these two distinct neighbors at , hence is simple and two-regular; the full permutation orbit makes it connected. Since extends the chosen direction of every edge of , we have . In fact, for every ,
If the implication from right to left failed, would have to choose the reverse edge, forcing both and , a forbidden two-cycle. Thus determines the entire pair. This describes all actual lifts, not merely the image of one construction.
Exhaust the two directions through the actual facial boundary. Fix the raw graph and its spanning simple closed walk , and take any full-cycle permutation with shadow . An actual oriented edge is a dart. At each vertex, interchange its two outgoing darts, pointing to and . This defines a rotation system : its rotor orbits are exactly the two darts with the same first vertex. The facial successor reverses a dart and then applies this interchange. Label darts by
The facial successor sends to and to , preserving the label in both cases. As it is a permutation, its inverse preserves the label too. Hence is constant on each actual facial orbit under all integer iterates and descends to a function on the face quotient, with . Opposite darts have opposite labels, so their sum in is one on every undirected edge. Since traverses exactly all edges of , this binary boundary is precisely the edge indicator of .
Every input of the frozen cycle_boundary_walk is now constructed: the actual graph is , the rotation is , the simple closed walk is , the face function is , and the boundary equality holds on every edge. It supplies or and, for every actual dart,
The left side is exactly the successor direction of , so or . This applies to every actual lift. Global orientation coherence is a conclusion, and no Euler equation has been assumed.
Recover actual pairs, the quotient and edge insertion. Applying this conclusion to two arbitrary lifts of the same shadow makes their permutations equal or inverse. The forced-orientation formula then makes the pairs equal or reversals. Reversing twice restores the original pair. A pair fixed by reversal would satisfy , contradicting a full cycle of length at least three. Every fiber therefore consists of exactly the two distinct pairs stated above. Surjectivity and this exact fiber description identify reversal orbits with completed graphs. Each class still maps to the same , so every adjacency event is preserved.
Finally, from keep and restrict to edges of ; its shadow still contains . Conversely, from any pair on the right keep and define
The shadow contains , and absence of two-cycles selects exactly one direction for each edge. The permutation gives the incoming and outgoing bounds. Forced orientation shows that restriction and expansion are inverse and that the expansion is unique. Both keep the shadow; replacing by its inverse reverses every selected direction, so both commute with . Nothing in this argument excludes an insertion that closes the full cycle. This is a written proof, for which the author and reviewers are responsible.
The two permutation representations of a simple full cycle have a classical antecedent: Greenhill, Janson, Kim and Wormald, Permutation pseudographs and contiguity, 10.1017/S0963548301005065, p. 3, gives permutation multiplicities for two-regular pseudographs. Here the objects are ordinary simple full cycles on at least three vertices. On two vertices the inverse permutations coincide, and a disconnected union of cycles is not the shadow of one full-cycle permutation. That reference supplies the classical multiplicity provenance, rather than every strengthened correspondence and insertion clause above.
Let be a finite labelled vertex set with . Let be a simple graph on with nonempty. Write for the map that forgets orientation. There are probability masses on and on such that every lift and completed graph satisfy
Each completed graph has two oriented lifts. Once a direction is fixed on one edge, the successor at the next vertex must use the other edge, since returning immediately would form a two-cycle. The choice propagates around the entire graph, so any two lifts of the same graph coincide or are reversals. The pushforward adds the two equal masses in each fiber, giving . The full proof is checked by the Lean kernel.
The law concerns a fixed ordinary undirected simple graph. Alternating color constraints, random names and ports, and adaptive histories require their own probability models.
Let the two color classes of a finite labelled vertex set each have vertices. Write for all undirected full cycles on these vertices whose edges cross between the classes. For a prescribed simple graph on the same vertices, write for the members of containing every edge of . Then
There is a uniform probability mass on . Its outer measure of the event of containing is , and this is positive exactly when is nonempty. For an event of positive mass, conditioning on containing gives the uniform probability mass on pushed forward along inclusion.
An alternating successor permutation gives an alternating undirected cycle by forgetting direction. Both directions of an alternating undirected cycle are alternating, so each undirected cycle has exactly two directed representatives. Divide the directed ambient count by two. Containing selects the subset of this finite uniform space. Normalizing the equal point masses on that subset gives the conditional law. The full proof is checked by the Lean kernel.
Fix a finite labelled vertex set and a deterministic adaptive protocol that queries vertices and receives their complete unordered neighbor sets. Take the actual transcript from its run on a graph and let consist of the undirected edges returned in the transcript. The run on a candidate simple graph on the same labels has the same transcript exactly when and, at every recorded query, the degree in is at most the number of vertices in that reply.
If the transcripts agree, each recorded reply is also the complete neighbor set in at its recorded vertex. This supplies every edge of and gives equality in every degree bound.
Conversely, suppose contains and satisfies the recorded degree bounds. The fixed protocol starts with the same query on both graphs. Inclusion of puts every neighbor in the first reply inside the candidate neighbor set at that vertex. The degree bound gives the reverse cardinality inequality, so the finite sets are equal. This reply selects the same continuation. Its remaining recorded edges are still contained in and its recorded degree bounds are inherited, so induction through the continuation gives equality of the whole transcript. The full proof is checked by the Lean kernel.
Suppose the distribution is supported on graphs with the same degree at each labelled vertex as the reference graph . Every candidate in that class then satisfies the recorded degree bounds. The transcript event is then exactly , and the two events give the same conditional distribution whenever their probability is positive. This model fixes the labels, the deterministic protocol, and the complete unordered replies. Random naming, queries outside the named vertex set, and replies with additional port or color information require their own observation models.
Fix a finite labelled vertex set and a degree function . At each vertex , choose an ordering of its neighbors uniformly and independently of the other vertices. Every query at returns its full ordered list from that same choice. Fix a deterministic adaptive protocol and an ordered transcript that occurs on a reference graph of degree profile with some orders. Let have the edges returned in the transcript and let contain its distinct queried labels.
For a candidate graph with the same degree profile, the likelihood of this transcript over its port orders is
If a reported edge is absent, the transcript cannot occur. If all reported edges are present, the degree at every queried label forces the reported neighbors to be the whole neighbor set. Each distinct queried label then prescribes one permutation of its neighbor set. Such a table of prescribed local orders makes the protocol replay the transcript. All unqueried vertex orders are free, and each repeated query reads the order already fixed for its label. Dividing the number of allowed order tables by the number of all order tables gives the likelihood. The full proof is checked by the Lean kernel.
At positive transcript probability the same factor multiplies each candidate graph that extends , so the posterior graph law is the prior conditioned on that extension event. An independent fresh ordering on each query would describe a different experiment, with the product indexed by query occurrences.
A path may reveal only one of the two forward slots at a vertex of the abstract exploration tree. Give each abstract position an independent uniform ordering of its two available values. The available pair may change with the underlying graph.
Fix finitely many positions, each with two distinct available values. An observation at a position may specify neither, one, or both ordered slots. Call the observation compatible if every specified value is available at its position, and two specified slots at one position have distinct values. If positions have at least one specified slot, the observation has probability when compatible and zero otherwise.
At a touched position the first specified value fixes one of the two orders. A second specified value agrees precisely when it is the other available value. Compatibility thus determines one independent local order at every touched position, leaving all other orders free. The full proof is checked by the Lean kernel.
After conditioning on the observed positions, a later segment that reads entirely unused positions still contributes one factor of one half per position.
Fix two distinct values at each of finitely many positions and give each position an independent uniform order. Consider two fixed partial observations whose sets of observed positions are disjoint. Assume the earlier observation is compatible in the sense of Theorem L.15. Given that observation, the later observation has probability if compatible and zero otherwise, where is its number of observed positions.
The joint event matches the combined observation because the two tables constrain disjoint sets of positions. Its likelihood has one factor of one half for every position observed by either table, and it vanishes if the later table is incompatible. Dividing by the earlier observation’s positive likelihood cancels all factors for its positions. The full proof is checked by the Lean kernel.
Let a world drawn from a probability mass function determine the available pair at each position. At each position, flip an independent fair coin to keep or swap the two indices. The coin flips are independent of the world. Apply them to the available values supplied by that world. Let be the set of worlds compatible with a fixed observation . If has positive probability, then for every set of worlds ,
The same positions are touched in every world. By Theorem L.15, the joint mass associated with worlds in is , and the total observation mass is . Their ratio gives the claimed law. The full proof is checked by the Lean kernel.
Draw a graph world from an arbitrary probability mass function. Each world supplies two distinct indexed values at every position of a finite set. At each position, flip a fair coin to keep or swap the two indices. The flips are independent of one another and of the world. Apply the permutations to the sampled world’s values. Fix a partial prefix table and let be the event that the resulting slot values match it. Specify a partial suffix table for each world, using positions disjoint from those of the prefix table. Let be the event that the slot values match the suffix table for the sampled world.
Let be any set of worlds whose suffix tables each observe at least distinct positions. If , then
Lean states the bound using probability ratios in the extended nonnegative reals. If the prefix has probability zero, both numerator events are contained in and also have probability zero. With the convention , the ratio bound holds with equality in this case.
Fix a world. If it is incompatible with the prefix, the prefix and all of its subevents have probability zero there. If it is compatible, Theorem L.16 gives the conditional probability of matching the suffix. In each world of , the suffix specifies at least new positions, so that probability is at most . Average the joint probabilities using the prior and divide by the total prefix probability. The full proof is checked by the Lean kernel.
Choose an injection uniformly from a finite vertex set into a finite name set. Fix an injective naming on a subset and a set of available names disjoint from the names already fixed. Assume at least one injection agrees with the fixed naming and assigns names in to all other vertices. Conditional on those requirements, the law is uniform over the consistent injections. Under this same law, for each the probability that some remaining vertex receives is the number of remaining vertices divided by .
All consistent injections have the same prior mass, so conditioning gives them the same mass. Restricting to the remaining vertices gives a bijection with injections into : extending by the fixed names preserves injectivity because those names lie outside . At any remaining vertex, swapping two names from exchanges the sets of injections assigning those names there. A specified name therefore has probability at each remaining vertex, and it can occur at most once in an injection. Adding the disjoint probabilities over those vertices gives the formula. The full proof is checked by the Lean kernel.
Let the vertex set and the name set both be finite. Fix an injective assignment of names in to some vertices, and choose a set of available names disjoint from the fixed names. Suppose at least one injective naming extends the fixed assignment and uses only names from on the other vertices. Draw uniformly from these extensions.
Let inject a finite index set into the remaining vertices. The names at the vertices selected by , read together as an injection , have the uniform law on all such injections. Each has probability .
Use the bijection from consistent completions to residual injections in Theorem L.19. For any two specified restricted namings, extend their name-to-name bijection to a permutation of the whole set . Postcomposing each residual injection with that permutation pairs the two completion fibers bijectively. Their masses are equal, and the probabilities of the possible restricted namings sum to one. The full proof is checked by the Lean kernel.
Let the vertex and name sets both be finite. Fix an injective naming on a vertex subset and require all remaining vertices to use names from a set . Choose a set containing and an expanded injective naming on . It preserves the fixed names on and gives each vertex in a name in . Suppose at least one original completion agrees with the expanded naming.
The original completions agreeing with the expanded naming correspond bijectively to the completions of that naming using the remaining available names. The remaining available names are the elements of after removing every name used by the expanded assignment. The correspondence preserves the full vertex naming. Thus the original uniform completion law conditioned on agreement with the expanded assignment equals the uniform law on the new completions when both are read as distributions of full namings.
If a full naming agrees with the expanded assignment on , injectivity prevents any vertex outside from using one of those assigned values. Conversely, a completion of the expanded assignment uses names from at the newly assigned vertices and continues to use names from outside . The correspondence reads the same injection under the two sets of constraints. Conditioning the finite uniform law makes it uniform on the agreeing completions. The full proof is checked by the Lean kernel.
Let the vertex set and the name set be finite. Fix an injective naming on a subset of and choose a set of available names disjoint from the fixed names. Suppose at least one injective completion uses only names in for the other vertices. Sample uniformly from these completions.
Fix a request map and return the name of at position . Let be the set of distinct requested vertices without a fixed name. A reply is consistent exactly when it returns the fixed name at each position with one, returns a name in at every other position, and satisfies if and only if for all . Every consistent reply has probability . Every inconsistent reply has probability zero.
For each vertex of , read its name from any request position that selects it. Consistency makes the choice of position immaterial and gives different names to distinct vertices. Each consistent reply therefore determines a unique injection from into . Conversely, this injection and the fixed names reconstruct the reply at every position. Transfer the uniform distribution in Theorem L.20 along this correspondence. The full proof is checked by the Lean kernel.
Fix an injective naming on a subset of a finite vertex set with names from a finite set . Let be a set of available names disjoint from the fixed names, and suppose there is at least one injective completion that uses only names from outside . Fix a request map , and set and .
Draw a full naming uniformly from these completions and read the reply . With consistency as in Theorem L.22, every consistent reply has probability , and every other reply has probability zero. For each positive-probability reply there is an expanded injective naming on that returns the reply at all request positions and admits at least one completion whose names outside come from after removing all names assigned on . There is a conditional sampling rule that draws uniformly from those completions at each positive-probability reply. Sampling the reply first and then using this rule gives the same joint distribution of as sampling the full naming first and then reading the reply.
Among the original completions, giving a specified reply is equivalent to agreeing with the expanded naming on . By Theorem L.21, the conditional law on that event is the uniform completion law using the remaining available names. Multiplying the probability of each reply by the corresponding conditional completion probability recovers the joint probability of every pair of reply and full naming. The full proof is checked by the Lean kernel.
For example, two unnamed vertices and five available names give a hit probability of for any specified available name. To use the law after an adaptive graph query, one must identify the naming constraints imposed by the actual replies. Childs et al. use a sparse name space to bound guesses outside the known names in quant-ph/0209131v2, Section IV.
Fix a graph and a deterministic strategy whose query is a name. On a hit, the oracle returns the complete unordered set of neighbor names. On a miss, it returns a separate marker. In the actual record, let contain the initially supplied names, the names of successful queries, and the returned neighbor names. Let contain the names that received a miss. The fresh names form .
Assume all initially supplied names occur in the reference naming. Among injections that agree with the reference naming at the vertices carrying names in , the injections replaying the complete reference record are exactly those that give every remaining vertex a name in .
Agreement on the successful query names and all the corresponding neighbor names reproduces the hit replies. Avoiding reproduces the misses. With each reply reproduced, the deterministic strategy makes the same next query. In the other direction, replaying each miss excludes those names from the range, and injectivity reserves for the already named vertices. The full proof is checked by the Lean kernel.
Take the vertex set and name set finite. Choose the naming uniformly among injections and condition on the actual reference record and agreement on the initially supplied names, all of which occur in the reference naming. For each , the probability that a query at hits a vertex is
The reference naming witnesses a nonempty conditioning event. Each compatible naming occupies exactly fresh names. Swapping two fresh names preserves the initial assignments and every recorded answer, so it defines a bijection between the compatible namings that hit the two names. Counting pairs of a compatible naming and one of its occupied fresh names gives the probability. The full proof is checked by the Lean kernel.
The formula only needs the transcript as seen by the strategy and the prescribed initial assignments. The vertices carrying subsequently observed names can vary across compatible namings. With one hidden vertex, two names initially available, and a recorded miss on one of them, the other name hits with probability one. The calculation concerns one next query under the specified oracle. The game reduction in Childs et al. also controls the event that any previously unrevealed name is guessed over an entire bounded run quant-ph/0209131v2, §IV, Lemma 4.
A strategy can keep queries to unknown names in its own computation and record a synthetic miss. The simulator calls the oracle only when the queried name is already known. In each world both the actual run and the simulation use the oracle determined by that world.
Fix a query function returning a complete set of neighbor names or a miss marker, and a set of initially known names. If every branch of the deterministic strategy makes at most queries, then the simulation makes at most actual oracle calls.
Each simulated step follows a branch of the strategy, whether its answer came from the oracle or from the simulator. The simulated record has at most entries. The actual calls count only entries sent to the oracle. The full proof is checked by the Lean kernel.
Take a probability mass function on worlds. Each world determines a query function, and success may depend on that world and the complete record. Let be the event that at least one query in the actual run hits a name that was unknown at the time. Then
Outside , a query at a known name receives the same answer in the two runs. The actual oracle returns a miss on a query at an unknown name as well. The two runs therefore follow the same continuation and update the same known-name set at every step. As their complete records agree, every actual success lies in the union of simulated success and . The full proof is checked by the Lean kernel.
Fix a finite name space and an injection from vertices into it. Initially only the root name is available. Suppose the root has degree at most and every vertex has degree at most . Run the known-name simulator of Theorem L.27 and suppose it sends complete unordered neighborhood queries to the real oracle. Count every forwarded call, including repeats. The simulator knows at most distinct names at the end of the run. A degree-two root and maximum degree three give the bound .
The root supplies the first name. Each later known vertex first appeared in the reply for a neighbor whose name was already known. A query at such a vertex therefore returns at most neighbors, at least one with a known name. A query at the root adds at most names by its degree bound. Queries intercepted by the simulator add zero names and zero real oracle calls. The full proof is checked by the Lean kernel.
The next query can also be recovered partway through the run. Given the actual prefix of length , follow the strategy using each recorded answer. If the strategy has stopped, there is no next query. Otherwise it is the query at zero-based index in the record, as proved by nextQuery_of_prefix. This allows the one-step law of Theorem L.25 to be applied on each prefix when studying over a whole query budget.
The one-step law bounds the probability over the whole run. Again fix a finite simple graph and the initially given name-to-vertex assignments, and sample uniformly among injections preserving them. Write for the total number of names, for the number of vertices, and for the initial set of known names. There are initially unknown names, of which name no vertex. Set .
Under this distribution, a deterministic strategy may choose each next query from the complete unordered neighbor replies and miss markers. Truncate its run after at most queries. The probability that every successful query uses a name known before the query is at least
Thus the probability of at least one hit at a then-unknown name within the budget is at most one minus this ratio.
Group the namings that have avoided a fresh-name hit by their actual prefixes. The next query is fixed in each group. If it uses a known name, repeats a recorded miss, or the strategy has stopped, every naming in the group survives the step. Otherwise let be the number of newly revealed valid names and the number of distinct recorded misses. By Theorem L.25, the conditional hit probability is . After queries, . When , this gives a hit probability at most . Summing the group contributions bounds the conditional survival probability at each step by from below. Multiplying these bounds gives the binomial ratio. If , the numerator is zero. If every valid name is initially known, every run survives. The full proof is checked by the Lean kernel.
In the same model and with the same budget as Theorem L.29, there is a deterministic strategy making at most queries on every branch for which this probability is exactly .
Choose distinct initially unknown names, query them in a fixed order and stop at the first hit. Every query misses exactly when the sampled naming avoids the entire list. Counting injections of the remaining vertices gives the stated ratio. The full proof is checked by the Lean kernel.
Start at a root of a finite simple graph. Query the complete neighborhood of a vertex reachable from the root through edges already exposed. The exposed graph at any time consists of the original edges incident to at least one queried vertex. Suppose the exposed graph is acyclic just before a query at . The reply creates a cycle exactly when has never been queried and has an unqueried neighbor that was already reachable from the root before the query.
A repeated query adds no edges. For a first query at , its new edges are precisely those to unqueried neighbors. If such a neighbor was already reachable, the new edge closes a path in the earlier exposure. Otherwise all the new neighbors were isolated in the exposed graph. Indeed, every exposed edge meets a previously queried vertex, and all queried vertices are reachable from the root. The query therefore attaches leaves and preserves acyclicity. The full proof is checked by the Lean kernel.
A collision witness can end with several edges of a fixed binary tree after its last weld edge. The following sum groups the possible leaf endpoints of that weld edge by their distance from the vertex where the two paths meet.
Identify the vertices of a complete binary tree of depth with bit strings of length at most . Two vertices are adjacent exactly when one string extends the other by one bit. For a vertex of depth and each depth- leaf , let be their graph distance. Then
The leaf enumeration in the sum lists each depth- string once.
A shortest path can go up to the longest common prefix and then down to the target. Each edge changes the remaining prefix distance by at most one, and this route stays within the depth cap. At the root the leaves all contribute . If , the contribution of the branch containing is the same sum in a tree of depth from depth . Each of the leaves in the opposite branch is at distance , so that branch contributes . The two contributions give the formula by induction. The full proof is checked by the Lean kernel.
In a binary word tree with depth cap , fix a parent word and a bit such that the child word , formed by appending , has length at most . Delete the edge between and . Two vertices remain connected exactly when both have prefix or both lack that prefix.
Every tree edge appends or removes the final bit. The only edge across the prefix boundary joins and . Inside the subtree, removing final bits leads to . Outside the subtree it leads to the empty word. These paths stay within the depth cap and avoid the deleted edge. The full proof is checked by the Lean kernel.
For a random graph, the transcript can also change the graph’s distribution. Sample a graph index from a prior on graphs on the same finite vertex set . Independently choose a uniform injective naming from into a finite name set , subject to the prescribed initial assignments. Use a reference graph and naming consistent with the initial assignments to fix an actual transcript of a deterministic strategy whose replies are complete unordered neighborhoods or misses. Let consist of the initial names and the names in successful queries and their replies. Let be the set of names that received a miss.
A placement is an injection . It is feasible on if it agrees with the initial assignments and maps every successful reply to the entire neighborhood of the vertex named in the query. Write for the number of feasible placements.
The number of injective namings on that agree with the initial assignments and replay is
where denotes the falling factorial.
A compatible naming determines a unique placement by taking its inverse on . For each feasible placement, complete the naming by injecting the vertices outside its image into . These injections preserve the exact successful replies and keep the names in absent. Since the strategy is deterministic, these local constraints replay the entire transcript, including its stopping point. Counting the injections gives the stated factor. The full proof is checked by the Lean kernel.
If has positive probability in this joint experiment, then
The likelihood on each graph is its compatible naming count divided by the total number of namings extending the initial assignments. The total number and the falling factorial in Theorem L.34 are common to all graph indices. The positive transcript probability lets these factors cancel in the conditional ratio. The full proof is checked by the Lean kernel.
As an example, choose uniformly among the graphs on vertices with degree vector , and fix the name for vertex . Each graph is connected: the component of has at least four vertices and all vertices have positive degree. Each graph has five edges, so it has one cycle. The degree vector leaves two possibilities, each with three labeled graphs: a square with edge attached, or a triangle with a two-edge path from to attached.
Suppose the query at returns and the subsequent query at returns , with all five names distinct. On a square, can name either cycle neighbor of , and can be assigned to the other two neighbors in either order. On a triangle, must name the interior vertex of the attached path, and again have two orders. The placement counts are therefore four and two. Each square has posterior probability , and each triangle has posterior probability , even though all six graphs have the same prior probability and the same degree at every vertex.
On a finite carrier of at least three vertices with two colors, fix a simple graph that extends to an alternating undirected full cycle. The uniform law on oriented alternating completions projects to the uniform law on the undirected alternating completions of . Each prescribed orientation has arcs, where counts undirected edges. Given a prescribed orientation of positive mass, the full successor permutation is uniform among the directed alternating full cycles that extend it. Including any such directed completion into the original sample space retains both the prescribed orientation and the successor permutation.
An undirected completion has exactly two reversed lifts, and alternation is equivalent before and after forgetting direction. Conditioning the two laws on alternation therefore preserves the projection. Every edge of gets one prescribed direction. Fixing those directions leaves a fiber in bijection with the directed alternating completions of that relation, and uniformity is preserved by this bijection. The full proof is checked by the Lean kernel.
Embed two disjoint sets of leaves into the vertex set of a fixed finite graph by one injection. Add a uniformly sampled undirected alternating full cycle on the leaves. A deterministic adaptive protocol queries any vertex and receives its entire unordered neighbor set. Fix a reference alternating full cycle on these leaves whose embedded edges are disjoint from the fixed graph. Remove the fixed edges from the reference transcript’s recorded edges, and pull the remaining edges back to the leaf set to obtain .
A candidate cycle gives the reference transcript exactly when it contains . If undirected alternating full cycles contain , the probability of that transcript is
At positive transcript mass, the weld is conditionally uniform over those completions.
Replaying the reference transcript requires every recorded edge outside the fixed graph. Both endpoints of such an edge come from leaves. Conversely, containing supplies every recorded edge once the fixed graph is added. The reference cycle adds two edges outside the fixed graph at each leaf and adds zero at other vertices. The degree in the candidate union is therefore at most the reference degree at each query. Apply Theorem L.13 to recover the full transcript and Theorem L.12 to count and normalize its event. The full proof is checked by the Lean kernel.
Split a finite set of at least three vertices into two color classes of size . Let be a simple graph that extends to an undirected alternating full cycle, and write . Suppose . Draw uniformly among these completions. For a vertex and a finite target set , the probability that some edge from to lies in the completion and outside is at most
Use Theorem L.36 to orient the completion and condition on the orientation of . The directed successor estimate bounds the chance of a fresh outgoing edge into in every such fiber. The same bound holds for an incoming edge by reversal. Every fresh undirected edge is included in the union of those two events. The full proof is checked by the Lean kernel.
Use the uniform alternating weld and the complete unordered query model of Theorem L.37. Fix a reference transcript of positive probability containing actual calls, with a reference cycle disjoint in edges from the fixed graph. Let be the weld edges recorded in that transcript. If , then for any fixed leaf and set of leaves, the conditional probability of a weld edge from to a leaf in that is absent from is at most
Each call records at most two additional weld edges. Given the reference transcript, the weld is uniform over the completions of . Orient a uniform completion and condition on the prescribed directions of the edges of . A fresh outgoing arc of joins the tail of its component to a head in a different component. The target vertices belong to at most distinct components, so Theorem L.9 bounds the outgoing probability on each orientation fiber. Averaging recovers the full law on oriented completions. Reversal gives the same bound for incoming arcs, and the union of the two events gives the undirected bound. The full proof is checked by the Lean kernel.
An observed slot may depend on the previous steps. In a nonbacktracking walk, the previous vertex determines which incident edge is excluded from the forward choices.
Draw a world from a prior mass function . Each world gives a simple undirected graph on a common vertex set and contains the same initial incoming edge. All incoming endpoints and candidate vertices belong to . Fix a finite set of positions, a schedule of position and slot requests, and two distinct candidates for each world, position and incoming pair. Independently of the world, each position uses an independent fair keep-or-swap choice on its two indices. After a slot returns a vertex, the next incoming pair consists of the current vertex and the returned vertex.
Fix an actual reference disclosure of positive probability. Its rows never return the predecessor, and every occurrence of a given position has the same incoming pair. The partial slot table records exactly the values in the reference rows, and the set of observed positions consists of those with a recorded slot. In each world containing a row’s incoming edge, require that the vertex recorded in that row is one of the two candidates exactly when it is adjacent to the current vertex and differs from the predecessor.
Let be the set of worlds containing every recorded edge from a current vertex to its returned vertex. Then for every set of worlds ,
Replaying the schedule matches the reference rows exactly when it matches the recorded slot values at their reference incoming pairs. The first incoming edge is common to every world, and every recorded outgoing edge supplies the incoming edge for the next row. Induction shows that every recorded vertex is available at its row exactly when all recorded edges are present. In the reference run, each position always uses the same incoming pair. Its permutation sends the two slots to distinct candidates, so their recorded values differ whenever both are observed. Together these facts give the compatibility of the table. The common likelihood factor from Theorem L.15 cancels in the posterior. The full proof is checked by the Lean kernel.
Draw a world from the prior . Each world gives a simple graph on a common vertex set, and all graphs contain the same initial edge. Fix a schedule of slot requests over finitely many positions. Draw an independent uniform permutation of two slots at each position, independently of the world. The world, position and incoming directed edge fix an ordered pair of distinct candidate vertices. At each visit, apply that position’s permutation to the indices of this ordered pair to select the reply.
The position and current record length select an earlier directed edge as the incoming pair. An index outside the record selects the initial edge. Each reply prepends the edge from the incoming endpoint to the returned vertex. Fix a reference run in which every reference row at a given position uses the same incoming pair and returns a vertex different from the start of that pair. The observation table records exactly the positions, slots and values returned in the reference rows. Its seen set contains exactly the positions with recorded slots. For any candidate world containing a reference row’s incoming edge , the row’s returned value is among the row’s two candidates exactly when is adjacent to and .
Let be the event that replay gives the reference disclosure, and let consist of worlds containing all the reference reply edges. If has positive probability, then for every world event ,
Check replay along the reference record. When the earlier recorded edges are present, the selected incoming edge is present. Availability of the returned value is then equivalent to presence of its recorded reply edge. Repeated visits at one position share the reference pair and permutation, so its two recorded slots have distinct values whenever both are observed. Compatible worlds all have the same likelihood determined by the number of seen positions. That common factor cancels in the posterior. The full proof is checked by the Lean kernel.
Let be a forest and a weld graph on the same vertices. In their union, take two simple paths from to with positive total length. Require their final edges to be distinct whenever both exist. Follow the first path and then the reverse of the second, obtaining a closed walk of length . This walk has an edge of outside . Number its edges from zero and let index the last such edge. If is the vertex reached by that edge, the remaining walk has the same ordered vertex list as a simple path in from to , and
Each arm has no immediate reversal, and the different final edges prevent a reversal at the join. In a forest, a walk without an immediate reversal is a simple path. A nonempty closed walk of this kind must therefore use an edge outside . After the last such edge, the entire suffix lies in and still has no immediate reversals. Its length equals the distance because it is the unique simple path between its endpoints. The full proof is checked by the Lean kernel.
The length identity gives a way to sum over possible last crossings. Once the arrival leaf is fixed, its tree distance to the target determines the crossing index. The next bound combines this observation with a tail estimate for each leaf.
In a complete binary tree of height , fix a target vertex of depth and a total path length . The common bound is an extended nonnegative real. For each step index and leaf , consider a crossing event and a tail event on the outcome type of one probability mass function. Measure all events by its induced outer measure . Suppose a collision event satisfies three conditions.
- Every outcome in belongs to some with .
- Each crossing event has mass at most .
- Each intersection has mass at most .
Then
For a leaf that can witness a collision, its distance to fixes the index . Subadditivity therefore counts at most one event for each leaf. Multiply the crossing bound by the tail weight for that leaf and sum using Theorem L.32. The full proof is checked by the Lean kernel.
Applying the estimate to a concrete welded-tree exploration still requires the crossing and joint tail bounds for the given query prefix.
In a single simple undirected graph, take two simple paths starting at the same vertex. If the first path is nonempty, require the two first edges to differ. Every internal vertex of the second path lies outside the first path, and its terminal vertex may lie on the first path. Reveal the edges of the first path and a strict prefix of the second. The next edge on the second path is absent from the revealed edges.
At the common start, a simple path uses only its first edge incident to that vertex. At a later departure, the vertex lies outside the first path, so the edge cannot lie on it. The second path itself never repeats an edge. The full proof is checked by the Lean kernel.
Each step in this disclosure records the selected path edge. A full neighborhood reply also includes the other edges incident to the queried vertex.
Which bridges to a classical oracle lower bound remain? Remark L.4 gives the ordinary directed model’s static uniform law, and Theorem L.5 counts the alternating completions, with the conditional law given by Theorem L.6. Three distinctions separate them from the glued-trees result in Remark 16.3:
- Graph distribution and orientation. Ben-David et al. (SIAM Journal on Computing 53(6), 2024, 10.1137/23M1573975, §6.3.2, Lemmas 6.11–6.13, PDF pages 37–39) use one uniform cycle on each side’s leaves for the self-weld, and a uniform alternating cycle between the two sides for the weld. Theorem L.5 gives the alternating completion counts, and Theorem L.6 gives the fixed-edge event mass and conditional law. For ordinary undirected full cycles, Theorem L.10 now identifies orientations and representation multiplicities over the same actual completed graph: each fiber is exactly a pair of reversed lifts, with edge-insertion events preserved. Theorem L.11 gives the uniform law for ordinary undirected completions of a fixed . Theorem L.7 gives the conditional probability of a specified connector, and Theorem L.8 bounds the probability of a whole set of candidate successors. Theorem L.9 gives the resulting estimate in terms of the number of prescribed directed edges. Theorem L.12 gives the ambient count and fixed-edge conditional law for undirected alternating cycles. Theorem L.36 puts the directed and undirected weld completions on one probability space.
- Conditioning information. The fixed-edge laws condition on all edges of being present. For fixed labels and complete unordered replies, Theorem L.13 gives the transcript event in terms of edge inclusion and degree bounds. In a degree class this reduces to the fixed-edge event. With one persistent order per vertex, the ordered transcript has the likelihood in Theorem L.14. On a fixed graph, Theorem L.19 gives the hit probability under a fixed partial naming, and Theorem L.25 gives the fresh-name hit probability conditioned on the actual unordered transcript. When the graph and its names are both random, Theorem L.35 gives the graph posterior for the complete unordered transcript. The conditional laws with color information or with joint port orders and random names still require proofs. Theorem L.37 gives the undirected weld law conditioned on an actual unordered reply prefix.
- Queries, embeddings, and success events. In quant-ph/0209131v2, Section IV, Childs et al. first handle guessed new names, colors, and games restricted to known names, then pass to random tree embeddings and bound collision and
EXITevents to obtain the original Theorem 9. Theorem L.31 gives a deterministic criterion for the first cycle seen in a known-vertex exploration. Its collision probability still depends on the law of the random weld given the actual queries. Theorem L.28 bounds the number of known names by after actual oracle calls in the degree-two entrance and maximum-degree-three model. Ben-David et al.’s footnote 14 explicitly notes that queries returning all neighbors give an embedding tree with vertices, not literally . Their printed component lower bound , pair bound , and equation (6.4), , are retained as separately stated in the source; no unproved explicit constant or parameter range is assembled from them here.
The ordinary contraction law supplies static counting and conditioning; the alternating results give classification, counting and the fixed-edge conditional law on the actual carrier. The written proof in Theorem L.10 adds orientation fibers, the reversal quotient and edge insertion over the same ordinary undirected full cycle. The ordinary undirected probability law is Theorem L.11. The actual named transcript gives a one-step hit probability on a fixed graph. The whole-budget hit bound is Theorem L.29, and Theorem L.30 attains it. Query complexity and the full classical EXIT lower bound remain to be proved. The broader scope of request #11 remains unfinished. The next section turns to the quantum side, studying a specified weighted path and its endpoint probability.