HasNonnegFactorization
def
A real matrix M has a nonnegative factorization of size r if M = A * B for nonnegative matrices A and B with inner dimension r.
Statement
def HasNonnegFactorization {m n : Type*} (M : Matrix m n ℝ) (r : ℕ) : Prop
- Defined in
- arXiv:2611.33631, Section 2
- Verified
- 29 Nov 2026
- Axioms
- none listed
- Used by 1
- six_cycle_slack_nonneg_rank_boundsThe 24 × 39 six-cycle slack block matrix six_cycle_slack_matrix satisfies HasNonnegFactorization six_cycle_slack_matrix 14, and its…
Read back from the Lean
For types m and n, a real matrix M : Matrix m n ℝ, and a natural number r, HasNonnegFactorization M r asserts that there exist matrices A : Matrix m (Fin r) ℝ and B : Matrix (Fin r) n ℝ such that:
1. Every entry of A is non-negative: ∀ i : m, ∀ k : Fin r, 0 ≤ A i k.
2. Every entry of B is non-negative: ∀ k : Fin r, ∀ j : n, 0 ≤ B k j.
3. M is the matrix product of A and B (M = A * B, i.e., for all i : m and j : n, M i j = ∑ k : Fin r, A i k * B k j).
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
/-- A matrix has a nonnegative factorization of size r if it factors as A * B with entrywise nonnegative A and B. -/ def HasNonnegFactorization {m n : Type*} (M : Matrix m n ℝ) (r : ℕ) : Prop := ∃ (A : Matrix m (Fin r) ℝ) (B : Matrix (Fin r) n ℝ), (∀ i k, 0 ≤ A i k) ∧ (∀ k j, 0 ≤ B k j) ∧ M = A * B