AFTD Auto-Formalizing Theoretical Domains

pos_diag_matrices

def

The set of positive diagonal matrices in ℝ^(n × n), defined as diagonal matrices whose diagonal entries are all strictly positive.

Statement

def pos_diag_matrices (n : ℕ) : Set (Matrix (Fin n) (Fin n) ℝ)
Defined in
arXiv:2611.07815 Section 1.1
Verified
08 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

Given a natural number n, pos_diag_matrices n is defined as the set of all n × n real matrices that can be written as Matrix.diagonal d for some function d : Fin n → ℝ such that 0 < d i for all i : Fin n (that is, the set of diagonal matrices with strictly positive diagonal entries).

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 set of positive diagonal n-by-n real matrices, with strictly positive diagonal entries. -/
def pos_diag_matrices (n : ℕ) : Set (Matrix (Fin n) (Fin n) ℝ) := { Matrix.diagonal d | (d : Fin n → ℝ) (_ : ∀ i, 0 < d i) }
See it in the graphDiscuss this resultChallenge it