Skip to content

Commit c94e5d4

Browse files
committed
feat(Combinatorics/Enumerative/Composition): add lemma about products of embeddings (#37413)
Co-authored-by: Xavier Genereux [xaviergenereux@hotmail.com](mailto:xaviergenereux@hotmail.com)
1 parent efd0084 commit c94e5d4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Mathlib/Combinatorics/Enumerative/Composition.lean

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,11 @@ theorem sigma_eq_iff_blocks_eq {c : Σ n, Composition n} {c' : Σ n, Composition
446446
ext1
447447
exact H
448448

449+
@[to_additive]
450+
lemma prod_prod_apply_embedding {A : Type*} [CommMonoid A] (a : Fin n → A) (x : Composition n) :
451+
∏ i, ∏ j, a (x.embedding i j) = ∏ i, a i := by
452+
simpa [Finset.prod_sigma', Finset.univ_sigma_univ] using x.blocksFinEquiv.prod_comp a
453+
449454
/-! ### The composition `Composition.ones` -/
450455

451456

0 commit comments

Comments
 (0)