Universal Algebra in HoTT Andreas Lynge and Bas Spitters Aarhus - - PowerPoint PPT Presentation

universal algebra in hott
SMART_READER_LITE
LIVE PREVIEW

Universal Algebra in HoTT Andreas Lynge and Bas Spitters Aarhus - - PowerPoint PPT Presentation

Universal Algebra in HoTT Andreas Lynge and Bas Spitters Aarhus University August 13, 2019 Introduction Universal algebra is a general study of algebraic structures. The results in universal algebra apply to all algebras, e.g. groups,


slide-1
SLIDE 1

Universal Algebra in HoTT

Andreas Lynge and Bas Spitters

Aarhus University

August 13, 2019

slide-2
SLIDE 2

Introduction

‚ Universal algebra is a general study of algebraic structures. The results in universal algebra apply to all “algebras”, e.g. groups, rings, modules. ‚ We have formalized a part of universal algebra in the HoTT library for Coq, including the three isomorphism theorems. ‚ Based on the math-classes library. ‚ Type theoretic universal algebra often relies on setoids. ‚ We avoid setoids in the HoTT library, quotient sets are HITs.

slide-3
SLIDE 3

Group

Example (Group)

A group is an h-set G : Set with ‚ unit e : G ‚ multiplication ¨ : G Ñ G Ñ G ‚ inversion p´q´1 : G Ñ G ‚ satisfying certain equations, e.g. x ¨ x´1 “ e for all x : G.

slide-4
SLIDE 4

Group acting on a set

Example (Group)

A group is an h-set G : Set with ‚ unit e : G ‚ multiplication ¨ : G Ñ G Ñ G ‚ inversion p´q´1 : G Ñ G ‚ satisfying certain equations, e.g. x ¨ x´1 “ e for all x : G.

Example (Group acting on a set)

A group acting on a set is a group G and an h-set S with ‚ action α : G Ñ S Ñ S ‚ αpx ¨ yq “ αpxq ˝ αpyq ‚ αpeq “ idS

slide-5
SLIDE 5

Signature

Definition (Signature)

A signature σ : Signature consists of ‚ Sortpσq : U ‚ Symbolpσq : U ‚ for each u : Symbolpσq, σu : Sortpσq ˆ ListpSortpσqq.

slide-6
SLIDE 6

Algebra

Definition (Signature)

A signature σ : Signature consists of ‚ Sortpσq : U ‚ Symbolpσq : U ‚ for each u : Symbolpσq, σu : Sortpσq ˆ ListpSortpσqq.

Definition (Algebra)

An algebra A : Algebrapσq for σ : Signature consists of ‚ for each s : Sortpσq, As : Set ‚ for each u : Symbolpσq, uA : As1 Ñ As2 Ñ ¨ ¨ ¨ Ñ Asn, where ps1, rs2, . . . , snsq :” σu.

slide-7
SLIDE 7

Example (Group acting on a set)

A group G acting on a set S, ‚ unit e : G ‚ multiplication ¨ : G Ñ G Ñ G ‚ inversion p´q´1 : G Ñ G ‚ action α : G Ñ S Ñ S, is an algebra A : Algebrapσq for σ : Signature with ‚ Sortpσq ” tg, su ‚ Symbolpσq ” tu, m, i, au ‚ σu ” pg, rsq, σm ” pg, rg, gsq, σi ” pg, rgsq, σa ” pg, rs, ssq. Carriers Ag :” G and As :” S, and operations ‚ uA : Ag is unit ‚ mA : Ag Ñ Ag Ñ Ag is multiplication ‚ iA : Ag Ñ Ag is inversion ‚ aA : Ag Ñ As Ñ As is the action.

slide-8
SLIDE 8

Let A, B, C : Algebrapσq.

slide-9
SLIDE 9

Homomorphism

Let A, B, C : Algebrapσq.

Definition (Homomorphism)

A homomorphism f : A Ñ B consists of ‚ fs : As Ñ Bs for all s : Sortpσq ‚ fstpuApx1, . . . , xnqq “ uBpfs1px1q, . . . , fsnpxnqq, for all u : Symbolpσq.

slide-10
SLIDE 10

Isomorphism

Let A, B, C : Algebrapσq.

Definition (Homomorphism)

A homomorphism f : A Ñ B consists of ‚ fs : As Ñ Bs for all s : Sortpσq ‚ fstpuApx1, . . . , xnqq “ uBpfs1px1q, . . . , fsnpxnqq, for all u : Symbolpσq.

