chore: forward port mathlib#18810, 18798, 18738 (#3443)
algebra.order.sub.defs, data.real.nnreal: leanprover-community/mathlib#18810, which is itself a backport. Also fixes a docstring typo.
linear_algebra.matrix.dot_product: leanprover-community/mathlib#18798
data.matrix.basic: leanprover-community/mathlib#18738