AFTD Auto-Formalizing Theoretical Domains

matrix_blow_up

def

For an explicit field F, implicit natural numbers a and b, an arbitrary finite type ι, a natural number k, and a family of rectangular matrices A : ι → Matrix (Fin a) (Fin b) F, matrix_blow_up F k A is the block matrix in Matrix (Fin a × Fin k) (Fin b × Fin k) over FractionRing (MvPolynomial (ι × Fin k × Fin k) F) given by the sum over i : ι of the Kronecker product of (A i mapped into the fraction ring) and the k × k matrix whose (u, v) entry is the variable MvPolynomial.X (i, u, v).

Statement

noncomputable def matrix_blow_up (F : Type*) [Field F] {a b : ℕ} {ι : Type*} [Fintype ι] (k : ℕ)
    (A : ι → Matrix (Fin a) (Fin b) F) :
    Matrix (Fin a × Fin k) (Fin b × Fin k) (FractionRing (MvPolynomial (ι × Fin k × Fin k) F))
Defined in
arXiv:2611.31963 Section 2.1
Verified
26 Nov 2026
Axioms
none listed

Read back from the Lean

Given a field F, natural numbers a and b, a finite type ι, a natural number k, and an ι-indexed family of a × b matrices A : ι → Matrix (Fin a) (Fin b) F, matrix_blow_up defines the (a * k) × (b * k) matrix (with rows indexed by Fin a × Fin k and columns indexed by Fin b × Fin k) over the fraction ring of the multivariate polynomial ring MvPolynomial (ι × Fin k × Fin k) F. The matrix is defined as the sum over all i : ι of the Kronecker product (A i) ⊗ₖ X_i, where A i has its entries coerced into the fraction ring, and X_i is the k × k matrix whose (u, v) entry is the indeterminate X_{(i, u, v)} coerced into the fraction ring. In other words, its entry at row (r, u) and column (c, v) is ∑ i : ι, (A i)_{r, c} * X_{(i, u, v)}.

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 k-th blow-up of a linear symbolic matrix over the fraction field of polynomials in commuting matrix variables. -/
noncomputable def matrix_blow_up (F : Type*) [Field F] {a b : ℕ} {ι : Type*} [Fintype ι] (k : ℕ)
    (A : ι → Matrix (Fin a) (Fin b) F) :
    Matrix (Fin a × Fin k) (Fin b × Fin k) (FractionRing (MvPolynomial (ι × Fin k × Fin k) F)) := open scoped Kronecker in
  ∑ i : ι, ((A i).map (algebraMap F (FractionRing (MvPolynomial (ι × Fin k × Fin k) F)))) ⊗ₖ
    (fun u v => algebraMap (MvPolynomial (ι × Fin k × Fin k) F) (FractionRing (MvPolynomial (ι × Fin k × Fin k) F))
      (MvPolynomial.X (i, u, v)))
See it in the graphDiscuss this resultChallenge it