AFTD Auto-Formalizing Theoretical Domains

is_real_bapat_sunder_counterexample

def

A real square matrix A of size (n+1) x (n+1) is a positive semidefinite counterexample to the Bapat-Sunder eigenvalue conjecture if A is positive semidefinite and there exists a vector x : Fin (n + 1) → ℝ such that dotProduct x (Matrix.mulVec (bapat_sunder_matrix A) x) > A.permanent * dotProduct x x.

Statement

def is_real_bapat_sunder_counterexample {n : ℕ}
    (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℝ) : Prop
Defined in
arXiv:2611.23269, Theorem 1 and Section 1
Verified
19 Nov 2026
Axioms
none listed
Built on 1
  • bapat_sunder_matrixFor any commutative semiring R, any natural number n, and any square matrix A of size (n+1) x (n+1) over R, the Bapat-Sunder matrix of A…
Used by 2

Read back from the Lean

For a given natural number $n$ and an $(n+1) \times (n+1)$ real matrix $A$, the predicate is_real_bapat_sunder_counterexample A asserts that: 1. $A$ is positive semidefinite (A.PosSemidef), and 2. There exists a vector $x : \text{Fin}(n + 1) \to \mathbb{R}$ such that the quadratic form $x^T B x$ is strictly greater than $\operatorname{permanent}(A) \cdot (x^T x)$ (that is, dotProduct x (Matrix.mulVec B x) > A.permanent * dotProduct x x), where $B$ is the $(n+1) \times (n+1)$ matrix whose $(i, j)$-th entry is $A_{i, j} \cdot \operatorname{permanent}(A_{\backslash \{i\}, \backslash \{j\}})$, with $A_{\backslash \{i\}, \backslash \{j\}}$ being the $n \times n$ submatrix obtained by deleting row $i$ and column $j$ (A.submatrix i.succAbove j.succAbove).

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

/-- Predicate asserting that a real matrix is a positive semidefinite counterexample to the Bapat-Sunder eigenvalue conjecture. -/
def is_real_bapat_sunder_counterexample {n : ℕ}
    (A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℝ) : Prop := A.PosSemidef ∧ ∃ x : Fin (n + 1) → ℝ,
    dotProduct x (Matrix.mulVec (bapat_sunder_matrix A) x) > A.permanent * dotProduct x x
See it in the graphDiscuss this resultChallenge it