betaFeedback

WorksComputer Science

Mixed-Profile Recovery of Hidden Permutation Iterates

Abstract

For a uniformly random permutation ππ on [N][N], a learner observes qq i.i.d.\ labeled edges and then one nonadaptive batch of at most bb membership queries, and must output mm distinct-start pairs (Rj,πk(Rj))(R_j,π^k(R_j)). On the mixed profile m=⌊Nγ⌋m=\lfloor N^γ\rfloor, h=⌊Nδ⌋h=\lfloor N^δ\rfloor, and b=m−hb=m-h, with fixed k≥2k\ge2 and 0<δ<γ<10<δ<γ<1, we prove a sharp 00–11 threshold at Q(N)=max⁡{(mNk−2)1/(k−1),(hNk−1)1/k}Q(N)=\max\{(mN^{k-2})^{1/(k-1)},(hN^{k-1})^{1/k}\}. For every fixed ε>0\varepsilon>0, an explicit learner succeeds with probability 1−o(1)1-o(1) above (1+ε)Q(N)(1+\varepsilon)Q(N), and every learner succeeds with probability o(1)o(1) below (1−ε)Q(N)(1-\varepsilon)Q(N). The same sharp statement holds for independent budgets b=O(m)b=O(m) when b≥mb\ge m or m−b=Ω(m)m-b=Ω(m). The upper bound concentrates two passive prefix populations. The lower bound tracks batch collisions, queries whose images land back in the revealed domain, in a deterministic walk-capacity inequality, then applies a last-fresh-edge posterior bound. Thus the zero-collision union bound can fail before the sample threshold changes. A thin independent-budget regime remains open, where nonterminal collisions can contribute a comparable number of certificates. The results are information-theoretic and restricted to one nonadaptive batch; they do not address generalization, computation, total-variation graph sampling, or multi-round adaptivity.

Introduction

A membership query to a hidden permutation reveals one directed edge, but certifying the iterate πk(r)\pi^k(r) requires a chain of kk compatible edges. Passive examples and one nonadaptive batch interact in both directions: the passive sample identifies useful query locations, and batch answers can land back in the revealed domain and complete additional chains. We study the passive sample scale at which a learner can certify a growing list of distinct-start iterates.

Consider depth 3 with h=⌊N1/5⌋h=\lfloor N^{1/5}\rfloor query-free starts, m=⌊Nγ⌋m=\lfloor N^\gamma\rfloor outputs for γ∈(1/5,1)\gamma\in(1/5,1), and batch budget b=m−hb=m-h. Without queries, every output requires a passive 3-prefix in the observed domain DD, whose expected supply is (1−o(1))q3/N2(1-o(1))q^3/N^2. This forces q≍(mN2)1/3=N(2+γ)/3q\asymp(mN^2)^{1/3}=N^{(2+\gamma)/3}. With bb queries, the learner can instead complete bb passive 2-prefixes by one query each and cover only hh outputs from passive 3-prefixes. The two populations meet their quotas at Q2(N)=(mN)1/2=N(1+γ)/2Q_2(N)=(mN)^{1/2}=N^{(1+\gamma)/2} and Q3(N)=(hN2)1/3=N11/15Q_3(N)=(hN^2)^{1/3}=N^{11/15}. Their maximum therefore has a plateau followed by an exponent kink at γ=7/15\gamma=7/15.

A natural converse conditions on a collision-free batch: no new query u∈Uu\in U has image in D∪UD\cup U, so each query completes at most one passive prefix. In this example, the union bound b(q+b)/(N−q)b(q+b)/(N-q) ceases to vanish at γ=4/15\gamma=4/15, strictly before the supply kink at 7/157/15. This leaves two questions. Do collisions alter the sample threshold? And can one identify the exact leading constant, rather than only its power of NN?

The first obstruction is combinatorial. A single colliding query can complete several walks, so the zero-collision event is too restrictive. Lemma 4.5 partitions every revealed kk-walk by the first index JJ at which it visits a new query vertex. Passive walks and query-terminal walks are bounded by the passive (k−1)(k-1)-walk count, while a nonterminal query forces a collision and contributes at most (k−1)Ccoll(k-1)C_{\mathrm{coll}} walks by injectivity. The resulting deterministic capacity inequality

Wk(M)≤min⁡(Hk(D)+b, Hk−1(D))+(k−1)CcollW_k(M) \le\min\left(H_k(D)+b,\ H_{k-1}(D)\right) + (k-1)C_{\mathrm{coll}}

requires only E[Ccoll]=o(m)\mathbb{E}[C_{\mathrm{coll}}] = o(m) or o(h)o(h) on the two branches.

The second obstruction is posterior uncertainty. Even when fewer than mm walks are revealed, the learner selects its reported starts after seeing the transcript. Fixing the learner’s seed first (Lemma 4.4) makes the first unforced reported start transcript-measurable. Lemma 4.6 then bounds its conditional endpoint probability by Ok(1/N)O_k(1/N) through a sequential last-fresh-edge decomposition.

For the upper bound, preserving the leading constant one requires a near-full passive domain (Lemma 4.1) and second-moment concentration of both prefix populations (Lemma 4.2). These ingredients yield the sharp threshold in Theorem 3.1, rather than a constant-factor approximation.

Contributions.

  • (i) Sharp mixed-profile threshold. Theorem 3.1 proves that for fixed k≥2k \ge2 and 0<δ<γ<10 < \delta< \gamma< 1, with m=⌊Nγ⌋m = \lfloor N^\gamma\rfloor, h=⌊Nδ⌋h = \lfloor N^\delta\rfloor, and b=m−hb = m-h, success changes from o(1)o(1) to 1−o(1)1-o(1) across Q(N)=max⁡{(mNk−2)1/(k−1),(hNk−1)1/k}Q(N) = \max\left\{(mN^{k-2})^{1/(k-1)},(hN^{k-1})^{1/k}\right\} at leading constant one. Corollary 3.2 gives the sharp passive-only scale Qpass(N)=(mNk−1)1/kQ_{\mathrm{pass}}(N) = (mN^{k-1})^{1/k}.

  • (ii) Independent budgets outside a thin boundary. Theorem 5.1 proves the same sharp transition when m→∞m \to\infty, m=o(N)m = o(N), and b=O(m)b = O(m), provided b≥mb \ge m or m−b=Ω(m)m-b = \Omega(m).

  • (iii) Nonterminal collisions and query-only recovery. Proposition 5.2 constructs a k=2k=2 learner that succeeds with probability 1−o(1)1-o(1) below the naive two-scale value inside the thin boundary. Lemma 5.4 shows that a uniform batch alone recovers mm iterates with high probability when b=o(N)b = o(N) and bk/Nk−1≫mb^k/N^{k-1} \gg m.

Organization. § 2 defines the transcript and walk counts. § 3 states the sharp threshold and its phase diagram. § 4 develops the complete proof chain. § 5 treats independent budgets and the thin-boundary counterexample. § 7 separates neighboring access models, and § 8 states the open boundaries. Section A supplies the algebraic lemmas, the explicit packing procedure, and an exact finite-instance consistency check.

Model and Notation

Fix an integer k≥2k \ge2. Write [N]:={1,…,N}[N] := \{1,\ldots,N\}, let SNS_N be the symmetric group on [N][N], and let (x)a=x(x−1)⋯(x−a+1)(x)_a = x(x-1)\cdots(x-a+1) denote the falling factorial, with (x)0=1(x)_0 = 1. A partial injection MM is identified with its graph {(x,M(x)):x∈dom⁡(M)}\{(x,M(x)):x \in\operatorname{dom}(M)\}, and M⊆πM \subseteq\pi means M(x)=π(x)M(x)=\pi(x) on dom⁡(M)\operatorname{dom}(M). The hidden permutation π\pi is uniform on SNS_N.

Passive edges, one batch, and list recovery

The learner receives q∈Z≥0q \in\mathbb{Z}_{\ge0} i.i.d. labeled edges (Xi,π(Xi))(X_i,\pi(X_i)), where Xi∼Unif⁡([N])X_i \sim\operatorname{Unif}([N]) independently of π\pi. Put X=(X1,…,Xq)X=(X_1,\ldots,X_q), D={X1,…,Xq}D=\{X_1,\ldots,X_q\}, and P=π∣DP=\pi|_D. Conditional on ∣D∣=d|D|=d, the set DD is a uniform dd-subset independent of π\pi.

