Multiplication traces from finite reproducing identities #
A finite identity x = ∑ i ∈ s, L (m i * x) • c i expresses every multiplication map
as a sum of rank-one maps. Mathlib's LinearMap.trace_smulRight then identifies its trace
with L applied to the multiplier times the diagonal ∑ i ∈ s, c i * m i.
The algebra may be any finite free commutative algebra; there is no root or separability
hypothesis and no chosen basis in the statement.
Ported from LeanCanny.CountingHierarchy.ReproducingTrace at lean-canny commit
970f28a5ecefc1327402ade16c068aa4b1b2c183. This is the linear-algebra step used by the
pure-power quotient residue trace identity.
theorem Algebra.trace_eq_of_reproducing {S : Type u_1} {A : Type u_2} {κ : Type u_3} [CommRing S] [CommRing A] [Algebra S A] [Module.Free S A] [Module.Finite S A] (L : A →ₗ[S] S) (s : Finset κ) (c m : κ → A) (h : ∀ (x : A), ∑ i ∈ s, L (m i * x) • c i = x) (v : A) :
A finite reproducing identity computes every multiplication trace through its diagonal.