Dimension of the span of transition matrices
ProvedMarkovEntanglement.transitionSpan_finrankStatement
Lemma. Let be the linear span of the transition matrices. Then
Notes
The transition matrices form an affine set, not a subspace — each row must sum to one — so their span is a proper subspace of all matrices, of codimension . A basis is given by the matrices that put a one at and along the diagonal.
The count matters for the entanglement theory: the minimal subspace containing all separable transitions on a product space has dimension , which is how one sees that separable matrices are a thin subset of all joint transitions — most multi-agent systems are entangled.
Search terms: dimension of the space of stochastic matrices, affine span row-stochastic, codimension of transition matrices.
import Mathlib import Definitions.Def_markov_entanglement_multi open scoped BigOperators open MarkovEntanglement
namespace MarkovEntanglement
theorem transitionSpan_finrank (m : ℕ) (hm : 0 < m) :
Module.finrank ℝ (transitionSpan (Fin m)) = m ^ 2 - m + 1 := by
sorry
end MarkovEntanglementRead-back
What the Lean code literally says, in plain math · claude-opus-5
Read-back: transitionSpan_finrank
What the statement literally asserts
For every natural number satisfying , the following holds. Work inside the real vector space of all real matrices whose rows and columns are indexed by (this ambient space has dimension ). Inside it, consider the set
i.e. the set of row-stochastic matrices: every entry is nonnegative and every row sums
to exactly . (This is the expansion of the bundle's IsTransitionMatrix: a
conjunction of entrywise nonnegativity and the row-sum-one condition; no condition is
imposed on columns.) Let
be the linear span of over — the set of all finite -linear combinations of row-stochastic matrices, with arbitrary real coefficients (not the convex hull, and not the affine hull: the coefficients are unconstrained). The theorem asserts the exact equality of natural numbers
where the dimension is the rank of this subspace as a real vector space, and the right-hand side is computed in the natural numbers: the subtraction is truncated (it would return rather than a negative number), and the addition of happens after the subtraction, so the expression is . This is an equality, not an inequality or a bound.
Every variable in the conclusion
- — the only variable occurring in the conclusion. It is constrained by the single hypothesis , i.e. . It is otherwise arbitrary and universally quantified: the claim is made simultaneously for every .
- There are no other explicit or implicit variables. The only implicit data are the standard structures used to index the matrices ( is finite and has decidable equality), which exist canonically and impose no restriction.
- Since , we have , so the truncated subtraction agrees with ordinary integer subtraction and the right-hand side is the ordinary value .
Joint satisfiability of the hypotheses
The hypothesis set consists of the single condition , which is satisfied by every . The hypotheses are therefore satisfiable, and the theorem is not vacuous: it makes an assertion for infinitely many instances.
Degenerate and edge cases
- is excluded. The hypothesis removes it. Had it been admitted, the right-hand side would evaluate to , while the left-hand side is the dimension of a span inside the zero-dimensional space of matrices indexed by the empty set — and the empty index set admits exactly one matrix (the empty one), which does satisfy the row-stochastic conditions vacuously, so the span is the zero subspace of dimension .
- Smallest permitted value . The ambient space is -dimensional. The row-sum condition forces the unique entry to be , so , whose linear span is the whole -dimensional space; its dimension is . The right-hand side evaluates to .
- Next value, for calibration. At the right-hand side is , asserted about a subspace of the -dimensional space of real matrices.
- Dimension conventions. The rank function used returns for a module that is not finitely generated; that convention is never triggered here, since the ambient matrix space is finite-dimensional and so is every subspace of it. Consequently the left-hand side is a genuine dimension for every .
- The set is nonempty for every (the identity matrix and the uniform matrix with all entries both lie in it), so the span is not the zero subspace.
Confirmed by the mission captain (proposal self-audit).