The learner’s seed ω\omega takes values in a measurable space and is independent of (π,X)(\pi,X); batch-selection and output maps are measurable in ω\omega. After observing (X,P)(X,P), the learner commits to a batch U⊆[N]U \subseteq[N] with ∣U∣≤b|\mathcal{U}| \le b before seeing any answer. Let U=U∖DU=\mathcal{U}\setminus D, M=π∣D∪UM=\left.\pi\right|_{D\cup U}, and

Trans⁡:=((Xi,π(Xi))i=1q,U,π∣U).\operatorname{Trans}:=\left((X_i,\pi(X_i))_{i=1}^{q},\mathcal{U},\left.\pi\right|_{\mathcal{U}}\right).

A batch collision is a new query u∈Uu\in U with π(u)∈D∪U\pi(u)\in D\cup U, and Ccoll=∣{u∈U:π(u)∈D∪U}∣C_{\mathrm{coll}}=\left|\{u\in U:\pi(u)\in D\cup U\}\right|. The pair (D,M)(D,M) determines this count. Querying a point in DD is redundant, whereas querying a point in im⁡(P)∖D\operatorname{im}(P)\setminus D reveals a new outgoing edge.

Definition 2.1 (One-batch iterate list recovery). Fix integers k≥2k\ge2, N≥m≥1N\ge m\ge1, and q,b∈Z≥0q,b\in\mathbb{Z}_{\ge0}. On CompRel⁡k(N,m,b)\operatorname{CompRel}_k(N,m,b), a learner observes qq i.i.d. passive edges and one nonadaptive batch of at most bb membership queries, then outputs ((R1,C1),…,(Rm,Cm))∈([N]2)m((R_1,C_1),\ldots,(R_m,C_m))\in([N]^2)^m from (Trans⁡,ω)(\operatorname{Trans},\omega). It succeeds if the starts are pairwise distinct and Cj=πk(Rj)C_j=\pi^k(R_j) for every j∈[m]j\in[m].

Remark 2.2 (Scope of the model). The list size mm and batch budget bb are independent parameters. The hidden permutation is uniform, the learner is computationally unbounded, and starts are selected after the transcript. Thus CompRel⁡k\operatorname{CompRel}_k measures information-theoretic certificate throughput under one passive sample and one nonadaptive batch, rather than fixed-test-distribution generalization, computational complexity, full-graph total-variation sampling, or multi-round interaction.

Simple prefixes and revealed walks

Definition 2.3 (Simple passive prefixes). For D⊆[N]D\subseteq[N], π∈SN\pi\in S_N, and a≥1a\ge1, let

Za(D):={r∈[N]:r,π(r),…,πa−1(r) are pairwise distinct and lie in D},\mathcal{Z}_a(D):=\{r\in[N]:r,\pi(r),\ldots,\pi^{a-1}(r)\text{ are pairwise distinct and lie in }D\},

and Za(D)=∣Za(D)∣\mathcal{Z}_a(D)=|\mathcal{Z}_a(D)|.

Every start in Za(D)\mathcal{Z}_a(D) determines πa(r)=Pa(r)\pi^a(r)=P^a(r) from PP alone. A start in Zk(D)\mathcal{Z}_k(D) needs no query, while a start in Zk−1(D)\mathcal{Z}_{k-1}(D) determines a query location πk−1(r)\pi^{k-1}(r) whose answer completes the certificate.

Definition 2.4 (Revealed walks and passive walk counts). Let MM be a partial injection on [N][N] and fix k≥2k\ge2. A start rr has a revealed kk-walk in MM if Mi(r)M^i(r) is defined and belongs to dom⁡(M)\operatorname{dom}(M) for every i∈{0,…,k−1}i\in\{0,\ldots,k-1\}. Write Wk(M)W_k(M) for the number of such starts. For D⊆[N]D\subseteq[N] and a≥1a\ge1, define

Ha(D):={r∈[N]:r,π(r),…,πa−1(r)∈D},Ha(D):=∣Ha(D)∣.\mathcal{H}_a(D):=\{r\in[N]:r,\pi(r),\ldots,\pi^{a-1}(r)\in D\},\qquad H_a(D):=|\mathcal{H}_a(D)|.

Thus Wk(P)=Hk(D)W_k(P)=H_k(D), and the revealed-walk condition uses only MM. Always Za(D)⊆Ha(D)\mathcal{Z}_a(D)\subseteq\mathcal{H}_a(D); their difference consists of starts on cycles of length less than aa whose entire cycle lies in DD.

Main Results

Our first theorem determines the sharp sample threshold on the polynomial mixed profile. Here hh is the query-free deficit, and mm is the total number of (k−1)(k-1)-prefixes required for free and paid certificates.

Theorem 3.1 (Sharp two-branch threshold). Suppose the following conditions hold:

  • Fix an integer k≥2k \ge2 and real exponents 0<δ<γ<10 < \delta< \gamma< 1.

  • For each integer N≥1N \ge1, set m=⌊Nγ⌋m = \lfloor N^\gamma\rfloor, h=⌊Nδ⌋h = \lfloor N^\delta\rfloor, and b=m−hb = m - h.

  • Define

Qk−1(N):=(mNk−2)1/(k−1),Qk(N):=(hNk−1)1/k,Q_{k-1}(N) := \left(mN^{k-2}\right)^{1/(k-1)}, \qquad Q_k(N) := \left(hN^{k-1}\right)^{1/k},
Q(N):=max⁡{Qk−1(N),Qk(N)}.(1)Q(N) := \max\{Q_{k-1}(N), Q_k(N)\}. \tag*{(1)}

Then for every fixed ε∈(0,1)\varepsilon\in(0,1), the following hold on CompRel⁡k(N,m,b)\operatorname{CompRel}_k(N,m,b) as N→∞N \to\infty:

  • Part 1 (Lower bound). Uniformly over integers 0≤q≤(1−ε)Q(N)0 \le q \le(1-\varepsilon)Q(N), every possibly randomized, computationally unbounded learner using qq passive examples and at most bb queries in one nonadaptive batch succeeds with probability o(1)o(1).

  • Part 2 (Upper bound). Uniformly over integers q≥(1+ε)Q(N)q \ge(1+\varepsilon)Q(N), an explicit learner using at most qq passive examples and at most bb queries in one nonadaptive batch succeeds with probability 1−o(1)1-o(1).

The exponents in (1) are α=(γ+k−2)/(k−1)\alpha= (\gamma+ k - 2)/(k - 1) and β=(δ+k−1)/k\beta= (\delta+ k - 1)/k, both in (0,1)(0,1). Thus Q(N)=Θ(Nmax⁡(α,β))=o(N)Q(N) = \Theta(N^{\max(\alpha,\beta)}) = o(N). The critical window q=(1+o(1))Q(N)q = (1 + o(1))Q(N) is outside the statement.

Corollary 3.2 (Sharp passive-only baseline). Fix k≥2k \ge2, γ∈(0,1)\gamma\in(0,1), and ε∈(0,1)\varepsilon\in(0,1). Set m=⌊Nγ⌋m = \lfloor N^\gamma\rfloor, b=0b = 0, and Qpass(N)=(mNk−1)1/kQ_{\mathrm{pass}}(N) = (mN^{k-1})^{1/k}. Then on CompRel⁡k(N,m,0)\operatorname{CompRel}_k(N,m,0), every learner succeeds with probability o(1)o(1) uniformly for 0≤q≤(1−ε)Qpass(N)0 \le q \le(1-\varepsilon)Q_{\mathrm{pass}}(N), and an explicit learner succeeds with probability 1−o(1)1-o(1) uniformly for q≥(1+ε)Qpass(N)q \ge(1+\varepsilon)Q_{\mathrm{pass}}(N).

Proof architecture. Above (1+ε)Q(N)(1+\varepsilon)Q(N), domain concentration preserves the margin and Lemma 4.2 supplies both prefix quotas. The learner packs hh free starts from Zk(D)Z_k(D) and bb further starts from Zk−1(D)∖Zk(D)Z_{k-1}(D) \setminus Z_k(D), querying Pk−1(r)P^{k-1}(r) only when it is not already in DD.

Below (1−ε)Q(N)(1-\varepsilon)Q(N), monotone coupling and Chebyshev concentration bound the relevant passive walk count by (1−c)m(1-c)m or (1−c)h(1-c)h. Lemma 4.5 gives

