algorithms in universal algebra and the uacalculatorralph/talks/freese.pdfi (székely) there is an a...

146
Algorithms in Universal Algebra and the UACalculator Ralph Freese University of Hawaii June 2010 UACalc Web Site: http://uacalc.org/

Upload: others

Post on 22-Jan-2021

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Algorithms in Universal Algebra and theUACalculator

Ralph Freese

University of Hawaii

June 2010

UACalc Web Site:http://uacalc.org/

Page 2: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete
Page 3: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Hard TasksTasks Menu:

I Free AlgebraI B in V (A)

I Sub PowerI Primality

Maltsev Menu:I Distributivity (Jónsson terms)I Modularity (Gumm terms)I n-Permutability (Hagemann-Mitschke terms)I Maltsev termI Majority termI Pixley termI near unamimity termI Siggers Taylor term

Page 4: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Hard TasksTasks Menu:

I Free AlgebraI B in V (A)

I Sub PowerI Primality

Maltsev Menu:I Distributivity (Jónsson terms)I Modularity (Gumm terms)I n-Permutability (Hagemann-Mitschke terms)I Maltsev termI Majority termI Pixley termI near unamimity termI Siggers Taylor term

Page 5: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Hard Tasks

Theorem (Freese & Valeriote)The following problems are EXPTIME complete: Given a finitealgebra A,

I Is V(A) congruence modular?I Is V(A) congruence distributive?I Is V(A) congruence semidistributive?I Is V(A) congruence meet semidistributive?I Does A have a Taylor term?I Does A have a Hobby-McKenzie term?

Page 6: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Hard Tasks

Theorem (Freese & Valeriote)The following problems are EXPTIME complete: Given a finitealgebra A,

I Is V(A) congruence modular?

I Is V(A) congruence distributive?I Is V(A) congruence semidistributive?I Is V(A) congruence meet semidistributive?I Does A have a Taylor term?I Does A have a Hobby-McKenzie term?

Page 7: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Hard Tasks

Theorem (Freese & Valeriote)The following problems are EXPTIME complete: Given a finitealgebra A,

I Is V(A) congruence modular?I Is V(A) congruence distributive?

I Is V(A) congruence semidistributive?I Is V(A) congruence meet semidistributive?I Does A have a Taylor term?I Does A have a Hobby-McKenzie term?

Page 8: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Hard Tasks

Theorem (Freese & Valeriote)The following problems are EXPTIME complete: Given a finitealgebra A,

I Is V(A) congruence modular?I Is V(A) congruence distributive?I Is V(A) congruence semidistributive?

I Is V(A) congruence meet semidistributive?I Does A have a Taylor term?I Does A have a Hobby-McKenzie term?

Page 9: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Hard Tasks

Theorem (Freese & Valeriote)The following problems are EXPTIME complete: Given a finitealgebra A,

I Is V(A) congruence modular?I Is V(A) congruence distributive?I Is V(A) congruence semidistributive?I Is V(A) congruence meet semidistributive?

I Does A have a Taylor term?I Does A have a Hobby-McKenzie term?

Page 10: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Hard Tasks

Theorem (Freese & Valeriote)The following problems are EXPTIME complete: Given a finitealgebra A,

I Is V(A) congruence modular?I Is V(A) congruence distributive?I Is V(A) congruence semidistributive?I Is V(A) congruence meet semidistributive?I Does A have a Taylor term?

I Does A have a Hobby-McKenzie term?

Page 11: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Hard Tasks

Theorem (Freese & Valeriote)The following problems are EXPTIME complete: Given a finitealgebra A,

I Is V(A) congruence modular?I Is V(A) congruence distributive?I Is V(A) congruence semidistributive?I Is V(A) congruence meet semidistributive?I Does A have a Taylor term?I Does A have a Hobby-McKenzie term?

Page 12: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete
Page 13: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.

With A fixed (the membership problem).With neither fixed (the universal membership problem).

I Both are in 2EXPTIME.I If A is finitely based, the membership problem is

polynomial time.I (Jackson & McNulty) The membership problem for

Lyndon’s algebra, is polynomial time.I (Székely) There is an A where it is NP-complete.I (Kozik & Kun) There is a groupoid where it’s NP-complete.I (Jackson & McKenzie) There is a semigroup where it’s

NP-complete.I (Kozik) There is an A where it is PSPACE-complete.I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 14: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.With A fixed (the membership problem).

With neither fixed (the universal membership problem).I Both are in 2EXPTIME.I If A is finitely based, the membership problem is

polynomial time.I (Jackson & McNulty) The membership problem for

Lyndon’s algebra, is polynomial time.I (Székely) There is an A where it is NP-complete.I (Kozik & Kun) There is a groupoid where it’s NP-complete.I (Jackson & McKenzie) There is a semigroup where it’s

NP-complete.I (Kozik) There is an A where it is PSPACE-complete.I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 15: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.With A fixed (the membership problem).With neither fixed (the universal membership problem).

I Both are in 2EXPTIME.I If A is finitely based, the membership problem is

polynomial time.I (Jackson & McNulty) The membership problem for

Lyndon’s algebra, is polynomial time.I (Székely) There is an A where it is NP-complete.I (Kozik & Kun) There is a groupoid where it’s NP-complete.I (Jackson & McKenzie) There is a semigroup where it’s

NP-complete.I (Kozik) There is an A where it is PSPACE-complete.I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 16: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.With A fixed (the membership problem).With neither fixed (the universal membership problem).

I Both are in 2EXPTIME.

I If A is finitely based, the membership problem ispolynomial time.

I (Jackson & McNulty) The membership problem forLyndon’s algebra, is polynomial time.

I (Székely) There is an A where it is NP-complete.I (Kozik & Kun) There is a groupoid where it’s NP-complete.I (Jackson & McKenzie) There is a semigroup where it’s

NP-complete.I (Kozik) There is an A where it is PSPACE-complete.I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 17: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.With A fixed (the membership problem).With neither fixed (the universal membership problem).

I Both are in 2EXPTIME.I If A is finitely based, the membership problem is

polynomial time.

I (Jackson & McNulty) The membership problem forLyndon’s algebra, is polynomial time.

I (Székely) There is an A where it is NP-complete.I (Kozik & Kun) There is a groupoid where it’s NP-complete.I (Jackson & McKenzie) There is a semigroup where it’s

NP-complete.I (Kozik) There is an A where it is PSPACE-complete.I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 18: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.With A fixed (the membership problem).With neither fixed (the universal membership problem).

I Both are in 2EXPTIME.I If A is finitely based, the membership problem is

polynomial time.I (Jackson & McNulty) The membership problem for

Lyndon’s algebra, is polynomial time.

I (Székely) There is an A where it is NP-complete.I (Kozik & Kun) There is a groupoid where it’s NP-complete.I (Jackson & McKenzie) There is a semigroup where it’s

NP-complete.I (Kozik) There is an A where it is PSPACE-complete.I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 19: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.With A fixed (the membership problem).With neither fixed (the universal membership problem).

I Both are in 2EXPTIME.I If A is finitely based, the membership problem is

polynomial time.I (Jackson & McNulty) The membership problem for

Lyndon’s algebra, is polynomial time.I (Székely) There is an A where it is NP-complete.

I (Kozik & Kun) There is a groupoid where it’s NP-complete.I (Jackson & McKenzie) There is a semigroup where it’s

NP-complete.I (Kozik) There is an A where it is PSPACE-complete.I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 20: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.With A fixed (the membership problem).With neither fixed (the universal membership problem).

I Both are in 2EXPTIME.I If A is finitely based, the membership problem is

polynomial time.I (Jackson & McNulty) The membership problem for

Lyndon’s algebra, is polynomial time.I (Székely) There is an A where it is NP-complete.I (Kozik & Kun) There is a groupoid where it’s NP-complete.

I (Jackson & McKenzie) There is a semigroup where it’sNP-complete.

I (Kozik) There is an A where it is PSPACE-complete.I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 21: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.With A fixed (the membership problem).With neither fixed (the universal membership problem).

I Both are in 2EXPTIME.I If A is finitely based, the membership problem is

polynomial time.I (Jackson & McNulty) The membership problem for

Lyndon’s algebra, is polynomial time.I (Székely) There is an A where it is NP-complete.I (Kozik & Kun) There is a groupoid where it’s NP-complete.I (Jackson & McKenzie) There is a semigroup where it’s

NP-complete.

I (Kozik) There is an A where it is PSPACE-complete.I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 22: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.With A fixed (the membership problem).With neither fixed (the universal membership problem).

I Both are in 2EXPTIME.I If A is finitely based, the membership problem is

polynomial time.I (Jackson & McNulty) The membership problem for

Lyndon’s algebra, is polynomial time.I (Székely) There is an A where it is NP-complete.I (Kozik & Kun) There is a groupoid where it’s NP-complete.I (Jackson & McKenzie) There is a semigroup where it’s

NP-complete.I (Kozik) There is an A where it is PSPACE-complete.

I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 23: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

B ∈ V (A)

Problem(McNulty) How hard is this.With A fixed (the membership problem).With neither fixed (the universal membership problem).

I Both are in 2EXPTIME.I If A is finitely based, the membership problem is

polynomial time.I (Jackson & McNulty) The membership problem for

Lyndon’s algebra, is polynomial time.I (Székely) There is an A where it is NP-complete.I (Kozik & Kun) There is a groupoid where it’s NP-complete.I (Jackson & McKenzie) There is a semigroup where it’s

NP-complete.I (Kozik) There is an A where it is PSPACE-complete.I (Kozik) There is an A where it is 2EXPTIME-complete.

Page 24: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids: Ježek and QuackenbushA directoid is a groupoid defined on a p. o. set such that

x ≤ xy y ≤ xy x ≤ y =⇒ xy = yx = y

It is an equational class:

x2 ≈ x (xy)x ≈ xy y(xy) ≈ xy x((xy)z) ≈ (xy)z

I Is every finite directoid finitely based?I Hajilarov gave a 6 element directoid, H, which he asserted

is INFB:

ss

ss

ss��

@@@

@@

���

1

c

ba

u

0· 1 a b c u 01 1 a b c u 0a a a 0 u u 0b b 0 b b u 0c c u b c u 0u u u u u u 00 0 0 0 0 0 0

Page 25: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids: Ježek and QuackenbushA directoid is a groupoid defined on a p. o. set such that

x ≤ xy y ≤ xy x ≤ y =⇒ xy = yx = y

It is an equational class:

x2 ≈ x (xy)x ≈ xy y(xy) ≈ xy x((xy)z) ≈ (xy)z

I Is every finite directoid finitely based?I Hajilarov gave a 6 element directoid, H, which he asserted

is INFB:

ss

ss

ss��

@@@

@@

���

1

c

ba

u

0· 1 a b c u 01 1 a b c u 0a a a 0 u u 0b b 0 b b u 0c c u b c u 0u u u u u u 00 0 0 0 0 0 0

Page 26: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids: Ježek and QuackenbushA directoid is a groupoid defined on a p. o. set such that

x ≤ xy y ≤ xy x ≤ y =⇒ xy = yx = y

It is an equational class:

x2 ≈ x (xy)x ≈ xy y(xy) ≈ xy x((xy)z) ≈ (xy)z

I Is every finite directoid finitely based?

I Hajilarov gave a 6 element directoid, H, which he assertedis INFB:

ss

ss

ss��

@@@

@@

���

1

c

ba

u

0· 1 a b c u 01 1 a b c u 0a a a 0 u u 0b b 0 b b u 0c c u b c u 0u u u u u u 00 0 0 0 0 0 0

Page 27: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids: Ježek and QuackenbushA directoid is a groupoid defined on a p. o. set such that

x ≤ xy y ≤ xy x ≤ y =⇒ xy = yx = y

It is an equational class:

x2 ≈ x (xy)x ≈ xy y(xy) ≈ xy x((xy)z) ≈ (xy)z

I Is every finite directoid finitely based?I Hajilarov gave a 6 element directoid, H, which he asserted

is INFB:

ss

ss

ss��

@@@

@@

���

1

c

ba

u

0· 1 a b c u 01 1 a b c u 0a a a 0 u u 0b b 0 b b u 0c c u b c u 0u u u u u u 00 0 0 0 0 0 0

Page 28: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids: Ježek and QuackenbushA directoid is a groupoid defined on a p. o. set such that

x ≤ xy y ≤ xy x ≤ y =⇒ xy = yx = y

It is an equational class:

x2 ≈ x (xy)x ≈ xy y(xy) ≈ xy x((xy)z) ≈ (xy)z

I Is every finite directoid finitely based?I Hajilarov gave a 6 element directoid, H, which he asserted

is INFB:

ss

ss

ss��

@@@

@@

���

1

c

ba

u

0· 1 a b c u 01 1 a b c u 0a a a 0 u u 0b b 0 b b u 0c c u b c u 0u u u u u u 00 0 0 0 0 0 0

Page 29: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids: Ježek and QuackenbushThe directoid D:

uu

u uu u���

@@@�� @@

1

3

2

45

0· 1 2 3 4 5 01 1 3 3 4 5 02 3 2 3 4 5 03 3 3 3 0 5 04 4 4 0 4 5 05 5 5 5 5 5 00 0 0 0 0 0 0

The argument that H is INFB implies D ∈ V (H).But it’s not. The calculator gives the equation

x3((x0x1)(x0(x1x2))) ≈ (x0x1)(x3(x0(x1x2)))

and claims it holds in H and fails in D under the substitution

x0 7→ 1 x1 7→ 2 x2 7→ 4 x3 7→ 5

Page 30: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids: Ježek and QuackenbushThe directoid D:

uu

u uu u���

@@@�� @@

1

3

2

45

0· 1 2 3 4 5 01 1 3 3 4 5 02 3 2 3 4 5 03 3 3 3 0 5 04 4 4 0 4 5 05 5 5 5 5 5 00 0 0 0 0 0 0

The argument that H is INFB implies D ∈ V (H).

But it’s not. The calculator gives the equation

x3((x0x1)(x0(x1x2))) ≈ (x0x1)(x3(x0(x1x2)))

and claims it holds in H and fails in D under the substitution

x0 7→ 1 x1 7→ 2 x2 7→ 4 x3 7→ 5

Page 31: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids: Ježek and QuackenbushThe directoid D:

uu

u uu u���

@@@�� @@

1

3

2

45

0· 1 2 3 4 5 01 1 3 3 4 5 02 3 2 3 4 5 03 3 3 3 0 5 04 4 4 0 4 5 05 5 5 5 5 5 00 0 0 0 0 0 0

The argument that H is INFB implies D ∈ V (H).But it’s not.

The calculator gives the equation

x3((x0x1)(x0(x1x2))) ≈ (x0x1)(x3(x0(x1x2)))

and claims it holds in H and fails in D under the substitution

x0 7→ 1 x1 7→ 2 x2 7→ 4 x3 7→ 5

Page 32: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids: Ježek and QuackenbushThe directoid D:

uu

u uu u���

@@@�� @@

1

3

2

45

0· 1 2 3 4 5 01 1 3 3 4 5 02 3 2 3 4 5 03 3 3 3 0 5 04 4 4 0 4 5 05 5 5 5 5 5 00 0 0 0 0 0 0

The argument that H is INFB implies D ∈ V (H).But it’s not. The calculator gives the equation

x3((x0x1)(x0(x1x2))) ≈ (x0x1)(x3(x0(x1x2)))

and claims it holds in H and fails in D under the substitution

x0 7→ 1 x1 7→ 2 x2 7→ 4 x3 7→ 5

Page 33: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids: Ježek and QuackenbushThe directoid D:

uu

u uu u���

@@@�� @@

1

3

2

45

0· 1 2 3 4 5 01 1 3 3 4 5 02 3 2 3 4 5 03 3 3 3 0 5 04 4 4 0 4 5 05 5 5 5 5 5 00 0 0 0 0 0 0

The argument that H is INFB implies D ∈ V (H).But it’s not. The calculator gives the equation

x3((x0x1)(x0(x1x2))) ≈ (x0x1)(x3(x0(x1x2)))

and claims it holds in H and fails in D under the substitution

x0 7→ 1 x1 7→ 2 x2 7→ 4 x3 7→ 5

Page 34: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

(Straightforward) Testing B ∈ V (A)

I Find a minimal sized generating set {g0, . . . ,gk−1} of B.I Start calculating FV (A)(k) = FV (A)(x0, . . . , xk−1), keeping

I A map from the elements to the term that gave them.I A partial homomorphism from ϕ : FV (A)(k)→ B.

I If a = f (a0, . . . ,ar−1) is not new, and

ϕ(a) 6= f (ϕ(a0), . . . , ϕ(ar−1))

then the equation (of the Birkhoff basis):

ta ≈ f (ta0 , . . . , tar−1)

fails in B under the substitution xi 7→ gi .

Page 35: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

(Straightforward) Testing B ∈ V (A)

I Find a minimal sized generating set {g0, . . . ,gk−1} of B.

I Start calculating FV (A)(k) = FV (A)(x0, . . . , xk−1), keepingI A map from the elements to the term that gave them.I A partial homomorphism from ϕ : FV (A)(k)→ B.

I If a = f (a0, . . . ,ar−1) is not new, and

ϕ(a) 6= f (ϕ(a0), . . . , ϕ(ar−1))

then the equation (of the Birkhoff basis):

ta ≈ f (ta0 , . . . , tar−1)

fails in B under the substitution xi 7→ gi .

Page 36: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

(Straightforward) Testing B ∈ V (A)

I Find a minimal sized generating set {g0, . . . ,gk−1} of B.I Start calculating FV (A)(k) = FV (A)(x0, . . . , xk−1), keeping

I A map from the elements to the term that gave them.I A partial homomorphism from ϕ : FV (A)(k)→ B.

I If a = f (a0, . . . ,ar−1) is not new, and

ϕ(a) 6= f (ϕ(a0), . . . , ϕ(ar−1))

then the equation (of the Birkhoff basis):

