Generating key points…
Answers are grounded in this paper and cite their sources.
For every integer \(n≥ 1\) and all integers \(0≤ i,j≤ n/2\), there is an explicit, invertible exchange of the exact left-peak counts of two permutations that leaves their product unchanged. Write \(S_n\) for the permutations of \(1,…,n\), with composition \((πσ)(s)=π(σ(s))\). A left peak of \(w∈ S_n\) is a position \(1≤ p<n\) with \(w(p-1)<w(p)>w(p+1)\), where \(w(0)=0\). For each prescribed product \(τ∈ S_n\), the construction takes a factorisation \(πσ=τ\) with exactly \(i\) left peaks in \(π\) and \(j\) in \(σ\) and returns \(π'σ'=τ\) with exactly \(j\) in \(π'\) and \(i\) in \(σ'\). Siegl's algebraic commutativity theorem implies that the two sets of factorisations have equal size for each \(τ\). The explicit exchange answers the question posed in Problem 6.13. Siegl, §6.4, Theorem 6.10 and Problem 6.13 An enriched sort of capacity \(k≥ 0\) assigns each label an integer rank in \(\{0,…,2k\}\), representing the letters \(0,-1,+1,…,-k,+k\) in that order. Sort by rank, breaking even-rank ties by increasing label and odd-rank ties by decreasing label. The output word \(w\) maps each position to its original label. To encode the assignments giving \(w\), let \(a_p\) be the absolute value of the letter at position \(p\), put \(a_0=0\), and cut at each slot \(e∈\{0,…,n-1\}\) with \(aₑ₊₁>a_e\). Call the set of cuts \(E\). For a nondecreasing sequence \(0≤ a_1≤⋯≤ a_n≤ k\), the condition for realisability is that \(E\) meet \(\{p-1,p\}\) at every left peak \(p\). An initial zero block is increasing. Each positive block decreases to its minimum and then increases, with negative letters before the minimum, positive letters after it and one free sign at it. Record that sign at the cut that starts the block. The enriched sorting, oriented product and cut enumeration come from Petersen's theory. Petersen, Definition 4.1, equation (4.1) and Theorems 3.3, 6.3 and 6.6 The peak slot pairs are disjoint. Form a set \(D⊆ E\) of designated cuts by choosing one per peak pair. If only one slot is cut, designate it and keep its sign as the auxiliary bit. If both are cut, use the sign at the left cut to choose the designation and keep the sign at the right cut as the auxiliary bit. Use bits \(0,1\) for negative and positive signs and for left and right designations, respectively. Outside the peak pairs, designate precisely the cuts with sign bit \(1\), and call this subset \(I\). With \(d\) the number of left peaks, the remaining data are the nonnegative gaps \[g_e=aₑ₊₁-a_e- 1e∈ D(0≤ e<n), g_n=k-a_n, k=d+|I|+∑ₑ₌₀ⁿg_e. \] Here the indicator is \(1\) on \(D\) and \(0\) elsewhere. The designation and auxiliary bit at each peak, the subset \(I\) of unpaired slots and the gaps can be chosen independently. Starting from \(a_0=0\), recover the absolute values by adding \(g_e+ 1e∈ D\) at each edge slot, then recover the signs by the cut rules. To select exactly \(r\) peaks, decorate an assignment with an ordered list of \(k\) nonempty rooted binary trees with distinct left and right child positions, an optional marker tree at each of the \(n+1\) gap slots, and an additional ordered tree list at each of the \(n\) edge slots. Require exactly \(r\) vertices across all trees. The sign is \((-1)^m\), where \(m\) counts marker trees and trees in the additional lists. Allocate the \(k\) trees in order to the peaks, then to \(I\), then to the gap lists of lengths \(g_e\), using increasing order within each group. At a gap slot, transfer its marker to the front of the gap list, or move the first tree of that list into an empty marker position. At an unpaired edge slot, transfer its optional tree to the front of the additional list, or move the first tree of that list into the empty optional position, updating \(I\). At a peak's left or right slot, transfer the corresponding child subtree to the front of the additional list, or move the first tree of that list into the empty child position. Use the first available transfer, scanning gap slots before edge slots and increasing indices within each group. Re-encode the assignment with the updated gaps and \(I\), retaining the two peak bits. This switch preserves the permutation and the vertex total and reverses the sign. When no transfer is available, the trees consist of a single vertex at each peak, with all other positions and lists empty. These positive fixed decorations therefore represent exactly the permutations with \(r\) left peaks, with two freely chosen bits per peak. To connect the two orders of the counts, use a first sort \(α\) of capacity \(k\) with integer rank \(a(x)\) on label \(x\), and a second sort of capacity \(l\) with rank \(b(s)\) on intermediate position \(s\). For each label compute \[u(x)=b(α⁻¹(x)), c(x)=(2k+1)u(x)+ {cases} a(x),&u(x) even,\\ 2k-a(x),&u(x) odd. {cases} \] Sorting by \(c\) with the same parity rule gives the composed permutation. The odd blocks reverse the first sort, as required by the odd-rank tie rule of the second sort. To exchange the capacities, divide each unchanged \(c(x)\) by \(2l+1\). The quotient is the new second rank on label \(x\). The remainder is the new first rank when the quotient is even, and \(2l\) minus the remainder is the new first rank when it is odd. Move each new second rank to the position of its label in the new first sort. Swap the two lists of capacity trees and their respective marker and edge-list annotations intact. The decorated degrees exchange, the pair sign stays the same and its product is still the word sorted by \(c\). Splitting again in the original radix inverts the operation. For an input factorisation, set \(τ=πσ\) and start with positive fixed decorations of degrees \(i,j\). Alternate the capacity exchange with the switch on the current side, switching the first factor if possible and the second otherwise. Stop at the next pair fixed in both factors. The signed path gives a finite bijection to the positive fixed pairs of degrees \(j,i\) within the same product \(τ\), and the reverse path gives its inverse. This applies the signed-path principle of Garsia and Milne. Garsia and Milne, Method for constructing bijections for classical partition identities The resulting map still carries \(2(i+j)\) bits on each side. Order them by factor, then by increasing peak position, taking the designation bit before the auxiliary bit. Remove the last bit repeatedly. For each removal, write the current map as \(F:A×\{0,1\}→ B×\{0,1\}\), where \(A\) and \(B\) retain all earlier bits. Draw one edge from \(a\) to \(b\) for each \(F(a,ε)=(b,δ)\), labelling its ends with the local bits \(ε\) and \(δ\). Every vertex has degree two, so its component is an even cycle, allowing a pair of parallel edges. At the least left vertex in lexicographic order on the pair of permutation words and the retained bit word, select the edge with local bit \(0\). Take every other edge around the cycle starting with that edge to obtain the matching. Its partner gives the map after one bit removal, in either direction. Each cycle can be traced from the input using \(F\) and \(F⁻¹\). After all removals the output is an ordinary factorisation of the prescribed \(τ\), with the two exact peak counts exchanged. Empty sets of factorisations carry the empty bijection. The construction guarantees finite termination, with no polynomial running-time bound.
No takes yet. Share an insight, caveat, or question.
Zixuan He (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: