AFTD Auto-Formalizing Theoretical Domains

ks2_yes_instance

def

With explicit arguments c : ℝ, α : ℚ, d : ℕ and vs : List (ℚ × List (ℚ × ℚ)), in this order, the proposition that (α, vs) is a valid input of the algorithmic Kadison-Singer problem in dimension d with a signing of discrepancy at most c sqrt(α); it is the conjunction of four conditions: (1) 0 < α; (2) for every entry p of vs, the squared Euclidean norm ∑_j ‖(ks2_instance_vector d p) j‖² (sum over j : Fin d) is at most α (cast to ℝ); (3) the sum of the list of matrices ks2_instance_outer d p, for p in vs (List.map then List.sum), equals the identity matrix 1; (4) there exists a list s of Booleans with s.length = vs.length such that the operator norm of Matrix.toEuclideanCLM (with n := Fin d, 𝕜 := ℂ) applied to the signed sum, namely the List.sum of List.zipWith (fun b p => ε(b) • ks2_instance_outer d p) s vs with ε(b) = 1 in ℂ if b is true and −1 if b is false, is at most c * Real.sqrt α (α cast to ℝ). The norm is the operator norm of continuous linear maps on EuclideanSpace ℂ (Fin d), i.e. the spectral norm of the matrix.

Statement

def ks2_yes_instance (c : ℝ) (α : ℚ) (d : ℕ) (vs : List (ℚ × List (ℚ × ℚ))) : Prop
Defined in
arXiv:2611.27740, Problem 1.1: the promise (norms at most alpha, outer products summing to the identity) together with the property to decide (a signing with operator norm at most c sqrt(alpha)). A signing is a list of signs, one per position of the indexed family.
Verified
26 Nov 2026
Axioms
none listed
Built on 2
  • ks2_instance_vectorWith explicit arguments d : ℕ and p : ℚ × List (ℚ × ℚ), in this order, where p = (t, w): the complex vector Fin d → ℂ whose j-th…
  • 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…
Used by 4
  • ks2_distinct_outer_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_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_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…

Read back from the Lean

Given a real number c, a rational number α, a natural number d, and a list vs of pairs (w, entries) : ℚ × List (ℚ × ℚ), ks2_yes_instance c α d vs asserts that: 1. α > 0; 2. For every pair p ∈ vs, the squared Euclidean norm of the vector v_p = ks2_instance_vector d p (sum over j : Fin d of ‖v_p j‖^2) is at most α (cast to ℝ); 3. The sum of the outer products v_p v_p^* (as d × d complex matrices) over all p ∈ vs is equal to the d × d identity matrix 1; and 4. There exists a list of Booleans s of the same length as vs such that the operator norm (induced Euclidean / spectral norm via Matrix.toEuclideanCLM) of the signed sum of outer products ∑ (b, p) in zip(s, vs), (if b then 1 else -1) • (v_p v_p^*) is at most c * Real.sqrt α.

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

/-- A valid Kadison-Singer input `(α, vs)` in dimension `d` having a signing of spectral norm at most `c √α`. -/
def ks2_yes_instance (c : ℝ) (α : ℚ) (d : ℕ) (vs : List (ℚ × List (ℚ × ℚ))) : Prop :=
  0 < α ∧ (∀ p ∈ vs, ∑ j, ‖ks2_instance_vector d p j‖ ^ 2 ≤ (α : ℝ)) ∧
  (vs.map (ks2_instance_outer d)).sum = 1 ∧
  ∃ s : List Bool, s.length = vs.length ∧
    ‖Matrix.toEuclideanCLM (n := Fin d) (𝕜 := ℂ)
      ((List.zipWith (fun b p => (if b then (1 : ℂ) else -1) • ks2_instance_outer d p) s vs).sum)‖
      ≤ c * Real.sqrt (α : ℝ)
See it in the graphDiscuss this resultChallenge it