Wk(M)≤min⁡(Hk(D)+b,Hk−1(D))+(k−1)Ccoll.W_k(M) \le\min\bigl(H_k(D)+b, H_{k-1}(D)\bigr) + (k-1)C_{\mathrm{coll}}.

Since m−b=hm-b=h, either branch leaves Wk(M)<mW_k(M)<m with high probability. Fixing the seed before conditioning on the transcript then permits Lemma 4.6 to bound the conditional success probability by Ok(1/N)O_k(1/N).

Separation from the zero-collision boundary. In this example, the union bound b(q+b)/(N−q)b(q+b)/(N-q) crosses from o(1)o(1) to ω(1)\omega(1) at 3γ+δ=13\gamma+\delta=1, yet remains o(h)o(h) throughout (4/15,7/15)(4/15,7/15). The threshold therefore bends only at the supply crossover 3γ=1+2δ3\gamma=1+2\delta. Retaining CcollC_{\mathrm{coll}} in the capacity inequality is what separates these two lines.

Proof of the Sharp Mixed-Profile Threshold

This section proves Theorem 3.1 and Corollary 3.2. Throughout, k≥2k \ge2 is fixed, mm, hh, bb, Q(N)Q(N) are as in (1), and α=(γ+k−2)/(k−1)\alpha= (\gamma+k-2)/(k-1), β=(δ+k−1)/k\beta= (\delta+k-1)/k.

Domain size and prefix moments

Certificate accounting for Theorem 3.1

Figure 1. Certificate accounting for Theorem 3.1. In the upper panel, Corn boxes denote passive kk-prefixes, Prussian Blue boxes denote (k−1)(k-1)-prefixes, and Champagne Gold denotes paid queries; these combine into mm distinct starts. In the lower panel, passive obstruction and the Champagne Gold collision budget feed the warm-red capacity inequality of Lemma 4.5, which leaves an unforced start with conditional hit probability Ok(1/N)O_k(1/N).

Domain size and prefix moments

Lemma 4.1 (Passive domain loss). Fix integers N≥1N \ge1 and q0≥1q_0 \ge1. Let X1,…,Xq0X_1,\ldots,X_{q_0} be i.i.d. uniform on [N][N] and set D={X1,…,Xq0}D=\{X_1,\ldots,X_{q_0}\}. Then

E[q0−∣D∣]≤(q02)/N,\mathbb{E}[q_0-|D|]\le\binom{q_0}{2}/N,

and for every ρ>0\rho>0,

P[∣D∣<(1−ρ)q0]≤(q0−1)+2ρN.\mathbb{P}[|D|<(1-\rho)q_0]\le\frac{(q_0-1)_+}{2\rho N}.

Proof. The duplicate count satisfies

q0−∣D∣=∑i=2q01{Xi∈{X1,…,Xi−1}}≤∑1≤j<i≤q01{Xi=Xj}.q_0-|D|=\sum_{i=2}^{q_0}\mathbf{1}\{X_i\in\{X_1,\ldots,X_{i-1}\}\}\le\sum_{1\le j<i\le q_0}\mathbf{1}\{X_i=X_j\}.

Taking expectations gives the first bound. For q0=1q_0=1, ∣D∣=1|D|=1 and the event is empty. For q0≥2q_0\ge2, Markov’s inequality applied to q0−∣D∣>ρq0q_0-|D|>\rho q_0 gives the second bound.

Lemma 4.2 (Simple prefix moments). Fix integers a≥1a\ge1, N≥2aN\ge2a, and 2a≤d≤N2a\le d\le N. Let DD be a uniform dd-subset independent of π\pi. Then

λa(d):=E[Za(D)]=(N−a+1)(d)a(N)a,Var⁡(Za(D))≤(4a−2)λa(d)+Baλa(d)2N,\lambda_a(d):=\mathbb{E}[Z_a(D)]=(N-a+1)\frac{(d)_a}{(N)_a},\qquad\operatorname{Var}(Z_a(D))\le(4a-2)\lambda_a(d)+B_a\frac{\lambda_a(d)^2}{N},

where Ba>0B_a>0 depends only on aa.

Proof. Let L(r)L(r) be the cycle length containing rr and Oa(r)={r,π(r),…,πa−1(r)}O_a(r)=\{r,\pi(r),\ldots,\pi^{a-1}(r)\}. By Lemma A.1, P[L(r)≥a]=(N−a+1)/N\mathbb{P}[L(r)\ge a]=(N-a+1)/N. Conditional on this event, P[Oa(r)⊆D∣π]=(d)a/(N)a\mathbb{P}[O_a(r)\subseteq D\mid\pi]=(d)_a/(N)_a, which gives the mean. For the second moment, partition ordered pairs (r,s)(r, s). If Oa(r)O_a(r) and Oa(s)O_a(s) intersect, then s=πt(r)s = \pi^t(r) for some ∣t∣≤a−1|t| \le a - 1, so there are at most (2a−1)N(2a - 1)N such pairs. Each contributes at most (d)a/(N)a(d)_a/(N)_a. Since N≥2aN \ge2a implies N−a+1≥N/2N - a + 1 \ge N/2, the total contribution is at most (4a−2)λa(d)(4a - 2)\lambda_a(d). Disjoint pairs have 2a2a vertices and contribute at most N2(d)2a/(N)2aN^2(d)_{2a}/(N)_{2a}. Using (d)2a≤(d)a2(d)_{2a} \le(d)_a^2 and (N)2a=(N)a(N−a)a(N)_{2a} = (N)_a(N-a)_a,

Depth-3 running example at $\delta = 1/5$

Figure 2. Depth-3 running example at δ=1/5\delta= 1/5, with legal domain γ>1/5\gamma> 1/5. The solid Mingjing Blue polyline is the threshold exponent θ(γ)=max⁡{(2+δ)/3,(1+γ)/2}\theta(\gamma) = \max\{(2 + \delta)/3, (1 + \gamma)/2\}, and the dotted gray line is the passive-only exponent (2+γ)/3(2 + \gamma)/3. The vertical dash-dot warm-red line 3γ+δ=13\gamma+ \delta= 1 separates the pale-red zero-collision-union-bound strip from the pale-blue region where that bound diverges but E[Ccoll]=o(h)\mathbb{E}[C_{\mathrm{coll}}] = o(h). The vertical densely dashed Mingjing Blue line 3γ=1+2δ3\gamma= 1 + 2\delta marks the actual exponent kink and the start of the pale-gold (k−1)(k - 1)-prefix-scarce regime; the gray region γ≤δ\gamma\le\delta is outside the mixed profile.

N2(d)2a(N)2a≤N2(N−a+1)2(N)a(N−a)aλa(d)2=Ra(N)λa(d)2.\frac{N^2(d)_{2a}}{(N)_{2a}} \le\frac{N^2}{(N-a+1)^2}\frac{(N)_a}{(N-a)_a}\lambda_a(d)^2 = R_a(N)\lambda_a(d)^2.

Lemma A.2 gives Ra(N)≤1+Ba/NR_a(N) \le1 + B_a/N. Subtracting λa(d)2\lambda_a(d)^2 proves the variance bound.

Lemma 4.3 (Short-cycle correction). Fix 1≤a≤N1 \le a \le N. Let DD be independent of π\pi and uniform among subsets of its size. Then

E[Ha(D)−Za(D)∣∣D∣=d]=∑ℓ=1a−1(d)ℓ(N)ℓ.\mathbb{E}[H_a(D) - Z_a(D) \mid|D| = d] = \sum_{\ell=1}^{a-1}\frac{(d)_\ell}{(N)_\ell}.

If ∣D∣≤q|D| \le q almost surely with q=o(N)q = o(N), then P[Ha(D)≠Za(D)]≤(a−1)q/N=o(1)\mathbb{P}[H_a(D) \ne Z_a(D)] \le(a - 1)q/N = o(1).

Proof. A start belongs to Ha(D)∖Za(D)H_a(D) \setminus Z_a(D) exactly when its cycle length is ℓ<a\ell< a and its entire ℓ\ell-cycle lies in DD. This occurs with probability (d)ℓ/(N)ℓ(d)_\ell/(N)_\ell conditional on L(r)=ℓL(r) = \ell. Summing over rr and ℓ\ell gives the identity. Each term is at most q/Nq/N, and the nonnegative integer correction is nonzero with probability at most its expectation.

