A complete deductive calculus for (implications of) coequations - - PowerPoint PPT Presentation

a complete deductive calculus for implications of
SMART_READER_LITE
LIVE PREVIEW

A complete deductive calculus for (implications of) coequations - - PowerPoint PPT Presentation

A complete deductive calculus for (implications of) coequations Jesse Hughes jesseh@cs.kun.nl University of Nijmegen A complete deductive calculus for (implications of) coequations p.1/30 Outline I. Preliminaries A complete deductive


slide-1
SLIDE 1

A complete deductive calculus for (implications of) coequations

Jesse Hughes

jesseh@cs.kun.nl

University of Nijmegen

A complete deductive calculus for (implications of) coequations – p.1/30

slide-2
SLIDE 2

Outline

  • I. Preliminaries

A complete deductive calculus for (implications of) coequations – p.2/30

slide-3
SLIDE 3

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties

A complete deductive calculus for (implications of) coequations – p.2/30

slide-4
SLIDE 4

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations

A complete deductive calculus for (implications of) coequations – p.2/30

slide-5
SLIDE 5

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems

A complete deductive calculus for (implications of) coequations – p.2/30

slide-6
SLIDE 6

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem

A complete deductive calculus for (implications of) coequations – p.2/30

slide-7
SLIDE 7

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)

A complete deductive calculus for (implications of) coequations – p.2/30

slide-8
SLIDE 8

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.2/30

slide-9
SLIDE 9

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)

A complete deductive calculus for (implications of) coequations – p.2/30

slide-10
SLIDE 10

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.2/30

slide-11
SLIDE 11

Coalgebras

Given a functor Γ:C

C, a Γ-coalgebra is a pair

C, γ, where C ∈ C and γ :C

ΓC.

A complete deductive calculus for (implications of) coequations – p.3/30

slide-12
SLIDE 12

Coalgebras

Given a functor Γ:C

C, a Γ-coalgebra is a pair

C, γ, where C ∈ C and γ :C

ΓC. A Γ-morphism is a

commutative square, as in ΓC

Γf ΓD

C

γ

  • f

D δ

  • A complete deductive calculus for (implications of) coequations – p.3/30
slide-13
SLIDE 13

Coalgebras

Given a functor Γ:C

C, a Γ-coalgebra is a pair

C, γ, where C ∈ C and γ :C

ΓC. A Γ-morphism is a

commutative square, as in ΓC

Γf ΓD

C

γ

  • f

D δ

  • The category of Γ-coalgebras and their homomorphisms is

denoted CΓ.

A complete deductive calculus for (implications of) coequations – p.3/30

slide-14
SLIDE 14

Factorization systems

A factorization system for C consists of two collections of arrows, H and S, satisfying the following conditions.

A complete deductive calculus for (implications of) coequations – p.4/30

slide-15
SLIDE 15

Factorization systems

A factorization system for C consists of two collections of arrows, H and S, satisfying the following conditions.

  • Every isomorphism is in H and S;

A complete deductive calculus for (implications of) coequations – p.4/30

slide-16
SLIDE 16

Factorization systems

A factorization system for C consists of two collections of arrows, H and S, satisfying the following conditions.

  • Every isomorphism is in H and S;
  • H and S are closed under composition;

A complete deductive calculus for (implications of) coequations – p.4/30

slide-17
SLIDE 17

Factorization systems

A factorization system for C consists of two collections of arrows, H and S, satisfying the following conditions.

  • Every isomorphism is in H and S;
  • H and S are closed under composition;
  • H and S satisfy the diagonal fill-in property , namely,

for every commutative square

  • e
  • f
  • m •

where e ∈ H and m ∈ S, there is a unique arrow f, as shown, making each triangle commute ;

A complete deductive calculus for (implications of) coequations – p.4/30

slide-18
SLIDE 18

Factorization systems

A factorization system for C consists of two collections of arrows, H and S, satisfying the following conditions.

  • Every isomorphism is in H and S;
  • H and S are closed under composition;
  • H and S satisfy the diagonal fill-in property;
  • every arrow f factors as f = m ◦ e, where e ∈ H and

m ∈ S;

A complete deductive calculus for (implications of) coequations – p.4/30

slide-19
SLIDE 19

Factorization systems

  • every arrow f factors as f = m ◦ e, where e ∈ H and

m ∈ S; If C has a factorization system, then any arrow f :A

B

can be factored uniquely up to isomorphism thus. A

f

  • B

Im(f)

  • A complete deductive calculus for (implications of) coequations – p.4/30
slide-20
SLIDE 20

Factorization systems

  • every arrow f factors as f = m ◦ e, where e ∈ H and

m ∈ S; For each C ∈ C, define Sub(C) = {j ∈ S | cod(j) = C}/ ∼ = .

A complete deductive calculus for (implications of) coequations – p.4/30

slide-21
SLIDE 21

Factorization systems

  • every arrow f factors as f = m ◦ e, where e ∈ H and

m ∈ S; For each C ∈ C, define Sub(C) = {j ∈ S | cod(j) = C}/ ∼ = . C is S-well-powered if, for every C ∈ C, Sub(C) is a set.

A complete deductive calculus for (implications of) coequations – p.4/30

slide-22
SLIDE 22

Factorization systems

  • every arrow f factors as f = m ◦ e, where e ∈ H and

m ∈ S; For each C ∈ C, define Sub(C) = {j ∈ S | cod(j) = C}/ ∼ = . Each h:C

D induces a morphism ∃h:Sub(C) Sub(D)

by ∃h(A i C) = Im(i ◦ h). A

  • ∃hA
  • C

h D

A complete deductive calculus for (implications of) coequations – p.4/30

slide-23
SLIDE 23

Factorization systems for coalgebras

Let H, S be a factorization system and suppose that Γ:C

C preserves S-morphisms (i.e., if i ∈ S, then

Γi ∈ S) .

A complete deductive calculus for (implications of) coequations – p.5/30

slide-24
SLIDE 24

Factorization systems for coalgebras

Let H, S be a factorization system and suppose that Γ:C

C preserves S-morphisms.

Then the pair U −1(H), U −1(S) form a factorization system for CΓ.

A complete deductive calculus for (implications of) coequations – p.5/30

slide-25
SLIDE 25

Factorization systems for coalgebras

Let H, S be a factorization system and suppose that Γ:C

C preserves S-morphisms.

Then the pair U −1(H), U −1(S) form a factorization system for CΓ. In other words, every Γ-homomorphism f :A, α

B, β factors uniquely as in

A

f

  • p

B Im(f)

  • i
  • where p and i are Γ-homomorphisms.

A complete deductive calculus for (implications of) coequations – p.5/30

slide-26
SLIDE 26

Cofree coalgebras

Let D, δ be given, together with a C-coloring εC :D

C

  • f D.

We say that D, δ is cofree over C just in case, for every coalgebra A, α and every coloring p:A

C, there is a

unique homomorphism p:A, α

D, δ such that the

diagram below commutes. D

εC

  • D, δ

C A

p

  • p
  • A, α
  • p
  • A complete deductive calculus for (implications of) coequations – p.6/30
slide-27
SLIDE 27

Cofree coalgebras

Let D, δ be given, together with a C-coloring εC :D

C

  • f D.

D

εC

  • D, δ

C A

p

  • p
  • A, α
  • p
  • For any coloring p:A

C, there is a Γ-homomorphism

  • p:A, α

D, δ “consistent” with p.

A complete deductive calculus for (implications of) coequations – p.6/30

slide-28
SLIDE 28

Cofree coalgebras

Let D, δ be given, together with a C-coloring εC :D

C

  • f D.

D

εC

  • D, δ

C A

p

  • p
  • A, α
  • p
  • If, for every object C ∈ C, there is a cofree D, δ over

C, then we have an adjunction CΓ

U ⊥ C. H

  • A complete deductive calculus for (implications of) coequations – p.6/30
slide-29
SLIDE 29

S-injectives

An object C ∈ C is S-injective if, for all j :A B in S, and all f :A

C, there is a (not necessarily unique) extension

g:B

C making the diagram below commute.

B

g C

A

j

  • f
  • A complete deductive calculus for (implications of) coequations – p.7/30
slide-30
SLIDE 30

S-injectives

An object C ∈ C is S-injective if, for all j :A B in S, and all f :A

C, there is a (not necessarily unique) extension

g:B

C making the diagram below commute.

B

g C

A

j

  • f
  • C has enough S-injectives iff for every A ∈ C, there is an

S-injective C ∈ C and a S-morphism A C.

A complete deductive calculus for (implications of) coequations – p.7/30

slide-31
SLIDE 31

S-injectives

  • Theorem. If U :CΓ

C has a right adjoint H and C

has enough S-injectives, then CΓ has enough U −1S-injectives.

A complete deductive calculus for (implications of) coequations – p.7/30

slide-32
SLIDE 32

S-injectives

  • Theorem. If U :CΓ

C has a right adjoint H and C has enough

S-injectives, then CΓ has enough U −1S-injectives.

  • Proof. Let A, α be given and A ≤ C, where C is S-injective.

Then A, α ≤ HC. It suffices to show HC is U −1S-injective.

A complete deductive calculus for (implications of) coequations – p.7/30

slide-33
SLIDE 33

S-injectives

  • Theorem. If U :CΓ

C has a right adjoint H and C has enough

S-injectives, then CΓ has enough U −1S-injectives.

  • Proof. Let A, α be given and A ≤ C, where C is S-injective.

Then A, α ≤ HC. It suffices to show HC is U −1S-injective. Let j :B, β D, δ and f :B, β

HC be given.

D, δ HC B, β

  • j
  • f
  • A complete deductive calculus for (implications of) coequations – p.7/30
slide-34
SLIDE 34

S-injectives

  • Theorem. If U :CΓ

C has a right adjoint H and C has enough

S-injectives, then CΓ has enough U −1S-injectives.

  • Proof. Let A, α be given and A ≤ C, where C is S-injective.

Then A, α ≤ HC. It suffices to show HC is U −1S-injective. Let j :B, β D, δ and f :B, β

HC be given.

D, δ HC B, β

  • j
  • f
  • D

C B

  • j
  • f
  • A complete deductive calculus for (implications of) coequations – p.7/30
slide-35
SLIDE 35

S-injectives

  • Theorem. If U :CΓ

C has a right adjoint H and C has enough

S-injectives, then CΓ has enough U −1S-injectives.

  • Proof. Let A, α be given and A ≤ C, where C is S-injective.

Then A, α ≤ HC. It suffices to show HC is U −1S-injective. Let j :B, β D, δ and f :B, β

HC be given.

By the injectivity of C, we get a map D

C as shown . . .

D, δ HC B, β

  • j
  • f
  • D

C

B

  • j
  • f
  • A complete deductive calculus for (implications of) coequations – p.7/30
slide-36
SLIDE 36

S-injectives

  • Theorem. If U :CΓ

C has a right adjoint H and C has enough

S-injectives, then CΓ has enough U −1S-injectives.

  • Proof. Let A, α be given and A ≤ C, where C is S-injective.

Then A, α ≤ HC. It suffices to show HC is U −1S-injective. Let j :B, β D, δ and f :B, β

HC be given.

By the injectivity of C, we get a map D

C as shown and hence, by

adjoint transposition, a homomorphism D, δ

HC .

D, δ

HC

B, β

  • j
  • f
  • D

C

B

  • j
  • f
  • A complete deductive calculus for (implications of) coequations – p.7/30
slide-37
SLIDE 37

About S-meets

Recall that Sub(C) denotes the poset of isomorphism classes of S-morphisms into C. In any factorization system H, S, the S-morphisms are stable under pullbacks. h∗A

  • A
  • B

h C

Thus, if C has pullbacks of S-morphisms, then each h:B

C induces a functor h∗:Sub(C) Sub(B).

A complete deductive calculus for (implications of) coequations – p.8/30

slide-38
SLIDE 38

About S-meets

In any factorization system H, S, the S-morphisms are stable under pullbacks. This gives one a notion of ∧ for Sub(C), ∧:Sub(C) × Sub(C)

Sub(C).

A ∧ B

  • A
  • B
  • h

C

A complete deductive calculus for (implications of) coequations – p.8/30

slide-39
SLIDE 39

About S-meets

In any factorization system H, S, the S-morphisms are stable under generalized pullbacks. A

  • Ai0
  • Ai1
  • Ai2
  • . . .

Aiκ

  • . . .

C

A complete deductive calculus for (implications of) coequations – p.8/30

slide-40
SLIDE 40

About S-meets

In any factorization system H, S, the S-morphisms are stable under generalized pullbacks. Assuming that C has such limits, this gives one a notion of

  • I for Sub(C),
  • I :Sub(C)I

Sub(C).

  • I Ai
  • Ai0
  • Ai1
  • Ai2
  • . . .

Aiκ

  • . . .

C

A complete deductive calculus for (implications of) coequations – p.8/30

slide-41
SLIDE 41

Structural summary

  • If C has coproducts, then so does CΓ.

A complete deductive calculus for (implications of) coequations – p.9/30

slide-42
SLIDE 42

Structural summary

  • If C has coproducts, then so does CΓ.
  • If C has a factorization system H, S and Γ preserves

S-morphisms, then CΓ has a factorization system U −1H, U −1S.

A complete deductive calculus for (implications of) coequations – p.9/30

slide-43
SLIDE 43

Structural summary

  • If C has coproducts, then so does CΓ.
  • If C has a factorization system H, S and Γ preserves

S-morphisms, then CΓ has a factorization system U −1H, U −1S.

  • If C is S-well-powered, then CΓ is

U −1S-well-powered.

A complete deductive calculus for (implications of) coequations – p.9/30

slide-44
SLIDE 44

Structural summary

  • If C has coproducts, then so does CΓ.
  • If C has a factorization system H, S and Γ preserves

S-morphisms, then CΓ has a factorization system U −1H, U −1S.

  • If C is S-well-powered, then CΓ is

U −1S-well-powered.

  • If C has enough S-injectives and U :CΓ

C has a right

adjoint, then CΓ has enough U −1S-injectives.

A complete deductive calculus for (implications of) coequations – p.9/30

slide-45
SLIDE 45

Structural summary

Hereafter, we assume that C has all coproducts, a factor- ization system H, S, enough S-injectives and meets of S-morphisms and is S-well-powered, and that Γ-preserves S-morphisms. We further assume that U :CΓ

C has a right

adjoint H.

A complete deductive calculus for (implications of) coequations – p.9/30

slide-46
SLIDE 46

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.10/30

slide-47
SLIDE 47

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.10/30

slide-48
SLIDE 48

Quasi-covarieties and covarieties

Let V ⊆ CΓ. We define HV = {B, β | ∃V ∋ C, γ

B, β}

SV = {B, β | ∃B, β

C, γ ∈ V}

ΣV = {

  • Ci, γi | Ci, γi ∈ V}

A complete deductive calculus for (implications of) coequations – p.11/30

slide-49
SLIDE 49

Quasi-covarieties and covarieties

Let V ⊆ CΓ. We define HV = {B, β | ∃V ∋ C, γ

B, β}

SV = {B, β | ∃B, β

C, γ ∈ V}

ΣV = {

  • Ci, γi | Ci, γi ∈ V}

We say that V is a quasi-covariety if V ⊆ HΣV.

A complete deductive calculus for (implications of) coequations – p.11/30

slide-50
SLIDE 50

Quasi-covarieties and covarieties

Let V ⊆ CΓ. We define HV = {B, β | ∃V ∋ C, γ

B, β}

SV = {B, β | ∃B, β

C, γ ∈ V}

ΣV = {

  • Ci, γi | Ci, γi ∈ V}

We say that V is a quasi-covariety if V ⊆ HΣV. We say that V is a covariety if V ⊆ SH V.

A complete deductive calculus for (implications of) coequations – p.11/30

slide-51
SLIDE 51

A coequational language

Fix a S-injective C ∈ C. We define a simple language LCoeq (properly, LC

Coeq).

  • For every P in Sub(UHC), we introduce an atomic

proposition P in LCoeq, i.e., Sub(UHC) ⊆ LCoeq.

A complete deductive calculus for (implications of) coequations – p.12/30

slide-52
SLIDE 52

A coequational language

Fix a S-injective C ∈ C. We define a simple language LCoeq (properly, LC

Coeq).

  • For every P in Sub(UHC), we introduce an atomic

proposition P in LCoeq, i.e., Sub(UHC) ⊆ LCoeq.

  • If ϕ ∈ LCoeq, then

ϕ ∈ LCoeq.

A complete deductive calculus for (implications of) coequations – p.12/30

slide-53
SLIDE 53

A coequational language

Fix a S-injective C ∈ C. We define a simple language LCoeq (properly, LC

Coeq).

  • For every P in Sub(UHC), we introduce an atomic

proposition P in LCoeq, i.e., Sub(UHC) ⊆ LCoeq.

  • If ϕ ∈ LCoeq, then

ϕ ∈ LCoeq.

  • If {ϕi}i∈I ⊆ LCoeq, then
  • I ϕi ∈ LCoeq.

A complete deductive calculus for (implications of) coequations – p.12/30

slide-54
SLIDE 54

A coequational language

Fix a S-injective C ∈ C. We define a simple language LCoeq (properly, LC

Coeq).

  • For every P in Sub(UHC), we introduce an atomic

proposition P in LCoeq, i.e., Sub(UHC) ⊆ LCoeq.

  • If ϕ ∈ LCoeq, then

ϕ ∈ LCoeq.

  • If {ϕi}i∈I ⊆ LCoeq, then
  • I ϕi ∈ LCoeq.
  • If ϕ ∈ LCoeq and h:HC

HC, then ϕ(h(x)) ∈ LCoeq.

A complete deductive calculus for (implications of) coequations – p.12/30

slide-55
SLIDE 55

A coequational language

Fix a S-injective C ∈ C. We define a simple language LCoeq (properly, LC

Coeq).

  • For every P in Sub(UHC), we introduce an atomic

proposition P in LCoeq, i.e., Sub(UHC) ⊆ LCoeq.

  • If ϕ ∈ LCoeq, then

ϕ ∈ LCoeq.

  • If {ϕi}i∈I ⊆ LCoeq, then
  • I ϕi ∈ LCoeq.
  • If ϕ ∈ LCoeq and h:HC

HC, then ϕ(h(x)) ∈ LCoeq.

  • If ϕ ∈ LCoeq and h:HC

HC, then

∃y(ϕ(y) ∧ h(y) = x) is in LCoeq.

A complete deductive calculus for (implications of) coequations – p.12/30

slide-56
SLIDE 56

A coequational language

  • For every P in Sub(UHC), we introduce an atomic proposition

P in LCoeq, i.e., Sub(UHC) ⊆ LCoeq.

  • If ϕ ∈ LCoeq, then

ϕ ∈ LCoeq.

  • If {ϕi}i∈I ⊆ LCoeq, then
  • I ϕi ∈ LCoeq.
  • If ϕ ∈ LCoeq and h:HC

HC , then ϕ(h(x)) ∈ LCoeq.

  • If ϕ ∈ LCoeq and h:HC

HC , then ∃y(ϕ(y) ∧ h(y) = x) is in

LCoeq. We define an interpretation

:LCoeq

Sub(UHC):

P

= P

A complete deductive calculus for (implications of) coequations – p.12/30

slide-57
SLIDE 57

A coequational language

  • For every P in Sub(UHC), we introduce an atomic proposition

P in LCoeq, i.e., Sub(UHC) ⊆ LCoeq.

  • If ϕ ∈ LCoeq, then

ϕ ∈ LCoeq.

  • If {ϕi}i∈I ⊆ LCoeq, then
  • I ϕi ∈ LCoeq.
  • If ϕ ∈ LCoeq and h:HC

HC , then ϕ(h(x)) ∈ LCoeq.

  • If ϕ ∈ LCoeq and h:HC

HC , then ∃y(ϕ(y) ∧ h(y) = x) is in

LCoeq. We define an interpretation

:LCoeq

Sub(UHC):

✄ ✂

ϕ

=

✂ ✄

ϕ

(Definition of

forthcoming!)

A complete deductive calculus for (implications of) coequations – p.12/30

slide-58
SLIDE 58

A coequational language

  • For every P in Sub(UHC), we introduce an atomic proposition

P in LCoeq, i.e., Sub(UHC) ⊆ LCoeq.

  • If ϕ ∈ LCoeq, then

ϕ ∈ LCoeq.

  • If {ϕi}i∈I ⊆ LCoeq, then
  • I ϕi ∈ LCoeq.
  • If ϕ ∈ LCoeq and h:HC

HC , then ϕ(h(x)) ∈ LCoeq.

  • If ϕ ∈ LCoeq and h:HC

HC , then ∃y(ϕ(y) ∧ h(y) = x) is in

LCoeq. We define an interpretation

:LCoeq

Sub(UHC):

  • ϕi

=

ϕi

A complete deductive calculus for (implications of) coequations – p.12/30

slide-59
SLIDE 59

A coequational language

  • For every P in Sub(UHC), we introduce an atomic proposition

P in LCoeq, i.e., Sub(UHC) ⊆ LCoeq.

  • If ϕ ∈ LCoeq, then

ϕ ∈ LCoeq.

  • If {ϕi}i∈I ⊆ LCoeq, then
  • I ϕi ∈ LCoeq.
  • If ϕ ∈ LCoeq and h:HC

HC , then ϕ(h(x)) ∈ LCoeq.

  • If ϕ ∈ LCoeq and h:HC

HC , then ∃y(ϕ(y) ∧ h(y) = x) is in

LCoeq. We define an interpretation

:LCoeq

Sub(UHC):

ϕ(h(x))

= h∗

ϕ

A complete deductive calculus for (implications of) coequations – p.12/30

slide-60
SLIDE 60

A coequational language

  • For every P in Sub(UHC), we introduce an atomic proposition

P in LCoeq, i.e., Sub(UHC) ⊆ LCoeq.

  • If ϕ ∈ LCoeq, then

ϕ ∈ LCoeq.

  • If {ϕi}i∈I ⊆ LCoeq, then
  • I ϕi ∈ LCoeq.
  • If ϕ ∈ LCoeq and h:HC

HC , then ϕ(h(x)) ∈ LCoeq.

  • If ϕ ∈ LCoeq and h:HC

HC , then ∃y(ϕ(y) ∧ h(y) = x) is in

LCoeq. We define an interpretation

:LCoeq

Sub(UHC):

∃y(ϕ(y) ∧ h(y) = x)

= ∃h

ϕ

A complete deductive calculus for (implications of) coequations – p.12/30

slide-61
SLIDE 61

Coequations

A coalgebra A, α satisfies ϕ iff for every homomorphism p:A, α

HC, we have Im(p) ≤

ϕ

.

A complete deductive calculus for (implications of) coequations – p.13/30

slide-62
SLIDE 62

Coequations

A coalgebra A, α satisfies ϕ iff for every homomorphism p:A, α

HC, we have Im(p) ≤

ϕ

. In other words, A, α | = ϕ iff every p:A, α

HC factors through

ϕ

. A

p

  • UHC

ϕ

  • A complete deductive calculus for (implications of) coequations – p.13/30
slide-63
SLIDE 63

Coequations

A, α | = ϕ iff every p:A, α

HC factors through

ϕ

. A

p

  • UHC

ϕ

  • Homomorphisms p:A, α

HC correspond to colorings

  • p:A
  • C. Thus, A, α |

= ϕ just in case, however we color A (via p), the image of the corresponding homomorphism p lies in ϕ.

A complete deductive calculus for (implications of) coequations – p.13/30

slide-64
SLIDE 64

Example

The cofree coalgebra H2

A complete deductive calculus for (implications of) coequations – p.14/30

slide-65
SLIDE 65

Example

A coequation.

A complete deductive calculus for (implications of) coequations – p.14/30

slide-66
SLIDE 66

Example

This coalgebra satisfies P.

A complete deductive calculus for (implications of) coequations – p.14/30

slide-67
SLIDE 67

Example

Under any coloring, the elements of the coalgebra map to elements of P.

A complete deductive calculus for (implications of) coequations – p.14/30

slide-68
SLIDE 68

Example

This coalgebra doesn’t satisfy P.

A complete deductive calculus for (implications of) coequations – p.14/30

slide-69
SLIDE 69

Example

If we paint the circle red, it isn’t mapped to an element of P.

A complete deductive calculus for (implications of) coequations – p.14/30

slide-70
SLIDE 70

An implicational language

Define LImp = {ϕ ⇒ ψ | ϕ, ψ ∈ LCoeq}. Say that A, α | = ϕ ⇒ ψ just in case, for every p:A, α

HC such that Im(p) ≤

ϕ

, also Im(p) ≤

ψ

.

A complete deductive calculus for (implications of) coequations – p.15/30

slide-71
SLIDE 71

An implicational language

Define LImp = {ϕ ⇒ ψ | ϕ, ψ ∈ LCoeq}. Say that A, α | = ϕ ⇒ ψ just in case, for every p:A, α

HC such that Im(p) ≤

ϕ

, also Im(p) ≤

ψ

. A

p

  • UHC

P

A

p

  • UHC

Q

  • This is not the same as (A, α |

= ϕ or A, α | = ψ). That would be true if either there is some p such that Im(p) ≤

ϕ

  • r for all p, Im(p) ≤

ψ

.

A complete deductive calculus for (implications of) coequations – p.15/30

slide-72
SLIDE 72

An implicational language

Define LImp = {ϕ ⇒ ψ | ϕ, ψ ∈ LCoeq}. Say that A, α | = ϕ ⇒ ψ just in case, for every p:A, α

HC such that Im(p) ≤

ϕ

, also Im(p) ≤

ψ

. A

p

  • UHC

P

A

p

  • UHC

Q

  • This is also not the same as A, α |

= ¬ϕ ∨ ψ (if Sub(UHC) is a Heyting algebra).

A complete deductive calculus for (implications of) coequations – p.15/30

slide-73
SLIDE 73

An implicational language

Define LImp = {ϕ ⇒ ψ | ϕ, ψ ∈ LCoeq}. Say that A, α | = ϕ ⇒ ψ just in case, for every p:A, α

HC such that Im(p) ≤

ϕ

, also Im(p) ≤

ψ

. A

p

  • UHC

P

A

p

  • UHC

Q

  • Note:

A, α | = ϕ iff A, α | = ⊤ ⇒ ϕ, where ⊤ = (HC HC).

A complete deductive calculus for (implications of) coequations – p.15/30

slide-74
SLIDE 74

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.16/30

slide-75
SLIDE 75

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.16/30

slide-76
SLIDE 76

The Covariety Theorems

Given a class V of coalgebras, define Th(V) = {ϕ ∈ LC

Coeq | V |

= ϕ, C S-injective}, Imp(V) = {P ⇒ Q ∈ LC

Imp | V |

= P ⇒ Q, P, Q ≤ UHC, C S-injective}.

A complete deductive calculus for (implications of) coequations – p.17/30

slide-77
SLIDE 77

The Covariety Theorems

Given a class V of coalgebras, define Th(V) = {ϕ ∈ LC

Coeq | V |

= ϕ, C S-injective}, Imp(V) = {P ⇒ Q ∈ LC

Imp | V |

= P ⇒ Q, P, Q ≤ UHC, C S-injective}. Given a collection S of (implications between) coequations, define Mod(S) = {A, α | A, α | = S}.

A complete deductive calculus for (implications of) coequations – p.17/30

slide-78
SLIDE 78

The Covariety Theorems

Theorem (The “co-Birkhoff” theorem). For any V, SHΣV = Mod Th(V).

A complete deductive calculus for (implications of) coequations – p.17/30

slide-79
SLIDE 79

The Covariety Theorems

Theorem (The “co-Birkhoff” theorem). For any V, SHΣV = Mod Th(V). Theorem (The co-quasivariety theorem). For any V, HΣV = Mod Imp(V).

A complete deductive calculus for (implications of) coequations – p.17/30

slide-80
SLIDE 80

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.18/30

slide-81
SLIDE 81

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.18/30

slide-82
SLIDE 82

Birkhoff’s completeness theorem

So much for the formal dual of the variety theorem. What about the formal dual of Birkhoff’s completeness theorem?

A complete deductive calculus for (implications of) coequations – p.19/30

slide-83
SLIDE 83

Birkhoff’s completeness theorem

So much for the formal dual of the variety theorem. What about the formal dual of Birkhoff’s completeness theorem? Let S be a set of equations for an algebraic signature Σ. Let Ded(S) denote the deductive closure of S under the usual equational logic.

A complete deductive calculus for (implications of) coequations – p.19/30

slide-84
SLIDE 84

Birkhoff’s completeness theorem

So much for the formal dual of the variety theorem. What about the formal dual of Birkhoff’s completeness theorem? Let S be a set of equations for an algebraic signature Σ. Let Ded(S) denote the deductive closure of S under the usual equational logic. Theorem (Birkhoff’s completeness theorem). For any set S of equations, Ded(S) = Th Mod(S).

A complete deductive calculus for (implications of) coequations – p.19/30

slide-85
SLIDE 85

Birkhoff’s completeness theorem

So much for the formal dual of the variety theorem. What about the formal dual of Birkhoff’s completeness theorem? Let S be a set of equations for an algebraic signature Σ. Let Ded(S) denote the deductive closure of S under the usual equational logic. Theorem (Birkhoff’s completeness theorem). For any set S of equations, Ded(S) = Th Mod(S). Here, Th(V) denotes the equational theory of a class of al- gebras.

A complete deductive calculus for (implications of) coequations – p.19/30

slide-86
SLIDE 86

Birkhoff’s completeness theorem

Theorem (Birkhoff’s completeness theorem). For any set S of equations, Ded(S) = Th Mod(S). Compare this to the variety theorem, namely for every V, HSPV = Mod Th(V).

A complete deductive calculus for (implications of) coequations – p.19/30

slide-87
SLIDE 87

Birkhoff’s completeness theorem

Theorem (Birkhoff’s completeness theorem). For any set S of equations, Ded(S) = Th Mod(S). Main goal Find a logic on sets of coequations such that for any set S of coequations over C, Ded(S) = Th Mod(S).

A complete deductive calculus for (implications of) coequations – p.19/30

slide-88
SLIDE 88

Birkhoff’s completeness theorem

Theorem (Birkhoff’s completeness theorem). For any set S of equations, Ded(S) = Th Mod(S). Main goal Find a logic on sets of coequations such that for any set S of coequations over C, Ded(S) = Th Mod(S). First step Find the formal dual to Birkhoff’s completeness theorem.

A complete deductive calculus for (implications of) coequations – p.19/30

slide-89
SLIDE 89

The invariance theorem

Define interior operators

,

:Sub(UHC)

Sub(UHC)

by

P =

  • {UA, α

UHC | A, α ∈ SubCΓ(HC)}

P =

  • {Q

UHC | ∀h:HC HC . ∃hQ ≤ P}

A complete deductive calculus for (implications of) coequations – p.20/30

slide-90
SLIDE 90

The invariance theorem

P =

  • {UA, α

UHC | A, α ∈ SubCΓ(HC)}

P =

  • {Q

UHC | ∀h:HC HC . ∃hQ ≤ P}

P is the (carrier of the) largest subcoalgebra of HC.

A complete deductive calculus for (implications of) coequations – p.20/30

slide-91
SLIDE 91

The invariance theorem

P =

  • {UA, α

UHC | A, α ∈ SubCΓ(HC)}

P =

  • {Q

UHC | ∀h:HC HC . ∃hQ ≤ P}

P is the (carrier of the) largest subcoalgebra of HC.

P is the largest endomorphism invariant subobject

  • f UHC, that is:
  • For every h:HC

HC, ∃h

P ≤

P;

A complete deductive calculus for (implications of) coequations – p.20/30

slide-92
SLIDE 92

The invariance theorem

P =

  • {UA, α

UHC | A, α ∈ SubCΓ(HC)}

P =

  • {Q

UHC | ∀h:HC HC . ∃hQ ≤ P}

P is the (carrier of the) largest subcoalgebra of HC.

P is the largest endomorphism invariant subobject

  • f UHC, that is:
  • For every h:HC

HC, ∃h

P ≤

P;

  • If, for every h:HC

HC, ∃hQ ≤ Q, then Q ≤ P.

A complete deductive calculus for (implications of) coequations – p.20/30

slide-93
SLIDE 93

The invariance theorem

P =

  • {UA, α

UHC | A, α ∈ SubCΓ(HC)}

P =

  • {Q

UHC | ∀h:HC HC . ∃hQ ≤ P}

is an S4 necessity operator.

  • If P ⊢ Q then

P ⊢

Q;

P ⊢ P;

P ⊢

✞ ✞

P;

(P → Q) ⊢

P →

Q;

A complete deductive calculus for (implications of) coequations – p.20/30

slide-94
SLIDE 94

The invariance theorem

P =

  • {UA, α

UHC | A, α ∈ SubCΓ(HC)}

P =

  • {Q

UHC | ∀h:HC HC . ∃hQ ≤ P}

is an S4 necessity operator.

  • If P ⊢ Q then

P ⊢

Q;

P ⊢ P;

P ⊢

✞ ✞

P;

(P → Q) ⊢

P →

Q; If Γ preserves pullbacks of S-morphisms, then so is

.

A complete deductive calculus for (implications of) coequations – p.20/30

slide-95
SLIDE 95

The invariance theorem

P =

  • {UA, α

UHC | A, α ∈ SubCΓ(HC)}

P =

  • {Q

UHC | ∀h:HC HC . ∃hQ ≤ P}

Theorem (The invariance theorem). Let ϕ be a coequation over C. For any coequation ψ over C, Mod(ϕ) | = ψ iff

✁ ✞

ϕ ≤ ψ.

A complete deductive calculus for (implications of) coequations – p.20/30

slide-96
SLIDE 96

The invariance theorem

P =

  • {UA, α

UHC | A, α ∈ SubCΓ(HC)}

P =

  • {Q

UHC | ∀h:HC HC . ∃hQ ≤ P}

Theorem (The invariance theorem). Let ϕ be a coequation over C. For any coequation ψ over C, Mod(ϕ) | = ψ iff

✁ ✞

ϕ ≤ ψ. In other words,

✁ ✞

P is the least coequation satisfied by Mod(P). It can be regarded as a measure of the “coequa- tional commitment” of P.

A complete deductive calculus for (implications of) coequations – p.20/30

slide-97
SLIDE 97

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.21/30

slide-98
SLIDE 98

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.21/30

slide-99
SLIDE 99

A sound rule

An inference rule ϕ1 . . . ϕn ψ is sound just in case, whenever A, α | = ϕ1, ..., A, α | = ϕn, then A, α | = ψ.

A complete deductive calculus for (implications of) coequations – p.22/30

slide-100
SLIDE 100

A sound rule

An inference rule ϕ1 . . . ϕn ψ is sound just in case, whenever A, α | = ϕ1, ..., A, α | = ϕn, then A, α | = ψ.

  • Theorem. The rule
  • ϕi
  • E

ϕi is sound.

A complete deductive calculus for (implications of) coequations – p.22/30

slide-101
SLIDE 101

A sound rule

Theorem.

  • E is sound.
  • Proof. Suppose A, α |

=

  • ϕi and p:A, α

HC . We must

show that Im(p) ≤

ϕi

. A

p UHC

ϕi

  • A complete deductive calculus for (implications of) coequations – p.22/30
slide-102
SLIDE 102

A sound rule

Theorem.

  • E is sound.
  • Proof. Suppose A, α |

=

  • ϕi and p:A, α

HC . We must

show that Im(p) ≤

ϕi

. A

p

UHC

  • ϕi

ϕi

  • A complete deductive calculus for (implications of) coequations – p.22/30
slide-103
SLIDE 103

A sound rule

Theorem.

  • E is sound.
  • Proof. Suppose A, α |

=

  • ϕi and p:A, α

HC . We must

show that Im(p) ≤

ϕi

. But we know Im(p) ≤

  • ϕi

ϕi

. A

p

  • UHC
  • ϕi

ϕi

  • A complete deductive calculus for (implications of) coequations – p.22/30
slide-104
SLIDE 104

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi

A complete deductive calculus for (implications of) coequations – p.23/30

slide-105
SLIDE 105

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

If Im(p:A, α

HC) ≤

ϕi

for each i ∈ I, then Im(p) ≤

ϕi

.

A complete deductive calculus for (implications of) coequations – p.23/30

slide-106
SLIDE 106

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

ϕ

  • I

ϕ

If Im(p:A, α

HC) ≤

ϕ

, then Im(p) ≤

✁ ✆

ϕ

(because Im(p) is a subcoalgebra contained in ϕ).

A complete deductive calculus for (implications of) coequations – p.23/30

slide-107
SLIDE 107

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

ϕ

  • I

ϕ ϕ Sub ϕ(h(x))

Here, Sub applies for every Γ-homomorphism h:HC

HC.

A complete deductive calculus for (implications of) coequations – p.23/30

slide-108
SLIDE 108

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

ϕ

  • I

ϕ ϕ Sub ϕ(h(x))

Let p:HC

HC be given.

Im(p) ≤ h∗

ϕ

iff ∃h Im(p) ≤

ϕ

.

A complete deductive calculus for (implications of) coequations – p.23/30

slide-109
SLIDE 109

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

ϕ

  • I

ϕ ϕ Sub ϕ(h(x))

Let p:HC

HC be given.

Im(p) ≤ h∗

ϕ

iff Im(h ◦ p) ≤

ϕ

.

A complete deductive calculus for (implications of) coequations – p.23/30

slide-110
SLIDE 110

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

ϕ

  • I

ϕ ϕ Sub ϕ(h(x))

Let p:HC

HC be given.

Im(p) ≤ h∗

ϕ

iff Im(h ◦ p) ≤

ϕ

. Hence, if for every q:HC

HC, Im(q) ≤

ϕ

, then Im(p) ≤ h∗

ϕ

.

A complete deductive calculus for (implications of) coequations – p.23/30

slide-111
SLIDE 111

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

ϕ

  • I

ϕ ϕ Sub ϕ(h(x)) ϕ

ϕ

=

ψ

DSR ψ

A complete deductive calculus for (implications of) coequations – p.23/30

slide-112
SLIDE 112

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

ϕ

  • I

ϕ ϕ Sub ϕ(h(x)) ϕ

ϕ

=

ψ

DSR ψ

We call this rule DSR for Damn Semantic Rule. It is a damn shame that we’ve had to include such an ugly rule.

A complete deductive calculus for (implications of) coequations – p.23/30

slide-113
SLIDE 113

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

ϕ

  • I

ϕ ϕ Sub ϕ(h(x)) ϕ

ϕ

=

ψ

DSR ψ

We need this rule (along with

  • E) to ensure that the

deductive closure of S is closed upwards, so if

ϕ

ψ

, then ϕ ⊢ ψ.

A complete deductive calculus for (implications of) coequations – p.23/30

slide-114
SLIDE 114

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

ϕ

  • I

ϕ ϕ Sub ϕ(h(x)) ϕ

ϕ

=

ψ

DSR ψ

Maybe, we can replace this semantic rule with a rule ϕ ϕ ⊢ ψ ψ where ϕ ⊢ ψ is proven in an appropriate logic for Sub(UHC).

A complete deductive calculus for (implications of) coequations – p.23/30

slide-115
SLIDE 115

A coequational calculus

The following rules are sound.

  • ϕi
  • E

ϕi {ϕi}i∈I

  • I
  • ϕi

ϕ

  • I

ϕ ϕ Sub ϕ(h(x)) ϕ

ϕ

=

ψ

DSR ψ

Let S ⊆ LCoeq. Let Ded(S) denote the deductive closure of S under these rules. We see Ded(S) ⊆ Th Mod(S).

A complete deductive calculus for (implications of) coequations – p.23/30

slide-116
SLIDE 116

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.24/30

slide-117
SLIDE 117

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.24/30

slide-118
SLIDE 118

A lemma

Lemma.

✞ ✆

ϕ

=

  • {h∗

ϕ

| h:HC

HC}.

A complete deductive calculus for (implications of) coequations – p.25/30

slide-119
SLIDE 119

A lemma

Lemma.

✞ ✆

ϕ

=

  • {h∗

ϕ

| h:HC

HC}.

  • Proof. Recall
✟ ✄

ϕ

= {P | ∀h:HC

HC . ∃hP ≤

ϕ

}. ⊇: It suffices to show that for all k:HC

HC ,

∃h

  • {h∗

ϕ

| h:HC

HC } ≤

ϕ

.

A complete deductive calculus for (implications of) coequations – p.25/30

slide-120
SLIDE 120

A lemma

Lemma.

✞ ✆

ϕ

=

  • {h∗

ϕ

| h:HC

HC}.

  • Proof. Recall
✟ ✄

ϕ

= {P | ∀h:HC

HC . ∃hP ≤

ϕ

}. ⊇: It suffices to show that for all k:HC

HC ,

  • {h∗

ϕ

| h:HC

HC } ≤ h∗

ϕ

.

A complete deductive calculus for (implications of) coequations – p.25/30

slide-121
SLIDE 121

A lemma

Lemma.

✞ ✆

ϕ

=

  • {h∗

ϕ

| h:HC

HC}.

  • Proof. Recall
✟ ✄

ϕ

= {P | ∀h:HC

HC . ∃hP ≤

ϕ

}. ⊇: It suffices to show that for all k:HC

HC ,

  • {h∗

ϕ

| h:HC

HC } ≤ h∗

ϕ

. ⊆: It suffices to show that for all k:HC

HC ,

✟ ✄

ϕ

≤ k∗

ϕ

.

A complete deductive calculus for (implications of) coequations – p.25/30

slide-122
SLIDE 122

A lemma

Lemma.

✞ ✆

ϕ

=

  • {h∗

ϕ

| h:HC

HC}.

  • Proof. Recall
✟ ✄

ϕ

= {P | ∀h:HC

HC . ∃hP ≤

ϕ

}. ⊇: It suffices to show that for all k:HC

HC ,

  • {h∗

ϕ

| h:HC

HC } ≤ h∗

ϕ

. ⊆: It suffices to show that for all k:HC

HC ,

∃k

✟ ✄

ϕ

ϕ

.

A complete deductive calculus for (implications of) coequations – p.25/30

slide-123
SLIDE 123

A lemma

Lemma.

✞ ✆

ϕ

=

  • {h∗

ϕ

| h:HC

HC}.

  • Proof. Recall
✟ ✄

ϕ

= {P | ∀h:HC

HC . ∃hP ≤

ϕ

}. ⊇: It suffices to show that for all k:HC

HC ,

  • {h∗

ϕ

| h:HC

HC } ≤ h∗

ϕ

. ⊆: It suffices to show that for all k:HC

HC ,

∃k

✟ ✄

ϕ

ϕ

. But,

✟ ✄

ϕ

is invariant, so ∃k

✟ ✄

ϕ

✟ ✄

ϕ

≤ ϕ.

A complete deductive calculus for (implications of) coequations – p.25/30

slide-124
SLIDE 124

A completeness theorem (of sorts)

  • Theorem. Let S ⊆ LCoeq. If Mod(S) |

= ϕ, then ϕ ∈ Ded(S), i.e., Th Mod(S) ⊆ Ded(S).

A complete deductive calculus for (implications of) coequations – p.26/30

slide-125
SLIDE 125

A completeness theorem (of sorts)

  • Theorem. Let S ⊆ LCoeq. If Mod(S) |

= ϕ, then ϕ ∈ Ded(S), i.e., Th Mod(S) ⊆ Ded(S).

  • Proof. Let ψ =
  • S.

A complete deductive calculus for (implications of) coequations – p.26/30

slide-126
SLIDE 126

A completeness theorem (of sorts)

  • Theorem. Let S ⊆ LCoeq. If Mod(S) |

= ϕ, then ϕ ∈ Ded(S), i.e., Th Mod(S) ⊆ Ded(S).

  • Proof. Let ψ =
  • S.

S

  • I

ψ

A complete deductive calculus for (implications of) coequations – p.26/30

slide-127
SLIDE 127

A completeness theorem (of sorts)

  • Theorem. Let S ⊆ LCoeq. If Mod(S) |

= ϕ, then ϕ ∈ Ded(S), i.e., Th Mod(S) ⊆ Ded(S).

  • Proof. Let ψ =
  • S.

S

  • I

ψ Sub {ψ(h(x)) | h:HC

HC }

A complete deductive calculus for (implications of) coequations – p.26/30

slide-128
SLIDE 128

A completeness theorem (of sorts)

  • Theorem. Let S ⊆ LCoeq. If Mod(S) |

= ϕ, then ϕ ∈ Ded(S), i.e., Th Mod(S) ⊆ Ded(S).

  • Proof. Let ψ =
  • S.

S

  • I

ψ Sub {ψ(h(x)) | h:HC

HC }

  • I
  • {ψ(h(x)) | h:HC

HC }

A complete deductive calculus for (implications of) coequations – p.26/30

slide-129
SLIDE 129

A completeness theorem (of sorts)

  • Theorem. Let S ⊆ LCoeq. If Mod(S) |

= ϕ, then ϕ ∈ Ded(S), i.e., Th Mod(S) ⊆ Ded(S).

  • Proof. Let ψ =
  • S.

S

  • I

ψ Sub {ψ(h(x)) | h:HC

HC }

  • I
  • {ψ(h(x)) | h:HC

HC }

  • I
  • {ψ(h(x)) | h:HC

HC }

A complete deductive calculus for (implications of) coequations – p.26/30

slide-130
SLIDE 130

A completeness theorem (of sorts)

  • Theorem. Let S ⊆ LCoeq. If Mod(S) |

= ϕ, then ϕ ∈ Ded(S), i.e., Th Mod(S) ⊆ Ded(S).

  • Proof. So, we see that S ⊢
  • {ψ(h(x)) | h:HC

HC }. Now,

by the lemma,

✄ ✂
  • {ψ(h(x)) | h:HC

HC }

=

✂ ✟ ✄

ψ

, and by the Invariance Theorem,

✂ ✟ ✄

ψ

ϕ

.

A complete deductive calculus for (implications of) coequations – p.26/30

slide-131
SLIDE 131

A completeness theorem (of sorts)

  • Theorem. Let S ⊆ LCoeq. If Mod(S) |

= ϕ, then ϕ ∈ Ded(S), i.e., Th Mod(S) ⊆ Ded(S).

  • Proof. Hence,
✄ ✂
  • {ψ(h(x)) | h:HC

HC } ∧ ϕ

=

✂ ✟ ✄

ψ

ϕ

=

✂ ✟ ✄

ψ

and so (by the damn semantic rule), S ⊢

  • {ψ(h(x)) | h:HC

HC } ∧ ϕ

and thus S ⊢ ϕ.

A complete deductive calculus for (implications of) coequations – p.26/30

slide-132
SLIDE 132

A completeness theorem (of sorts)

  • Theorem. Let S ⊆ LCoeq. If Mod(S) |

= ϕ, then ϕ ∈ Ded(S), i.e., Th Mod(S) ⊆ Ded(S).

  • Proof. Hence,
✄ ✂
  • {ψ(h(x)) | h:HC

HC } ∧ ϕ

=

✂ ✟ ✄

ψ

ϕ

=

✂ ✟ ✄

ψ

and so (by the damn semantic rule), S ⊢

  • {ψ(h(x)) | h:HC

HC } ∧ ϕ

and thus S ⊢ ϕ. Note: We used

  • E and DSR only to show that if
✂ ✟

ψ ∈ S, then ϕ ∈ Ded(S).

A complete deductive calculus for (implications of) coequations – p.26/30

slide-133
SLIDE 133

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.27/30

slide-134
SLIDE 134

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.27/30

slide-135
SLIDE 135

An implicational calculus

The following rules are sound.

ϕ ⇒

  • ψi
  • E

ϕ ⇒ ψi

A complete deductive calculus for (implications of) coequations – p.28/30

slide-136
SLIDE 136

An implicational calculus

The following rules are sound.

ϕ ⇒

  • ψi
  • E

ϕ ⇒ ψi {ϕ ⇒ ψi}i∈I

  • I

ϕ ⇒

  • ψi

A complete deductive calculus for (implications of) coequations – p.28/30

slide-137
SLIDE 137

An implicational calculus

The following rules are sound.

ϕ ⇒

  • ψi
  • E

ϕ ⇒ ψi {ϕ ⇒ ψi}i∈I

  • I

ϕ ⇒

  • ψi
  • I

ϕ ⇒

ϕ

A complete deductive calculus for (implications of) coequations – p.28/30

slide-138
SLIDE 138

An implicational calculus

The following rules are sound.

ϕ ⇒

  • ψi
  • E

ϕ ⇒ ψi {ϕ ⇒ ψi}i∈I

  • I

ϕ ⇒

  • ψi
  • I

ϕ ⇒

ϕ (∃x(ϕ(x) ∧ h(x) = y)) ⇒ ψ Sub ϕ ⇒ ψ(h(x))

A complete deductive calculus for (implications of) coequations – p.28/30

slide-139
SLIDE 139

An implicational calculus

The following rules are sound.

ϕ ⇒

  • ψi
  • E

ϕ ⇒ ψi {ϕ ⇒ ψi}i∈I

  • I

ϕ ⇒

  • ψi
  • I

ϕ ⇒

ϕ (∃x(ϕ(x) ∧ h(x) = y)) ⇒ ψ Sub ϕ ⇒ ψ(h(x)) ϕ ⇒ ψ ψ ⇒ ϑ Cut ϕ ⇒ ϑ

A complete deductive calculus for (implications of) coequations – p.28/30

slide-140
SLIDE 140

An implicational calculus

The following rules are sound.

ϕ ⇒

  • ψi
  • E

ϕ ⇒ ψi {ϕ ⇒ ψi}i∈I

  • I

ϕ ⇒

  • ψi
  • I

ϕ ⇒

ϕ (∃x(ϕ(x) ∧ h(x) = y)) ⇒ ψ Sub ϕ ⇒ ψ(h(x)) ϕ ⇒ ψ ψ ⇒ ϑ Cut ϕ ⇒ ϑ ϕ ⇒ ψ

ψ

=

ϑ

DSR ϕ ⇒ ϑ

Damn semantic rule!

A complete deductive calculus for (implications of) coequations – p.28/30

slide-141
SLIDE 141

Sketch of completeness

  • 1. Define two operators Sub(UHC)

Sub(UHC):

consS ϕ =

  • {ψ | ϕ ⇒ ψ ∈ S}

A complete deductive calculus for (implications of) coequations – p.29/30

slide-142
SLIDE 142

Sketch of completeness

  • 1. Define two operators Sub(UHC)

Sub(UHC):

consS ϕ =

  • {ψ | ϕ ⇒ ψ ∈ S}

entS ϕ =

  • {ψ | Mod(S) |

= ϕ ⇒ ψ}

A complete deductive calculus for (implications of) coequations – p.29/30

slide-143
SLIDE 143

Sketch of completeness

  • 1. Define two operators Sub(UHC)

Sub(UHC):

consS ϕ =

  • {ψ | ϕ ⇒ ψ ∈ S}

entS ϕ =

  • {ψ | Mod(S) |

= ϕ ⇒ ψ} Note: Mod(S) = Mod({ϕ ⇒ consS ϕ | ϕ ∈ LCoeq}) = Mod({ϕ ⇒ entS ϕ | ϕ ∈ LCoeq}) Subgoal: Show consDed(S) = entS.

A complete deductive calculus for (implications of) coequations – p.29/30

slide-144
SLIDE 144

Sketch of completeness

  • 1. Define two operators Sub(UHC)

Sub(UHC):

  • 2. Show that entS is the greatest suboperator of
  • consS such

that:

  • entS is a comonad (deflationary, idempotent, monotone);
  • entS is endomorphism invariant – for all h:HC

HC ,

∃h ◦ entS ≤ entS ◦∃h.

A complete deductive calculus for (implications of) coequations – p.29/30

slide-145
SLIDE 145

Sketch of completeness

  • 1. Define two operators Sub(UHC)

Sub(UHC):

  • 2. Show that entS is the greatest EIEIO (Endomorphism Invariant

Interior Operator).

A complete deductive calculus for (implications of) coequations – p.29/30

slide-146
SLIDE 146

Sketch of completeness

  • 1. Define two operators Sub(UHC)

Sub(UHC):

  • 2. Show that entS is the greatest EIEIO.
  • 3. Show that if S is deductively closed, consS is EIEIO. Hence,

consS = entS.

A complete deductive calculus for (implications of) coequations – p.29/30

slide-147
SLIDE 147

Sketch of completeness

  • 1. Define two operators Sub(UHC)

Sub(UHC):

  • 2. Show that entS is the greatest EIEIO.
  • 3. Show that if S is deductively closed, consS is EIEIO. Hence,

consS = entS.

  • 4. Imp Mod(S) = {ϕ ⇒ ψ | ψ ≥ entS ϕ}. Use DSR and
  • E to

show that Ded(S) = Imp Mod(S).

A complete deductive calculus for (implications of) coequations – p.29/30

slide-148
SLIDE 148

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.30/30

slide-149
SLIDE 149

Outline

  • I. Preliminaries
  • II. Quasi-covarieties and covarieties
  • III. Coequations
  • IV. The Covariety Theorems
  • V. The Invariance Theorem
  • VI. Coequational logic (Soundness)
  • VII. Coequational logic (Completeness)
  • VIII. Implicational logic (Soundness)
  • IX. Implicational logic (Completeness)

A complete deductive calculus for (implications of) coequations – p.30/30