ta ≈ f (ta0 , . . . , tar−1)

fails in B under the substitution xi 7→ gi .

Page 37: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

(Straightforward) Testing B ∈ V (A)

I Find a minimal sized generating set {g0, . . . ,gk−1} of B.I Start calculating FV (A)(k) = FV (A)(x0, . . . , xk−1), keeping

I A map from the elements to the term that gave them.

I A partial homomorphism from ϕ : FV (A)(k)→ B.I If a = f (a0, . . . ,ar−1) is not new, and

ϕ(a) 6= f (ϕ(a0), . . . , ϕ(ar−1))

then the equation (of the Birkhoff basis):

ta ≈ f (ta0 , . . . , tar−1)

fails in B under the substitution xi 7→ gi .

Page 38: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

(Straightforward) Testing B ∈ V (A)

I Find a minimal sized generating set {g0, . . . ,gk−1} of B.I Start calculating FV (A)(k) = FV (A)(x0, . . . , xk−1), keeping

I A map from the elements to the term that gave them.I A partial homomorphism from ϕ : FV (A)(k)→ B.

I If a = f (a0, . . . ,ar−1) is not new, and

ϕ(a) 6= f (ϕ(a0), . . . , ϕ(ar−1))

then the equation (of the Birkhoff basis):

ta ≈ f (ta0 , . . . , tar−1)

fails in B under the substitution xi 7→ gi .

Page 39: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

(Straightforward) Testing B ∈ V (A)

I Find a minimal sized generating set {g0, . . . ,gk−1} of B.I Start calculating FV (A)(k) = FV (A)(x0, . . . , xk−1), keeping

I A map from the elements to the term that gave them.I A partial homomorphism from ϕ : FV (A)(k)→ B.

I Iff (a0, . . . ,ar−1) = a

is new, then

ta = f (ta0 , . . . , tar−1) andϕ(a) = f (ϕ(a0), . . . , ϕ(ar−1))

I If a = f (a0, . . . ,ar−1) is not new, and

ϕ(a) 6= f (ϕ(a0), . . . , ϕ(ar−1))

then the equation (of the Birkhoff basis):

ta ≈ f (ta0 , . . . , tar−1)

fails in B under the substitution xi 7→ gi .

Page 40: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

(Straightforward) Testing B ∈ V (A)

I Find a minimal sized generating set {g0, . . . ,gk−1} of B.I Start calculating FV (A)(k) = FV (A)(x0, . . . , xk−1), keeping

I A map from the elements to the term that gave them.I A partial homomorphism from ϕ : FV (A)(k)→ B.

I If a = f (a0, . . . ,ar−1) is not new, and

ϕ(a) 6= f (ϕ(a0), . . . , ϕ(ar−1))

then the equation (of the Birkhoff basis):

ta ≈ f (ta0 , . . . , tar−1)

fails in B under the substitution xi 7→ gi .

Page 41: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

D /∈ V (H)

I x3((x0x1)(x0(x1x2))) ≈ (x0x1)(x3(x0(x1x2)))

witnesses this (under 1 second).

I |FV (H)(4)| = 26,467 (60 minutes)

I So the Birkhoff basis has over 700 million equations.

I Testing H ∈ V (H) takes about 80 minutes.

Page 42: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

D /∈ V (H)

I x3((x0x1)(x0(x1x2))) ≈ (x0x1)(x3(x0(x1x2)))

witnesses this (under 1 second).

I |FV (H)(4)| = 26,467 (60 minutes)

I So the Birkhoff basis has over 700 million equations.

I Testing H ∈ V (H) takes about 80 minutes.

Page 43: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

D /∈ V (H)

I x3((x0x1)(x0(x1x2))) ≈ (x0x1)(x3(x0(x1x2)))

witnesses this (under 1 second).

I |FV (H)(4)| = 26,467 (60 minutes)

I So the Birkhoff basis has over 700 million equations.

I Testing H ∈ V (H) takes about 80 minutes.

Page 44: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

D /∈ V (H)

I x3((x0x1)(x0(x1x2))) ≈ (x0x1)(x3(x0(x1x2)))

witnesses this (under 1 second).

I |FV (H)(4)| = 26,467 (60 minutes)

I So the Birkhoff basis has over 700 million equations.

I Testing H ∈ V (H) takes about 80 minutes.

Page 45: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

CgA(a,b) in Linear Time

TheoremThere is a linear time algorithm to compute CgA(a,b) foralgebras A of a fixed similarity type having at least one, at leastbinary operation (and nearly linear even if it doesn’t).

Page 46: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of AI calculating the join irreducible congruences of A

I finding the TCT type set of AI calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducibleI (J. Demel) finding a subdirect decomposition of A into

subdirectly irreduciblesBut not for:

I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 47: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of A

I calculating the join irreducible congruences of AI finding the TCT type set of A

I calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducibleI (J. Demel) finding a subdirect decomposition of A into

subdirectly irreduciblesBut not for:

I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 48: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of AI calculating the join irreducible congruences of A

I finding the TCT type set of AI calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducibleI (J. Demel) finding a subdirect decomposition of A into

subdirectly irreduciblesBut not for:

I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 49: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of AI calculating the join irreducible congruences of A

I finding the TCT type set of A

I calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducibleI (J. Demel) finding a subdirect decomposition of A into

subdirectly irreduciblesBut not for:

I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 50: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of AI calculating the join irreducible congruences of A

I finding the TCT type set of AI calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducibleI (J. Demel) finding a subdirect decomposition of A into

subdirectly irreduciblesBut not for:

I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 51: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of AI calculating the join irreducible congruences of A

I finding the TCT type set of AI calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducible

I (J. Demel) finding a subdirect decomposition of A intosubdirectly irreducibles

But not for:I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 52: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of AI calculating the join irreducible congruences of A

I finding the TCT type set of AI calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducibleI (J. Demel) finding a subdirect decomposition of A into

subdirectly irreducibles

But not for:I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 53: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of AI calculating the join irreducible congruences of A

I finding the TCT type set of AI calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducibleI (J. Demel) finding a subdirect decomposition of A into

subdirectly irreduciblesBut not for:

I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 54: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of AI calculating the join irreducible congruences of A

I finding the TCT type set of AI calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducibleI (J. Demel) finding a subdirect decomposition of A into

subdirectly irreduciblesBut not for:

I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 55: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of AI calculating the join irreducible congruences of A

I finding the TCT type set of AI calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducibleI (J. Demel) finding a subdirect decomposition of A into

subdirectly irreduciblesBut not for:

I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 56: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

ConsequencesThere are polynomial time algorithms for:

I calculating the principal congruences of AI calculating the join irreducible congruences of A

I finding the TCT type set of AI calculating the atoms of Con (A)

I deciding if A is simple; is subdirectly irreducibleI (J. Demel) finding a subdirect decomposition of A into

subdirectly irreduciblesBut not for:

I finding all of Con (A)

I finding all meet irreducibles of Con (A)

I finding all subdirect decompositions of A

Page 57: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Computing the TCT Type Set of A

Theorem (Berman, Kiss, Prohle, Szendrei)The TCT type of a cover α ≺ β in Con (A) can be computed intime O(||A||4).

Outline:

I We may assume β � 0.I Find a β subtrace (a two element subset, {a,b}, of a

trace), and deterimine if there is an involution (anf ∈ Pol1(A) interchanging a and b) in time O(||A||2).

I Find the type of the subtrace.

Page 58: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Computing the TCT Type Set of A

Theorem (Berman, Kiss, Prohle, Szendrei)The TCT type of a cover α ≺ β in Con (A) can be computed intime O(||A||4).Outline:

I We may assume β � 0.

I Find a β subtrace (a two element subset, {a,b}, of atrace), and deterimine if there is an involution (anf ∈ Pol1(A) interchanging a and b) in time O(||A||2).

I Find the type of the subtrace.

Page 59: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Computing the TCT Type Set of A

Theorem (Berman, Kiss, Prohle, Szendrei)The TCT type of a cover α ≺ β in Con (A) can be computed intime O(||A||4).Outline:

I We may assume β � 0.I Find a β subtrace (a two element subset, {a,b}, of a

trace),

and deterimine if there is an involution (anf ∈ Pol1(A) interchanging a and b) in time O(||A||2).

I Find the type of the subtrace.

Page 60: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Computing the TCT Type Set of A

Theorem (Berman, Kiss, Prohle, Szendrei)The TCT type of a cover α ≺ β in Con (A) can be computed intime O(||A||4).Outline:

I We may assume β � 0.I Find a β subtrace (a two element subset, {a,b}, of a

trace), and deterimine if there is an involution (anf ∈ Pol1(A) interchanging a and b) in time O(||A||2).

I Find the type of the subtrace.

Page 61: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Computing the TCT Type Set of A

Theorem (Berman, Kiss, Prohle, Szendrei)The TCT type of a cover α ≺ β in Con (A) can be computed intime O(||A||4).Outline:

I We may assume β � 0.I Find a β subtrace (a two element subset, {a,b}, of a

trace), and deterimine if there is an involution (anf ∈ Pol1(A) interchanging a and b) in time O(||A||2).

I Find the type of the subtrace.

Page 62: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Finding the type

Assume {a,b} is a subtrace of β � 0. Let

Ta,b = {(h(a,a),h(a,b),h(b,a),h(b,b)) : h ∈ Pol2 A}= SgA4({(a,a,b,b), (a,b,a,b)} ∪∆4)

We may think of the elements of Ta,b as 2× 2 tables, like

a ba x yb u v

a ba a bb b b

a ba a ab a b

are called a join and a meet.

Page 63: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Finding the type

Assume {a,b} is a subtrace of β � 0. Let

Ta,b = {(h(a,a),h(a,b),h(b,a),h(b,b)) : h ∈ Pol2 A}= SgA4({(a,a,b,b), (a,b,a,b)} ∪∆4)

We may think of the elements of Ta,b as 2× 2 tables, like

a ba x yb u v

a ba a bb b b

a ba a ab a b

are called a join and a meet.

Page 64: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Finding the type

Assume {a,b} is a subtrace of β � 0. Let

Ta,b = {(h(a,a),h(a,b),h(b,a),h(b,b)) : h ∈ Pol2 A}= SgA4({(a,a,b,b), (a,b,a,b)} ∪∆4)

We may think of the elements of Ta,b as 2× 2 tables, like

a ba x yb u v

a ba a bb b b

a ba a ab a b

are called a join and a meet.

Page 65: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Finding the type

While generating the universe of Ta,b,

I If a join or meet is found, record this. If {a,b} has aninvolution, stop: the type is 3.

I If both a join and a meet are found, stop: the type is 4.In the other cases we must generate all of Ta,b.

I If a join or a meet was found, the type is 5.I If a one-snag was found, the type is 2.I Otherwise the type is 1.

Page 66: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Finding the type

While generating the universe of Ta,b,I If a join or meet is found, record this. If {a,b} has an

involution, stop: the type is 3.

I If both a join and a meet are found, stop: the type is 4.In the other cases we must generate all of Ta,b.

I If a join or a meet was found, the type is 5.I If a one-snag was found, the type is 2.I Otherwise the type is 1.

Page 67: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Finding the type

While generating the universe of Ta,b,I If a join or meet is found, record this. If {a,b} has an

involution, stop: the type is 3.I If both a join and a meet are found, stop: the type is 4.

In the other cases we must generate all of Ta,b.I If a join or a meet was found, the type is 5.I If a one-snag was found, the type is 2.I Otherwise the type is 1.

Page 68: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Finding the type

While generating the universe of Ta,b,I If a join or meet is found, record this. If {a,b} has an

involution, stop: the type is 3.I If both a join and a meet are found, stop: the type is 4.

In the other cases we must generate all of Ta,b.

I If a join or a meet was found, the type is 5.I If a one-snag was found, the type is 2.I Otherwise the type is 1.

Page 69: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Finding the type

While generating the universe of Ta,b,I If a join or meet is found, record this. If {a,b} has an

involution, stop: the type is 3.I If both a join and a meet are found, stop: the type is 4.

In the other cases we must generate all of Ta,b.I If a join or a meet was found, the type is 5.

I If a one-snag was found, the type is 2.I Otherwise the type is 1.

Page 70: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Finding the type

While generating the universe of Ta,b,I If a join or meet is found, record this. If {a,b} has an

involution, stop: the type is 3.I If both a join and a meet are found, stop: the type is 4.

In the other cases we must generate all of Ta,b.I If a join or a meet was found, the type is 5.I If a one-snag was found, the type is 2.

I Otherwise the type is 1.

Page 71: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Finding the type

While generating the universe of Ta,b,I If a join or meet is found, record this. If {a,b} has an

involution, stop: the type is 3.I If both a join and a meet are found, stop: the type is 4.

In the other cases we must generate all of Ta,b.I If a join or a meet was found, the type is 5.I If a one-snag was found, the type is 2.I Otherwise the type is 1.

Page 72: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Computing the TCT Type Set of A

TheoremThe type of α ≺ β can be found in time O(||A||3).

TheoremLet A be a finite algebra with n elements. Let β � 0 be an atomof Con (A) and let {a,b} be two elements of a 0-β trace. Themaximum size of Ta,b depending on the type of β over 0 is

1 or 2 n3

5 n3/3 + n2/2 + n/64 n4/12 + n3/3 + 5n2/12 + n/63 n4

These bounds all obtain infinitely often.

Page 73: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Computing the TCT Type Set of A

TheoremThe type of α ≺ β can be found in time O(||A||3).

TheoremLet A be a finite algebra with n elements. Let β � 0 be an atomof Con (A) and let {a,b} be two elements of a 0-β trace. Themaximum size of Ta,b depending on the type of β over 0 is

1 or 2 n3

5 n3/3 + n2/2 + n/64 n4/12 + n3/3 + 5n2/12 + n/63 n4

These bounds all obtain infinitely often.

Page 74: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Birkhoff Construction of FV (A)(X )

Theorem (Birkhoff)FV(A)(X ) is the subalgebra of AAX

generated by {x : x ∈ X},where x ∈ AAX

is given by xv = v(x) for v ∈ AX .

I For v ∈ AX let A(v) be the subalgebra of A generated byv(X ).

I Let ηv be the kernel of FV (A)(X )→ A(v).I ηv ≤ ηu iff v(x) 7→ u(x), x ∈ X extends to a

homomorphism of A(v) onto A(u).I (Thinning) In this case the u coordinate can be eliminated.I We can also eliminate u if (v1(x), v2(x)) 7→ u(x), x ∈ X

extends to a homomorphism of the subdirect product ofA(v1) and A(v2) to A(u).

I But this takes too much time.

Page 75: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Birkhoff Construction of FV (A)(X )

Theorem (Birkhoff)FV(A)(X ) is the subalgebra of AAX

generated by {x : x ∈ X},where x ∈ AAX

is given by xv = v(x) for v ∈ AX .

I For v ∈ AX let A(v) be the subalgebra of A generated byv(X ).

I Let ηv be the kernel of FV (A)(X )→ A(v).I ηv ≤ ηu iff v(x) 7→ u(x), x ∈ X extends to a

homomorphism of A(v) onto A(u).I (Thinning) In this case the u coordinate can be eliminated.I We can also eliminate u if (v1(x), v2(x)) 7→ u(x), x ∈ X

extends to a homomorphism of the subdirect product ofA(v1) and A(v2) to A(u).

I But this takes too much time.

Page 76: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Birkhoff Construction of FV (A)(X )

Theorem (Birkhoff)FV(A)(X ) is the subalgebra of AAX

generated by {x : x ∈ X},where x ∈ AAX

is given by xv = v(x) for v ∈ AX .

I For v ∈ AX let A(v) be the subalgebra of A generated byv(X ).

I Let ηv be the kernel of FV (A)(X )→ A(v).

I ηv ≤ ηu iff v(x) 7→ u(x), x ∈ X extends to ahomomorphism of A(v) onto A(u).

I (Thinning) In this case the u coordinate can be eliminated.I We can also eliminate u if (v1(x), v2(x)) 7→ u(x), x ∈ X

extends to a homomorphism of the subdirect product ofA(v1) and A(v2) to A(u).

I But this takes too much time.

Page 77: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Birkhoff Construction of FV (A)(X )

Theorem (Birkhoff)FV(A)(X ) is the subalgebra of AAX

generated by {x : x ∈ X},where x ∈ AAX

is given by xv = v(x) for v ∈ AX .

I For v ∈ AX let A(v) be the subalgebra of A generated byv(X ).

I Let ηv be the kernel of FV (A)(X )→ A(v).I ηv ≤ ηu iff v(x) 7→ u(x), x ∈ X extends to a

homomorphism of A(v) onto A(u).

I (Thinning) In this case the u coordinate can be eliminated.I We can also eliminate u if (v1(x), v2(x)) 7→ u(x), x ∈ X

extends to a homomorphism of the subdirect product ofA(v1) and A(v2) to A(u).

I But this takes too much time.

Page 78: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Birkhoff Construction of FV (A)(X )

Theorem (Birkhoff)FV(A)(X ) is the subalgebra of AAX

generated by {x : x ∈ X},where x ∈ AAX

is given by xv = v(x) for v ∈ AX .

I For v ∈ AX let A(v) be the subalgebra of A generated byv(X ).

I Let ηv be the kernel of FV (A)(X )→ A(v).I ηv ≤ ηu iff v(x) 7→ u(x), x ∈ X extends to a

homomorphism of A(v) onto A(u).I (Thinning) In this case the u coordinate can be eliminated.

I We can also eliminate u if (v1(x), v2(x)) 7→ u(x), x ∈ Xextends to a homomorphism of the subdirect product ofA(v1) and A(v2) to A(u).

I But this takes too much time.

Page 79: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Birkhoff Construction of FV (A)(X )

Theorem (Birkhoff)FV(A)(X ) is the subalgebra of AAX

generated by {x : x ∈ X},where x ∈ AAX

is given by xv = v(x) for v ∈ AX .

I For v ∈ AX let A(v) be the subalgebra of A generated byv(X ).

I Let ηv be the kernel of FV (A)(X )→ A(v).I ηv ≤ ηu iff v(x) 7→ u(x), x ∈ X extends to a

homomorphism of A(v) onto A(u).I (Thinning) In this case the u coordinate can be eliminated.I We can also eliminate u if (v1(x), v2(x)) 7→ u(x), x ∈ X

extends to a homomorphism of the subdirect product ofA(v1) and A(v2) to A(u).

I But this takes too much time.

Page 80: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Birkhoff Construction of FV (A)(X )

Theorem (Birkhoff)FV(A)(X ) is the subalgebra of AAX

generated by {x : x ∈ X},where x ∈ AAX

is given by xv = v(x) for v ∈ AX .

I For v ∈ AX let A(v) be the subalgebra of A generated byv(X ).

I Let ηv be the kernel of FV (A)(X )→ A(v).I ηv ≤ ηu iff v(x) 7→ u(x), x ∈ X extends to a

homomorphism of A(v) onto A(u).I (Thinning) In this case the u coordinate can be eliminated.I We can also eliminate u if (v1(x), v2(x)) 7→ u(x), x ∈ X

extends to a homomorphism of the subdirect product ofA(v1) and A(v2) to A(u).

I But this takes too much time.

Page 81: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Using Subdirect DecompositionsI Idea: find a subdirect decomposition of A(v) and replace

A(v) with these si algebras. And then thin.

I While adding more coordinates, this allows for betterthinning.

I Example: FV (A)(4), for A = N5.I Without thinning 625 coordinates.I With thinning 132 coordinates: 24 copies of 4, 24 copies of

2× 2, and 84 copies of N5.I With decomposing and thinning only the 84 copies of N5.

In fact, every FV (N5)(k), k ≥ 3, is a subdirect product of copiesof N5.

Page 82: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Using Subdirect DecompositionsI Idea: find a subdirect decomposition of A(v) and replace

A(v) with these si algebras. And then thin.I While adding more coordinates, this allows for better

thinning.

I Example: FV (A)(4), for A = N5.I Without thinning 625 coordinates.I With thinning 132 coordinates: 24 copies of 4, 24 copies of

2× 2, and 84 copies of N5.I With decomposing and thinning only the 84 copies of N5.

In fact, every FV (N5)(k), k ≥ 3, is a subdirect product of copiesof N5.

Page 83: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Using Subdirect DecompositionsI Idea: find a subdirect decomposition of A(v) and replace

A(v) with these si algebras. And then thin.I While adding more coordinates, this allows for better

thinning.I Example: FV (A)(4), for A = N5.

I Without thinning 625 coordinates.I With thinning 132 coordinates: 24 copies of 4, 24 copies of

2× 2, and 84 copies of N5.I With decomposing and thinning only the 84 copies of N5.

In fact, every FV (N5)(k), k ≥ 3, is a subdirect product of copiesof N5.

Page 84: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Using Subdirect DecompositionsI Idea: find a subdirect decomposition of A(v) and replace

A(v) with these si algebras. And then thin.I While adding more coordinates, this allows for better

thinning.I Example: FV (A)(4), for A = N5.I Without thinning 625 coordinates.

I With thinning 132 coordinates: 24 copies of 4, 24 copies of2× 2, and 84 copies of N5.

I With decomposing and thinning only the 84 copies of N5.

In fact, every FV (N5)(k), k ≥ 3, is a subdirect product of copiesof N5.

Page 85: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Using Subdirect DecompositionsI Idea: find a subdirect decomposition of A(v) and replace

A(v) with these si algebras. And then thin.I While adding more coordinates, this allows for better

thinning.I Example: FV (A)(4), for A = N5.I Without thinning 625 coordinates.I With thinning 132 coordinates: 24 copies of 4, 24 copies of

2× 2, and 84 copies of N5.

I With decomposing and thinning only the 84 copies of N5.

In fact, every FV (N5)(k), k ≥ 3, is a subdirect product of copiesof N5.

Page 86: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Using Subdirect DecompositionsI Idea: find a subdirect decomposition of A(v) and replace

A(v) with these si algebras. And then thin.I While adding more coordinates, this allows for better

thinning.I Example: FV (A)(4), for A = N5.I Without thinning 625 coordinates.I With thinning 132 coordinates: 24 copies of 4, 24 copies of

2× 2, and 84 copies of N5.I With decomposing and thinning only the 84 copies of N5.

In fact, every FV (N5)(k), k ≥ 3, is a subdirect product of copiesof N5.

Page 87: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Free Algebras: Using Subdirect DecompositionsI Idea: find a subdirect decomposition of A(v) and replace

A(v) with these si algebras. And then thin.I While adding more coordinates, this allows for better

thinning.I Example: FV (A)(4), for A = N5.I Without thinning 625 coordinates.I With thinning 132 coordinates: 24 copies of 4, 24 copies of

2× 2, and 84 copies of N5.I With decomposing and thinning only the 84 copies of N5.

In fact, every FV (N5)(k), k ≥ 3, is a subdirect product of copiesof N5.

Page 88: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev’s ConditionsJónsson’s Terms

I A variety V is congruence distributive if and only if thereare 3-ary terms d0, . . . ,dk (called Jónsson terms) such that

d0(x , y , z) ≈ xdi(x , y , x) ≈ x for 0 ≤ i ≤ kdi(x , x , y) ≈ di+1(x , x , y) for all even i < k (1)di(x , y , y) ≈ di+1(x , y , y) for all odd i < kdk (x , y , z) ≈ z.

The Jónsson level of V is the least k .I How hard is it to test if V (A) is congruence distributive for a

finite A?

Page 89: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev’s ConditionsJónsson’s Terms

I A variety V is congruence distributive if and only if thereare 3-ary terms d0, . . . ,dk (called Jónsson terms) such that

d0(x , y , z) ≈ xdi(x , y , x) ≈ x for 0 ≤ i ≤ kdi(x , x , y) ≈ di+1(x , x , y) for all even i < k (1)di(x , y , y) ≈ di+1(x , y , y) for all odd i < kdk (x , y , z) ≈ z.

The Jónsson level of V is the least k .

I How hard is it to test if V (A) is congruence distributive for afinite A?

Page 90: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev’s ConditionsJónsson’s Terms

I A variety V is congruence distributive if and only if thereare 3-ary terms d0, . . . ,dk (called Jónsson terms) such that

d0(x , y , z) ≈ xdi(x , y , x) ≈ x for 0 ≤ i ≤ kdi(x , x , y) ≈ di+1(x , x , y) for all even i < k (1)di(x , y , y) ≈ di+1(x , y , y) for all odd i < kdk (x , y , z) ≈ z.

The Jónsson level of V is the least k .I How hard is it to test if V (A) is congruence distributive for a

finite A?

Page 91: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

A Better Way

TheoremLet V be a variety and let S be the subalgebra of F3

V(x , y)generated by (x , x , y), (x , y , x) and (y , x , x).

I V is congruence distributive iff there is a ρ-path in S from(x , x , y) to (y , x , x), where the first link is ρ01.

I If V is congruence distributive then the Jónsson level of Vis the length of the shortest such path.

I Moreover, if V is congruence distributive then the Jónssonlevel is at most 2m − 2, where m = |FV(x , y)| and this isthe best possible bound in terms of m.

Proof.More or less obvious, (except the last part).

Page 92: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

A Better Way(a,b, c) ρ (a′,b′, c′) if b = b′ and either a = a′ or c = c′.

TheoremLet V be a variety and let S be the subalgebra of F3

V(x , y)generated by (x , x , y), (x , y , x) and (y , x , x).

I V is congruence distributive iff there is a ρ-path in S from(x , x , y) to (y , x , x), where the first link is ρ01.

I If V is congruence distributive then the Jónsson level of Vis the length of the shortest such path.

I Moreover, if V is congruence distributive then the Jónssonlevel is at most 2m − 2, where m = |FV(x , y)| and this isthe best possible bound in terms of m.

Proof.More or less obvious, (except the last part).

Page 93: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

A Better Way(a,b, c) ρ (a′,b′, c′) if b = b′ and either a = a′ or c = c′.

TheoremLet V be a variety and let S be the subalgebra of F3

V(x , y)generated by (x , x , y), (x , y , x) and (y , x , x).

I V is congruence distributive iff there is a ρ-path in S from(x , x , y) to (y , x , x), where the first link is ρ01.

I If V is congruence distributive then the Jónsson level of Vis the length of the shortest such path.

I Moreover, if V is congruence distributive then the Jónssonlevel is at most 2m − 2, where m = |FV(x , y)| and this isthe best possible bound in terms of m.

Proof.More or less obvious, (except the last part).

Page 94: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

A Better Way(a,b, c) ρ (a′,b′, c′) if b = b′ and either a = a′ or c = c′.

TheoremLet V be a variety and let S be the subalgebra of F3

V(x , y)generated by (x , x , y), (x , y , x) and (y , x , x).

I V is congruence distributive iff there is a ρ-path in S from(x , x , y) to (y , x , x), where the first link is ρ01.

I If V is congruence distributive then the Jónsson level of Vis the length of the shortest such path.

I Moreover, if V is congruence distributive then the Jónssonlevel is at most 2m − 2, where m = |FV(x , y)| and this isthe best possible bound in terms of m.

Proof.More or less obvious, (except the last part).

Page 95: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

A Better Way(a,b, c) ρ (a′,b′, c′) if b = b′ and either a = a′ or c = c′.

TheoremLet V be a variety and let S be the subalgebra of F3

V(x , y)generated by (x , x , y), (x , y , x) and (y , x , x).

I V is congruence distributive iff there is a ρ-path in S from(x , x , y) to (y , x , x), where the first link is ρ01.

I If V is congruence distributive then the Jónsson level of Vis the length of the shortest such path.

I Moreover, if V is congruence distributive then the Jónssonlevel is at most 2m − 2, where m = |FV(x , y)| and this isthe best possible bound in terms of m.

Proof.More or less obvious, (except the last part).

Page 96: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

A Better Way(a,b, c) ρ (a′,b′, c′) if b = b′ and either a = a′ or c = c′.

TheoremLet V be a variety and let S be the subalgebra of F3

V(x , y)generated by (x , x , y), (x , y , x) and (y , x , x).

I V is congruence distributive iff there is a ρ-path in S from(x , x , y) to (y , x , x), where the first link is ρ01.

I If V is congruence distributive then the Jónsson level of Vis the length of the shortest such path.

I Moreover, if V is congruence distributive then the Jónssonlevel is at most 2m − 2, where m = |FV(x , y)| and this isthe best possible bound in terms of m.

Proof.More or less obvious, (except the last part).

Page 97: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

A Better Way

TheoremLet V be a variety and let S be the subalgebra of F3

V(x , y)generated by (x , x , y), (x , y , x) and (y , x , x).

I V is congruence distributive iff there is a ρ-path in S from(x , x , y) to (y , x , x), where the first link is ρ01.

I If V is congruence distributive then the Jónsson level of Vis the length of the shortest such path.

I Moreover, if V is congruence distributive then the Jónssonlevel is at most 2m − 2, where m = |FV(x , y)| and this isthe best possible bound in terms of m.

Proof.More or less obvious,

(except the last part).

Page 98: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

A Better Way

TheoremLet V be a variety and let S be the subalgebra of F3

V(x , y)generated by (x , x , y), (x , y , x) and (y , x , x).

I V is congruence distributive iff there is a ρ-path in S from(x , x , y) to (y , x , x), where the first link is ρ01.

I If V is congruence distributive then the Jónsson level of Vis the length of the shortest such path.

I Moreover, if V is congruence distributive then the Jónssonlevel is at most 2m − 2, where m = |FV(x , y)| and this isthe best possible bound in terms of m.

Proof.More or less obvious, (except the last part).

Page 99: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev ConditionsTaylor Terms

Theorem (Siggers)For a locally finite variety, having a Taylor term is a strongMaltsev condition.

I Variants of Siggers term have been given by severalpeople.

I Matt Valeriote’s talk will give some variants of Siggersoriginal term that are best for our computational purposes,along with short proofs.

Page 100: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev ConditionsTaylor Terms

Theorem (Siggers)For a locally finite variety, having a Taylor term is a strongMaltsev condition.

I Variants of Siggers term have been given by severalpeople.

I Matt Valeriote’s talk will give some variants of Siggersoriginal term that are best for our computational purposes,along with short proofs.

Page 101: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev ConditionsTaylor Terms

Theorem (Siggers)For a locally finite variety, having a Taylor term is a strongMaltsev condition.

I Variants of Siggers term have been given by severalpeople.

I Matt Valeriote’s talk will give some variants of Siggersoriginal term that are best for our computational purposes,along with short proofs.

Page 102: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev ConditionsCongruence SD∧

A weak near unanimity term is an idempotent term satisfying

t(y , x , . . . , x) ≈ t(x , y , . . . , x) ≈ · · · ≈ t(x , x , . . . , y)

Theorem (Kozik)A finitely generated variety is congruence SD∧ iff it has wnuterms w(x , y , z,u) and s(x , y , z) satisfying

w(x , x , x , y) ≈ s(x , x , y)

Corollary (M.Maroti and A. Janko)A finitely generated variety is congruence SD∧ iff it has a wnuterm s(x , y , z) and terms r(x , y , z) and t(x , y , z) satisfying

r(x , x , y) ≈ r(x , y , x) ≈ t(y , x , x) ≈ t(x , y , x) ≈ s(x , x , y)

r(y , x , x) ≈ t(y , y , x)

Page 103: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev ConditionsCongruence SD∧

Theorem (Kozik)A finitely generated variety is congruence SD∧ iff it has wnuterms w(x , y , z,u) and s(x , y , z) satisfying

w(x , x , x , y) ≈ s(x , x , y)

Corollary (M.Maroti and A. Janko)A finitely generated variety is congruence SD∧ iff it has a wnuterm s(x , y , z) and terms r(x , y , z) and t(x , y , z) satisfying

r(x , x , y) ≈ r(x , y , x) ≈ t(y , x , x) ≈ t(x , y , x) ≈ s(x , x , y)

r(y , x , x) ≈ t(y , y , x)

Page 104: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev ConditionsCongruence SD∧

Theorem (Kozik)A finitely generated variety is congruence SD∧ iff it has wnuterms w(x , y , z,u) and s(x , y , z) satisfying

w(x , x , x , y) ≈ s(x , x , y)

Corollary (M.Maroti and A. Janko)A finitely generated variety is congruence SD∧ iff it has a wnuterm s(x , y , z) and terms r(x , y , z) and t(x , y , z) satisfying

r(x , x , y) ≈ r(x , y , x) ≈ t(y , x , x) ≈ t(x , y , x) ≈ s(x , x , y)

r(y , x , x) ≈ t(y , y , x)

Page 105: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev ConditionsTesting Congruence SD∧

Form the subalgebra of F(x , y)4 generated by

(x , x , y , x) (x , y , x , x) (y , x , x , x)

And look for elements of the form

(a,a,a, x) (a,a,b, x) (b′,a,a, x)

where b′ = τ(b), where τ is the automorphism of F(x , y)interchanging x and y .

Page 106: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Maltsev ConditionsTesting Congruence SD∧

Form the subalgebra of F(x , y)4 generated by

(x , x , y , x) (x , y , x , x) (y , x , x , x)

And look for elements of the form

(a,a,a, x) (a,a,b, x) (b′,a,a, x)

where b′ = τ(b), where τ is the automorphism of F(x , y)interchanging x and y .

Page 107: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

u uu uu uu

���

@@@���

@@@�� @@

1

1 · 2 = 3

3 · 4 = 5

2

4 = 2 · 1

6 = 4 · 30

The calculator found SD∧ terms:

r(x , y , z) = yz · (zy · yx)

s(x , y , z) = (xy · yz)(zx · xy)

t(x , y , z) = (zx · xy) · yx

And also single wnu term s(x , y , z) with s(x , x , y) = s(y , y , x):

(xy · yx)[(yz · zx)(zy · xz)]

Page 108: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

u uu uu uu

���

@@@���

@@@�� @@

1

1 · 2 = 3

3 · 4 = 5

2

4 = 2 · 1

6 = 4 · 30

The calculator found SD∧ terms:

r(x , y , z) = yz · (zy · yx)

s(x , y , z) = (xy · yz)(zx · xy)

t(x , y , z) = (zx · xy) · yx

And also single wnu term s(x , y , z) with s(x , x , y) = s(y , y , x):

(xy · yx)[(yz · zx)(zy · xz)]

Page 109: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

u uu uu uu

���

@@@���

@@@�� @@

1

1 · 2 = 3

3 · 4 = 5

2

4 = 2 · 1

6 = 4 · 30

The calculator found SD∧ terms:

r(x , y , z) = yz · (zy · yx)

s(x , y , z) = (xy · yz)(zx · xy)

t(x , y , z) = (zx · xy) · yx

And also single wnu term s(x , y , z) with s(x , x , y) = s(y , y , x):

(xy · yx)[(yz · zx)(zy · xz)]

Page 110: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

TheoremThe variety of directoids satisfies the Maltsev condition of theCorollary with

r(x , y , z) = yz · (zy · yx)

s(x , y , z) = (xy · yz)(zx · xy)

t(x , y , z) = (zx · xy) · yx

The variety of directoids is congruence SD∧ (using results ofKearnes, Kiss, and Szendrei).

Page 111: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

TheoremThe variety of directoids satisfies the Maltsev condition of theCorollary with

r(x , y , z) = yz · (zy · yx)

s(x , y , z) = (xy · yz)(zx · xy)

t(x , y , z) = (zx · xy) · yx

The variety of directoids is congruence SD∧ (using results ofKearnes, Kiss, and Szendrei).

Page 112: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

TheoremThe variety of directoids satisfies the Maltsev condition of theCorollary with