Posterior uniformity and walk capacity

Lemma 4.4 (Uniform completions). For almost every ω=w\omega= w, the batch and output maps are deterministic functions of (X,P)(X, P) and Trans\mathrm{Trans}, respectively. Conditional on (X,P,ω=w)(X, P, \omega= w), π\pi is uniform over completions of PP; conditional on (Trans,ω=w)(\mathrm{Trans}, \omega= w), π\pi is uniform over completions of MM.

Walk-class partition and nonterminal collision synergy diagrams

Figure 3. Walk-class decomposition and nonterminal collision synergy. In panel (a), Corn circles and solid edges are passive, Champagne Gold circles are new queries, and warm-red rings mark collisions; the three classes give the bounds in Lemma 4.5. In panel (b), one query at u=π(r)u=\pi(r) landing at w∈Dw\in D certifies the terminal start rr and the disjoint nonterminal start uu, illustrating Proposition 5.2.

Proof. Independence of ω\omega and (π,X)(\pi,X) preserves their joint law after conditioning on ω=w\omega=w. For fixed (x,p)(x,p), every completion σ\sigma of pp has joint probability P[π=σ,X=x∣ω=w]=(N!Nq)−1\mathbb{P}[\pi=\sigma,X=x\mid\omega=w]=(N!N^q)^{-1}, independent of σ\sigma. The batch is then a deterministic function of (x,p)(x,p), and compatible batch answers extend the same constancy to every completion of MM.

Lemma 4.5 (Batch collision expectation and deterministic walk capacity). Fix k≥2k\ge2 and q,b∈Z≥0q,b\in\mathbb{Z}_{\ge0} with q+b<Nq+b<N. Then

E[Ccoll]≤b(q+b)N−q,Wk(M)≤min⁡(Hk(D)+b,Hk−1(D))+(k−1)Ccoll\mathbb{E}[C_{\mathrm{coll}}]\le\frac{b(q+b)}{N-q},\qquad W_k(M)\le\min\left(H_k(D)+b,H_{k-1}(D)\right)+(k-1)C_{\mathrm{coll}}

deterministically.

Proof. Conditional on (X,P,ω)(X,P,\omega), each u∈Uu\in U has image uniform on the N−∣D∣N-|D| values outside im⁡(P)\operatorname{im}(P), and at most q+bq+b of those values lie in D∪UD\cup U. Linearity gives the expectation bound.

For the capacity bound, let W\mathcal{W} be the revealed starts, write vi=πi(r)v_i=\pi^i(r), and let J(r)J(r) be the least index with vJ∈Uv_J\in U, or ∞\infty if none exists.

  • If J=∞J=\infty, then r∈Hk(D)⊆Hk−1(D)r\in H_k(D)\subseteq H_{k-1}(D), contributing at most Hk(D)H_k(D).

  • If J=k−1J=k-1, then r∈Hk−1(D)r\in H_{k-1}(D), and r↦πk−1(r)r\mapsto\pi^{k-1}(r) injects these starts into UU, contributing at most bb.

  • If J=j≤k−2J=j\le k-2, then vj∈Uv_j\in U and vj+1∈D∪Uv_{j+1}\in D\cup U, so vjv_j is a collision. For each jj, r↦πj(r)r\mapsto\pi^j(r) is injective, giving at most CcollC_{\mathrm{coll}} starts per jj and at most (k−1)Ccoll(k-1)C_{\mathrm{coll}} in total.

The first and second classes are disjoint subsets of Hk−1(D)H_{k-1}(D), which yields the second bound in the minimum.

Lemma 4.6 (Last-fresh-edge posterior bound). Let MM be deterministic with ∣dom⁡(M)∣=d|\operatorname{dom}(M)|=d, N>d+kN>d+k, and let π\pi be a uniform completion. If rr has no revealed kk-walk in MM, then for every c∈[N]c\in[N],

P[πk(r)=c]≤∑j=0k−1k−jN−d−j≤k(k+1)2(N−d−k+1).\mathbb{P}[\pi^k(r)=c]\le\sum_{j=0}^{k-1}\frac{k-j}{N-d-j}\le\frac{k(k+1)}{2(N-d-k+1)}.

Proof. Set Y0=rY_0=r and M0=MM_0=M. Sequentially set Yj+1=π(Yj)Y_{j+1}=\pi(Y_j), let Fj={Yj∉dom⁡(Mj)}F_j=\{Y_j\notin\operatorname{dom}(M_j)\}, and add the edge (Yj,Yj+1)(Y_j,Y_{j+1}) to MjM_j only when FjF_j occurs. For every realizable tuple (y0,…,yj,mj)(y_0,\ldots,y_j,m_j), the path event is exactly the uniform-completion event mj⊆πm_j\subseteq\pi: starting at rr and reading mjm_j reproduces the path, and every added edge belongs to π\pi. Thus on FjF_j, Yj+1Y_{j+1} is uniform on [N]∖im⁡(Mj)[N]\setminus\operatorname{im}(M_j), whose size is at least N−d−jN-d-j.

At least one of F0,…,Fk−1F_0,\ldots,F_{k-1} occurs. Let JJ be the last such index, and set s=k−1−js=k-1-j. Given J=jJ=j and a fresh image vv, the remaining ss steps are non-fresh. Either they never revisit YjY_j, forcing Mjs(v)=cM_j^s(v)=c, or they first return at some t∈{0,…,s−1}t\in\{0,\ldots,s-1\}, forcing Mjt(v)=YjM_j^t(v)=Y_j. Each alternative has at most one solution by injectivity, so at most k−jk-j values of vv are admissible. Summing these bounds over jj proves the lemma.

Proof of the sharp upper bound

Proof of Theorem 3.1, Part 2. Set q0=⌈(1+ε)Q(N)⌉q_0=\lceil(1+\varepsilon)Q(N)\rceil and discard samples beyond q0q_0. Choose ρ>0\rho>0 with (1−ρ)(1+ε)>1(1-\rho)(1+\varepsilon)>1, define 1+2c=((1−ρ)(1+ε))k−11+2c=((1-\rho)(1+\varepsilon))^{k-1}, and set τ=c/(4(1+c))\tau=c/(4(1+c)). By Lemma 4.1, ∣D∣≥(1−ρ)q0|D|\ge(1-\rho)q_0 with probability 1−o(1)1-o(1). Condition on ∣D∣=d|D|=d in this range. Uniformly, λa(d)=(1−o(1))da/Na−1\lambda_a(d)=(1-o(1))d^a/N^{a-1}, so λk−1(d)≥(1+c)m\lambda_{k-1}(d)\ge(1+c)m and λk(d)≥(1+c)h\lambda_k(d)\ge(1+c)h for large NN.

For ZkZ_k, the event Zk<hZ_k<h implies a deviation of at least cλk/(1+c)c\lambda_k/(1+c), hence Chebyshev gives failure probability at most

(1+c)2c2(4k−2(1+c)h+BkN)=o(1).\frac{(1+c)^2}{c^2}\left(\frac{4k-2}{(1+c)h}+\frac{B_k}{N}\right)=o(1).

Similarly, Zk−1≥(1−τ)λk−1Z_{k-1}\ge(1-\tau)\lambda_{k-1} with probability 1−o(1)1-o(1) (deterministically when k=2k=2). The exact mean ratio satisfies

λk(d)λk−1(d)=d−k+1N−k+2≤q0N−k+2=o(1),\frac{\lambda_k(d)}{\lambda_{k-1}(d)} =\frac{d-k+1}{N-k+2} \le\frac{q_0}{N-k+2}=o(1),

so Markov gives Zk≤τλk−1Z_k\le\tau\lambda_{k-1} with probability 1−o(1)1-o(1). On the intersection,

Zk−1−Zk≥(1−2τ)(1+c)m=(1+c/2)m≥m≥b.Z_{k-1}-Z_k\ge(1-2\tau)(1+c)m=(1+c/2)m\ge m\ge b.

Thus the packing event holds with probability 1−o(1)1-o(1). The deterministic procedure in Algorithm 1 selects hh free starts and bb paid starts, uses at most bb distinct queries, and succeeds on that event by Proposition A.3.

Proof of the sharp lower bound and passive baseline

