Correctness of the integer power search #
The integer growth test agrees exactly with squared Euclidean norms after casting to the reals.
The finite-dimensional power-growth theorem therefore guarantees that growingColumn? succeeds
on a symmetric matrix with a sufficiently large signal direction. The selected vector also
inherits the rank-one approximation estimate.
theorem Cslib.Algorithms.PlantedClique.toLp_powerVector {n : ℕ} (M : Matrix (Fin n) (Fin n) ℤ) (s : ℕ) (i : Fin n) :
(WithLp.toLp 2 fun (j : Fin n) => ↑(powerVector M s i j)) = (↑(Matrix.toEuclideanCLM (M.map ⇑(Int.castRingHom ℝ))) ^ s) ((EuclideanSpace.basisFun (Fin n) ℝ) i)
Casting an integer power column agrees with applying the corresponding real linear operator power to a standard-basis vector.
theorem Cslib.Algorithms.PlantedClique.norm_sq_powerVector {n : ℕ} (M : Matrix (Fin n) (Fin n) ℤ) (s : ℕ) (i : Fin n) :
‖(↑(Matrix.toEuclideanCLM (M.map ⇑(Int.castRingHom ℝ))) ^ s) ((EuclideanSpace.basisFun (Fin n) ℝ) i)‖ ^ 2 = ↑(powerVector M s i ⬝ᵥ powerVector M s i)
The squared real Euclidean norm of a power column is its integer squared norm cast to ℝ.
theorem Cslib.Algorithms.PlantedClique.growingColumn?_isSome_of_large_direction {n : ℕ} (M : Matrix (Fin n) (Fin n) ℤ) {k : ℕ} (hk : 0 < k) (hM : (M.map ⇑(Int.castRingHom ℝ)).IsHermitian) {u : EuclideanSpace ℝ (Fin n)} (hu : ‖u‖ = 1) (hgain : 2 * (↑k ^ 2 / 4) ≤ ‖(Matrix.toEuclideanCLM (M.map ⇑(Int.castRingHom ℝ))) u‖ ^ 2) :
A large unit direction in a symmetric integer matrix makes the finite growth search succeed.
theorem Cslib.Algorithms.PlantedClique.recoveredVector_spec {n : ℕ} (M : Matrix (Fin n) (Fin n) ℤ) (k : ℕ) (h : (growingColumn? M k).isSome = true) :
∃ (c : PowerColumn n),
c.steps < n + 1 ∧ recoveredVector M k = powerVector M (c.steps + 1) c.seed ∧ 0 < recoveredVector M k ⬝ᵥ recoveredVector M k ∧ ↑k ^ 2 * powerVector M c.steps c.seed ⬝ᵥ powerVector M c.steps c.seed ≤ 4 * recoveredVector M k ⬝ᵥ recoveredVector M k
A successful search returns a nonzero vector with the stated integer growth bound.