ks2_distinct_language
With explicit argument c : ℝ, the language over Bool (Language Bool, a set of words List Bool) of all words w for which there exist α : ℚ, d : ℕ and vs : List (ℚ × List (ℚ × ℚ)) with ks2_instance_code α d vs = w, such that the list of vectors ks2_instance_vector d p for p in vs (List.map) has no duplicates (List.Nodup: the input vectors are pairwise distinct as elements of ℂ^d), and ks2_yes_instance c α d vs holds.
Statement
def ks2_distinct_language (c : ℝ) : Language Bool- Defined in
- arXiv:2611.27740, Problem 1.1 with the restriction of Section 4 (no multiple copies of the same vector): the set of codes of valid inputs with pairwise distinct vectors that have a signing of operator norm at most c sqrt(alpha).
- Verified
- 26 Nov 2026
- Axioms
- none listed
- Built on 3
- ks2_instance_codeWith explicit arguments α : ℚ, d : ℕ and vs : List (ℚ × List (ℚ × ℚ)), in this order: the Bool word (List Bool) that is the concatenation…
- 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_yes_instanceWith explicit arguments c : ℝ, α : ℚ, d : ℕ and vs : List (ℚ × List (ℚ × ℚ)), in this order, the proposition that (α, vs) is a valid input…
Read back from the Lean
ks2_distinct_language c defines the formal language (set of binary words List Bool) consisting of all words w for which there exist:
- a rational number α,
- a natural number d,
- a list vs of representations of vectors (each element of vs being a pair (p₁, p₂) of a rational scalar p₁ : ℚ and a list of rational pairs p₂ : List (ℚ × ℚ) representing complex coordinates),
such that:
1. w equals the binary encoding ks2_instance_code α d vs,
2. the list of complex vectors in Fin d → ℂ produced by evaluating ks2_instance_vector d on each element of vs has no duplicate elements (List.Nodup),
3. ks2_yes_instance c α d vs holds, which requires:
- 0 < α,
- for every element p ∈ vs, the squared Euclidean norm of its corresponding vector in Fin d → ℂ (i.e., ∑ j : Fin d, ‖v j‖^2) is at most α (viewed in ℝ),
- the sum of the outer products v v* over all elements of vs equals the identity matrix 1 in Matrix (Fin d) (Fin d) ℂ,
- there exists a list of booleans s of length equal to vs.length such that the operator norm (as a Euclidean continuous linear map on ℂ^d) of the signed sum ∑ (b, v), (if b then 1 else -1) • (v v*) 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
/-- Yes-instances of `KS₂(c)` whose input vectors are pairwise distinct, as a language of binary words. -/ def ks2_distinct_language (c : ℝ) : Language Bool := {w | ∃ (α : ℚ) (d : ℕ) (vs : List (ℚ × List (ℚ × ℚ))), ks2_instance_code α d vs = w ∧ (vs.map (ks2_instance_vector d)).Nodup ∧ ks2_yes_instance c α d vs}