Proof of Theorem 3.1, Part 1. Set qmax⁡=⌊(1−ε)Q(N)⌋q_{\max}=\lfloor(1-\varepsilon)Q(N)\rfloor and fix any 0≤q≤qmax⁡0\le q\le q_{\max}. Conditional on ∣D∣=d|D|=d, augment DD by uniformly chosen outside points to obtain a uniform qmax⁡q_{\max}-subset D~⊇D\widetilde D\supseteq D independent of π\pi. Monotonicity gives Ha(D)≤Ha(D~)H_a(D)\le H_a(\widetilde D). By Lemma 4.3, Ha(D~)=Za(D~)H_a(\widetilde D)=Z_a(\widetilde D) with probability 1−o(1)1-o(1), and Chebyshev gives, for every fixed τ>0\tau>0,

P[Za(D~)>(1+τ)λa(qmax⁡)]≤4a−2τ2λa(qmax⁡)+Baτ2N=o(1),\mathbb{P}\left[Z_a(\widetilde D)>(1+\tau)\lambda_a(q_{\max})\right]\le\frac{4a-2}{\tau^2\lambda_a(q_{\max})}+\frac{B_a}{\tau^2N}=o(1),

with the case a=1a=1 deterministic. These bounds depend only on qmax⁡q_{\max}, so they are uniform in qq. If α≥β\alpha\ge\beta, then Q/Qk−1→1Q/Q_{k-1} \to1 and λk−1(qmax⁡)≤(1−ε+o(1))k−1m\lambda_{k-1}(q_{\max}) \le(1-\varepsilon+o(1))^{k-1}m. Thus Hk−1(D)≤(1−c)mH_{k-1}(D) \le(1-c)m with probability 1−o(1)1-o(1) for some fixed c>0c>0. Also b≤mb \le m and qmax⁡+b=o(N)q_{\max}+b=o(N) imply E[Ccoll]=o(m)\mathbb{E}[C_{\mathrm{coll}}]=o(m), so Wk(M)<mW_k(M)<m with probability 1−o(1)1-o(1) by the second capacity bound.

If α<β\alpha< \beta, then Q/Qk→1Q/Q_k \to1 and Hk(D)≤(1−c)hH_k(D) \le(1-c)h with probability 1−o(1)1-o(1). The condition α<β\alpha<\beta is kγ<(k−1)δ+1k\gamma<(k-1)\delta+1, which gives bqmax⁡/(Nh)=o(1)bq_{\max}/(Nh)=o(1). It also gives b2/(Nh)=o(1)b^2/(Nh)=o(1): for k=2k=2 this is 2γ<1+δ2\gamma<1+\delta, and for k≥3k\ge3 it follows from ((k−1)δ+1)/k<(1+δ)/2((k-1)\delta+1)/k<(1+\delta)/2. Hence E[Ccoll]=o(h)\mathbb{E}[C_{\mathrm{coll}}]=o(h), and the first capacity bound gives Wk(M)<mW_k(M)<m with probability 1−o(1)1-o(1).

Now fix ω=w\omega=w before conditioning on Trans\mathrm{Trans}. On B={Wk(M)<m}B=\{W_k(M)<m\}, either duplicate starts cause failure or some first reported start has no revealed walk. Lemma 4.6 bounds its conditional success probability by Ok(1/(N−qmax⁡−b))=o(1)O_k(1/(N-q_{\max}-b))=o(1). Averaging over ω\omega and Trans\mathrm{Trans} proves the lower bound uniformly in qq.

Proof of Corollary 3.2. Set b=0b=0 and Qpass=(mNk−1)1/kQ_{\mathrm{pass}}=(mN^{k-1})^{1/k}. The upper argument with q0=⌈(1+ε)Qpass⌉q_0=\lceil(1+\varepsilon)Q_{\mathrm{pass}}\rceil gives Zk(D)≥mZ_k(D)\ge m with probability 1−o(1)1-o(1), and the packing procedure outputs (r,Pk(r))(r,P^k(r)). For the lower bound, couple DD upward to a uniform qmax⁡q_{\max}-subset as above to obtain Hk(D)<mH_k(D)<m with probability 1−o(1)1-o(1). Since U=∅U=\varnothing, Wk(M)=Hk(D)W_k(M)=H_k(D). Fix the seed before conditioning on the transcript and apply Lemma 4.6.

Independent Query Budgets

We now allow mNm_N and bNb_N to vary independently. When bN=O(mN)b_N=O(m_N) and the passive quota is zero or a constant fraction of mNm_N, the sharp threshold persists. In the thin boundary, nonterminal collisions can instead supply a constant fraction of the deficit.

Theorem 5.1 (Sharp threshold outside the thin mixed-profile boundary). Suppose the following conditions hold:

  • Fix k≥2k\ge2. Let mN,bNm_N,b_N be integer sequences with mN→∞m_N\to\infty, mN=o(N)m_N=o(N), and bN=O(mN)b_N=O(m_N).

  • Set bact=min⁡(mN,bN)b_{\mathrm{act}}=\min(m_N,b_N), hN=(mN−bN)+h_N=(m_N-b_N)_+, and

AN=(mNNk−2)1/(k−1),BN=(hNNk−1)1/k,Q(mN,bN)=max⁡{AN,BN},(2)A_N=(m_NN^{k-2})^{1/(k-1)}, \qquad B_N=(h_NN^{k-1})^{1/k}, \qquad Q(m_N,b_N)=\max\{A_N,B_N\}, \tag*{(2)}

with BN=0B_N=0 when hN=0h_N=0.

  • For some constant η>0\eta>0, for all sufficiently large NN, either bN≥mNb_N\ge m_N, or bN<mNb_N<m_N and hN≥ηmNh_N\ge\eta m_N.

Then for every fixed ε∈(0,1)\varepsilon\in(0,1), every learner succeeds with probability o(1)o(1) uniformly for 0≤q≤(1−ε)Q(mN,bN)0\le q\le(1-\varepsilon)Q(m_N,b_N), and an explicit learner succeeds with probability 1−o(1)1-o(1) uniformly for q≥(1+ε)Q(mN,bN)q\ge(1+\varepsilon)Q(m_N,b_N).

Proof. Since mN=o(N)m_N=o(N) and bN=O(mN)b_N=O(m_N), Q(mN,bN)=o(N)Q(m_N,b_N)=o(N) and q+bN=o(N)q+b_N=o(N) on the stated ranges. For the upper bound, take q0=⌈(1+ε)Q(mN,bN)⌉q_0=\lceil(1+\varepsilon)Q(m_N,b_N)\rceil and choose ρ,c,τ\rho,c,\tau as in § 4.4. On ∣D∣≥(1−ρ)q0|D|\ge(1-\rho)q_0, prefix concentration gives Zk≥hNZ_k\ge h_N (trivially if hN=0h_N=0) and Zk−1−Zk≥(1−2τ)(1+c)mN≥bactZ_{k-1}-Z_k\ge(1-2\tau)(1+c)m_N\ge b_{\mathrm{act}} with probability 1−o(1)1-o(1). The packing procedure then uses at most bact≤bNb_{\mathrm{act}}\le b_N queries and outputs mNm_N pairs.

For the lower bound, set qmax⁡=⌊(1−ε)Q(mN,bN)⌋q_{\max}=\lfloor(1-\varepsilon)Q(m_N,b_N)\rfloor. The collision expectation is o(mN)o(m_N). If AN≥BNA_N\ge B_N, then Q/AN→1Q/A_N\to1 and Hk−1(D)≤(1−c)mNH_{k-1}(D)\le(1-c)m_N with probability 1−o(1)1-o(1), so the second capacity bound gives Wk(M)<mNW_k(M)<m_N. If BN>ANB_N>A_N, then hN>0h_N>0, hence hN≥ηmNh_N\ge\eta m_N, so E[Ccoll]=o(hN)\mathbb{E}[C_{\mathrm{coll}}]=o(h_N) and Hk(D)≤(1−c)hNH_k(D)\le(1-c)h_N with probability 1−o(1)1-o(1). The first capacity bound gives Wk(M)≤bN+(1−c)hN+o(hN)<mNW_k(M)\le b_N+(1-c)h_N+o(h_N)<m_N.

These estimates hold pointwise in NN, so oscillation between the two branches causes no uniformity problem. The posterior step is identical to § 4.5.

The excluded thin regime is hN=o(mN)h_N=o(m_N) with comparable ANA_N, BNB_N. There, E[Ccoll]\mathbb{E}[C_{\mathrm{coll}}] can be o(mN)o(m_N) yet Θ(hN)\Theta(h_N), allowing nonterminal collisions to beat the naive two-scale formula.

Proposition 5.2 (Nonterminal collisions beat Q(m,b)Q(m,b) inside the thin boundary). Fix k=2k=2. Set m=⌊N3/4⌋m=\lfloor N^{3/4}\rfloor, h=⌊4m2/N⌋h=\lfloor4m^2/N\rfloor, and b=m−hb=m-h. Then Q(m,b)=(2+o(1))mQ(m,b)=(2+o(1))m, and at q=⌊1.8m⌋=(0.9+o(1))Q(m,b)q=\lfloor1.8m\rfloor=(0.9+o(1))Q(m,b), an explicit learner on CompRel⁡2(N,m,b)\operatorname{CompRel}_2(N,m,b) succeeds with probability 1−o(1)1-o(1).

Proof. We have h=(4+o(1))N1/2h=(4+o(1))N^{1/2}, b=(1−o(1))mb=(1-o(1))m, and Q(m,b)=(hN)1/2=(2+o(1))mQ(m,b)=(hN)^{1/2}=(2+o(1))m. By Lemma 4.1, ∣D∣=(1.8−o(1))m|D|=(1.8-o(1))m with probability 1−o(1)1-o(1). Conditional on ∣D∣=d|D|=d in this range, Lemma 4.2 gives

λ2(d)=d(d−1)N=(0.81+o(1))h,Var⁡(Z2(D))=O(h).\lambda_2(d)=\frac{d(d-1)}{N}=(0.81+o(1))h,\qquad\operatorname{Var}(Z_2(D))=O(h).

Together with Lemma 4.3, this gives H2(D)=(0.81+o(1))hH_2(D)=(0.81+o(1))h and ∣D∖H2(D)∣>b|D\setminus H_2(D)|>b with probability 1−o(1)1-o(1).

On this event, choose bb distinct starts ri∈D∖H2(D)r_i\in D\setminus H_2(D) and query ui=π(ri)u_i=\pi(r_i). These uiu_i are distinct and lie outside DD. Three disjoint start sets are now certified: H2(D)H_2(D) passively, {ri}\{r_i\} terminally, and Scoll={ui:π(ui)∈D}S_{\mathrm{coll}}=\{u_i:\pi(u_i)\in D\} nonterminally.

Conditional on (X,P)(X,P), (π(u1),…,π(ub))(\pi(u_1),\ldots,\pi(u_b)) is a uniform ordered sample without replacement from V=[N]∖im⁡(P)V=[N]\setminus\operatorname{im}(P), of size M0=N−∣D∣M_0=N-|D|. The number of targets in DD is K0=∣D∣−H2(D)K_0=|D|-H_2(D), because π\pi bijects H2(D)H_2(D) with D∩im⁡(P)D\cap\operatorname{im}(P). Hence ∣Scoll∣|S_{\mathrm{coll}}| is hypergeometric with mean μcoll=bK0/M0\mu_{\mathrm{coll}}=bK_0/M_0 and variance at most μcoll\mu_{\mathrm{coll}}. On the passive event, μcoll=(1.8+o(1))m2/N=(0.45+o(1))h→∞\mu_{\mathrm{coll}}=(1.8+o(1))m^2/N=(0.45+o(1))h\to\infty. Chebyshev gives ∣Scoll∣≥0.35h|S_{\mathrm{coll}}|\ge0.35h with probability 1−o(1)1-o(1). Combining this with H2(D)≥0.75hH_2(D)\ge0.75h yields H2(D)+b+∣Scoll∣≥m+0.10hH_2(D)+b+|S_{\mathrm{coll}}|\ge m+0.10h certified distinct starts. Outputting any mm of them succeeds.

Remark 5.3 (Open boundary: thin mixed-profile regime). Proposition 5.2 shows that Q(m,b)Q(m,b) need not be the sharp threshold when m−b=o(m)m-b=o(m) and AN≍BNA_N\asymp B_N. Determining the threshold across this boundary remains open.

Finally, a uniform query batch alone can recover iterates when bb is much larger than the output list.

Lemma 5.4 (Query-only kk-walks under a uniform batch). Fix k≥2k\ge2. Let UU be a uniformly random bb-subset independent of π\pi, and let T=Hk(U)T=H_k(U). Set μk(N,b)=N(b)k/(N)k\mu_k(N,b)=N(b)_k/(N)_k and λk(b)=(N−k+1)(b)k/(N)k\lambda_k(b)=(N-k+1)(b)_k/(N)_k. Then for N≥2kN\ge2k and 2k≤b≤N2k\le b\le N,

E[T]=λk(b)+∑ℓ=1k−1(b)ℓ(N)ℓ,Var⁡(Zk(U))≤(4k−2)λk(b)+Bkλk(b)2N,\mathbb{E}[T]=\lambda_k(b)+\sum_{\ell=1}^{k-1}\frac{(b)_\ell}{(N)_\ell},\qquad\operatorname{Var}(Z_k(U))\le(4k-2)\lambda_k(b)+B_k\frac{\lambda_k(b)^2}{N},

and P[T≠Zk(U)]≤(k−1)b/N\mathbb{P}[T\ne Z_k(U)]\le(k-1)b/N. If b=o(N)b=o(N) and μk(N,b)→∞\mu_k(N,b)\to\infty, then T=(1+o(1))μk(N,b)T=(1+o(1))\mu_k(N,b) with probability 1−o(1)1-o(1). In particular, a query-only learner succeeds on CompRel⁡k(N,mN,b)\operatorname{CompRel}_k(N,m_N,b) with probability 1−o(1)1-o(1) whenever b=o(N)b=o(N) and bk/Nk−1≫mNb^k/N^{k-1}\gg m_N.

Proof. Apply Lemma 4.2 to Zk(U)Z_k(U) and Lemma 4.3 to T−Zk(U)T-Z_k(U). Chebyshev concentration then gives Zk(U)=(1+o(1))λk(b)Z_k(U)=(1+o(1))\lambda_k(b), while λk(b)=(1−o(1))μk(N,b)\lambda_k(b)=(1-o(1))\mu_k(N,b) and T=Zk(U)T=Z_k(U) with probability 1−o(1)1-o(1). The final condition implies μk(N,b)=(1−o(1))bk/Nk−1≫mN\mu_k(N,b)=(1-o(1))b^k/N^{k-1}\gg m_N, so selecting any mNm_N revealed starts succeeds.

Related Work and Model Boundary

Our problem combines random passive edges, one nonadaptive query batch, and a growing list of composed iterate certificates. Each neighboring literature differs in at least two of access interface, hidden object, and output objective (Table 1).

Line of workAccess interfaceHidden objectOutput objective
MQ / active learning ([5, 7])examples and membership queriesconcept classlow-risk hypothesis or test
Pointer chasing ([11, 12])multi-party roundssplit functionsone composed pointer
Permutation identification ([1, 4])score, quantum, or cell-probefull π∈SN\pi\in S_Nfull π\pi or a fresh sample
Compositional learning ([17])statistical querieskk hidden permutationscomposed predictor
This paperi.i.d. edges and one batchuniform π∈SN\pi\in S_Nmm distinct-start πk\pi^k pairs

Table 1. Structural comparison with neighboring models. Each adjacent line differs from CompRelk(N,m,b)_k(N,m,b) in at least two of access interface, hidden object, and output objective.

Interactive learning and membership queries. Query-assisted learning separates passive examples from synthesized membership queries across concept classes ([5, 7, 10, 14, 16]). These works evaluate hypothesis risk or testing error. Our hidden object is a single uniform permutation, and success is exact recovery of a list of composed relations rather than learning a predictor.

Pointer chasing and round complexity. Pointer chasing measures communication or rounds for composing functions split among parties ([6, 11, 12, 13, 18]). Our learner sees random edges of one permutation and certifies a growing list of starts. The binding constraint is passive prefix supply and batch collisions, not communication bandwidth.

Hidden permutations and permutation sampling. Full permutation identification has been studied under score queries ([1]), while compressed permutation oracles address quantum predicate search and cycle finding ([4] (Carolan and Majenz 2026)). Other work samples permutations from local randomness or cell probes ([2, 9, 15]). Our learner observes partial edges of an already drawn permutation and recovers only a sublinear list of iterate pairs, not the full permutation or a fresh sample.

