combinat::lyndonWords::fromEvaluation – Lyndon words with prescribed evaluation

The combinatorial class of integral Lyndon words with prescribed evaluation

→ Examples

Superdomain

Dom::BaseDomain

Axioms

Ax::systemRep

Details:

isA – test if an object is a Lyndon word

combinat::lyndonWords::fromEvaluation::isA(any type object, <composition evaluation>)

Returns whether object is a Lyndon word.

If the optional argument is present, returns whether object is a Lyndon word with evaluation evaluation.

count – number of integer Lyndon words with prescribed evaluation

combinat::lyndonWords::fromEvaluation::count(integer list evaluation)

Returns the number of integer Lyndon words with evaluation evaluation.

list – list of the integer Lyndon words with prescribed evaluation

combinat::lyndonWords::fromEvaluation::list(composition evaluation)

Returns the list of the integer Lyndon words with evaluation evaluation.

generator – generator for the integer Lyndon words with prescribed evaluation

combinat::lyndonWords::fromEvaluation::generator(composition evaluation)

Returns a generator for the integer Lyndon words with evaluation evaluation.

Example 1:

There are math Lyndon words with three 1's and three 2's:

combinat::necklaces::fromEvaluation::list([3, 3])

math

On the other hand, [1,1,1] is periodic, so there are no Lyndon word with three 1's:

combinat::lyndonWords::fromEvaluation::list([3])

math

Background:

The generation algorithm for Lyndon words with prescribed evaluation is the same as for necklaces; see combinat::necklaces for details.

Changes in MuPAD 3.1

New Function.