ks2_instance_outer
def
With explicit arguments d : ℕ and p : ℚ × List (ℚ × ℚ), in this order: the d×d complex matrix v v† (type Matrix (Fin d) (Fin d) ℂ), where v = ks2_instance_vector d p; that is Matrix.vecMulVec v (star v), whose (i, j) entry is v_i times the complex conjugate of v_j.
Statement
noncomputable def ks2_instance_outer (d : ℕ) (p : ℚ × List (ℚ × ℚ)) : Matrix (Fin d) (Fin d) ℂ
- Defined in
- arXiv:2611.27740, Problem 1.1: the outer product v v† of an input vector.
- Verified
- 26 Nov 2026
- Axioms
- none listed
- Built on 1
- ks2_instance_vectorWith explicit arguments d : ℕ and p : ℚ × List (ℚ × ℚ), in this order, where p = (t, w): the complex vector Fin d → ℂ whose j-th…
- Used by 5
- 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_yes_instanceWith explicit arguments c : ℝ, α : ℚ, d : ℕ and vs : List (ℚ × List (ℚ × ℚ)), in this order, the proposition that (α, vs) is a valid input…
- 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…
Read back from the Lean
The definition ks2_instance_outer takes a dimension d : ℕ and a pair p : ℚ × List (ℚ × ℚ), and produces the d × d complex matrix (of type Matrix (Fin d) (Fin d) ℂ) formed by the outer product (Matrix.vecMulVec) of ks2_instance_vector d p with its complex conjugate transpose / entrywise conjugate (star (ks2_instance_vector d p)).
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 rank-one term `v v†` of the encoded vector `v`. -/ noncomputable def ks2_instance_outer (d : ℕ) (p : ℚ × List (ℚ × ℚ)) : Matrix (Fin d) (Fin d) ℂ := Matrix.vecMulVec (ks2_instance_vector d p) (star (ks2_instance_vector d p))