Definition (Isomorphism)

An isomorphism is a homomorphism f : A Ñ B where fs : As Ñ Bs is an equivalence for all s : Sortpσq.

slide-11
SLIDE 11

Isomorphic

Let A, B, C : Algebrapσq.

Definition (Homomorphism)

A homomorphism f : A Ñ B consists of ‚ fs : As Ñ Bs for all s : Sortpσq ‚ fstpuApx1, . . . , xnqq “ uBpfs1px1q, . . . , fsnpxnqq, for all u : Symbolpσq.

Definition (Isomorphism)

An isomorphism is a homomorphism f : A Ñ B where fs : As Ñ Bs is an equivalence for all s : Sortpσq.

Definition (Isomorphic)

Write A – B for there is an isomorphism A Ñ B.

slide-12
SLIDE 12

Isomorphic implies equal

Theorem (Isomrophic implies equal)

If A – B then A “ B. ‚ Coquand and Danielsson, Isomorphism is equality.

slide-13
SLIDE 13

Lemma

Theorem (Isomrophic implies equal)

If A – B then A “ B. ‚ Coquand and Danielsson, Isomorphism is equality.

Lemma

Suppose ‚ X, Y : Sortpσq Ñ Set ‚ α : Xs1 Ñ ¨ ¨ ¨ Ñ Xsn Ñ Xt and β : Ys1 Ñ ¨ ¨ ¨ Ñ Ysn Ñ Yt ‚ f : ś

s Xs » Ys

‚ ftpαpx1, . . . , xnqq “ βpfs1px1q, . . . , fsnpxnqq. Then transportpλZ. Zs1Ѩ¨¨ÑZsnÑZtq pfunext

ś

s Xs“Ys

hkkikkj pua ˝f qq loooooooomoooooooon

X“Y

pαq “ β

slide-14
SLIDE 14

Precategory of algebras

Lemma (Precategory of algebras)

There is a precategory σ-Alg of Algebrapσq and homomorphisms, ‚ p1Aqs ” λx. x, s : Sortpσq ‚ pgf qs ” gs ˝ fs, f : A Ñ B, g : B Ñ C

slide-15
SLIDE 15

Equal is equivalent to isomorphic

Lemma (Precategory of algebras)

There is a precategory σ-Alg of Algebrapσq and homomorphisms, ‚ p1Aqs ” λx. x, s : Sortpσq ‚ pgf qs ” gs ˝ fs, f : A Ñ B, g : B Ñ C

Theorem (Equal is equivalent to isomorphic)

The function pA “ Bq Ñ pA – Bq is an equivalence.

slide-16
SLIDE 16

Univalent category of algebras

Lemma (Precategory of algebras)

There is a precategory σ-Alg of Algebrapσq and homomorphisms, ‚ p1Aqs ” λx. x, s : Sortpσq ‚ pgf qs ” gs ˝ fs, f : A Ñ B, g : B Ñ C

Theorem (Equal is equivalent to isomorphic)

The function pA “ Bq Ñ pA – Bq is an equivalence.

Theorem (Univalent category of algebras)

The precategory σ-Alg is a univalent category. ‚ HoTT book, http://homotopytypetheory.org/book. ‚ Arhens and Lumsdaine, Displayed Categories.

slide-17
SLIDE 17

Congruence

Definition (Congruence)

A congruence on A is a family of mere equivalence relations Θ : ś

spAs Ñ As Ñ Propq where

Θs1px1, y1q ˆ ¨ ¨ ¨ ˆ Θsnpxn, ynq implies Θst ` uApx1, . . . , xnq, uApy1, . . . , ynq ˘ for all u : Symbolpσq.

slide-18
SLIDE 18

Quotient algebra

Definition (Congruence)

A congruence on A is a family of mere equivalence relations Θ : ś

spAs Ñ As Ñ Propq where

Θs1px1, y1q ˆ ¨ ¨ ¨ ˆ Θsnpxn, ynq implies Θst ` uApx1, . . . , xnq, uApy1, . . . , ynq ˘ for all u : Symbolpσq.

Definition (Quotient algebra)

Let Θ : ś

spAs Ñ As Ñ Propq be a congruence. The quotient

