Zoran Petri C
Zoran Petri C
it is not the case that all the symbols occur in every language. The words, are the
finite sequences of symbols from the alphabet. A language is a set of words called
formulae.
The formulae are defined inductively as follows.
We omit the outermost parentheses in formulae taking them for granted. The
implicational language consists of all the formulae in which > and ∧ do not occur.
The conjunction language consists of all the formulae in which > and → do not
occur. The mixed language consists of all the formulae.
The mixed language has its strict variant which we introduce for the sake of sim-
plicity of the forthcoming notions. In this variant, we consider ∧ to be associative
and > to be the unit for ∧. The formulae of this language are defined inductively
as follows.
A1 A2 A3
@
@
A
A proof is a derivation without hypothesis. A formula derived without
hypothesis is a theorem of the system.
This is not an easy task. It would not be a surprise if one starts with proving a
metatheorem like the deduction theorem. Then, since r is easily deducible from the
hypotheses p → q, q → r and p, the deduction theorem guarantees the existence of
a direct proof, leaving it implicit. Gentzen’s idea was to built in the system all the
deduction power and leave metatheorems for more serious results.
[x : p → q] [z : p]
[y : q → r] xz : q
y(xz) : r
λz .y(xz) : p → r
λyz .y(xz) : (q → r) → (p → r)
λxyz .y(xz) : (p → q) → ((q → r) → (p → r))
Γ, A, B, ∆ ` D
interchange
Γ, B, A, ∆ ` D
270 MINUTES ON CATEGORIAL PROOF THEORY 7
Γ`D A, A, Γ ` D
thinning contraction
A, Γ ` D A, Γ ` D
Γ`A ∆, A, Θ ` D
cut
∆, Γ, Θ ` D
and the following operational inference figures
Γ`A B, ∆ ` D A, Γ ` D
→` `→
Γ, A → B, ∆ ` D Γ`A→D
This formal system is such that we derive sequents in it. However, this system
may serve to define theorems of the corresponding fragment of logic. A formula A
is a theorem of the implicational fragment of intuitionistic logic when the sequent
` A is a theorem of this system.
Theorem 3.1. (Cut-Elimination Theorem) Every derivation can be trans-
formed into a derivation with the same endsequent and in which the cut inference
figure does not occur.
We prove here just a toy example of this theorem. The sequent system IL,
envisaged here, deals with the sequents of the form G ` A, where G and A are
formulae of the strict variant of the mixed language (see Section 2). The reason
for switching to a single premise-single conclusion language is to get closer to the
categorial setting. This system corresponds to the multiplicative conjunction-linear
implication fragment of intuitionistic linear logic. Besides the axiomatic sequents
A ` A, there are only two structural inference figures
G∧A∧B∧E `D C`A G∧A∧E `D
interchange cut
G∧B∧A∧E `D G∧C ∧E `D
and three operational inference figures
C`A B∧G`D A∧G`C A`C B`E
→` `→ ∧`∧
C ∧ (A → B) ∧ G ` D G`A→C A∧B `C ∧E
The formula (p → q) → ((q → r) → (p → r)) is its theorem.
q`q r`r
p`p q ∧ (q → r) ` r
p ∧ (p → q) ∧ (q → r) ` r
(p → q) ∧ (q → r) ` p → r
(q → r) ∧ (p → q) ` (p → r)
p → q ` (q → r) → (p → r)
> ` (p → q) → ((q → r) → (p → r))
8 ZORAN PETRIĆ
However, this system is rich enough to justify some basic categorial notions through
the cut-elimination procedure.
By a formula in a derivation we always mean a particular occurrence of this
formula as an antecedent or a succedent formula in this derivation. The sequent
C ` A is the left-premise and G∧A∧E ` D is the right-premise of the cut inference
figure.
For every inference figure except `→ and ∧ ` ∧, every succedent D of the lower
sequent has the unique successor, an occurrence of the same formula D as the
succedent of an upper sequent. Also, every prime conjunct (one that is not of the
form of conjunction) of the antecedent of the lower sequent of an inference figure,
except A → B in →`, has the unique successor, an occurrence of the same formula
in the antecedent of an upper sequent. Let the rank of a succedent D of a sequent
in a derivation be the number of formulae of that derivation that are related to D
by the reflexive and transitive closure of the successor relation, and let the rank of
a prime conjunct of the antecedent of a sequent in a derivation be defined in the
same manner. If a conjunct of the antecedent of a sequent is not prime, its rank is
1. For example, the red p → q has rank 4 in the above derivation. Let the formula
A in the cut inference figure be called cut formula. Let the degree of a cut in a
derivation be the number of occurrences of implication and conjunction in the cut
formula A. Let the rank of a cut in a derivation be the sum of the rank of the cut
formula in the left premise and the rank of cut formula in the right premise of this
cut inference figure.
Proof of Theorem 3.1. It suffices to show that this theorem holds for a derivation
whose last inference figure is cut and there is no other application of cut in the
derivation. We proceed by induction on lexicographically ordered pairs (d, r), where
d is the degree and r is the rank of the cut in such a derivation.
For the basis, when (d, r) = (0, 2), the derivation is of the form
p`p p`p
(3.1)
p`p
and we transform it into the derivation consisting only of the axiomatic sequent
p ` p.
When d > 0 and r = 2 we have the following cases. The derivations of the
following forms
D D
A`A G∧A∧E `D C`A A`A
(3.2)
G∧A∧E `D C`A
D D
G∧A∧E `D C`A
270 MINUTES ON CATEGORIAL PROOF THEORY 9
D1 ∧ E ∧ A ∧ F ` D2 C1 ` D1 C2 ` D2
(3.7) `→ ∧`∧
E ∧ A ∧ F ` D1 → D2 E ∧ A ∧ F ` D1 ∧ D2
It is obvious how to permute the cut with the above inference figures in order to
decrease its rank by 1. For example, a derivation of the form
D2
D1 E ∧ A ∧ F1 ∧ B ∧ C ∧ F2 ` D
G`A E ∧ A ∧ F1 ∧ C ∧ B ∧ F2 ` D
E ∧ G ∧ F1 ∧ C ∧ B ∧ F2 ` D
D1 D2
G`A E ∧ A ∧ F1 ∧ B ∧ C ∧ F2 ` D
E ∧ G ∧ F1 ∧ B ∧ C ∧ F2 ` D
E ∧ G ∧ F1 ∧ C ∧ B ∧ F2 ` D
By the induction hypothesis the derivation ending with the lifted cut may be
transformed into a cut-free derivation.
In order to make one step further toward categories, let us consider the following
sequent system ILcat given in the same language as IL. The axiomatic sequents
of the system are A ` A, B ∧ A ` A ∧ B, A ∧ (A → B) ` B and B ` A → (A ∧ B)
and the rules of inference are:
Proposition 3.1. The systems IL and ILcat are equivalent in the sense that they
have the same derivable sequents.
Proof. First we show that the inference rules of IL are derivable in ILcat. For the
interchange we have
B∧A`A∧B
G∧B∧A`G∧A∧B
G∧B∧A∧E `G∧A∧B∧E G∧A∧B∧E `D
G∧B∧A∧E `D
270 MINUTES ON CATEGORIAL PROOF THEORY 11
A type is a word of the form A ` B where A and B are formulae. We say that
A ` B is the type of a term f : A ` B and we say that this term has A as the
source and B as the target. Sometimes, the subscripts determined by the context
are omitted. Usually, we omit the type in writing a term and by term we mean
just the part before the symbol “:”. We omit the outermost parentheses in terms
taking them for granted.
Every IL derivation of a sequent corresponds to a term whose type is that
sequent. A derivation consisting solely of an axiomatic sequent A ` A corresponds
to 1A : A ` A. A derivation ending with an inference figure corresponds to a term
obtained from the terms corresponding to the derivations of the premises as follows:
f:G∧A∧B∧E `D
interchange
f ◦ ((1G ∧ cB,A ) ∧ 1E ) : G ∧ B ∧ A ∧ E ` D
f:G`A g: E ∧ A ∧ F ` D
cut
g ◦ ((1E ∧ f ) ∧ 1F ) : E ∧ G ∧ F ` D
f:G`A g: B ∧ E ` D
→`
g ◦ ((εA,B ∧ 1E ) ◦ ((f ∧ 1A→B ) ∧ 1E )) : G ∧ (A → B) ∧ E ` D
f:A∧G`D
`→
(A → f ) ◦ ηA,G : G ` A → D
For example, the derivation
p`p q`q
p ∧ (p → q) ` q
(p → q) ∧ p ` q
p ` (p → q) → q
> ` p → ((p → q) → q)
corresponds to the term
(p → (((p → q) → (1q ◦ (εp,q ◦ (1p ∧ 1p→q )) ◦ cp→q,p )) ◦ ηp→q,p )) ◦ ηp,>
whose type is > ` p → ((p → q) → q).
The language consists of words of the form f = g, where f and g are terms with
the same type. Our goal is to define an equational system E in that language, whose
theorems cover the cut-elimination procedure. This means that if a derivation
270 MINUTES ON CATEGORIAL PROOF THEORY 13
We start our analysis with two simple instances of Case (3.2) from the proof of
Theorem 3.1, which cover also Case (3.1). A derivation of the form
1A : A ` A g: A ` D
g ◦ 1A : A ` D
is transformed into
g : A ` D.
Also, a derivation of the form
f:G`A 1A : A ` A
1A ◦ f : G ` A
is transformed into
f : G ` A.
Hence, we add to E the following axiom schemata
(4.1) g ◦ 1A = g and 1A ◦ f = f.
We always assume that both sides of our equalities are terms, which, for (4.1),
means that g has A as the source and f has A as the target.
Consider the following instance of Case (3.5) in which the derivation
f:B∧C `A
f ◦ c: C ∧ B ` A g: A ` D
g ◦ (f ◦ c) : C ∧ B ` D
is transformed into
f:B∧C `A g: A ` D
g◦f:B∧C `D
(g ◦ f ) ◦ c : C ∧ B ` D
14 ZORAN PETRIĆ
Categories
A category consists of two sets, O of objects and A of arrows, two functions
source, target : A → O,
and two additional functions
1 : O → A, ◦ : A ×O A → A
called identity and composition, where
A ×O A =df {(g, f ) | g, f ∈ A & source(g) = target(f )}
is the set of all composable pairs of arrows. Moreover, for every X, Y ∈ O,
and every f, g, h ∈ A such that (h, g), (g, f ) and (1Y , f ) are composable
pairs of arrows, the following holds
source(1X ) = X = target(1X ),
source(g ◦ f ) = source(f ), target(g ◦ f ) = target(g),
and
g ◦ 1Y = g, 1Y ◦ f = f, h ◦ (g ◦ f ) = (h ◦ g) ◦ f.
The set OK , which is the set of formulae, and the set AK = {[f ] | f is a term},
with the source and target function, identities and composition defined as above,
make the category K. In the sequel we denote an arrow [f ] just by f . We will
delete occurrences of 1 in the immediate scope of ◦ and omit parentheses tied to ◦
in the immediate scope of ◦ without referring to (4.1) and (4.2).
g: A ∧ B ∧ C ` D
f:G`A g ◦ (1A ∧ c) : A ∧ C ∧ B ` D
g ◦ (1A ∧ c) ◦ (f ∧ 1C∧B ) : G ∧ C ∧ B ` D
is transformed into
f:G`A g: A ∧ B ∧ C ` D
g ◦ (f ∧ 1B∧C ) : G ∧ B ∧ C ` D
g ◦ (f ∧ 1B∧C ) ◦ (1G ∧ c) : G ∧ C ∧ B ` D
If we add the axiom scheme
(4.4) (g1 ∧ g2 ) ◦ (f1 ∧ f2 ) = (g1 ◦ f1 ) ∧ (g2 ◦ f2 )
to E, then we have
g ◦ (1A ∧ c) ◦ (f ∧ 1C∧B ) = g ◦ ((1A ◦ f ) ∧ (c ◦ 1C∧B )), by (4.4)
Functors
Given two categories C and D, a functor F : C → D consists of two
functions, both denoted by F , the object function F : OC → OD and the
arrow function F : AC → AD , such that for every C ∈ OC and every
composable pair (g, f ) of arrows of C
F 1C = 1F C , F (g ◦ f ) = F g ◦ F f.
The identity functor on a category consists of the identity function on
objects and the identity function on arrows. The operation of composi-
tion of two functors consists of two compositions—composition of object
functions and composition of arrow functions, hence this operation is as-
sociative.
Product of categories
The product C × D, of categories C and D is the category whose objects
make the cartesian product OC ×OD and whose arrows make the cartesian
product AC × AD . The identity arrow on (C, D) is the pair (1C , 1D ) and
composition is defined componentwise.
g: B ∧ A ` D
f:G`A g ◦ c: A ∧ B ` D
g ◦ c ◦ (f ∧ 1B ) : G ∧ B ` D
is transformed into
f:G`A g: B ∧ A ` D
g ◦ (1B ∧ f ) : B ∧ G ` D
g ◦ (1B ∧ f ) ◦ c : G ∧ B ` D
If we add the axiom scheme
(4.5) cA0 ,B 0 ◦ (f ∧ g) = (g ∧ f ) ◦ cA,B
to E, then with the help of (4.2) we easily derive g ◦ c ◦ (f ∧ 1B ) = g ◦ (1B ∧ f ) ◦ c.
Natural transformations
.
Given two functors F, G : C → D, a natural transformation α : F → G
is a function from OC to AD , i.e., a family of arrows of D indexed by
the objects of C, such that for every C ∈ OC , source(αC ) = F C and
target(αC ) = GC, and for every f : C → C 0 ∈ AC , the following diagram
α
F C −−−C−→ GC
F fy
Gf
y
F C 0 −−−−→ GC 0
αC 0
The scheme (4.5) says that the family indexed by the objects of K × K
c = {cA,B | A, B ∈ Ob(K)}
270 MINUTES ON CATEGORIAL PROOF THEORY 17
The following two schemata say that c is a natural isomorphism, which satisfies
a coherence condition.
(4.6) cB,A ◦ cA,B = 1A∧B
is indeed a functor. The scheme (4.9) says that for every A ∈ Ob(K), the family
ηA = {ηA,B | B ∈ Ob(K)}
f : A1 ∧ G ` A2 g : B ` A1 h : A2 ` D
(A1 → f ) ◦ η : G ` A1 → A2 h ◦ ε ◦ (g ∧ 1) : B ∧ (A1 → A2 ) ` D
h ◦ ε ◦ (g ∧ 1) ◦ (1 ∧ ((A1 → f ) ◦ η)) : B ∧ G ` D
is transformed into
f : A1 ∧ G ` A2 h : A2 ` D
g : B ` A1 h ◦ f : A1 ∧ G ` D
h ◦ f ◦ (g ∧ 1) : B ∧ G ` D
to E, then we have
h ◦ ε ◦ (g ∧ 1) ◦ (1 ∧ ((A1 → f ) ◦ η)) =
= h ◦ ε ◦ (g ∧ 1) ◦ ((1 ◦ 1) ∧ ((A1 → f ) ◦ η)) by (4.1)
= h ◦ ε ◦ (g ∧ 1) ◦ (1 ∧ (A1 → f )) ◦ (1 ∧ η) by (4.4)
= h ◦ ε ◦ (1 ∧ (A1 → f )) ◦ (g ∧ 1) ◦ (1 ∧ η) by (4.1), (4.4)
= h ◦ f ◦ ε ◦ (g ∧ 1) ◦ (1 ∧ η) by (4.11)
= h ◦ f ◦ ε ◦ (1 ∧ η) ◦ (g ∧ 1) by (4.1), (4.4)
= h ◦ f ◦ (g ∧ 1) by (4.12)
The scheme (4.11) says that for every A ∈ Ob(K), the family
εA = {εA,B | B ∈ Ob(K)}
F (B) = A ∧ (A → B) and F (f ) = 1A ∧ (A → f )
Adjunction
Given two categories C and D, an adjunction is given by two functors,
F : C → D and G : D → C, and two natural transformations, the unit
. .
η : 1C → GF and the counit ε : F G → 1D , such that for every C ∈ OC
and every D ∈ OD
GεD ◦ ηGD = 1GD , and εF C ◦ F ηC = 1F C .
These two equalities are called triangular identities. The functor F is a
left adjoint for the functor G, while G is a right adjoint for the functor F .
α α
A ⊗ (B ⊗ (C ⊗ D)) (A ⊗ B) ⊗ (C ⊗ D) ((A ⊗ B) ⊗ C) ⊗ D
1⊗α
α⊗1
A ⊗ ((B ⊗ C) ⊗ D) α (A ⊗ (B ⊗ C)) ⊗ D
α γ
(I ⊗ A) ⊗ B A ⊗ (B ⊗ C) (A ⊗ B) ⊗ C C ⊗ (A ⊗ B)
λ⊗1
α 1⊗γ α
I ⊗ (A ⊗ B) λ
A⊗B A ⊗ (C ⊗ B) α (A ⊗ C) ⊗ B γ⊗1
(C ⊗ A) ⊗ B
The category K whose objects are formulae and whose arrows are obtained via
the equational system E, axiomatized by
f = f, f ∧ 1> = f = 1> ∧ f, (f ∧ g) ∧ h = f ∧ (g ∧ h)
1A : A ` A 1B : B ` B
εA,B : A ∧ (A → B) ` B
(A → εA,B ) ◦ ηA,A→B : A → B ` A → B
(4.14) 1A → C = 1A→C .
Also, with the help of (4.9), (4.11), (4.4), (4.8) and (4.12) one can derive
(4.15) (f → C) ◦ (g → C) = (g ◦ f ) → C.
Opposite category
Given a category C, its opposite category C op consists of the same set of
objects and the same set of arrows. An arrow f of C envisaged as the
arrow of C op is denoted by f op . The functions source and target switch
the roles so that if f : A → B in C, then f op : B → A in C op . The identities
are the same, while the composition ◦ in C op is such that
f op ◦ g op = (g ◦ f )op .
270 MINUTES ON CATEGORIAL PROOF THEORY 21
A ∧ (B ∧ C) ∼
= (A ∧ B) ∧ C, >∧A∼
=A∼
=A∧>
A∼
= B in C iff for every i ∈ I, Fi A = Fi B (Fi A ∼
= Fi B).
The arrows of Klax do not go beyond derivations in classical logic, which means
that if f : A ` B is an arrow of Klax , then A → B is a tautology. Hence, if
A∼= B, then A ↔ B is a tautology, i.e., A and B correspond to the same Boolean
function. This leads to a simple logical invariant mapping every formula to the
corresponding Boolean function. By relying on this invariant we can show that
p ∧ q is not isomorphic to p in Klax , since p ∧ q ↔ p is not a tautology. On the
other hand, it leaves open the question whether p ∧ p and p are isomorphic in Klax .
22 ZORAN PETRIĆ
A∼
=B A∼
=B B∼ =C
B∼ ∼
A=C
=A
A∼
=B C∼
=D A∼
=B C∼
=D
.
A∧C ∼
=B∧D B→C∼
=A→D
The six axiom schemata are such that for arbitrary A, B and C, these isomor-
phisms hold in Klax . For the first four isomorphisms this is trivial, and the last
270 MINUTES ON CATEGORIAL PROOF THEORY 23
two are left as an exercise for the reader. The first two inference figures are jus-
tified by the facts that the inverse of an isomorphism is an isomorphism and that
the composition of isomorphisms is an isomorphism. The last two inference figures
are justified by the functoriality of ∧ and → (see (4.3), (4.4), (4.10), (4.8), (4.14),
(4.15)). This suffices to conclude the following.
Lemma 5.1. If A ∼
= B is derivable in S, then A ∼
= B holds in Klax .
The category FinSet*, whose objects are the finite small sets with a selected
base point and whose arrows are base-point-preserving functions, is a symmetric
monoidal closed category. The functor ⊗ is defined on a pair of objects (X, Y ) as
((X − {∗X }) × (Y − {∗Y })) ∪ {∗X⊗Y }.
Any two element set with a base point may serve as the object I, i.e., a neutral (up
to isomorphism) for ⊗. The functor X is defined so that Y X is the set of base-
point-preserving functions from X to Y , whose base point is the constant function,
mapping every element of X to the base point of Y . The definition of ⊗ and X
on arrows is then straightforward.
Let N+ be the set of positive natural numbers and let g be a function, called
valuation, from the set of propositional letters to N+ . Consider the following binary
operations on N+
m n =df (m − 1)(n − 1) + 1, mn =df mn−1 .
We define the function ḡ, the extension of g, that maps the objects of Klax to
N+ inductively as follows
ḡ(p) = g(p), ḡ(>) = 2,
ḡ(A ∧ B) = ḡ(A) ḡ(B), ḡ(A → B) = ḡ(B)ḡ(A) .
For a valuation g, let ġ be a function from the set of propositional letters to
the set of objects of FinSet*, satisfying that the cardinality of ġ(p) is g(p). By
the universal property of Klax , there is a unique functor G from Klax to FinSet*
that extends the function ġ and preserves the symmetric monoidal closed structure.
Since every functor preserves isomorphisms, we have that A ∼ = B in Klax implies
GA ∼ = GB in FinSet*.
Two objects of FinSet* are isomorphic when they have the same cardinality. It
is easy to verify that the cardinality of GA is ḡ(A), for ḡ being the extension of g.
Hence, for every valuation g, its extension ḡ is an invariant of Klax in the sense
that if A ∼
= B in Klax , then ḡ(A) = ḡ(B).
We write N+ |= A ∼ = B when ḡ(A) = ḡ(B) holds for every valuation g. By the
preceding paragraph, we have the following result.
Lemma 5.2. If A ∼
= B holds in Klax , then N+ |= A ∼
= B.
From Lemmata 5.1 and 5.2 we have that
if A ∼
= B is derivable in S, then N+ |= A ∼
= B.
Whether the other direction of this implication holds is a question remained open
since it is formulated in [1, Section 9]. The positive answer to this question, together
24 ZORAN PETRIĆ
with Lemma 5.1, guarantees that the family {ḡ | g is a valuation} is a complete
invariant for C. However, for the classification of formulae, we need just a restricted
form of this implication, which is formulated below.
We say that a formula is diversified when every propositional letter occurs in it
no more than once. The following result stems from [1, Arithmetical Completeness
Theorem].
Lemma 5.3. If N+ |= A ∼ = B, for A, B diversified, then A ∼ = B is derivable in S.
From Lemmata 5.1, 5.2 and 5.3, for A and B diversified, we obtain the following
triangle of implications.
A∼
= B is derivable in S N+ |= A ∼
=B
A∼
= B holds in Klax
With the help of these implications we obtain a classification of objects of Klax .
For this we need the following notions. A formula A is an instance of a formula
A0 when for mutually distinct propositional letters p1 , . . . , pn and not necessarily
mutually distinct formulae B1 , . . . , Bn , the formula A is the result of uniformly
substituting the formula Bi for the letter pi .
Similarly, a term f : A ` B is an instance of a term f 0 : A0 ` B 0 when, for
p1 , . . . , pn and B1 , . . . , Bn as above, f is the result of uniformly substituting the
formula Bi for the letter pi in the indices of f 0 . For example, εp,p : p ∧ (p → p) ` p
is an instance of εp,q : p ∧ (p → q) ` q.
If f : A ` B is an instance of f 0 : A0 ` B 0 , then A and B are instances, by the
same substitution, of A0 and B 0 respectively.
Remark 5.1. It is easy to show that if A0 ∼ = B 0 is derivable in S and A and B
are instances, by the same substitution, of A0 and B 0 respectively, then A ∼ = B is
derivable in S.
The following result is taken over from [1, Diversification Lemma].
Lemma 5.4. For every isomorphism f : A ` B of Klax , there is an isomorphism
f 0 : A0 ` B 0 of Klax , such that f is an instance of f 0 , and A0 and B 0 are diversified.
As a corollary of Lemmata 5.1-5.4 we have the following.
Theorem 5.1. A ∼ = B is derivable in S iff A ∼
= B holds in Klax .
Proof. The direction from left to right is Lemma 5.1. For the other direction,
suppose that A ∼= B holds in Klax . By relying on Lemma 5.4, there are diversified
formulae A0 and B 0 such that A0 ∼
= B 0 holds in Klax and A and B are instances, by
the same substitution, of A and B 0 respectively. By Lemma 5.2, N+ |= A0 ∼
0
= B0,
0 ∼ 0
and by Lemma 5.3, A = B is derivable in S. By Remark 5.1, we conclude that
A∼ = B is derivable in S.
The system S is decidable (see [1, Normal Form Lemma]), hence the relation ∼
=
is decidable. This completes the classification of objects of Klax .
270 MINUTES ON CATEGORIAL PROOF THEORY 25
Products
A product of two objects A and B in a category C consists of an object
1 2
A × B of C and a pair of arrows πA,B : A × B → A, πA,B : A×B → B
of C, and it is characterized by the following universal property: for every
pair of arrows f : C → A and g : C → B of C, there is a unique arrow
h : C → A × B of C such that
1 2
πA,B ◦h=f and πA,B ◦ h = g.
C
f g
h
A A×B B
π1 π2
26 ZORAN PETRIĆ
If categories with products are in question, then the canonical structure consists
of all the arrows built out in terms of identities, projections, composition and the
operation h , i of pairing.
The syntactical category L is obtained in the same manner as we have obtained
the category K in Section 4. The objects of L are the formulae of the conjunction
language introduced in Section 2. Based on that language, we build a new language
whose members are equalities of the form t = s where t and s are terms defined
below. The alphabet introduced in Section 2 is extended by the symbols 1, π 1 , π 2 ,
h, i, ◦, =, :, ` and ,. (Note that π 1 , as well as π 2 , is considered as one symbol.)
The terms of this language are defined inductively as follows.
(1) If A and B are formulae, then
1A : A ` A
1 2
πA,B : A ∧ B ` A, πA,B : A ∧ B ` B,
are terms called primitive.
We define the type, the source and the target of a term, and use the same
conventions, as in Section 4. The language consists of the words of the form f = g,
where f and g are terms with the same type. We define an equational system E in
this language in the same manner as in Section 4.
The axiomatic equalities are given by the following schemata
f = f, f ◦ 1A = f = 1B ◦ f, (h ◦ g) ◦ f = h ◦ (g ◦ f )
together with (6.1) and (6.2). The inference figures are
f =g f =g g=h
g=f f =h
f1 : A ` B = f2 : A ` B g1 : B ` C = g2 : B ` C
g1 ◦ f1 = g2 ◦ f2
f1 : C ` A = f2 : C ` A g1 : C ` B = g2 : C ` B
hf1 , g1 i = hf2 , g2 i
Let ≡ be the relation on the set of terms defined by
f ≡g when f = g is derivable in E.
Again, this is an equivalence relation. We define the arrows of L, their sources and
targets, composition, identities and pairing as for the category K in Section 4. This
completes the definition of the syntactical category L. This category corresponds
to the conjunction fragment of both intuitionistic and classical logic. The arrows
wA (the components of the unit of the adjunction between ∆ and ×) are tied to
1 2
the structural rule of contraction and the arrows πA,B and πA,B , called projections,
are tied to the structural rule of thinning.
The category L is a category with products. Moreover, it is a category of that
kind freely generated by the set of propositional letters that belong to the alphabet.
This means that every function from the set of propositional letters to the set of
objects of a category C with products, extends in a unique way to a functor, which
preserves the product structure, from L to C.
Since we have the scheme (4.2), we may omit the parentheses tied to a com-
position being in the immediate scope of another composition. Hence we write
fn ◦ . . . ◦ f1 and reconstruct the parentheses in an arbitrary way. The terms in
normal form are defined inductively as follows. For a propositional letter p, a term
of the form 1p : p ` p and the term of the form fn ◦ . . . ◦ f1 : A ` p, where each fi is
either π 1 or π 2 is in normal form. If f and g are in normal form, then hf, gi is in
normal form.
Theorem 6.1. (Normal-Form Theorem) For every term f there exists a term
f 0 in normal form such that f ≡ f 0 .
28 ZORAN PETRIĆ
Our manageable category is very simple. We start with its formal presentation
and then skip to pictures as a more practical way to handle with arrows of this
category. Let O be the category whose objects are the finite ordinals 0 = ∅, 1 = {0}
and in general n = {0, . . . , n − 1}, and whose arrows from n to m are the functions
mapping the set n to the set m. This category is a full subcategory of the category
Set of sets and functions.
Let Oop be the opposite category of the category O. The arrows from n to m of
this category are the functions whose domain is the set m and codomain is the set
n. Since the category O is a category with coproducts (a notion dual to the notion
of product) we have that Oop is a category with products.
Coproducts
A coproduct of two objects A and B in a category C consists of an object
A + B of C and a pair of arrows ι1A,B : A → A + B, ι2A,B : B → A + B
of C, and it is characterized by the following universal property: for every
pair of arrows f : A → C and g : B → C of C, there is a unique arrow
h : A + B → C of C such that
h ◦ ι1A,B = f and h ◦ ι2A,B = g.
270 MINUTES ON CATEGORIAL PROOF THEORY 29
ι1 ι2
A A+B B
h g
f
C
The coproducts in O are given by addition on objects and by putting “side by
side” on arrows, i.e., the coproduct of f : n → m and f 0 : n0 → m0 is given by the
function g : n + n0 → m + m0 such that
(
f (i), when 0 6 i 6 n − 1,
g(i) =
m + f (i − n), when n 6 i 6 n + n0 − 1.
0
By inverting the arrows, this gives the products in Oop . We proclaim Oop to be
the manageable category.
The objects of Oop are presented so that n is presented by n vertices. For
example, 5 is presented by the following picture.
0 1 2 3 4
q q q q q
The object n × m is presented by the picture for n + m.
The arrows of Oop are presented by the standard pictures for finite functions.
Note that the picture is such that the set of vertices at the bottom line is mapped
to the set of vertices at the top line. For example, an arrow from 5 to 3 of Oop is
presented by the following picture.
0 2 1 3 4
q q q q q
@
q
q @q
0 1 2
1 2
The arrows π3,2 : 3 + 2 ` 3 and π3,2 : 3 + 2 ` 2 are presented respectively by
0 1 2 3 4 0 1 2 3 4
q q q q q q q q q q
q q q q
q
0 1 2 0 1
It is not difficult to show directly, without using the above categorial arguments
involving dualities, that π 1 , π 2 and the pairing defined as hf, gi =df (f × g) ◦ w,
satisfy (6.1) and (6.2). Using the above pictures as arguments is very convincing.
This is left as an exercise for the reader.
Let a constant function from the set of propositional letters to the set of objects
of Oop be such that every letter is mapped to 1. Since L is a category freely
generated by the set of propositional letters, this function extends in a unique way
to a functor from L to Oop . For example, the arrow f
1 1 2 1 1
hhπp,q ◦ πp∧q,p , πp∧q,p i, πp,q ◦ πp∧q,p i : (p ∧ q) ∧ p ` (p ∧ p) ∧ p
of L is mapped by this functor to the following arrow of Oop
0 1 2
q q q
HH
q q Hq
H
0 1 2
which is usually drown as edges connecting letters in the source and the target of f .
( p ∧ q )∧ p
q q q
HH
q q Hq
H
( p ∧ p )∧ p
Hence, we have a soundness result—to check that f and g are different in L, it
suffices to draw the corresponding pictures and find a difference.
Theorem 6.2. (Soundness) If f and g represent the same arrow of L, then they
have the same picture.
For a completeness result, it is necessary to find a touching point of the syntax
and semantics. This is why we represent the arrows of L by terms in normal form.
Let f : A ` B be a term in normal form. The nesting of h and i in f corresponds
to the nesting of ( and ) in B and the subterms of f of the form 1p or fn ◦ . . . ◦ f1 ,
with A as the source and a letter as the target, are in one to one correspondence
with the occurrences of letters in B.
It is not difficult to see that every such subterm corresponds to a unique edge in
the picture, and vice versa, one can read such a subterm from an edge. This is the
touching point for the syntax and semantics. For the term and the picture from
the preceding example, we have the following correspondence.
1 1 2 1 1
hhπp,q ◦ πp∧q,p , πp∧q,p i, πp,q ◦ πp∧q,p i : (p ∧ q) ∧ p ` (p ∧ p) ∧ p
270 MINUTES ON CATEGORIAL PROOF THEORY 31
( p ∧ q )∧ p
q
H q q
HH
q q Hq
( p ∧ p )∧ p
A formalization of these observations is left as an exercise for the reader. Hence,
if two terms, in normal form and with the same type, are not identical, then the
corresponding pictures are different.
Theorem 6.3. (Completeness) If f and g are two terms with the same picture,
then f and g represent the same arrow of L.
Proof. Let f and g be two terms with the same type and having the same picture,
i.e., mapped to the same arrow of Oop . By the Normal-Form Theorem, there are
f 0 and g 0 in normal form such that f ≡ f 0 and g ≡ g 0 . By Theorem 6.2, f 0 and g 0
have the same picture and by the preceding paragraph, these terms are identical.
Since ≡ is an equivalence relation, we conclude that f ≡ g, and f and g represent
the same arrow of L.
Hence, we have a completeness result—to check that f and g are equal in L, it
suffices to draw the corresponding pictures and find no difference.
2. In order to show that the two definitions of a category with binary products
are equivalent, let us first assume that C is a category of binary products according
to the first definition. In terms of π 1 , π 2 and pairing h , i define the product f × g
of two arrows and show that it has functorial properties. In the same terms define
the components of natural transformations that may serve as the unit and counit
of the adjunction between the diagonal functor and the product functor. Show that
the unit and counit are natural and that the triangular equations hold.
On the other hand, if the second definition is assumed, then define the pairing
h , i in terms of the right adjoint × of the diagonal functor, and the unit of this
adjunction. It remains to show that the equations (6.1) and (6.2) hold.
References
[1] K. Došen and Z. Petrić, Isomorphic objects in symmetric monoidal closed categories, Math.
Struct. in Comp. Science 7 (1997), 639–662.
[2] ——–, Proof-Theoretical Coherence, KCL Publications, London, 2004 (revised version avail-
able at: http://www.mi.sanu.ac.yu/~kosta/publications.htm)
[3] G. Gentzen, Untersuchungen über das logische Schließen, Math. Z. 39 (1935), 176–210, 405–
431 (English translation: Investigations into logical deduction, in [4], 68–131)
[4] ——–, The Collected Papers of Gerhard Gentzen M.E. Szabo (ed.), North-Holland, Amster-
dam, 1969
[5] S. Mac Lane, Categories for the Working Mathematician, Springer, Berlin, 1971 (expanded
second edition, 1998).
[6] D. Prawitz, Ideas and results in proof theory, in: J.E. Fenstad (ed.), Proceedings of the Second
Scandinavian Logic Symposium, North-Holland, Amsterdam, 1971, 235–307.