Lemmas on integer matrices #
Here we collect some results about matrices over ℚ
and ℤ
.
Main definitions and results #
Matrix.num
,Matrix.den
: express a rational matrixA
as the quotient of an integer matrix by a (non-zero) natural.
TODO #
Consider generalizing these constructions to matrices over localizations of rings (or semirings).
Casts #
These results are useful shortcuts because the canonical casting maps out of ℕ
, ℤ
, and ℚ
to
suitable types are bare functions, not ring homs, so we cannot apply Matrix.map_mul
directly to
them.
Denominator of a rational matrix #
Compatibility with map
#
Casts from scalar types #
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]