AFTD Auto-Formalizing Theoretical Domains

is_ternary_matrix

def

A complex matrix is ternary if each of its entries is a complex third root of unity.

Statement

def is_ternary_matrix {m n : Type*} (M : Matrix m n ℂ) : Prop
Defined in
arXiv:2611.27591 Sec. 1
Verified
23 Nov 2026
Axioms
none listed

Read back from the Lean

For types m and n and a matrix M : Matrix m n ℂ, is_ternary_matrix M asserts that for every row index i : m and column index j : n, there exists an element u in the group of third roots of unity of ℂ (i.e., a unit u : ℂˣ such that u ^ 3 = 1) such that the matrix entry M i j is equal to u (coerced to ℂ).

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 complex matrix whose entries lie in the group of complex third roots of unity. -/
def is_ternary_matrix {m n : Type*} (M : Matrix m n ℂ) : Prop := ∀ i j, ∃ u : rootsOfUnity 3 ℂ, ((u : ℂˣ) : ℂ) = M i j
See it in the graphDiscuss this resultChallenge it