algebra A{Θ consists of ‚ pA{Θqs :” As{Θs, the set-quotient ‚ operations uA{Θ` q1px1q, . . . , qnpxnq ˘ “ qt ` uApx1, . . . , xnq ˘ , where qi : Asi Ñ Asi{Θsi are the set-quotient constructors.

slide-19
SLIDE 19

Suppose Θ : ś

spAs Ñ As Ñ Propq is a congruence.

slide-20
SLIDE 20

Quotient homomorphism

Suppose Θ : ś

spAs Ñ As Ñ Propq is a congruence.

Lemma (Quotient homomorphism)

There is a homomorphism ρ : A Ñ A{Θ, pointwise As Ñ As{Θs.

slide-21
SLIDE 21

Quotient universal property

Suppose Θ : ś

spAs Ñ As Ñ Propq is a congruence.

Lemma (Quotient homomorphism)

There is a homomorphism ρ : A Ñ A{Θ, pointwise As Ñ As{Θs.

Lemma (Quotient universal property)

Precomposition with ρ : A Ñ A{Θ induces an equivalence pA{Θ Ñ Bq » ř

f :AÑB resppf q,

where resppf q :” ś

s:Sortpσq

ś

x,y:As

` Θspx, yq Ñ fspxq “ fspyq ˘ . Let f : A Ñ B such that resppf q. Then there is a unique p : A{Θ Ñ B satisfying f “ pq. Coequalizers in σ-Alg are quotient algebras. A A{Θ B f p ρ

slide-22
SLIDE 22

Product algebra

Product algebra

Let F : I Ñ Algebrapσq. The product algebra Ś

i Fpiq has carriers

i Fpiqqs ” ś ipFpiqqs

There are projection homomorphisms πj : Ś

i Fpiq Ñ Fpjq.

Products in σ-Alg are product algebras.

slide-23
SLIDE 23

Subalgebra

Product algebra

Let F : I Ñ Algebrapσq. The product algebra Ś

i Fpiq has carriers

i Fpiqqs ” ś ipFpiqqs

There are projection homomorphisms πj : Ś

i Fpiq Ñ Fpjq.

Products in σ-Alg are product algebras.

Subalgebra

Let P : ś

spAs Ñ Propq such that, for any u : Symbolpσq,

Ps1px1q ˆ ¨ ¨ ¨ ˆ Psnpxnq implies Pn`1puApx1, . . . , xnqq, where ps1, rs2, . . . , sn`1sq ” σu. Then there is a subalgebra A&P with carriers pA&Pqs ” ř

x:As Pspxq

There exists an inclusion homomorphism pA&Pq Ñ A. Equalizers in σ-Alg are subalgebras.

slide-24
SLIDE 24

First isomorphism theorem

Theorem (First isomorphism/identification theorem)

Let f : A Ñ B be a homomorphism. ‚ kerpf qps, x, yq :” ` fspxq “ fspyq ˘ is a congruence. ‚ inimpf qps, yq :” ř

xpfspxq “ yq is closed under operations,

so it induces a subalgebra B& inimpf q of B. ‚ There exists an isomorphism A{ kerpf q Ñ B& inimpf q.

slide-25
SLIDE 25

First identification theorem

Theorem (First isomorphism/identification theorem)

Let f : A Ñ B be a homomorphism. ‚ kerpf qps, x, yq :” ` fspxq “ fspyq ˘ is a congruence. ‚ inimpf qps, yq :” ř

xpfspxq “ yq is closed under operations,

so it induces a subalgebra B& inimpf q of B. ‚ There exists an isomorphism A{ kerpf q Ñ B& inimpf q. ‚ Therefore A{ kerpf q “ B& inimpf q.

slide-26
SLIDE 26

The category of algebras is regular

Theorem (First isomorphism/identification theorem)

Let f : A Ñ B be a homomorphism. ‚ kerpf qps, x, yq :” ` fspxq “ fspyq ˘ is a congruence. ‚ inimpf qps, yq :” ř

xpfspxq “ yq is closed under operations,

so it induces a subalgebra B& inimpf q of B. ‚ There exists an isomorphism A{ kerpf q Ñ B& inimpf q. ‚ Therefore A{ kerpf q “ B& inimpf q. Category σ-Alg is regular, ‚ f : A Ñ B image factorizes A Ñ B& inimpf q ã Ñ B ‚ images are pullback stable. ‚ σ-Alg is complete

slide-27
SLIDE 27

Conclusion and future work

‚ Type theoretic universal algebra without setoids. ‚ Port free algebras from math-classes. ‚ Define variety (equational theory), a subtype of Algebrapσq satisfying equational laws involving operations. ‚ Birkhoff’s HSP theorem. ‚ A verified computer algebra library.