ks2_yes_instance_single_unit_vector_iff
Sanity 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 yes-instance ks2_yes_instance c 1 1 [(1, [(1, 0)])] if and only if 1 ≤ c.
Statement
theorem ks2_yes_instance_single_unit_vector_iff (c : ℝ) :
ks2_yes_instance c 1 1 [(1, [(1, 0)])] ↔ 1 ≤ c- Source
- Sanity lemma for the definitions ks2_yes_instance, ks2_instance_vector, ks2_instance_outer, serving OP-2182.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- ks2_yes_instanceWith explicit arguments c : ℝ, α : ℚ, d : ℕ and vs : List (ℚ × List (ℚ × ℚ)), in this order, the proposition that (α, vs) is a valid input…
- 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…
The proof, explained
The Kadison–Singer 2 (KS2) yes-instance condition checks whether an instance of vectors with scaling parameter α admits a sign assignment s ∈ {±1}ⁿ whose signed outer product sum has operator norm at most c * √α. For the single-vector instance (1) in dimension 1 with α = 1, the outer product is the 1 × 1 identity matrix, whose operator norm is 1 under either sign choice. Because all other feasibility and normalization conditions hold trivially, the norm bound simplifies directly to 1 ≤ c, making the equivalence hold.
The single vector of the instance in dimension 1 is the constant function 1 on Fin 1.
In dimension 1, the index type Fin 1 contains only 0. Unfolding the definition of `ks2_instance_vector`, the component at index 0 evaluates to √1 * (1 + 0 * I) = 1.
have hv : ks2_instance_vector 1 (1, [(1, 0)]) = fun _ => 1 := by funext j; fin_cases j; simp [ks2_instance_vector]
The outer product matrix of the instance vector is the 1 × 1 identity matrix.
The outer product `ks2_instance_outer` is v v*. Since v is identically 1 on Fin 1, its single entry (0, 0) is 1 * 1* = 1, which equals the identity matrix.
uses
Matrix.vecMulVec_applyhave ho : ks2_instance_outer 1 (1, [(1, 0)]) = 1 := by ext i j; fin_cases i; fin_cases j; simp [ks2_instance_outer, hv, Matrix.vecMulVec_apply]
For either sign b ∈ Bool, the operator norm of (±1) • I₁ is 1.
The continuous linear map isomorphism allows factoring the scalar out via `map_smul` and `norm_smul`, giving |±1| * ‖I₁‖. Since ‖I₁‖ = 1 by `norm_one`, case analysis on the boolean sign shows the norm is 1 in both cases.
uses
map_smul,map_one,norm_smul,norm_onehave hn : ∀ b : Bool, ‖Matrix.toEuclideanCLM (n := Fin 1) (𝕜 := ℂ) ((if b then (1 : ℂ) else -1) • (1 : Matrix (Fin 1) (Fin 1) ℂ))‖ = 1 := by intro b rw [map_smul, map_one, norm_smul, norm_one] cases b <;> simp
If the instance is a yes-instance, then 1 ≤ c.
Assuming the instance is a yes-instance, there exists a sign list s of length 1, so s = [b]. The signed sum of outer products reduces to the single term (±1) • I₁, whose operator norm is 1, while the right-hand bound c * √1 simplifies to c. The norm inequality immediately yields 1 ≤ c.
uses
List.zipWith_cons_cons,List.zipWith_nil_right,List.sum_cons,List.sum_nil,add_zero,Rat.cast_one,Real.sqrt_one,mul_oneconstructor · rintro ⟨-, -, -, s, hs, h⟩ match s, hs with | [b], _ => simp only [List.zipWith_cons_cons, List.zipWith_nil_right, List.sum_cons, List.sum_nil, add_zero, ho, hn, Rat.cast_one, Real.sqrt_one, mul_one] at h exact h
Conversely, if 1 ≤ c, then the instance is a yes-instance.
Given 1 ≤ c, we choose s = [true] as witness. The parameter α = 1 is strictly positive, the squared vector norm ‖v‖² = 1 is at most α, and the outer product sum is the identity matrix. The operator norm condition reduces to ‖1 • I₁‖ = 1 ≤ c, which matches the assumption.
uses
List.zipWith_cons_cons,List.zipWith_nil_right,List.sum_cons,List.sum_nil,add_zero,Rat.cast_one,Real.sqrt_one,mul_one· intro h refine ⟨by norm_num, by simp [hv], by simp [ho], [true], rfl, ?_⟩ have h1 := hn true simp only [List.zipWith_cons_cons, List.zipWith_nil_right, List.sum_cons, List.sum_nil, add_zero, ho, Rat.cast_one, Real.sqrt_one, mul_one, ↓reduceIte] at h1 ⊢ rw [h1] exact h
Matrix.vecMulVec_apply- The (i, j)-th entry of the outer product of two vectors w and v is w i * v j.
map_smul- A linear map preserves scalar multiplication: f (c • x) = c • f x.
map_one- A unital map preserves the identity: f 1 = 1.
norm_smul- The norm of a scalar multiple is the norm of the scalar times the norm of the element: ‖r • x‖ = ‖r‖ * ‖x‖.
norm_one- The operator norm of the identity map is 1: ‖1‖ = 1.
List.zipWith_cons_cons- Zipping two non-empty lists applies the function to their heads and recurses on their tails.
List.zipWith_nil_right- Zipping any list with an empty list yields the empty list.
List.sum_cons- The sum of a non-empty list a :: l is a + l.sum.
List.sum_nil- The sum of the empty list is 0.
add_zero- Adding zero to any element leaves it unchanged: a + 0 = a.
Rat.cast_one- The rational number 1 cast to a field equals 1.
Real.sqrt_one- The real square root of 1 is 1: √1 = 1.
mul_one- Multiplying an element by 1 on the right leaves it unchanged: a * 1 = a.
- The matrix operator norm is formulated via `Matrix.toEuclideanCLM`, which identifies a complex matrix with the corresponding continuous linear operator on Euclidean space.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem ks2_yes_instance_single_unit_vector_iff (c : ℝ) : ks2_yes_instance c 1 1 [(1, [(1, 0)])] ↔ 1 ≤ c := by have hv : ks2_instance_vector 1 (1, [(1, 0)]) = fun _ => 1 := by funext j; fin_cases j; simp [ks2_instance_vector] have ho : ks2_instance_outer 1 (1, [(1, 0)]) = 1 := by ext i j; fin_cases i; fin_cases j; simp [ks2_instance_outer, hv, Matrix.vecMulVec_apply] have hn : ∀ b : Bool, ‖Matrix.toEuclideanCLM (n := Fin 1) (𝕜 := ℂ) ((if b then (1 : ℂ) else -1) • (1 : Matrix (Fin 1) (Fin 1) ℂ))‖ = 1 := by intro b rw [map_smul, map_one, norm_smul, norm_one] cases b <;> simp constructor · rintro ⟨-, -, -, s, hs, h⟩ match s, hs with | [b], _ => simp only [List.zipWith_cons_cons, List.zipWith_nil_right, List.sum_cons, List.sum_nil, add_zero, ho, hn, Rat.cast_one, Real.sqrt_one, mul_one] at h exact h · intro h refine ⟨by norm_num, by simp [hv], by simp [ho], [true], rfl, ?_⟩ have h1 := hn true simp only [List.zipWith_cons_cons, List.zipWith_nil_right, List.sum_cons, List.sum_nil, add_zero, ho, Rat.cast_one, Real.sqrt_one, mul_one, ↓reduceIte] at h1 ⊢ rw [h1] exact h