AFTD Auto-Formalizing Theoretical Domains

ks2_distinct_outer_language

def

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 matrices ks2_instance_outer d p for p in vs (List.map) has no duplicates (List.Nodup: the rank-one terms v v† of the input vectors are pairwise distinct, i.e. no two input vectors agree up to a unit scalar), and ks2_yes_instance c α d vs holds.

Statement

def ks2_distinct_outer_language (c : ℝ) : Language Bool
Defined in
arXiv:2611.27740, Problem 1.1 with a strengthening of the restriction of Section 4: no two input vectors have the same outer product (the problem only sees the outer products, and v and a unit multiple of v have the same one).
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_outerWith explicit arguments d : ℕ and p : ℚ × List (ℚ × ℚ), in this order: the d×d complex matrix v v† (type Matrix (Fin d) (Fin d) ℂ), where…
  • 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_outer_language c is defined as the formal language (set of boolean lists List Bool) consisting of all words w for which there exist: - a rational number α : ℚ, - a dimension d : ℕ, and - a list of vector specifications vs : List (ℚ × List (ℚ × ℚ)), such that: 1. w is the binary encoding of (α, d, vs) given by ks2_instance_code α d vs; 2. The list of outer product matrices ks2_instance_outer d p for p ∈ vs contains no duplicate elements (List.Nodup); and 3. ks2_yes_instance c α d vs holds.

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 rank-one terms `v v†` are pairwise distinct, as a language of binary words. -/
def ks2_distinct_outer_language (c : ℝ) : Language Bool :=
  {w | ∃ (α : ℚ) (d : ℕ) (vs : List (ℚ × List (ℚ × ℚ))), ks2_instance_code α d vs = w ∧
    (vs.map (ks2_instance_outer d)).Nodup ∧ ks2_yes_instance c α d vs}
See it in the graphDiscuss this resultChallenge it