Compositional learning and batch adaptivity. Wang et al. [17] study compositions of input and hidden permutations through statistical-query and transformer-learning analyses. Haghtalab et al. [8] characterize sample-adaptivity tradeoffs for on-demand sampling across distributions. Neither model supplies the membership-query list objective or the passive-prefix/collision accounting studied here.

Discussion and Open Problems

The sharp threshold is governed by a two-population supply bottleneck, not by the absence of batch collisions. Retaining CcollC_{\mathrm{coll}} in the deterministic walk-capacity inequality separates the failure of a zero-collision proof from an actual change in sample complexity.

Remark 7.1 (Zero-collision union bound diagnostic). Fix k≥2k \ge2 and positive integer sequences hN≤mN=o(N)h_N \le m_N = o(N), and set bN=mN−hNb_N = m_N - h_N. If Qk−1(N)≥Qk(N)Q_{k-1}(N) \ge Q_k(N), then mNk≥hNk−1Nm_N^k \ge h_N^{k-1}N, hence (hN/mN)k−1≤mN/N=o(1)(h_N/m_N)^{k-1} \le m_N/N = o(1). Since kk is fixed, hN=o(mN)h_N = o(m_N) and

bNQk−1(N)N=(1−o(1))(mNkN)1/(k−1)≥(1−o(1))hN.\frac{b_N Q_{k-1}(N)}{N} = (1-o(1))\left(\frac{m_N^k}{N}\right)^{1/(k-1)} \ge(1-o(1))h_N.

Thus the usual union bound for a collision-free batch fails on the short-prefix branch. This is a failure of that proof technique, not a second phase transition; an arbitrary learner may always submit an empty batch.

Limitations and model boundaries. The results are distributional, information-theoretic, and restricted to fixed depth kk, sublinear lists m=o(N)m = o(N), and one nonadaptive batch. Four concrete extensions remain open.

  1. The thin mixed-profile boundary. When m−b=o(m)m-b = o(m) and AN≲BNA_N \lesssim B_N, Proposition 5.2 shows that nonterminal collisions can beat the naive two-scale value. A complete threshold requires optimizing every decomposition of a walk into passive segments and colliding query edges.

  1. Multi-round query adaptivity. A second batch can query endpoints revealed by the first, so the capacity inequality no longer applies directly. The sharp sample-round tradeoff for r≥2r \ge2 batches remains open.

  1. Critical window, linear lists, and growing depth. The present statements do not resolve q=(1+o(1))Q(N)q = (1+o(1))Q(N), m=Θ(N)m = \Theta(N), or k=k(N)→∞k = k(N) \to\infty. These regimes require concentration bounds with explicit dependence on kk and on the distance to the threshold.

  1. Sampling and computation. A learner-chosen list of valid pairs does not sample the full graph law of πk\pi^k in total variation, and no polynomial-time or statistical-query restriction is imposed. Those objectives require separate lower-bound analyses.

Algebraic Checks, Packing Procedure, and Finite Witness

This appendix supplies the combinatorial lemmas used by the main-body moment bounds, the explicit packing learner, and an exact finite-instance consistency check. Table 2 records the dependency map. All main theorems and propositions are proved in § 4 and § 5.

SubsectionRoleMain-body statements supported
Section A.1Combinatorial ingredientsLemmas 4.2, 4.3 and 5.4
Section A.2Explicit packing procedureTheorems 3.1 and 5.1 and Corollary 3.2 (upper bounds)
Section A.3Exact finite witnessConsistency check of Definition 2.1 at k=3k = 3, m=2m = 2

Table 2. Dependency map for the appendix.

Elementary Combinatorial Lemmas for Prefix Moments

Lemma A.1 (Uniform cycle-length distribution). Fix N≥1N \ge1, r∈[N]r \in[N], and ℓ∈[N]\ell\in[N]. If π∼Unif⁡(SN)\pi\sim\operatorname{Unif}(S_N) and L(r)L(r) is the cycle length containing rr, then P[L(r)=ℓ]=1/N\mathbb{P}[L(r) = \ell] = 1/N.

Proof. The ordered orbit tuple (π(r),…,πℓ−1(r))(\pi(r), \ldots, \pi^{\ell-1}(r)) consists of ℓ−1\ell- 1 distinct points other than rr, followed by a return to rr. There are (N−1)ℓ−1(N - 1)_{\ell-1} choices for that tuple and (N−ℓ)!(N - \ell)! completions on the remaining points. Their product is (N−1)!(N - 1)!, so division by N!N! gives 1/N1/N.

Lemma A.2 (Falling-factorial variance ratio). For every integer a≥1a \ge1, there is a finite Ba>0B_a > 0 such that for all integers N≥2aN \ge2a,

Ra(N):=N2(N−a+1)2(N)a(N−a)a≤1+BaN.(3)R_a(N) := \frac{N^2}{(N-a+1)^2}\frac{(N)_a}{(N-a)_a} \le1 + \frac{B_a}{N}. \tag*{(3)}

Proof. For N≥2aN \ge2a, every denominator in (A.1) is positive. If N≥4a2N \ge4a^2, then N−a−i≥N/2N-a-i \ge N/2 for every 0≤i<a0 \le i < a, so

(N)a(N−a)a=∏i=0a−1(1+aN−a−i)≤(1+2aN)a.\frac{(N)_a}{(N-a)_a} = \prod_{i=0}^{a-1}\left(1+\frac{a}{N-a-i}\right) \le\left(1+\frac{2a}{N}\right)^a.

Set u=2a2/N≤1/2u = 2a^2/N \le1/2. Binomial expansion and (aj)≤aj\binom{a}{j} \le a^j give

(1+2aN)a≤1+∑j=1a(2a2N)j≤1+u1−u≤1+4a2N.\left(1+\frac{2a}{N}\right)^a \le1+\sum_{j=1}^{a}\left(\frac{2a^2}{N}\right)^j \le1+\frac{u}{1-u} \le1+\frac{4a^2}{N}.

Also N/(N−a+1)≤1+2a/NN/(N-a+1) \le1+2a/N, hence its square is at most 1+8a/N1+8a/N. Therefore

Ra(N)≤(1+8a/N)(1+4a2/N)≤1+32a3+4a2+8aN.R_a(N) \le(1+8a/N)(1+4a^2/N) \le1+\frac{32a^3+4a^2+8a}{N}.

For the finitely many integers 2a≤N<4a22a \le N < 4a^2, Ra(N)R_a(N) is finite. Taking BaB_a to be the maximum of 32a3+4a2+8a32a^3+4a^2+8a and max⁡2a≤N<4a2N(Ra(N)−1)\max_{2a\le N<4a^2} N(R_a(N)-1) completes the proof.

Explicit Mixed-Prefix Packing Procedure

Algorithm 1 records the deterministic learner used in the upper bounds.

Algorithm 1: Mixed-Prefix Packing Learner for CompRel⁡k(N,m,b)\operatorname{CompRel}_k(N,m,b)

Input: Depth k≥2k \ge2, domain size N≥m≥1N \ge m \ge1, batch budget b∈Z≥0b \in\mathbb{Z}_{\ge0}, truncation q0∈Z≥0q_0 \in\mathbb{Z}_{\ge0}, and passive stream ((Xi,π(Xi)))i=1q((X_i,\pi(X_i)))_{i=1}^{q} with q≥q0q \ge q_0.

Output: A list L=((R1,C1),…,(Rm,Cm))L=((R_1,C_1),\ldots,(R_m,C_m)).

  1. Set bact←min⁡(m,b)b_{\mathrm{act}} \leftarrow\min(m,b) and h←(m−b)+h \leftarrow(m-b)_+.

  2. Truncate to the first q0q_0 samples; set D←{X1,…,Xq0}D \leftarrow\{X_1,\ldots,X_{q_0}\} and P←π∣DP \leftarrow\pi|_D.

  3. Compute Zk(D)Z_k(D) and Zk−1(D)Z_{k-1}(D) from PP.

  4. if ∣Zk(D)∣≥h|Z_k(D)| \ge h and ∣Zk−1(D)∖Zk(D)∣≥bact|Z_{k-1}(D) \setminus Z_k(D)| \ge b_{\mathrm{act}} then

  5. Choose hh starts Sfree⊆Zk(D)S_{\mathrm{free}} \subseteq Z_k(D) and bactb_{\mathrm{act}} starts Spaid⊆Zk−1(D)∖Zk(D)S_{\mathrm{paid}} \subseteq Z_{k-1}(D) \setminus Z_k(D).

  6. Submit the nonadaptive batch U←{Pk−1(r):r∈Spaid,Pk−1(r)∉D}U \leftarrow\{P^{k-1}(r):r\in S_{\mathrm{paid}}, P^{k-1}(r)\notin D\} and observe π∣U\pi|_U.

  7. Set M←P∪π∣UM \leftarrow P \cup\pi|_U.

  8. for each r∈Sfreer\in S_{\mathrm{free}} do

  9. Append (r,Pk(r))(r,P^k(r)) to LL.

  10. end for

  11. for each r∈Spaidr\in S_{\mathrm{paid}} do

  12. Append (r,M(Pk−1(r)))(r,M(P^{k-1}(r))) to LL.

  13. end for

  14. return LL.

  15. else

  16. Submit the empty batch and return ((1,1),(2,2),…,(m,m))((1,1),(2,2),\ldots,(m,m)).

  17. end if

Proposition A.3 (Deterministic invariants of Algorithm 1). The algorithm submits at most bb queries and outputs mm pairs with distinct starts. Whenever Zk(D)≥hZ_k(D) \ge h and ∣Zk−1(D)∖Zk(D)∣≥bact|Z_{k-1}(D) \setminus Z_k(D)| \ge b_{\mathrm{act}}, it succeeds on CompRel⁡k(N,m,b)\operatorname{CompRel}_k(N,m,b).

Proof. The two selected start sets are disjoint and have total size h+bact=mh+b_{\mathrm{act}}=m. For each paid start, Pk−1(r)=πk−1(r)P^{k-1}(r)=\pi^{k-1}(r) is known and distinct by injectivity, so at most bact≤bb_{\mathrm{act}}\le b queries are used. Free starts satisfy Pk(r)=πk(r)P^k(r)=\pi^k(r), and paid starts satisfy M(Pk−1(r))=πk(r)M(P^{k-1}(r))=\pi^k(r). The fallback list also has mm distinct starts and uses no queries.

Exact Finite Witness (Non-Evidentiary Bookkeeping Diagnostic)

The companion files diagnostics/exact_list_dp.py and diagnostics/results.csv enumerate all permutations and passive input sequences for CompRel⁡3(N,2,b)\operatorname{CompRel}_3(N,2,b) with N∈{4,5,6}N\in\{4,5,6\}, q∈{0,1,2,3}q\in\{0,1,2,3\}, and b∈{0,1}b\in\{0,1\}. The entries below are exact rational Bayes-optimal success probabilities. One passive edge and one blind query induce the same posterior, which explains the repeated entries. These values check the finite objective only; they do not estimate the asymptotic threshold.

NNqqb=0b = 0b=1b = 1Δ\Delta
405/12 (0.4167)13/24 (0.5417)+0.1250
4113/24 (0.5417)7/8 (0.8750)+0.3333
4273/96 (0.7604)31/32 (0.9688)+0.2083
43337/384 (0.8776)127/128 (0.9922)+0.1146
501/4 (0.2500)3/10 (0.3000)+0.0500
513/10 (0.3000)11/20 (0.5500)+0.2500
521/2 (0.5000)71/100 (0.7100)+0.2100
53153/250 (0.6120)431/500 (0.8620)+0.2500
601/5 (0.2000)89/360 (0.2472)+0.0472
6189/360 (0.2472)13/30 (0.4333)+0.1861
62809/2160 (0.3745)299/540 (0.5537)+0.1792
636089/12960 (0.4698)409/540 (0.7574)+0.2876

Table 3. Exact optimal success probabilities for CompRel⁡3(N,2,b)\operatorname{CompRel}_{3}(N, 2, b). Evidence status: exact finite witness, non-evidentiary bookkeeping diagnostic.

References

  1. [1]Peyman Afshani, Manindra Agrawal, Benjamin Doerr, Carola Doerr, Kasper Green Larsen, and Kurt Mehlhorn. The query complexity of finding a hidden permutation. In Space-Efficient Data Structures, Streams, and Algorithms, Lecture Notes in Computer Science, pages 1–11. Springer, 2013. doi: 10.1007/978-3-642-40273-9\__1.
  2. [2]Yaroslav Alekseev, Mika Göös, Konstantin Myasnikov, Artur Riazanov, and Dmitry Sokolov. Sampling permutations with cell probes is hard. In Proceedings of the 58th Annual ACM Symposium on Theory of Computing, pages 234–245, 2026. doi: 10.1145/3798129.3800743.DOI
  3. [4]Joseph Carolan and Christian Majenz. Compressed permutation oracles revisited. arXiv preprint arXiv:2609.28469, 2026.arxiv.org/abs/2609.28469
  4. [5]Ilias Diakonikolas, Daniel M. Kane, and Mingchen Ma. Active learning of general halfspaces: Label queries vs membership queries. In Advances in Neural Information Processing Systems, 2024.arxiv.org/abs/2501.00508
  5. [6]Orr Fischer, Rotem Oshman, Adi Rosén, and Tal Roth. Pointer chasing with unlimited interaction. Theoretical Computer Science, 1083:116134, 2026. doi: 10.1016/j.tcs.2026.116134.DOI
  6. [7]Tom Gur, Mohammad Mahdi Jahanara, Mohammad Mahdi Khodabandeh, Ninad Rajgopal, Bahar Salamatian, and Igor Shinkar. On the power of interactive proofs for learning. In Proceedings of the 56th Annual ACM Symposium on Theory of Computing, 2024. doi: 10.1145/3618260.3649784.DOI
  7. [8]Nika Haghtalab, Omar Montasser, and Mingda Qiao. Sample-adaptivity tradeoff in on-demand sampling. arXiv preprint arXiv:2511.15507, 2025. To appear at NeurIPS 2025.
  8. [9]Haoxiang Huang. Shared randomness and parallel rounds in permutation sampling. arXiv preprint arXiv:2611.01028, 2026.
  9. [10]Jane Lange and Mingda Qiao. Limitations of membership queries in testable learning. In 17th Innovations in Theoretical Computer Science Conference, 2026. doi: 10.4230/LIPIcs.ITCS.2026.91.
  10. [11]Xinyu Mao, Guangxu Yang, and Jiapeng Zhang. Gadgetless lifting beats round elimination: Improved lower bounds for pointer chasing. In 16th Innovations in Theoretical Computer Science Conference, 2025. doi: 10.4230/LIPIcs.ITCS.2025.75.
  11. [12]Noam Nisan and Avi Wigderson. Rounds in communication complexity revisited. In Proceedings of the 23rd Annual ACM Symposium on Theory of Computing, 1991. doi: 10.1145/103418.103463.DOI
  12. [13]Stephen J. Ponzio, Jaikumar Radhakrishnan, and S. Venkatesh. The communication complexity of pointer chasing. Journal of Computer and System Sciences, 62(2):323–355, 2001. doi: 10.1006/JCSS.2000.1731.
  13. [14]Prasad Tadepalli and Stuart Russell. Learning from examples and membership queries with structured determinations. Machine Learning, 31, 1998. doi: 10.1023/A:1007421315813.
  14. [15]Emanuele Viola. Sampling lower bounds: Boolean average-case and permutations. SIAM Journal on Computing, 49(1):119–137, 2020. doi: 10.1137/18M1198405.
  15. [16]Ganghua Wang and Shaddin Dughmi. On the sample complexity of active learning with membership queries. arXiv preprint arXiv:2609.27241, 2026.arxiv.org/abs/2609.27241
  16. [17]Zixuan Wang, Eshaan Nichani, Alberto Bietti, Alex Damian, Daniel Hsu, Jason D. Lee, and Denny Wu. Learning compositional functions with Transformers from easy-to-hard data. In Proceedings of the Conference on Learning Theory, 2025.arxiv.org/abs/2505.23683
  17. [18]Amir Yehudayoff. Pointer chasing via triangular discrimination. Combinatorics, Probability and Computing, 29(4):485–494, 2020. doi: 10.1017/S0963548320000085.DOI

Paper details

vlnc:W_ydxxsv3b
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents