ks2_instance_vector
With explicit arguments d : ℕ and p : ℚ × List (ℚ × ℚ), in this order, where p = (t, w): the complex vector Fin d → ℂ whose j-th coordinate is sqrt(t) * (a_j + b_j * i), where sqrt is the real square root Real.sqrt of t cast to ℝ (so it is 0 when t is negative), and (a_j, b_j) is the entry of the list w at position j (List.getD with default (0, 0), so (0, 0) when w has no entry at position j), the rationals a_j, b_j being cast to ℂ and i being Complex.I.
Statement
noncomputable def ks2_instance_vector (d : ℕ) (p : ℚ × List (ℚ × ℚ)) : Fin d → ℂ
- Defined in
- arXiv:2611.27740, Problem 1.1 (decision version KS_2(c) of the algorithmic Kadison-Singer problem): an input vector. Encoding choice (the paper fixes none): an input vector is given by a pair (t, w), t a rational and w a list of pairs of rationals, and stands for sqrt(t) times the vector with Gaussian-rational coordinates a_j + b_j i; this covers the paper's reduction, whose vectors are sqrt(alpha_r / q_v) times sign vectors.
- Verified
- 26 Nov 2026
- Axioms
- none listed
- Used by 6
- ks2_yes_instance_congr_outerThe yes-instance property depends on the encoded vectors only through their outer products: for all c, α, d and lists vs, vs' of encoded…
- ks2_yes_instanceWith explicit arguments c : ℝ, α : ℚ, d : ℕ and vs : List (ℚ × List (ℚ × ℚ)), in this order, the proposition that (α, vs) is a valid input…
- ks2_distinct_languageWith explicit argument c : ℝ, the language over Bool (Language Bool, a set of words List Bool) of all words w for which there exist α : ℚ,…
- ks2_yes_instance_single_unit_vector_iffSanity check: for every real c, the one-vector instance in dimension 1 with α = 1 whose only vector is (1), encoded as (1, [(1, 0)]), is a…
- ks2_distinct_phase_twistFor every dimension d and every list vs of encoded vectors (entries (t, w) with t rational and w a list of pairs of rationals) all of…
- ks2_instance_outerWith explicit arguments d : ℕ and p : ℚ × List (ℚ × ℚ), in this order: the d×d complex matrix v v† (type Matrix (Fin d) (Fin d) ℂ), where…
Read back from the Lean
A definition that constructs a complex vector Fin d → ℂ from a natural number d : ℕ and a pair p : ℚ × List (ℚ × ℚ). For each index j : Fin d, the j-th component of the vector is given by:
√p.1 * (a + b * I)
where:
- p.1 is cast to ℝ, and Real.sqrt is taken (which yields 0 if p.1 < 0) and cast to ℂ;
- (a, b) is the j-th element of the list p.2 (0-indexed), or (0, 0) if j ≥ p.2.length, with a and b cast from ℚ to ℂ;
- I is the imaginary unit Complex.I.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The vector of `ℂ^d` encoded by `(t, w)`: `sqrt t` times the Gaussian-rational vector `w`. -/ noncomputable def ks2_instance_vector (d : ℕ) (p : ℚ × List (ℚ × ℚ)) : Fin d → ℂ := fun j => ((Real.sqrt (p.1 : ℝ) : ℝ) : ℂ) * ((((p.2.getD j.val (0, 0)).1 : ℚ) : ℂ) + (((p.2.getD j.val (0, 0)).2 : ℚ) : ℂ) * Complex.I)