AFTD Auto-Formalizing Theoretical Domains

oneProduct

def

The 1-product M₁ ⊗₁ M₂ of two real matrices M₁ and M₂ has columns formed by stacking each column of M₁ on top of each column of M₂.

Statement

def oneProduct {m₁ m₂ n₁ n₂ : Type*} (M₁ : Matrix m₁ n₁ ℝ) (M₂ : Matrix m₂ n₂ ℝ) :
    Matrix (m₁ ⊕ m₂) (n₁ × n₂) ℝ
Defined in
arXiv:2611.33631, Section 2
Verified
29 Nov 2026
Axioms
none listed
Used by 1

Read back from the Lean

Definition of oneProduct: Given types m₁, m₂, n₁, and n₂, and real matrices M₁ : Matrix m₁ n₁ ℝ and M₂ : Matrix m₂ n₂ ℝ, oneProduct M₁ M₂ is the matrix with row indices m₁ ⊕ m₂ (the disjoint union / sum of m₁ and m₂), column indices n₁ × n₂ (the Cartesian product of n₁ and n₂), and real entries, whose entry at row r and column c = (c₁, c₂) is defined by cases on r: - if r = Sum.inl i for i : m₁, the entry is M₁ i c.1; - if r = Sum.inr i for i : m₂, the entry is M₂ i c.2.

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 1-product of two matrices, with columns formed by stacking each column of the first on top of each column of the second. -/
def oneProduct {m₁ m₂ n₁ n₂ : Type*} (M₁ : Matrix m₁ n₁ ℝ) (M₂ : Matrix m₂ n₂ ℝ) :
    Matrix (m₁ ⊕ m₂) (n₁ × n₂) ℝ := fun r c => match r with
  | Sum.inl i => M₁ i c.1
  | Sum.inr i => M₂ i c.2
See it in the graphDiscuss this resultChallenge it