We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c94ad3 commit 2c8f930Copy full SHA for 2c8f930
1 file changed
Mathlib/LinearAlgebra/Matrix/Trace.lean
@@ -264,6 +264,12 @@ theorem trace_mul_single [NonUnitalNonAssocSemiring R] [Fintype m]
264
265
end single
266
267
+theorem trace_surjective [AddCommMonoid R] [Nonempty n] :
268
+ Function.Surjective (trace : Matrix n n R → R) := fun r ↦ by
269
+ classical
270
+ inhabit n
271
+ exact ⟨single default default r, trace_single_eq_same default r⟩
272
+
273
/-- Matrices `A` and `B` are equal iff `(x * A).trace = (x * B).trace` for all `x`. -/
274
theorem ext_iff_trace_mul_left [NonAssocSemiring R] {A B : Matrix m n R} :
275
A = B ↔ ∀ x, (x * A).trace = (x * B).trace := by
0 commit comments