Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Mixed matrix (Eq. 12.7)

Definition
DiscreteConvex_MixedMatrices_IsMixedMatrix

by Shuze Chen · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

algebradiscrete-convex-analysis

A=Q+TA = Q + TA=Q+T (Eq. (12.7)) is a mixed matrix with respect to (K,F)(K,F)(K,F) (KKK a subfield of FFF, realized as an Algebra K F instance): QQQ is a matrix over KKK (axiom (M-Q)) embedded into FFF via the structure map, TTT is a matrix over FFF (axiom (M-T)), and the family of TTT's nonzero entries is algebraically independent over KKK (Mathlib's AlgebraicIndependent, indexed by the subtype of nonzero-entry positions).

Formalization Note. The book's further "usually assume Tij≠0⇒Qij=0T_{ij}\ne 0 \Rightarrow Q_{ij}=0Tij​=0⇒Qij​=0" normalization (stated immediately after Eq. (12.7), for uniqueness of the decomposition) is not part of this predicate: it is a convention for representing a given mixed matrix, not a hypothesis Theorems 12.6-12.9 need for their own truth.

(Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.353-354, Eq. (12.7).)

Definition code
import Mathlib

/-!
Murota, *Discrete Convex Analysis*, SIAM 2003, p.353-354, Eq. (12.7), axioms (M-Q), (M-T): the
definition of a mixed matrix, in `DiscreteConvex.MixedMatrices`.
-/

namespace DiscreteConvex.MixedMatrices

/-- `A = Q + T` (Eq. (12.7)) is a **mixed matrix** with respect to `(K, F)` (`K` a subfield of
`F`, realized as `Algebra K F`): `Q` is a matrix over `K` (axiom (M-Q)) embedded into `F` via the
structure map, `T` is a matrix over `F` (axiom (M-T)), and the family of `T`'s nonzero entries is
algebraically independent over `K`. The "usually assume `Tᵢⱼ ≠ 0 ⟹ Qᵢⱼ = 0`" normalization the
book adds immediately after Eq. (12.7) (for uniqueness of the decomposition `Q + T`) is not part
of this predicate: it is a convention for representing a given mixed matrix, not a hypothesis any
of this chapter's theorems (12.6-12.9) need. -/
def IsMixedMatrix {R C K F : Type*} [Fintype R] [Fintype C] [Field K] [Field F] [Algebra K F]
    (A : Matrix R C F) (Q : Matrix R C K) (T : Matrix R C F) : Prop :=
  (∀ i j, A i j = algebraMap K F (Q i j) + T i j) ∧
  AlgebraicIndependent K (fun e : {p : R × C // T p.1 p.2 ≠ 0} => T e.1.1 e.1.2)

end DiscreteConvex.MixedMatrices
Source
Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.353-354, Eq. (12.7)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me