r(x , y , z) = yz · (zy · yx)

s(x , y , z) = (xy · yz)(zx · xy)

t(x , y , z) = (zx · xy) · yx

The variety of directoids is congruence SD∧ (using results ofKearnes, Kiss, and Szendrei).

Proof.

r(x , x , y) = r(x , y , x) = t(y , x , x) = t(x , y , x) = s(x , x , y) = xy · yxr(y , x , x) = xyt(x , x , y) = yx

Page 113: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

TheoremIf V is a locally finite variety of directoids, it has a wnu terms(x , y , z) satisfying

s(x , x , y) ≈ s(y , y , x)

Proof.I A finite directoid has a greatest element.I If s(x , y , z) is the top of F(x , y , z), then all maps of {x , y , z}

onto {x , y} map s to the top of F(x , y).I So s(x , y , z) is a wnu term and s(x , x , y) = s(y , y , x).

TheoremThe variety of all directoids does not have such a term.

Proof.Ježek and Quackenbush show directoids do not have a termsatisfying u(x , y) ≈ u(y , x).

Page 114: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

TheoremIf V is a locally finite variety of directoids, it has a wnu terms(x , y , z) satisfying

s(x , x , y) ≈ s(y , y , x)

Proof.I A finite directoid has a greatest element.

I If s(x , y , z) is the top of F(x , y , z), then all maps of {x , y , z}onto {x , y} map s to the top of F(x , y).

I So s(x , y , z) is a wnu term and s(x , x , y) = s(y , y , x).

TheoremThe variety of all directoids does not have such a term.

Proof.Ježek and Quackenbush show directoids do not have a termsatisfying u(x , y) ≈ u(y , x).

Page 115: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

TheoremIf V is a locally finite variety of directoids, it has a wnu terms(x , y , z) satisfying

s(x , x , y) ≈ s(y , y , x)

Proof.I A finite directoid has a greatest element.I If s(x , y , z) is the top of F(x , y , z), then all maps of {x , y , z}

onto {x , y} map s to the top of F(x , y).

I So s(x , y , z) is a wnu term and s(x , x , y) = s(y , y , x).

TheoremThe variety of all directoids does not have such a term.

Proof.Ježek and Quackenbush show directoids do not have a termsatisfying u(x , y) ≈ u(y , x).

Page 116: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

TheoremIf V is a locally finite variety of directoids, it has a wnu terms(x , y , z) satisfying

s(x , x , y) ≈ s(y , y , x)

Proof.I A finite directoid has a greatest element.I If s(x , y , z) is the top of F(x , y , z), then all maps of {x , y , z}

onto {x , y} map s to the top of F(x , y).I So s(x , y , z) is a wnu term and s(x , x , y) = s(y , y , x).

TheoremThe variety of all directoids does not have such a term.

Proof.Ježek and Quackenbush show directoids do not have a termsatisfying u(x , y) ≈ u(y , x).

Page 117: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

TheoremIf V is a locally finite variety of directoids, it has a wnu terms(x , y , z) satisfying

s(x , x , y) ≈ s(y , y , x)

Proof.I A finite directoid has a greatest element.I If s(x , y , z) is the top of F(x , y , z), then all maps of {x , y , z}

onto {x , y} map s to the top of F(x , y).I So s(x , y , z) is a wnu term and s(x , x , y) = s(y , y , x).

TheoremThe variety of all directoids does not have such a term.

Proof.Ježek and Quackenbush show directoids do not have a termsatisfying u(x , y) ≈ u(y , x).

Page 118: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Directoids Again

TheoremIf V is a locally finite variety of directoids, it has a wnu terms(x , y , z) satisfying

s(x , x , y) ≈ s(y , y , x)

Proof.I A finite directoid has a greatest element.I If s(x , y , z) is the top of F(x , y , z), then all maps of {x , y , z}

onto {x , y} map s to the top of F(x , y).I So s(x , y , z) is a wnu term and s(x , x , y) = s(y , y , x).

TheoremThe variety of all directoids does not have such a term.

Proof.Ježek and Quackenbush show directoids do not have a termsatisfying u(x , y) ≈ u(y , x).

Page 119: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Testing Primality

Theorem (Clark, Davey, Pitkethly, Rifqui; McKenzie)Let A be an algebra on {0,1, . . . ,n − 1}. A is primal iff

I the subalgebra of A4 generated by (0,0,1,1) and(0,1,0,1) contains (0,0,0,1) (the meet), and

I FV(A)(1) ≤ An contains

χ0 = (1,0, . . . ,0),

...χn−1 = (0, . . . ,0,1),

andI the subalgebra of FV(A)(1) generated by the χi ’s includes

(0,1, . . . ,n − 1).

Page 120: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Testing Primality

Theorem (Clark, Davey, Pitkethly, Rifqui; McKenzie)Let A be an algebra on {0,1, . . . ,n − 1}. A is primal iff

I the subalgebra of A4 generated by (0,0,1,1) and(0,1,0,1) contains (0,0,0,1) (the meet), and

I FV(A)(1) ≤ An contains

χ0 = (1,0, . . . ,0),

...χn−1 = (0, . . . ,0,1),

andI the subalgebra of FV(A)(1) generated by the χi ’s includes

(0,1, . . . ,n − 1).

Page 121: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Testing Primality

Theorem (Clark, Davey, Pitkethly, Rifqui; McKenzie)Let A be an algebra on {0,1, . . . ,n − 1}. A is primal iff

I the subalgebra of A4 generated by (0,0,1,1) and(0,1,0,1) contains (0,0,0,1) (the meet), and

I FV(A)(1) ≤ An contains

χ0 = (1,0, . . . ,0),

...χn−1 = (0, . . . ,0,1),

and

I the subalgebra of FV(A)(1) generated by the χi ’s includes(0,1, . . . ,n − 1).

Page 122: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Testing Primality

Theorem (Clark, Davey, Pitkethly, Rifqui; McKenzie)Let A be an algebra on {0,1, . . . ,n − 1}. A is primal iff

I the subalgebra of A4 generated by (0,0,1,1) and(0,1,0,1) contains (0,0,0,1) (the meet), and

I FV(A)(1) ≤ An contains

χ0 = (1,0, . . . ,0),

...χn−1 = (0, . . . ,0,1),

andI the subalgebra of FV(A)(1) generated by the χi ’s includes

(0,1, . . . ,n − 1).

Page 123: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Day QuadruplesLet a, b, c and d ∈ A and let

α = CgA(c,d) β = CgA((a,b)(c,d)) γ = CgA((a, c)(b,d))

ssγ ss β

s

��

@@@

@@

���

s sα@@��

@@

(a,b, c,d) is a Day quadruple if in the subalgebra B generatedby {a,b, c,d}

(a,b) /∈ CgB(c,d) ∨ [CgB((a,b)(c,d)) ∧ CgB((a, c)(b,d))]

Page 124: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Day QuadruplesLet a, b, c and d ∈ A and let

α = CgA(c,d) β = CgA((a,b)(c,d)) γ = CgA((a, c)(b,d))

ssγ ss β

s

��

@@@

@@

���

s sα@@��

@@

(a,b, c,d) is a Day quadruple if in the subalgebra B generatedby {a,b, c,d}

(a,b) /∈ CgB(c,d) ∨ [CgB((a,b)(c,d)) ∧ CgB((a, c)(b,d))]

Page 125: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Day QuadruplesLet a, b, c and d ∈ A and let

α = CgA(c,d) β = CgA((a,b)(c,d)) γ = CgA((a, c)(b,d))

ssγ ss β

s

��

@@@

@@

���

s sα@@��

@@

(a,b, c,d) is a Day quadruple if in the subalgebra B generatedby {a,b, c,d}

(a,b) /∈ CgB(c,d) ∨ [CgB((a,b)(c,d)) ∧ CgB((a, c)(b,d))]

Page 126: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra and V be the variety itgenerates. Then V fails to be congruence modular if and only ifthere is a Day quadruple, (a,b, c,d) in A2.

Moreover, this Day quadruple can be chosen so thatI there exist x0, x1, y0, y1 in A such that a = (x0, x1),

b = (x0, y1), c = (y0, x1), and d = (y0, y1);

Page 127: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra and V be the variety itgenerates. Then V fails to be congruence modular if and only ifthere is a Day quadruple, (a,b, c,d) in A2.

Moreover, this Day quadruple can be chosen so thatI there exist x0, x1, y0, y1 in A such that a = (x0, x1),

b = (x0, y1), c = (y0, x1), and d = (y0, y1);

Page 128: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

n = |A|

m = ||A|| =r∑

i=0

kini

r = the largest arity of the operations of A

(ki = the number of basic operations of arity i)

Page 129: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra with parameters as above.Then each of the following can be determined in the timeindicated:

V(A) is congruence modular: crn4m2.

V(A) is congruence distributive: crn4m2.V(A) is congruence semidistributive: crn2m2.V(A) is congruence meet semidistributive: crn2m2.V(A) is congruence permutable: crn4m2.V(A) is congruence k-permutable for some k: crn3m.A has a Taylor term: crn3m.A has a Hobby-McKenzie term: crn3m.A has a majority term: crn6m2.

Page 130: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra with parameters as above.Then each of the following can be determined in the timeindicated:

V(A) is congruence modular: crn4m2.V(A) is congruence distributive: crn4m2.

V(A) is congruence semidistributive: crn2m2.V(A) is congruence meet semidistributive: crn2m2.V(A) is congruence permutable: crn4m2.V(A) is congruence k-permutable for some k: crn3m.A has a Taylor term: crn3m.A has a Hobby-McKenzie term: crn3m.A has a majority term: crn6m2.

Page 131: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra with parameters as above.Then each of the following can be determined in the timeindicated:

V(A) is congruence modular: crn4m2.V(A) is congruence distributive: crn4m2.V(A) is congruence semidistributive: crn2m2.

V(A) is congruence meet semidistributive: crn2m2.V(A) is congruence permutable: crn4m2.V(A) is congruence k-permutable for some k: crn3m.A has a Taylor term: crn3m.A has a Hobby-McKenzie term: crn3m.A has a majority term: crn6m2.

Page 132: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra with parameters as above.Then each of the following can be determined in the timeindicated:

V(A) is congruence modular: crn4m2.V(A) is congruence distributive: crn4m2.V(A) is congruence semidistributive: crn2m2.V(A) is congruence meet semidistributive: crn2m2.

V(A) is congruence permutable: crn4m2.V(A) is congruence k-permutable for some k: crn3m.A has a Taylor term: crn3m.A has a Hobby-McKenzie term: crn3m.A has a majority term: crn6m2.

Page 133: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra with parameters as above.Then each of the following can be determined in the timeindicated:

V(A) is congruence modular: crn4m2.V(A) is congruence distributive: crn4m2.V(A) is congruence semidistributive: crn2m2.V(A) is congruence meet semidistributive: crn2m2.V(A) is congruence permutable: crn4m2.

V(A) is congruence k-permutable for some k: crn3m.A has a Taylor term: crn3m.A has a Hobby-McKenzie term: crn3m.A has a majority term: crn6m2.

Page 134: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra with parameters as above.Then each of the following can be determined in the timeindicated:

V(A) is congruence modular: crn4m2.V(A) is congruence distributive: crn4m2.V(A) is congruence semidistributive: crn2m2.V(A) is congruence meet semidistributive: crn2m2.V(A) is congruence permutable: crn4m2.V(A) is congruence k-permutable for some k: crn3m.

A has a Taylor term: crn3m.A has a Hobby-McKenzie term: crn3m.A has a majority term: crn6m2.

Page 135: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra with parameters as above.Then each of the following can be determined in the timeindicated:

V(A) is congruence modular: crn4m2.V(A) is congruence distributive: crn4m2.V(A) is congruence semidistributive: crn2m2.V(A) is congruence meet semidistributive: crn2m2.V(A) is congruence permutable: crn4m2.V(A) is congruence k-permutable for some k: crn3m.A has a Taylor term: crn3m.

A has a Hobby-McKenzie term: crn3m.A has a majority term: crn6m2.

Page 136: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra with parameters as above.Then each of the following can be determined in the timeindicated:

V(A) is congruence modular: crn4m2.V(A) is congruence distributive: crn4m2.V(A) is congruence semidistributive: crn2m2.V(A) is congruence meet semidistributive: crn2m2.V(A) is congruence permutable: crn4m2.V(A) is congruence k-permutable for some k: crn3m.A has a Taylor term: crn3m.A has a Hobby-McKenzie term: crn3m.

A has a majority term: crn6m2.

Page 137: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra with parameters as above.Then each of the following can be determined in the timeindicated:

V(A) is congruence modular: crn4m2.V(A) is congruence distributive: crn4m2.V(A) is congruence semidistributive: crn2m2.V(A) is congruence meet semidistributive: crn2m2.V(A) is congruence permutable: crn4m2.V(A) is congruence k-permutable for some k: crn3m.A has a Taylor term: crn3m.A has a Hobby-McKenzie term: crn3m.A has a majority term: crn6m2.

Page 138: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent Algebras

Theorem (Freese, Valeriote)Let A be a finite idempotent algebra with parameters as above.Then each of the following can be determined in the timeindicated:

V(A) is congruence modular: crn4m2.V(A) is congruence distributive: crn4m2.

-> V(A) is congruence semidistributive: crn2m2.-> V(A) is congruence meet semidistributive: crn2m2.

V(A) is congruence permutable: crn4m2.-> V(A) is congruence k-permutable for some k: crn3m.-> A has a Taylor term: crn3m.-> A has a Hobby-McKenzie term: crn3m.

A has a majority term: crn6m2.

Page 139: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent AlgebrasTCT Types

rr

rrr

���

@@

@@@

@@@

�����

r 1

25

4

3

Theorem (Szendrei, Valeriote)I Let T be a proper order ideal of the lattice of types, andI let A be a finite idempotent algebra that fails to omit T .

Then a witness of this failure can be found in a strictly simplealgebra S in HS(A).

If S is a strictly simple idempotent algebra of TCT type 1, 4, or5, then |S| = 2.

TheoremLet A be finite indempotent, and let S ∈ HS(A) be strictlysimple. Then

I there are a, b ∈ A such that, if B = SgA(a,b), thenI CgB(a,b) = 1B and is join irreducible with lower cover ρ

such that B/ρ = S.

Page 140: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent AlgebrasTCT Types

rr

rrr

���

@@

@@@

@@@

�����

r 1 Unary

Vector Space 25 Semilattice

4 Lattice

3 Boolean

Theorem (Szendrei, Valeriote)I Let T be a proper order ideal of the lattice of types, andI let A be a finite idempotent algebra that fails to omit T .

Then a witness of this failure can be found in a strictly simplealgebra S in HS(A).

If S is a strictly simple idempotent algebra of TCT type 1, 4, or5, then |S| = 2.

TheoremLet A be finite indempotent, and let S ∈ HS(A) be strictlysimple. Then

I there are a, b ∈ A such that, if B = SgA(a,b), thenI CgB(a,b) = 1B and is join irreducible with lower cover ρ

such that B/ρ = S.

Page 141: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent AlgebrasTCT Types

Theorem (Szendrei, Valeriote)

I Let T be a proper order ideal of the lattice of types, andI let A be a finite idempotent algebra that fails to omit T .

Then a witness of this failure can be found in a strictly simplealgebra S in HS(A).

If S is a strictly simple idempotent algebra of TCT type 1, 4, or5, then |S| = 2.

TheoremLet A be finite indempotent, and let S ∈ HS(A) be strictlysimple. Then

I there are a, b ∈ A such that, if B = SgA(a,b), thenI CgB(a,b) = 1B and is join irreducible with lower cover ρ

such that B/ρ = S.

Page 142: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent AlgebrasTCT Types

Theorem (Szendrei, Valeriote)

I Let T be a proper order ideal of the lattice of types, andI let A be a finite idempotent algebra that fails to omit T .

Then a witness of this failure can be found in a strictly simplealgebra S in HS(A).

If S is a strictly simple idempotent algebra of TCT type 1, 4, or5, then |S| = 2.

TheoremLet A be finite indempotent, and let S ∈ HS(A) be strictlysimple. Then

I there are a, b ∈ A such that, if B = SgA(a,b), thenI CgB(a,b) = 1B and is join irreducible with lower cover ρ

such that B/ρ = S.

Page 143: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent AlgebrasTCT Types

Theorem (Szendrei, Valeriote)

I Let T be a proper order ideal of the lattice of types, andI let A be a finite idempotent algebra that fails to omit T .

Then a witness of this failure can be found in a strictly simplealgebra S in HS(A).

If S is a strictly simple idempotent algebra of TCT type 1, 4, or5, then |S| = 2.

TheoremLet A be finite indempotent, and let S ∈ HS(A) be strictlysimple. Then

I there are a, b ∈ A such that, if B = SgA(a,b), thenI CgB(a,b) = 1B and is join irreducible with lower cover ρ

such that B/ρ = S.

Page 144: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

Polynomial Algorithms for Idempotent AlgebrasTCT Types

Theorem (Szendrei, Valeriote)

I Let T be a proper order ideal of the lattice of types, andI let A be a finite idempotent algebra that fails to omit T .

Then a witness of this failure can be found in a strictly simplealgebra S in HS(A).

If S is a strictly simple idempotent algebra of TCT type 1, 4, or5, then |S| = 2.

TheoremLet A be finite indempotent, and let S ∈ HS(A) be strictlysimple. Then

I there are a, b ∈ A such that, if B = SgA(a,b), thenI CgB(a,b) = 1B and is join irreducible with lower cover ρ

such that B/ρ = S.

Page 145: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

The End

UACalc Web Site:

http://uacalc.org/

Page 146: Algorithms in Universal Algebra and the UACalculatorralph/Talks/Freese.pdfI (Székely) There is an A where it is NP-complete. I (Kozik & Kun) There is a groupoid where it’s NP-complete

The End

UACalc Web Site:

http://uacalc.org/