94
Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute of Mathematics, Reykjav´ ık University, IS-103 Reykjav´ ık, Iceland, [email protected] Jeffrey Liese Department of Mathematics, UCSD, La Jolla, CA 92093-0112. USA, [email protected] Jeffrey Remmel Department of Mathematics, UCSD, La Jolla, CA 92093-0112. USA, [email protected] Bruce E. Sagan Department of Mathematics, Michigan State University East Lansing, MI 48824-1027, [email protected] www.math.msu.edu/ ˜ sagan

Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Embed Size (px)

Citation preview

Page 1: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Rationality, irrationality, and Wilf equivalencein generalized factor order

Sergey KitaevInstitute of Mathematics, Reykjavık University,

IS-103 Reykjavık, Iceland, [email protected]

Jeffrey LieseDepartment of Mathematics, UCSD,

La Jolla, CA 92093-0112. USA, [email protected]

Jeffrey RemmelDepartment of Mathematics, UCSD,

La Jolla, CA 92093-0112. USA, [email protected]

Bruce E. SaganDepartment of Mathematics, Michigan State UniversityEast Lansing, MI 48824-1027, [email protected]

www.math.msu.edu/˜sagan

July 14, 2009

Page 2: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute
Page 3: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Outline

Page 4: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w . Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset. Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain. If P = P then factor order is an order oncompositions.

Page 5: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .

Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w . Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset. Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain. If P = P then factor order is an order oncompositions.

Page 6: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w . Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset. Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain. If P = P then factor order is an order oncompositions.

Page 7: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w . Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset. Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain. If P = P then factor order is an order oncompositions.

Page 8: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w .

Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset. Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain. If P = P then factor order is an order oncompositions.

Page 9: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w . Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset. Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain. If P = P then factor order is an order oncompositions.

Page 10: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w . Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset.

Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain. If P = P then factor order is an order oncompositions.

Page 11: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w . Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset. Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain. If P = P then factor order is an order oncompositions.

Page 12: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w . Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset. Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain. If P = P then factor order is an order oncompositions.

Page 13: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w . Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset. Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain.

If P = P then factor order is an order oncompositions.

Page 14: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Let P be a set and consider the corresponding free monoid

P∗ = w = w1w2 . . .wk : k ≥ 0 and wi ∈ P for all i.

Let ε be the empty word and let |w | denote the length of w .Word w ′ is a factor of w if there are words u, v with w = uw ′v .

Example. w’=322 is a factor of w = 13213221.

Factor order is the partial order on P∗ where w ′ ≤ w iff w ′ is afactor of w . Bjorner found the Mobius function of factor order.

Now let (P,≤P) be a poset. Generalized factor order on P∗ is:u ≤ w if there is a factor w ′ of w with |u| = |w ′| and

u1 ≤P w ′1, . . . , uk ≤P w ′k where k = |u|.

Example. If P is the positive integers then in P∗ we have324 ≤ 216541.

Note that generalized factor order becomes factor order if P isan antichain. If P = P then factor order is an order oncompositions.

Page 15: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Consider the algebra of formal power series with integercoefficients and the elements of P as noncommuting variables:

Z〈〈P〉〉 =

f =

∑w∈P∗

cww : cw ∈ Z for all w

.

If f ∈ Z〈〈P〉〉 has no constant term, i.e., cε = 0, then define

f ∗ = ε+ f + f 2 + f 3 + · · · = (ε− f )−1.

Then f is rational if it can be constructed from finitely manyelements of P using the algebra and star operations.A language is any L ⊆ P∗. It has an associated generatingfunction fL =

∑w∈Lw . The language L is regular if P is finite

and fL is rational.Associated with u ∈ P∗ is

F(u) = w : w ≥ u and F (u) =∑w≥u

w .

TheoremIf P is a finite poset and u ∈ P∗ then F (u) is rational.

Page 16: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Consider the algebra of formal power series with integercoefficients and the elements of P as noncommuting variables:

Z〈〈P〉〉 =

f =

∑w∈P∗

cww : cw ∈ Z for all w

.

If f ∈ Z〈〈P〉〉 has no constant term, i.e., cε = 0, then define

f ∗ = ε+ f + f 2 + f 3 + · · ·

= (ε− f )−1.

Then f is rational if it can be constructed from finitely manyelements of P using the algebra and star operations.A language is any L ⊆ P∗. It has an associated generatingfunction fL =

∑w∈Lw . The language L is regular if P is finite

and fL is rational.Associated with u ∈ P∗ is

F(u) = w : w ≥ u and F (u) =∑w≥u

w .

TheoremIf P is a finite poset and u ∈ P∗ then F (u) is rational.

Page 17: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Consider the algebra of formal power series with integercoefficients and the elements of P as noncommuting variables:

Z〈〈P〉〉 =

f =

∑w∈P∗

cww : cw ∈ Z for all w

.

If f ∈ Z〈〈P〉〉 has no constant term, i.e., cε = 0, then define

f ∗ = ε+ f + f 2 + f 3 + · · · = (ε− f )−1.

Then f is rational if it can be constructed from finitely manyelements of P using the algebra and star operations.A language is any L ⊆ P∗. It has an associated generatingfunction fL =

∑w∈Lw . The language L is regular if P is finite

and fL is rational.Associated with u ∈ P∗ is

F(u) = w : w ≥ u and F (u) =∑w≥u

w .

TheoremIf P is a finite poset and u ∈ P∗ then F (u) is rational.

Page 18: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Consider the algebra of formal power series with integercoefficients and the elements of P as noncommuting variables:

Z〈〈P〉〉 =

f =

∑w∈P∗

cww : cw ∈ Z for all w

.

If f ∈ Z〈〈P〉〉 has no constant term, i.e., cε = 0, then define

f ∗ = ε+ f + f 2 + f 3 + · · · = (ε− f )−1.

Then f is rational if it can be constructed from finitely manyelements of P using the algebra and star operations.

A language is any L ⊆ P∗. It has an associated generatingfunction fL =

∑w∈Lw . The language L is regular if P is finite

and fL is rational.Associated with u ∈ P∗ is

F(u) = w : w ≥ u and F (u) =∑w≥u

w .

TheoremIf P is a finite poset and u ∈ P∗ then F (u) is rational.

Page 19: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Consider the algebra of formal power series with integercoefficients and the elements of P as noncommuting variables:

Z〈〈P〉〉 =

f =

∑w∈P∗

cww : cw ∈ Z for all w

.

If f ∈ Z〈〈P〉〉 has no constant term, i.e., cε = 0, then define

f ∗ = ε+ f + f 2 + f 3 + · · · = (ε− f )−1.

Then f is rational if it can be constructed from finitely manyelements of P using the algebra and star operations.A language is any L ⊆ P∗.

It has an associated generatingfunction fL =

∑w∈Lw . The language L is regular if P is finite

and fL is rational.Associated with u ∈ P∗ is

F(u) = w : w ≥ u and F (u) =∑w≥u

w .

TheoremIf P is a finite poset and u ∈ P∗ then F (u) is rational.

Page 20: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Consider the algebra of formal power series with integercoefficients and the elements of P as noncommuting variables:

Z〈〈P〉〉 =

f =

∑w∈P∗

cww : cw ∈ Z for all w

.

If f ∈ Z〈〈P〉〉 has no constant term, i.e., cε = 0, then define

f ∗ = ε+ f + f 2 + f 3 + · · · = (ε− f )−1.

Then f is rational if it can be constructed from finitely manyelements of P using the algebra and star operations.A language is any L ⊆ P∗. It has an associated generatingfunction fL =

∑w∈Lw .

The language L is regular if P is finiteand fL is rational.Associated with u ∈ P∗ is

F(u) = w : w ≥ u and F (u) =∑w≥u

w .

TheoremIf P is a finite poset and u ∈ P∗ then F (u) is rational.

Page 21: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Consider the algebra of formal power series with integercoefficients and the elements of P as noncommuting variables:

Z〈〈P〉〉 =

f =

∑w∈P∗

cww : cw ∈ Z for all w

.

If f ∈ Z〈〈P〉〉 has no constant term, i.e., cε = 0, then define

f ∗ = ε+ f + f 2 + f 3 + · · · = (ε− f )−1.

Then f is rational if it can be constructed from finitely manyelements of P using the algebra and star operations.A language is any L ⊆ P∗. It has an associated generatingfunction fL =

∑w∈Lw . The language L is regular if P is finite

and fL is rational.

Associated with u ∈ P∗ is

F(u) = w : w ≥ u and F (u) =∑w≥u

w .

TheoremIf P is a finite poset and u ∈ P∗ then F (u) is rational.

Page 22: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Consider the algebra of formal power series with integercoefficients and the elements of P as noncommuting variables:

Z〈〈P〉〉 =

f =

∑w∈P∗

cww : cw ∈ Z for all w

.

If f ∈ Z〈〈P〉〉 has no constant term, i.e., cε = 0, then define

f ∗ = ε+ f + f 2 + f 3 + · · · = (ε− f )−1.

Then f is rational if it can be constructed from finitely manyelements of P using the algebra and star operations.A language is any L ⊆ P∗. It has an associated generatingfunction fL =

∑w∈Lw . The language L is regular if P is finite

and fL is rational.Associated with u ∈ P∗ is

F(u) = w : w ≥ u and F (u) =∑w≥u

w .

TheoremIf P is a finite poset and u ∈ P∗ then F (u) is rational.

Page 23: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Consider the algebra of formal power series with integercoefficients and the elements of P as noncommuting variables:

Z〈〈P〉〉 =

f =

∑w∈P∗

cww : cw ∈ Z for all w

.

If f ∈ Z〈〈P〉〉 has no constant term, i.e., cε = 0, then define

f ∗ = ε+ f + f 2 + f 3 + · · · = (ε− f )−1.

Then f is rational if it can be constructed from finitely manyelements of P using the algebra and star operations.A language is any L ⊆ P∗. It has an associated generatingfunction fL =

∑w∈Lw . The language L is regular if P is finite

and fL is rational.Associated with u ∈ P∗ is

F(u) = w : w ≥ u and F (u) =∑w≥u

w .

TheoremIf P is a finite poset and u ∈ P∗ then F (u) is rational.

Page 24: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Outline

Page 25: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A nondeterministic finite automaton (NFA) over P is a digraph∆ with vertices V and arcs ~E such that

1. the elements of V are called states and |V | is finite,

2. there is an initial state α and a set Ω of final states,3. each arc of ~E is labeled with an element of P.

Given a (directed) path in ∆ starting at α we construct a word inP∗ by concatenating the elements on the arcs along the path inthe order in which they are encountered. The languageaccepted by ∆, L(∆), is the set of all such words which areassociated with a path ending in a final state.

TheoremSuppose |P| is finite. Then a language L ⊆ P∗ is regular iffL = L(∆) for some NFA ∆.

Page 26: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A nondeterministic finite automaton (NFA) over P is a digraph∆ with vertices V and arcs ~E such that

1. the elements of V are called states and |V | is finite,2. there is an initial state α and a set Ω of final states,

3. each arc of ~E is labeled with an element of P.

Given a (directed) path in ∆ starting at α we construct a word inP∗ by concatenating the elements on the arcs along the path inthe order in which they are encountered. The languageaccepted by ∆, L(∆), is the set of all such words which areassociated with a path ending in a final state.

TheoremSuppose |P| is finite. Then a language L ⊆ P∗ is regular iffL = L(∆) for some NFA ∆.

Page 27: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A nondeterministic finite automaton (NFA) over P is a digraph∆ with vertices V and arcs ~E such that

1. the elements of V are called states and |V | is finite,2. there is an initial state α and a set Ω of final states,3. each arc of ~E is labeled with an element of P.

Given a (directed) path in ∆ starting at α we construct a word inP∗ by concatenating the elements on the arcs along the path inthe order in which they are encountered. The languageaccepted by ∆, L(∆), is the set of all such words which areassociated with a path ending in a final state.

TheoremSuppose |P| is finite. Then a language L ⊆ P∗ is regular iffL = L(∆) for some NFA ∆.

Page 28: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A nondeterministic finite automaton (NFA) over P is a digraph∆ with vertices V and arcs ~E such that

1. the elements of V are called states and |V | is finite,2. there is an initial state α and a set Ω of final states,3. each arc of ~E is labeled with an element of P.

Given a (directed) path in ∆ starting at α we construct a word inP∗ by concatenating the elements on the arcs along the path inthe order in which they are encountered.

The languageaccepted by ∆, L(∆), is the set of all such words which areassociated with a path ending in a final state.

TheoremSuppose |P| is finite. Then a language L ⊆ P∗ is regular iffL = L(∆) for some NFA ∆.

Page 29: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A nondeterministic finite automaton (NFA) over P is a digraph∆ with vertices V and arcs ~E such that

1. the elements of V are called states and |V | is finite,2. there is an initial state α and a set Ω of final states,3. each arc of ~E is labeled with an element of P.

Given a (directed) path in ∆ starting at α we construct a word inP∗ by concatenating the elements on the arcs along the path inthe order in which they are encountered. The languageaccepted by ∆, L(∆), is the set of all such words which areassociated with a path ending in a final state.

TheoremSuppose |P| is finite. Then a language L ⊆ P∗ is regular iffL = L(∆) for some NFA ∆.

Page 30: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A nondeterministic finite automaton (NFA) over P is a digraph∆ with vertices V and arcs ~E such that

1. the elements of V are called states and |V | is finite,2. there is an initial state α and a set Ω of final states,3. each arc of ~E is labeled with an element of P.

Given a (directed) path in ∆ starting at α we construct a word inP∗ by concatenating the elements on the arcs along the path inthe order in which they are encountered. The languageaccepted by ∆, L(∆), is the set of all such words which areassociated with a path ending in a final state.

TheoremSuppose |P| is finite. Then a language L ⊆ P∗ is regular iffL = L(∆) for some NFA ∆.

Page 31: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.

The states of ∆(u) are labeled 0,1, . . . , k = |u|. The initial stateis α = 0 and the final state is ω = k . There are loops at 0 and kfor every a ∈ P. The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui . It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745. A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels. Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 32: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.The states of ∆(u) are labeled 0,1, . . . , k = |u|.

The initial stateis α = 0 and the final state is ω = k . There are loops at 0 and kfor every a ∈ P. The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui . It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745. A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels. Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 33: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.The states of ∆(u) are labeled 0,1, . . . , k = |u|. The initial stateis α = 0 and the final state is ω = k .

There are loops at 0 and kfor every a ∈ P. The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui . It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745. A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels. Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 34: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.The states of ∆(u) are labeled 0,1, . . . , k = |u|. The initial stateis α = 0 and the final state is ω = k . There are loops at 0 and kfor every a ∈ P.

The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui . It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745. A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels. Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 35: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.The states of ∆(u) are labeled 0,1, . . . , k = |u|. The initial stateis α = 0 and the final state is ω = k . There are loops at 0 and kfor every a ∈ P. The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui .

It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745. A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels. Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 36: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.The states of ∆(u) are labeled 0,1, . . . , k = |u|. The initial stateis α = 0 and the final state is ω = k . There are loops at 0 and kfor every a ∈ P. The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui . It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745. A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels. Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 37: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.The states of ∆(u) are labeled 0,1, . . . , k = |u|. The initial stateis α = 0 and the final state is ω = k . There are loops at 0 and kfor every a ∈ P. The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui . It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745.

A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels. Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 38: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.The states of ∆(u) are labeled 0,1, . . . , k = |u|. The initial stateis α = 0 and the final state is ω = k . There are loops at 0 and kfor every a ∈ P. The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui . It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745. A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels.

Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 39: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.The states of ∆(u) are labeled 0,1, . . . , k = |u|. The initial stateis α = 0 and the final state is ω = k . There are loops at 0 and kfor every a ∈ P. The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui . It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745. A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels. Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 40: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.The states of ∆(u) are labeled 0,1, . . . , k = |u|. The initial stateis α = 0 and the final state is ω = k . There are loops at 0 and kfor every a ∈ P. The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui . It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745. A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels. Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 41: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

A NFA ∆(u) for F(u), u ∈ P∗.The states of ∆(u) are labeled 0,1, . . . , k = |u|. The initial stateis α = 0 and the final state is ω = k . There are loops at 0 and kfor every a ∈ P. The only other arcs are from state i − 1 to statei , 1 ≤ i ≤ k , and are labeled by the a ∈ P such that a ≥ ui . It iseasy to check that this NFA accepts F(u).

Example. Consider P = P and u = 745. A set of labeled arcsfrom one node to another will be displayed as a single arclabeled with the set of all such labels. Let[m,∞) = n ∈ Z : n ≥ m.

@[1,∞)

α

0 -[7,∞)

1 -[4,∞)

2 -[5,∞)

3

ω

@I

[1,∞)

So 745 ≤ 968864 corresponding to the NFA path

0906081826343.

Page 42: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Outline

Page 43: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

If P = P and u ∈ P∗ then one can define the followinggenerating function which is a specialization of F (u):

F (u; t , x) =∑w≥u

t |u|xP

i wi .

Even though P is not finite, one can use NFAs and the transfermatrix method to prove the following.

TheoremFor all u ∈ P∗ we have F (u; t , x) is rational.Call words u, v Wilf equivalent , u ∼ v , if F (u; t , x) = F (v ; t , x).If u = u1u2 . . . uk then let

ur = uk . . . u2u1 and u+ = (u1 + 1)(u2 + 1) . . . (uk + 1).

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Page 44: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

If P = P and u ∈ P∗ then one can define the followinggenerating function which is a specialization of F (u):

F (u; t , x) =∑w≥u

t |u|xP

i wi .

Even though P is not finite, one can use NFAs and the transfermatrix method to prove the following.

TheoremFor all u ∈ P∗ we have F (u; t , x) is rational.

Call words u, v Wilf equivalent , u ∼ v , if F (u; t , x) = F (v ; t , x).If u = u1u2 . . . uk then let

ur = uk . . . u2u1 and u+ = (u1 + 1)(u2 + 1) . . . (uk + 1).

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Page 45: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

If P = P and u ∈ P∗ then one can define the followinggenerating function which is a specialization of F (u):

F (u; t , x) =∑w≥u

t |u|xP

i wi .

Even though P is not finite, one can use NFAs and the transfermatrix method to prove the following.

TheoremFor all u ∈ P∗ we have F (u; t , x) is rational.Call words u, v Wilf equivalent , u ∼ v , if F (u; t , x) = F (v ; t , x).

If u = u1u2 . . . uk then let

ur = uk . . . u2u1 and u+ = (u1 + 1)(u2 + 1) . . . (uk + 1).

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Page 46: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

If P = P and u ∈ P∗ then one can define the followinggenerating function which is a specialization of F (u):

F (u; t , x) =∑w≥u

t |u|xP

i wi .

Even though P is not finite, one can use NFAs and the transfermatrix method to prove the following.

TheoremFor all u ∈ P∗ we have F (u; t , x) is rational.Call words u, v Wilf equivalent , u ∼ v , if F (u; t , x) = F (v ; t , x).If u = u1u2 . . . uk then let

ur = uk . . . u2u1 and u+ = (u1 + 1)(u2 + 1) . . . (uk + 1).

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Page 47: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

If P = P and u ∈ P∗ then one can define the followinggenerating function which is a specialization of F (u):

F (u; t , x) =∑w≥u

t |u|xP

i wi .

Even though P is not finite, one can use NFAs and the transfermatrix method to prove the following.

TheoremFor all u ∈ P∗ we have F (u; t , x) is rational.Call words u, v Wilf equivalent , u ∼ v , if F (u; t , x) = F (v ; t , x).If u = u1u2 . . . uk then let

ur = uk . . . u2u1 and u+ = (u1 + 1)(u2 + 1) . . . (uk + 1).

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,

(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Page 48: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

If P = P and u ∈ P∗ then one can define the followinggenerating function which is a specialization of F (u):

F (u; t , x) =∑w≥u

t |u|xP

i wi .

Even though P is not finite, one can use NFAs and the transfermatrix method to prove the following.

TheoremFor all u ∈ P∗ we have F (u; t , x) is rational.Call words u, v Wilf equivalent , u ∼ v , if F (u; t , x) = F (v ; t , x).If u = u1u2 . . . uk then let

ur = uk . . . u2u1 and u+ = (u1 + 1)(u2 + 1) . . . (uk + 1).

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.

(c) if u ∼ v then 1u ∼ 1v,

Page 49: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

If P = P and u ∈ P∗ then one can define the followinggenerating function which is a specialization of F (u):

F (u; t , x) =∑w≥u

t |u|xP

i wi .

Even though P is not finite, one can use NFAs and the transfermatrix method to prove the following.

TheoremFor all u ∈ P∗ we have F (u; t , x) is rational.Call words u, v Wilf equivalent , u ∼ v , if F (u; t , x) = F (v ; t , x).If u = u1u2 . . . uk then let

ur = uk . . . u2u1 and u+ = (u1 + 1)(u2 + 1) . . . (uk + 1).

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Page 50: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Example. Find the Wilf equivalences for permutations of n ≤ 3.

n = 2: 12 ∼ 21 by (a).

n = 3: 12 ∼ 21 =⇒ 23 ∼ 32 by (b) =⇒ 123 ∼ 132 by (c). Soby (a) again: 123 ∼ 132 ∼ 321 ∼ 231.Also 213 ∼ 312 by (a).There are no more Wilf equivalences since

F (123; t , x) =t3x6(1− x + tx)

(1− x)3(1− x − tx + tx3 − t2x4)

while

F (213; t , x) =t3x6(1− x + tx)(1 + tx3)

(1− x)2(1− x + t2x4)(1− x − tx + tx3 − t2x4).

Page 51: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Example. Find the Wilf equivalences for permutations of n ≤ 3.

n = 2: 12 ∼ 21 by (a).

n = 3: 12 ∼ 21 =⇒ 23 ∼ 32 by (b) =⇒ 123 ∼ 132 by (c). Soby (a) again: 123 ∼ 132 ∼ 321 ∼ 231.Also 213 ∼ 312 by (a).There are no more Wilf equivalences since

F (123; t , x) =t3x6(1− x + tx)

(1− x)3(1− x − tx + tx3 − t2x4)

while

F (213; t , x) =t3x6(1− x + tx)(1 + tx3)

(1− x)2(1− x + t2x4)(1− x − tx + tx3 − t2x4).

Page 52: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Example. Find the Wilf equivalences for permutations of n ≤ 3.

n = 2: 12 ∼ 21 by (a).

n = 3: 12 ∼ 21 =⇒ 23 ∼ 32 by (b) =⇒ 123 ∼ 132 by (c). Soby (a) again: 123 ∼ 132 ∼ 321 ∼ 231.Also 213 ∼ 312 by (a).There are no more Wilf equivalences since

F (123; t , x) =t3x6(1− x + tx)

(1− x)3(1− x − tx + tx3 − t2x4)

while

F (213; t , x) =t3x6(1− x + tx)(1 + tx3)

(1− x)2(1− x + t2x4)(1− x − tx + tx3 − t2x4).

Page 53: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Example. Find the Wilf equivalences for permutations of n ≤ 3.

n = 2: 12 ∼ 21 by (a).

n = 3: 12 ∼ 21 =⇒ 23 ∼ 32 by (b)

=⇒ 123 ∼ 132 by (c). Soby (a) again: 123 ∼ 132 ∼ 321 ∼ 231.Also 213 ∼ 312 by (a).There are no more Wilf equivalences since

F (123; t , x) =t3x6(1− x + tx)

(1− x)3(1− x − tx + tx3 − t2x4)

while

F (213; t , x) =t3x6(1− x + tx)(1 + tx3)

(1− x)2(1− x + t2x4)(1− x − tx + tx3 − t2x4).

Page 54: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Example. Find the Wilf equivalences for permutations of n ≤ 3.

n = 2: 12 ∼ 21 by (a).

n = 3: 12 ∼ 21 =⇒ 23 ∼ 32 by (b) =⇒ 123 ∼ 132 by (c).

Soby (a) again: 123 ∼ 132 ∼ 321 ∼ 231.Also 213 ∼ 312 by (a).There are no more Wilf equivalences since

F (123; t , x) =t3x6(1− x + tx)

(1− x)3(1− x − tx + tx3 − t2x4)

while

F (213; t , x) =t3x6(1− x + tx)(1 + tx3)

(1− x)2(1− x + t2x4)(1− x − tx + tx3 − t2x4).

Page 55: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Example. Find the Wilf equivalences for permutations of n ≤ 3.

n = 2: 12 ∼ 21 by (a).

n = 3: 12 ∼ 21 =⇒ 23 ∼ 32 by (b) =⇒ 123 ∼ 132 by (c). Soby (a) again: 123 ∼ 132 ∼ 321 ∼ 231.

Also 213 ∼ 312 by (a).There are no more Wilf equivalences since

F (123; t , x) =t3x6(1− x + tx)

(1− x)3(1− x − tx + tx3 − t2x4)

while

F (213; t , x) =t3x6(1− x + tx)(1 + tx3)

(1− x)2(1− x + t2x4)(1− x − tx + tx3 − t2x4).

Page 56: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Example. Find the Wilf equivalences for permutations of n ≤ 3.

n = 2: 12 ∼ 21 by (a).

n = 3: 12 ∼ 21 =⇒ 23 ∼ 32 by (b) =⇒ 123 ∼ 132 by (c). Soby (a) again: 123 ∼ 132 ∼ 321 ∼ 231.Also 213 ∼ 312 by (a).

There are no more Wilf equivalences since

F (123; t , x) =t3x6(1− x + tx)

(1− x)3(1− x − tx + tx3 − t2x4)

while

F (213; t , x) =t3x6(1− x + tx)(1 + tx3)

(1− x)2(1− x + t2x4)(1− x − tx + tx3 − t2x4).

Page 57: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

TheoremWe have the following Wilf equivalences.(a) u ∼ ur ,(b) if u ∼ v then u+ ∼ v+.(c) if u ∼ v then 1u ∼ 1v,

Example. Find the Wilf equivalences for permutations of n ≤ 3.

n = 2: 12 ∼ 21 by (a).

n = 3: 12 ∼ 21 =⇒ 23 ∼ 32 by (b) =⇒ 123 ∼ 132 by (c). Soby (a) again: 123 ∼ 132 ∼ 321 ∼ 231.Also 213 ∼ 312 by (a).There are no more Wilf equivalences since

F (123; t , x) =t3x6(1− x + tx)

(1− x)3(1− x − tx + tx3 − t2x4)

while

F (213; t , x) =t3x6(1− x + tx)(1 + tx3)

(1− x)2(1− x + t2x4)(1− x − tx + tx3 − t2x4).

Page 58: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Outline

Page 59: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗.

If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 60: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 61: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w .

The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 62: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1.

A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 63: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.

Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 64: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 65: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 66: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),

(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 67: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),

(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 68: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,

(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 69: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 70: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)

(1)= µ(b,abb)

(2)= 1.

Page 71: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 72: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

In generalized factor order F (u) =∑

w≥u w =∑

w∈P∗ ζ(u,w)wwhere ζ is the zeta function of P∗. If P∗ is locally finite we canalso consider the language associated with the Mobius function

M(u) = w ∈ P∗ : µ(u,w) 6= 0.

In ordinary factor order, the dominant outer factor of w , o(w), isthe longest word other than w which is both a prefix and asuffix of w . The dominant inner factor of w = w1w2 . . .wk isi(w) = w2 . . .wk−1. A word is flat if all its elements are equal.Example. w = abbaabb has o(w) = abb and i(w) = bbaab.

Theorem (Bjorner)In ordinary factor order, if u ≤ w then µ(u,w) equals

(1) µ(u,o(w)) if |w | − |u| > 2 and u ≤ o(w) 6≤ i(w),(2) 1 if |w | − |u| = 2, w not flat, and u ∈ i(w),o(w),(3) (−1)|w |−|u| if |w | − |u| < 2,(4) 0 otherwise.

Example. µ(b,abbaabb)(1)= µ(b,abb)

(2)= 1.

Page 73: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language.

Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 74: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,

2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 75: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 76: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.

Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 77: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.

Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 78: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna.

Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 79: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a):

o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 80: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z).

So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 81: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna)

= µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 82: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a)

= 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 83: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 84: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.

Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 85: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar).

So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 86: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n.

Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 87: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna.

But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 88: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.

Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 89: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′).

This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 90: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Lemma (Pumping Lemma)Let L be a regular language. Then there is a constant n ≥ 1such that any z ∈ L can be written as z = uvw satisfying

1. |uv | ≤ n and |v | ≥ 1,2. uv iw ∈ L for all i ≥ 1.

TheoremIn ordinary factor order with P = a,b,M(a) is not regular.Proof By contradiction: let n be the Pumping Lemma constant.Choose z = abnabna. Then z ∈M(a): o(z) = abna andi(z) = bnabn giving a ≤ o(z) 6≤ i(z). So

µ(a,abnabna) = µ(a,abna) = µ(a,a) = 1.

Now pick any prefix uv of z as in the Pumping Lemma.Suppose u 6= ε (u = ε is similar). So v = bj for some j with1 ≤ j < n. Let i = 2 with correspondingz ′ = uv2w = abn+jabna. But o(z ′) = a and i(z ′) = bn+jabn.Thus a ≤ o(z ′) ≤ i(z ′). This implies that µ(a, z ′) = 0 and hencez ′ 6∈ M(a), which is a contradiction.

Page 91: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

Outline

Page 92: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

1. In all examples that have been computed, if u ∼ v then v isa rearrangement of u. Is this always true?

2. We have seen thatM(a) is not regular. Is it context free?3. What is µ(u,w) in generalized factor order?

Page 93: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

1. In all examples that have been computed, if u ∼ v then v isa rearrangement of u. Is this always true?

2. We have seen thatM(a) is not regular. Is it context free?

3. What is µ(u,w) in generalized factor order?

Page 94: Rationality, irrationality, and Wilf equivalence in generalized factor ... · Rationality, irrationality, and Wilf equivalence in generalized factor order Sergey Kitaev Institute

1. In all examples that have been computed, if u ∼ v then v isa rearrangement of u. Is this always true?

2. We have seen thatM(a) is not regular. Is it context free?3. What is µ(u,w) in generalized factor order?