Multi-indices and ordered monomials
Lax825748.Monomials · concepts/Lax825748/Monomials.lean · lax-825748
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
For a multi-index , write and . For an ordered family of noncommutative polynomials, uses that order of multiplication. The empty family has total degree zero, factorial one, and monomial one.
Concept map
Lean source view on GitHub
| 1 | import Lax825748.Series |
| 2 | import Mathlib.Data.Nat.Factorial.Basic |
| 3 | import Mathlib.Algebra.BigOperators.Group.Finset.Basic |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Multi-indices and ordered monomials |
| 8 | type: definition |
| 9 | --- |
| 10 | For a multi-index , write and |
| 11 | . For an ordered family of noncommutative polynomials, |
| 12 | uses that order of multiplication. |
| 13 | The empty family has total degree zero, factorial one, and monomial one. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | namespace Lax825748.Monomials |
| 19 | |
| 20 | open Series |
| 21 | open scoped BigOperators |
| 22 | |
| 23 | def totalDegree {d : ℕ} (I : Fin d → ℕ) : ℕ := ∑ j, I j |
| 24 | |
| 25 | def multiFactorial {d : ℕ} (I : Fin d → ℕ) : ℕ := ∏ j, (I j).factorial |
| 26 | |
| 27 | noncomputable def orderedPowers {X : Type} {d : ℕ} |
| 28 | (P : Fin d → NCPolynomial X) (I : Fin d → ℕ) : NCPolynomial X := |
| 29 | (List.ofFn fun j => P j ^ I j).prod |
| 30 | |
| 31 | end Lax825748.Monomials |
| 32 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments