AFTD Auto-Formalizing Theoretical Domains

blow_up_rank

def

For an explicit field F, implicit dimensions a and b, an arbitrary finite indexing type ι, a positive integer k, and a family of rectangular matrices A : ι → Matrix (Fin a) (Fin b) F, blow_up_rank F k A is the rank of the matrix sum over i in ι of Matrix.kronecker (A i mapped into the fraction field of MvPolynomial (ι × Fin k × Fin k) F) and the k × k matrix whose (p, q)-th entry is the variable (i, p, q).

Statement

noncomputable def blow_up_rank (F : Type) [Field F] {a b : ℕ} {ι : Type} [Fintype ι] (k : ℕ)
    (A : ι → Matrix (Fin a) (Fin b) F) : ℕ
Defined in
scout/2611-31963-blow-up-size-for-the-noncommutative-rank-of-linear-symbolic.md:278
Verified
28 Nov 2026
Axioms
none listed

Read back from the Lean

Definition blow_up_rank: Given a field F, implicit natural numbers a and b, an implicit finite index type ι, a natural number k, and an ι-indexed family of a × b matrices A : ι → Matrix (Fin a) (Fin b) F, blow_up_rank F k A is the natural number defined as the matrix rank (over the fraction field $K = \mathrm{FractionRing}(F[\iota \times \mathrm{Fin}\;k \times \mathrm{Fin}\;k])$) of the sum over all $i \in \iota$ of the Kronecker product of: 1. $A_i$, mapped into $K$ via the canonical algebra map $F \to K$, and 2. the $k \times k$ matrix whose $(p, q)$-entry (for $p, q \in \mathrm{Fin}\;k$) is the indeterminate variable $X_{(i, p, q)}$ mapped into $K$.

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 rank of the k-th blow-up sum of A_i ⊗ X_i over the rational function field in the matrix entries. -/
noncomputable def blow_up_rank (F : Type) [Field F] {a b : ℕ} {ι : Type} [Fintype ι] (k : ℕ)
    (A : ι → Matrix (Fin a) (Fin b) F) : ℕ := Matrix.rank (∑ i : ι,
    Matrix.kronecker
      ((A i).map (algebraMap F (FractionRing (MvPolynomial (ι × Fin k × Fin k) F))))
      (fun p q => algebraMap (MvPolynomial (ι × Fin k × Fin k) F)
        (FractionRing (MvPolynomial (ι × Fin k × Fin k) F)) (MvPolynomial.X (i, p, q))))
See it in the graphDiscuss this resultChallenge it