Proposition 2.2: RSK sensitivity to one edited letter
OpenQAlgorithms.Papers.Independent.Extend50.P32.rskOneLetterSensitivityLet and let differ in exactly one coordinate. Write and , using weak insertion and zero-padded rows, and let .
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)
/-- Proposition 2.2, PDF p.11: absolute values on BOTH inequalities;
subtraction takes place in the reals. -/
theorem rskOneLetterSensitivity {d n : ℕ} (hd : 0 < d) (w v : Fin n → Fin d)
(hedit : ∃ t, w t ≠ v t ∧ ∀ i, i ≠ t → w i = v i) :
∀ k : Fin d,
|rowPrefix (shape (List.ofFn w)) (k.val + 1) - rowPrefix (shape (List.ofFn v)) (k.val + 1)| ≤ 1 ∧
|row (shape (List.ofFn w)) k.val - row (shape (List.ofFn v)) k.val| ≤ 2 := by sorry
end QAlgorithms.Papers.Independent.Extend50.P32
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let and , and let differ at exactly one position: there is a position with , and for every . Construct each word’s insertion shape by processing letters in order, replacing and bumping the first strictly larger entry into the next row, recursively, or appending when no strictly larger entry exists. Write and for the resulting row lengths, with rows numbered from zero and missing rows assigned length zero. Then, for every ,
Although is quantified over, its required differing position cannot exist.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.