Unnumbered: Expected LIS of a uniform random permutation
OpenQAlgorithms.Papers.Independent.Extend50.P32.uniformPermutationLISFor an integer , let be uniform over permutations of . Write for its longest increasing subsequence length, equivalently its first RSK row. For the unique permutation and its subsequence are empty.
This isolates the source comparison or construction with all of its domain and occurrence conventions retained.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P32
noncomputable section
open MeasureTheory Filter
open scoped BigOperators ENNReal Matrix ComplexOrder Topology
namespace QAlgorithms.Papers.Independent.Extend50.P32
open QAlgorithms.Papers.Independent.Support50.P38 (wordMass tv)
-- For the density matrices below, the characteristic-polynomial identity
-- preserves all eigenvalues with multiplicity and is equivalent to unitary
-- diagonalization with these real eigenvalues. No accuracy is assumed.
open QAlgorithms.Papers.Independent.Gap20.P17 (HasSpectrum)
/-- Unnumbered main corollary, PDF pp.2-3: uniform-permutation expected LIS.
The paper gives a new proof of the VK85/Pil90 bound; n=0 is included. -/
theorem uniformPermutationLIS (n : ℕ) :
((Fintype.card (Equiv.Perm (Fin n)) : ℝ))⁻¹ *
(∑ pi : Equiv.Perm (Fin n), row (shape (List.ofFn (fun i => pi i))) 0) ≤
2 * Real.sqrt n := by sorry
end QAlgorithms.Papers.Independent.Extend50.P32
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every natural number , consider all permutations of and the word . Starting with no rows, insert its letters successively into the first row by replacing the first strictly larger entry and inserting the displaced entry into the next row by the same rule, or appending and stopping when no strictly larger entry exists. Let be the resulting first-row length, taken as zero if no row exists. Then
For , there is one permutation of the empty set, its word and row collection are empty, and the inequality is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.