SlideShare une entreprise Scribd logo
1  sur  48
Télécharger pour lire hors ligne
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Natural Number Objects in Dialectica Categories
Valeria de Paiva

Charles Morgan

Samuel Gomes da Silva

September 2, 2013

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Linear Logic perspective into recursion and iteration?

Linear Logic can be seen as magnifying lens to understand
logic

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Linear Logic perspective into recursion and iteration?

Linear Logic can be seen as magnifying lens to understand
logic
Decomposing implication via Girard’s translation
A → B :=!A−◦B gives new insights on computational
phenomena

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Linear Logic perspective into recursion and iteration?

Linear Logic can be seen as magnifying lens to understand
logic
Decomposing implication via Girard’s translation
A → B :=!A−◦B gives new insights on computational
phenomena
Want to use linear perspective for iteration and recursion

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Linear Recursion and Iteration?

Iteration and recursion in intuitionistic logic done via PCF

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Linear Recursion and Iteration?

Iteration and recursion in intuitionistic logic done via PCF
the mother of all programming languages

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Linear Recursion and Iteration?

Iteration and recursion in intuitionistic logic done via PCF
the mother of all programming languages
and its denotational models

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Categorical Models of PCF?

Cartesian closed category

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Categorical Models of PCF?

Cartesian closed category
with booleans, NNO and fixpoints

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Categorical Models of PCF?

Cartesian closed category
with booleans, NNO and fixpoints
Want to start with Linear PCF and linear natural number
objects...

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Categorical Models of PCF?

Cartesian closed category
with booleans, NNO and fixpoints
Want to start with Linear PCF and linear natural number
objects...
This talk: linear natural number objects in a specific model of
Linear Logic, Dialectica categories

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

What are Natural Numbers Objects?

Lawvere’s way of modelling the natural numbers with Peano’s
Induction

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

What are Natural Numbers Objects?

Lawvere’s way of modelling the natural numbers with Peano’s
Induction
CCC with NNO ⇒ all primitive recursive functions.

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

What are Natural Numbers Objects?

Lawvere’s way of modelling the natural numbers with Peano’s
Induction
CCC with NNO ⇒ all primitive recursive functions.
A Natural Numbers Object (or NNO) is an object in a
category equipped with structure giving it properties similar to
those of the set of natural numbers N in the category Sets.

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

What are Natural Numbers Objects?

Lawvere’s way of modelling the natural numbers with Peano’s
Induction
CCC with NNO ⇒ all primitive recursive functions.
A Natural Numbers Object (or NNO) is an object in a
category equipped with structure giving it properties similar to
those of the set of natural numbers N in the category Sets.
Want to linearize this setting...

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

What are Natural Numbers Objects?
A NNO in a CCC C consists of an object N of C together with two
morphisms, zero : 1 → N and a successor mapping succ : N → N.
The triple (N, zero, succ) is required to satisfy the condition that,
given any pair of morphisms f : 1 → B and g : B → B in C, there
exists a unique h : N → B such that the following diagram
commutes.
1

zero E
N
d
d
d
f d
‚
d

h

h

c

B
Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

succ E
N

g

c
E B

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Natural Numbers Objects in Sets
A NNO in Sets consists of the object N in Sets together with two
morphisms, zero : 1 → N (where we really choose the element 0 of
the natural numbers N, and the successor mapping succ : N → N is
really + 1 : N → N.
1

zero E
N
d
d
d
f d
‚
d

h

h

c

B

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

succ E
N

g

c
E B

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Natural Numbers Objects in Sets
Given f : 1 −→ X (or f (∗) = x0 ) and g : X −→ X we have the
map h given by h(n) = g n (f (∗)) makes the following diagram
commute and is the unique map doing so.
1

zero E
N

+1 E
N

d
d
h
d
f d
‚
d c

X

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

h

g

c
E X

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Natural Numbers Objects in a SMCC?
Par´ and Rom´n (thinking of Linear Logic) have the following:
e
a
Given a monoidal category C a NNO is an object N of C and
morphisms zero : I −→ N and succ : N −→ N such that for any
object B of C and morphisms b : I −→ B and g : B −→ B there is
a morphism h : N −→ B such that the diagrams below commute:
I

zero E
N
d
d
d
b d
‚
d

succ E
N

h

h

c

B

g

c
E B

Can we calculate with it?
Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Dialectica Categories

Conceived as an internal model of G¨del’s Dialectica
o
Interpretation, turned out to be also a model of Linear Logic.
Objects of the Dialectica category Dial2 (Sets) are triples,
A = (U, X , R), where U and X are sets and R ⊆ U × X is a
relation.
Given elements u in U and x in X , either they are related by R,
R(u, x) = 1 or they are not and R(u, x) = 0, hence the 2 in the
name of the category.

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Dialectica Categories
A morphism from A to B = (V , Y , S) is a pair of functions
f : U −→ V and F : Y −→ X such that uRF (y ) =⇒ f (u)Sy .
R
u∈U '

X
T

⇓

f
c

V '

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

S

F
Y

y

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Tensor in Dialectica Categories
Let A = (U, X , R) and B = (V , Y , S) be objects in Dial2 (Sets).
The tensor product of A and B is given by
A ⊗ B = (U × V , X V × Y U , R ⊗ S)
where the relation R ⊗ S is given by (u, v ) R ⊗ S (f , g ) iff uRf (v )
and vSg (u).
The unit for this tensor product is the object IDial := (1, 1, =),
where 1 = {∗} is a singleton set and = is the identity relation on
the singleton set.

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Symmetric Monoidal Closed Dialectica Categories
Let A = (U, X , R) and B = (V , Y , S) be objects in Dial2 (Sets).
The internal-hom is given by
[A, B] = (V U × X Y , U × Y , [R, S])
where (f , F )[R, S](u, x) iff uRF (y ) implies f (u)Sy .
The tensor product is adjoint to the internal-hom, as usual
HomDial (A ⊗ B, C ) ∼ HomDial (A, [B, C ])
=

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Other structure of Dialectica Categories
Let A = (U, X , R) and B = (V , Y , S) be objects in Dial2 (Sets).
There is an auxiliary tensor product structure given by
A ◦ B = (U × V , X × Y , R ◦ S)
where (u, v )R ◦ S(x, y ) iff uRx and vSy .
This simpler tensor structure is not the adjoint of the internal-hom.
It’s necessary to prove existence of appropriate modality !.
The unit for this tensor product is also IDial .

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Cartesian structure of Dialectica Categories

Let A = (U, X , R) and B = (V , Y , S) be objects in Dial2 (Sets).
The cartesian product is given by A × B = (U × V , X + Y , ch)
where X + Y = X × 0 ∪ Y × 1 and the relation ch (short for
‘choose’) is given by (u, v )ch(x, 0) if uRx and (u, v )ch(y , 1) if vSy .
The unit for this product is (1, ∅, ∅), the terminal object of
Dial2 (Sets). (there are also cartesian coproducts.)

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNOs in Dialectica Categories?

To investigate iteration and recursion in linear categories we want
to define a natural numbers object in Dial2 (Sets).
We can use either the cartesian structure of Dial2 (Sets) or any one
of its tensor structures.
The first candidate monoidal structure is the cartesian product in
Dial2 (Sets).
This requires a map corresponding to zero from the terminal object
(1, ∅, ∅) in Dial2 (Sets) to our natural numbers object candidate,
say a generic object like (N, M, E )

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNOs in Dialectica Categories?
Reading the definition, (N, M, E ) is a NNO with respect to the
cartesian structure of Dial2 (Sets)if there are maps
(z, Z ) : (1, ∅, ∅) −→ (N, M, E ) and
(s, S) : (N, M, E ) −→ (N, M, E ) such that for any object
(X , Y , R) and any pair of morphisms
(f , F ) : (1, ∅, ∅) −→ (X , Y , R) and
(g , G ) : (X , Y , R) −→ (X , Y , R) there exists some (unique)
(h, H) : (N, M, E ) −→ (X , Y , R) such that a big diagram
commutes.
Which big diagram?

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using cartesian structure
∅
∅

 
 
1

z

Z

d
sF
d
E

d
d
d
f d
d
‚
d

S

M

'
E

 
 

H

T
 
 E

N

s

E

Y

G

'

 
R
c 
X

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

H

N
h

d
d
h

M

'
T

Y

 
R
c 
g

E

X

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using cartesian structure
Proposition 1. The category Dial2 (Sets) has a (trivial) NNO with
respect to its cartesian structure, given by (N, ∅, ∅).
Proof sketch: any possible NNO for Dial2 (Sets) is of the form
N = (N, M, E ) for some set M and some relation E ⊆ N × M,
where N is the usual natural numbers object in Sets, with the
usual zero constant and the usual successor functions.
There must exist a morphism in Dial2 (Sets) zero = (z, Z ) : 1 → N
with two components, z : 1 → N (as in Sets) and Z : M → 0. But
since the only map into the empty set in the category of Sets is
the empty map, we conclude that M is empty and so is E as this is
a relation in the product N × ∅.
Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using cartesian structure
This trivial NNO works, because given any object B of Dial2 (Sets)
with maps f : 1 → B and g : B → B, we can find a unique map
h : N → B making all the necessary diagrams commute: In the
first coordinate h is given by the map that exists for N as a NNO
in Sets and in the second coordinate this is simply the empty map.
Not very exciting...
This triviality result is expected, since the ‘main’ structure of the
category Dial2 (Sets) is the tensor product that makes it a
symmetric monoidal closed category, not its cartesian structure.

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
[Burroni] Peano-Lawvere axiom’s says that for any object X in a
zX E
sX E
category E , there is a diagram X
NX
NX
with the universal property that for any diagram of the form
f E
g E
X
Y
Y there exists h : NX → Y such that
the following diagram commutes
zX E
X
NX

sX E
NX

d
d
h
d
f d
‚
d c

Y
Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

h

g

c
E Y

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
If a category satisfies this axiom, we say the category is a
Peano-Lawvere (PL) category.
Dial2 (Sets) is a PL-category if given any object (A, B, C ) of
Dial2 (Sets) there is an object (N, M, E ) and maps
(z, Z ) : (A, B, C ) −→ (N, M, E ) and
(s, S) : (N, M, E ) −→ (N, M, E ) such that for any object of
Dial2 (Sets) (X , Y , R) together with a pair of morphisms
(f , F ) : (A, B, C ) −→ (X , Y , R) and
(g , G ) : (X , Y , R) −→ (X , Y , R) there exists some (unique) map
in Dial2 (Sets) (h, H) : (N, M, E ) −→ (X , Y , R) making the big
diagram commute.
Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
B
C 
 
A

z

Z

d
sF
d
E

d
d
d
f d
d
‚
d

S

M

'
E 
 

H

T
 
 E

N

s

E

Y

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

H

G

'

 
R
c 
X

N
h

d
d
h

M

'
T

Y

 
R
c 
g

E

X

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
Simplifying this picture for the case where the unit (1, 1, =) is
used. If N = (N, M, E ) is a proposed NNO in Dial2 (Sets) then
there must exist morphisms zero = (z, Z ) : (1, 1, =) → (N, M, E )
and succ = (s, S) : (N, M, E ) → (N, M, E ) such that:
1
= 
 
1

z

Z

d
sF
d
E

d
d
d
f d
d
‚
d

S

M

'
E 
 

H

T
 
 E

N

s

E

Y

X

H

G

'

 
R
c 

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

N
h

d
d
h

M

'
T

Y

 
R
c 
X
g
Natural Number Objects in Dialectica Categories

E
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
Proposition 2. The category Dial2 (Sets) has a (trivial) weak
NNO with respect to its monoidal closed structure described, given
by (N, 1, N × 1).
As before, any possible NNO for Dial2 (Sets) is of the form
N = (N, M, E ) for some set M and some relation E ⊆ N × M,
where N is the usual natural numbers object in Sets, with the usual
zero constant and the usual successor function on natural numbers.
The morphism zero has two components, z : 1 → N (as in Sets)
and Z : M → 1. The map Z has to be the unique map !M : M → 1
sending all m’s in M to the singleton set ∗

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
The morphism succ : N → N has two components (s, S), where
s : N → N is the usual successor function in N, and S : M → M is
to be determined, satisfying some equations.
Fact 1. If there is a map (f , F ) : I → B in Dial2 (Sets) for a
generic object B of the form (X , Y , R) then there exists x0 in X
such for all y in Y we have x0 Ry .
By definition of maps in Dial2 (Sets), we must have
=
1'
f
c
X '

1
T
F =!

R

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Y
Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure

Fact 2. If there is a NNO in Dial2 (Sets) of the form (N, M, E ),
where M is the singleton set 1, then S : 1 → 1 is the identity on 1
and E relates every n in N to ∗.
If N = (N, 1, E ) is a NNO in Dial2 (Sets) then the map
zero = (z, Z ) : I → N has to be the zero map in N together with
the terminal map in 1 and the succ = (s, S) : N → N consists of
the usual successor function on the integers and S : 1 → 1 has to
be the identity on 1.

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
The fact that (s, S) is map of Dial2 (Sets) gives us the diagram
E
N'

1
T

S

s
c

N'

E

1

and the condition on morphisms says for all n in N and for all ∗ in
1, if nES∗ then n + 1 = s(n)E ∗. But S is the identity on 1, ie
S∗ = ∗, so if nES∗ ⇒ n + 1E ∗, which is just what we need to
prove that E relates every n in N to ∗.
Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
Back to the proposition 2: The object of Dial2 (Sets) of the form
(N, 1, E ), where E relates every n in N to ∗, together with
morphisms zero = (0, id1 ) : I → N and succ = (+1, id1 ) : N → N
is a weak NNO in Dial2 (Sets).
Proof. Let B be an object (X , Y , R) of Dial2 (Sets) such that
there are maps (f , F ) : I → B and (g , G ) : B → B. To prove
N = (N, 1, E ), where nE ∗ for all n in N is a weak NNO, we must
define a map (h, H) : N → B such that the main NNO diagram
commutes. It is clear that h : N → X can be defined using the fact
that N is a NNO in Sets. It is clear that we must take H : Y → 1
as the terminal map on Y . We need to check that all the required
conditions are satisfied.
Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
The
1.
2.
3.

required conditions amount to showing that
the map (h, H) is a map of Dial2 (Sets);
the triangles commute, and
the squares commute in the diagram below.
1

'

= 
 
1

z =0

Z = id1

1

d
sF =!Y E  
d
 
E N

d
d
d
f d
d
‚
d

H

'
T

S = id1

T
 
 E

s = +1

E

Y

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

H =!Y

G

'

 
R
c 
X

N
h

d
d
h

1

Y

 
R
c  
g

E

X

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure

Items 2 and 3 are boring, but easy.
Need to show that the proposed map (h, H) is indeed a map in
Dial2 (Sets).
The map (h, H) is a map in Dial2 (Sets) if the condition
for all m in N, for all y in Y , if mEH(y ) then h(m)Ry
is satisfied.
Since H(y ) = ∗ and we know mE ∗ for all m in N, we need to show
h(m)Ry for all m ∈ N and all y in Y . (vertical square)
By cases, either m = 0 or not.

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
If m = 0 we need to show h(0)Ry for all y ∈ Y . Since N is the
NNO in Sets we know that
1

0

+1

E
d
fd
‚

E

N

N

h

h

c

c

X

g

E

X

commutes, hence h(0) = f (∗) and h(m + 1) = g (h(m)). Since
B = (X , Y , R) is an object that has a map (f , F ) : I → B we know
(Fact 1) that there exists x0 = f (∗) such that f (∗)Ry for all y in
Y and hence h(0) = f (∗)Ry for all y ∈ Y .

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

NNO using monoidal structure
If m is not zero, then m = n + 1 and h(n + 1) = g (h(n)) by the
definition of h in Sets. But B is an object of Dial2 (Sets) equipped
with a map (g , G ) : B → B, which means that there exist
g : X → X and G : Y → Y in Sets such that for all x ∈ X and for
all y ∈ Y , if xRG (y ) then g (x)Ry . To show that h(n)Ry , since we
know that h(0)Ry we need to show that if h(n)Ry for all y ∈ Y
then h(n + 1)Ry for all y ∈ Y .
But if h(n)Ry for all y ∈ Y , then in particular h(n)RG (y ) for all
y ’s that happen to be in the range of G , that is if y happens to be
Gy . In this case g (h(n))Ry , that is h(n + 1)Ry .

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Summing up
We obtained a degenerate weak NNO, where in the first coordinate
we have business as usual in Sets and in the second coordinate we
have simply the singleton set 1 and terminal maps.
We expected to find a NNO in the dialectica categories, with
iteration and recursion as usual in the first coordinate, but
co-recursion/co-iteration in the second coordinate.
It is disappointing to obtain only a ‘degenerate’ NNO as above,
where the second coordinate is trivial. Maybe we have not got the
right level of generality...

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Summing up
Natural number algebras 1 → N ← N are in bijective
correspondence with F -algebras (for F the endofunctor
F (X ) = 1 + X ) . The initial algebra for this functor in Set is
indeed the usual natural numbers, where we have an isomoprhism
N ∼ 1 + N. Since this is an isomorphism we could also see it as an
=
F -coalgebra, but this is not final in the category of sets. As
Plotkin remarks this coalgebra is final in the category of sets and
partial functions Pfn.
Can we change our working underlying category of Dial2 (Sets) so
that a non-trivial NNO can be constructed?

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Some references
Sandra Alves, Maribel Fernandez, Mario Florido, and Ian
Mackie. Linear recursive functions. In Rewriting,
Computation and Proof, pages 182195. Springer, 2007.
Dialectica and Chu constructions: Cousins?Theory and
Applications of Categories, Vol. 17, 2006, No. 7, pp 127-152.
Thesis TR: The Dialectica Categories
http://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-213.html

A Dialectica-like Model of Linear Logic.In Proceedings of
CTCS, Manchester, UK, September 1989. LNCS 389 .
The Dialectica Categories. In Proc of Categories in Computer
Science and Logic, Boulder, CO, 1987. Contemporary
Mathematics, vol 92, American Mathematical Society, 1989
Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories
Outline
Motivation
Natural Numbers Objects
Dialectica Categories
NNOs
Conclusions

Thanks!

Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva

Natural Number Objects in Dialectica Categories

Contenu connexe

Tendances

Inverse Trigonometric Functions
Inverse Trigonometric FunctionsInverse Trigonometric Functions
Inverse Trigonometric FunctionsSadiq Hussain
 
Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Matthew Leingang
 
2.2 Graphs of First Degree Functions
2.2 Graphs of First Degree Functions2.2 Graphs of First Degree Functions
2.2 Graphs of First Degree Functionsmath260
 
11X1 T13 05 polynomial results
11X1 T13 05 polynomial results11X1 T13 05 polynomial results
11X1 T13 05 polynomial resultsNigel Simmons
 
2.4 grapgs of second degree functions
2.4 grapgs of second degree functions2.4 grapgs of second degree functions
2.4 grapgs of second degree functionsmath260
 
2.3 slopes and difference quotient
2.3 slopes and difference quotient2.3 slopes and difference quotient
2.3 slopes and difference quotientmath260
 
Lesson 4: Calcuating Limits (slides)
Lesson 4: Calcuating Limits (slides)Lesson 4: Calcuating Limits (slides)
Lesson 4: Calcuating Limits (slides)Matthew Leingang
 
18 directional derivatives and gradient
18 directional  derivatives and gradient18 directional  derivatives and gradient
18 directional derivatives and gradientmath267
 
3.2 properties of division and roots
3.2 properties of division and roots3.2 properties of division and roots
3.2 properties of division and rootsmath260
 
Stability criterion of periodic oscillations in a (9)
Stability criterion of periodic oscillations in a (9)Stability criterion of periodic oscillations in a (9)
Stability criterion of periodic oscillations in a (9)Alexander Decker
 
2016--04-07-NCUR-JON (1)
2016--04-07-NCUR-JON (1)2016--04-07-NCUR-JON (1)
2016--04-07-NCUR-JON (1)Jon Scott
 

Tendances (17)

Inverse Trigonometric Functions
Inverse Trigonometric FunctionsInverse Trigonometric Functions
Inverse Trigonometric Functions
 
Task 4
Task 4Task 4
Task 4
 
Math task 3
Math task 3Math task 3
Math task 3
 
Blackbox task 2
Blackbox task 2Blackbox task 2
Blackbox task 2
 
Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)Lesson 2: A Catalog of Essential Functions (slides)
Lesson 2: A Catalog of Essential Functions (slides)
 
2.2 Graphs of First Degree Functions
2.2 Graphs of First Degree Functions2.2 Graphs of First Degree Functions
2.2 Graphs of First Degree Functions
 
11X1 T13 05 polynomial results
11X1 T13 05 polynomial results11X1 T13 05 polynomial results
11X1 T13 05 polynomial results
 
2.4 grapgs of second degree functions
2.4 grapgs of second degree functions2.4 grapgs of second degree functions
2.4 grapgs of second degree functions
 
2.3 slopes and difference quotient
2.3 slopes and difference quotient2.3 slopes and difference quotient
2.3 slopes and difference quotient
 
2 homework
2 homework2 homework
2 homework
 
Day 03
Day 03Day 03
Day 03
 
Lesson 4: Calcuating Limits (slides)
Lesson 4: Calcuating Limits (slides)Lesson 4: Calcuating Limits (slides)
Lesson 4: Calcuating Limits (slides)
 
18 directional derivatives and gradient
18 directional  derivatives and gradient18 directional  derivatives and gradient
18 directional derivatives and gradient
 
Predicate Logic
Predicate LogicPredicate Logic
Predicate Logic
 
3.2 properties of division and roots
3.2 properties of division and roots3.2 properties of division and roots
3.2 properties of division and roots
 
Stability criterion of periodic oscillations in a (9)
Stability criterion of periodic oscillations in a (9)Stability criterion of periodic oscillations in a (9)
Stability criterion of periodic oscillations in a (9)
 
2016--04-07-NCUR-JON (1)
2016--04-07-NCUR-JON (1)2016--04-07-NCUR-JON (1)
2016--04-07-NCUR-JON (1)
 

En vedette

Contexts 4 quantification (CommonSense2013)
Contexts 4 quantification (CommonSense2013)Contexts 4 quantification (CommonSense2013)
Contexts 4 quantification (CommonSense2013)Valeria de Paiva
 
Seeing is Correcting:Linked Open Data for Portuguese
Seeing is Correcting:Linked Open Data for PortugueseSeeing is Correcting:Linked Open Data for Portuguese
Seeing is Correcting:Linked Open Data for PortugueseValeria de Paiva
 
Logics and Ontologies for Portuguese Understanding
Logics and Ontologies for Portuguese UnderstandingLogics and Ontologies for Portuguese Understanding
Logics and Ontologies for Portuguese UnderstandingValeria de Paiva
 
Dialectica Categories and Cardinalities of the Continuum (March2014)
Dialectica Categories and  Cardinalities of the Continuum (March2014)Dialectica Categories and  Cardinalities of the Continuum (March2014)
Dialectica Categories and Cardinalities of the Continuum (March2014)Valeria de Paiva
 
Lean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural LogicLean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural LogicValeria de Paiva
 
Who's afraid of Categorical models?
Who's afraid of Categorical models?Who's afraid of Categorical models?
Who's afraid of Categorical models?Valeria de Paiva
 

En vedette (7)

Contexts 4 quantification (CommonSense2013)
Contexts 4 quantification (CommonSense2013)Contexts 4 quantification (CommonSense2013)
Contexts 4 quantification (CommonSense2013)
 
Seeing is Correcting:Linked Open Data for Portuguese
Seeing is Correcting:Linked Open Data for PortugueseSeeing is Correcting:Linked Open Data for Portuguese
Seeing is Correcting:Linked Open Data for Portuguese
 
Logics and Ontologies for Portuguese Understanding
Logics and Ontologies for Portuguese UnderstandingLogics and Ontologies for Portuguese Understanding
Logics and Ontologies for Portuguese Understanding
 
Dialectica Categories and Cardinalities of the Continuum (March2014)
Dialectica Categories and  Cardinalities of the Continuum (March2014)Dialectica Categories and  Cardinalities of the Continuum (March2014)
Dialectica Categories and Cardinalities of the Continuum (March2014)
 
Lean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural LogicLean Logic for Lean Times: Varieties of Natural Logic
Lean Logic for Lean Times: Varieties of Natural Logic
 
Who's afraid of Categorical models?
Who's afraid of Categorical models?Who's afraid of Categorical models?
Who's afraid of Categorical models?
 
Modal Type Theory
Modal Type TheoryModal Type Theory
Modal Type Theory
 

Similaire à Natural Number Objects in Dialectica Categories

Dialectica Categories Revisited
Dialectica Categories RevisitedDialectica Categories Revisited
Dialectica Categories RevisitedValeria de Paiva
 
9+&+10+English+_+Class+09+CBSE+2020+_Formula+Cheat+Sheet+_+Number+System+&+Po...
9+&+10+English+_+Class+09+CBSE+2020+_Formula+Cheat+Sheet+_+Number+System+&+Po...9+&+10+English+_+Class+09+CBSE+2020+_Formula+Cheat+Sheet+_+Number+System+&+Po...
9+&+10+English+_+Class+09+CBSE+2020+_Formula+Cheat+Sheet+_+Number+System+&+Po...ghghghg3
 
Mathematics power point presenttation on the topic
Mathematics power point presenttation on the topicMathematics power point presenttation on the topic
Mathematics power point presenttation on the topicMeghansh Gautam
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicManjula V
 
Unambiguous functions in logarithmic space - CiE 2009
Unambiguous functions in logarithmic space - CiE 2009Unambiguous functions in logarithmic space - CiE 2009
Unambiguous functions in logarithmic space - CiE 2009Michael Soltys
 
Dialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusValeria de Paiva
 
Godels First Incompleteness Theorem
Godels First Incompleteness TheoremGodels First Incompleteness Theorem
Godels First Incompleteness Theoremmmanning02474
 
Tensor-based Models of Natural Language Semantics
Tensor-based Models of Natural Language SemanticsTensor-based Models of Natural Language Semantics
Tensor-based Models of Natural Language SemanticsDimitrios Kartsaklis
 
Applied Math 40S June 2 AM, 2008
Applied Math 40S June 2 AM, 2008Applied Math 40S June 2 AM, 2008
Applied Math 40S June 2 AM, 2008Darren Kuropatwa
 
Matthew infinitypresentation
Matthew infinitypresentationMatthew infinitypresentation
Matthew infinitypresentationMatt Spaul
 
Moshe Guttmann's slides on eigenface
Moshe Guttmann's slides on eigenfaceMoshe Guttmann's slides on eigenface
Moshe Guttmann's slides on eigenfacewolf
 
Sequences and series
Sequences and seriesSequences and series
Sequences and seriesmstf mstf
 
Exchanging More than Complete Data
Exchanging More than Complete DataExchanging More than Complete Data
Exchanging More than Complete Datanet2-project
 

Similaire à Natural Number Objects in Dialectica Categories (20)

Dialectica Categories Revisited
Dialectica Categories RevisitedDialectica Categories Revisited
Dialectica Categories Revisited
 
9+&+10+English+_+Class+09+CBSE+2020+_Formula+Cheat+Sheet+_+Number+System+&+Po...
9+&+10+English+_+Class+09+CBSE+2020+_Formula+Cheat+Sheet+_+Number+System+&+Po...9+&+10+English+_+Class+09+CBSE+2020+_Formula+Cheat+Sheet+_+Number+System+&+Po...
9+&+10+English+_+Class+09+CBSE+2020+_Formula+Cheat+Sheet+_+Number+System+&+Po...
 
Mathematics power point presenttation on the topic
Mathematics power point presenttation on the topicMathematics power point presenttation on the topic
Mathematics power point presenttation on the topic
 
L07 msr
L07 msrL07 msr
L07 msr
 
L03 ai - knowledge representation using logic
L03 ai - knowledge representation using logicL03 ai - knowledge representation using logic
L03 ai - knowledge representation using logic
 
Applied 40S May 28, 2009
Applied 40S May 28, 2009Applied 40S May 28, 2009
Applied 40S May 28, 2009
 
1 1 number theory
1 1 number theory1 1 number theory
1 1 number theory
 
Algorithm Assignment Help
Algorithm Assignment HelpAlgorithm Assignment Help
Algorithm Assignment Help
 
Unambiguous functions in logarithmic space - CiE 2009
Unambiguous functions in logarithmic space - CiE 2009Unambiguous functions in logarithmic space - CiE 2009
Unambiguous functions in logarithmic space - CiE 2009
 
CRMS Calculus May 31, 2010
CRMS Calculus May 31, 2010CRMS Calculus May 31, 2010
CRMS Calculus May 31, 2010
 
Dialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek CalculusDialectica Categories for the Lambek Calculus
Dialectica Categories for the Lambek Calculus
 
Algorithm Exam Help
Algorithm Exam HelpAlgorithm Exam Help
Algorithm Exam Help
 
Godels First Incompleteness Theorem
Godels First Incompleteness TheoremGodels First Incompleteness Theorem
Godels First Incompleteness Theorem
 
Tensor-based Models of Natural Language Semantics
Tensor-based Models of Natural Language SemanticsTensor-based Models of Natural Language Semantics
Tensor-based Models of Natural Language Semantics
 
Applied Math 40S June 2 AM, 2008
Applied Math 40S June 2 AM, 2008Applied Math 40S June 2 AM, 2008
Applied Math 40S June 2 AM, 2008
 
C1 g9-s1-t7-1
C1 g9-s1-t7-1C1 g9-s1-t7-1
C1 g9-s1-t7-1
 
Matthew infinitypresentation
Matthew infinitypresentationMatthew infinitypresentation
Matthew infinitypresentation
 
Moshe Guttmann's slides on eigenface
Moshe Guttmann's slides on eigenfaceMoshe Guttmann's slides on eigenface
Moshe Guttmann's slides on eigenface
 
Sequences and series
Sequences and seriesSequences and series
Sequences and series
 
Exchanging More than Complete Data
Exchanging More than Complete DataExchanging More than Complete Data
Exchanging More than Complete Data
 

Plus de Valeria de Paiva

Dialectica Categorical Constructions
Dialectica Categorical ConstructionsDialectica Categorical Constructions
Dialectica Categorical ConstructionsValeria de Paiva
 
Logic & Representation 2021
Logic & Representation 2021Logic & Representation 2021
Logic & Representation 2021Valeria de Paiva
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear LogicsValeria de Paiva
 
Networked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceNetworked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceValeria de Paiva
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its roleValeria de Paiva
 
Problemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoProblemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoValeria de Paiva
 
Natural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesNatural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesValeria de Paiva
 
The importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseThe importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseValeria de Paiva
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical SystemValeria de Paiva
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear LogicsValeria de Paiva
 
Semantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTSemantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTValeria de Paiva
 
Categorical Explicit Substitutions
Categorical Explicit SubstitutionsCategorical Explicit Substitutions
Categorical Explicit SubstitutionsValeria de Paiva
 
Logic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogLogic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogValeria de Paiva
 
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Valeria de Paiva
 

Plus de Valeria de Paiva (20)

Dialectica Comonoids
Dialectica ComonoidsDialectica Comonoids
Dialectica Comonoids
 
Dialectica Categorical Constructions
Dialectica Categorical ConstructionsDialectica Categorical Constructions
Dialectica Categorical Constructions
 
Logic & Representation 2021
Logic & Representation 2021Logic & Representation 2021
Logic & Representation 2021
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
 
PLN para Tod@s
PLN para Tod@sPLN para Tod@s
PLN para Tod@s
 
Networked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better ScienceNetworked Mathematics: NLP tools for Better Science
Networked Mathematics: NLP tools for Better Science
 
Going Without: a modality and its role
Going Without: a modality and its roleGoing Without: a modality and its role
Going Without: a modality and its role
 
Problemas de Kolmogorov-Veloso
Problemas de Kolmogorov-VelosoProblemas de Kolmogorov-Veloso
Problemas de Kolmogorov-Veloso
 
Natural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and MachinesNatural Language Inference: for Humans and Machines
Natural Language Inference: for Humans and Machines
 
Dialectica Petri Nets
Dialectica Petri NetsDialectica Petri Nets
Dialectica Petri Nets
 
The importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in PortugueseThe importance of Being Erneast: Open datasets in Portuguese
The importance of Being Erneast: Open datasets in Portuguese
 
Negation in the Ecumenical System
Negation in the Ecumenical SystemNegation in the Ecumenical System
Negation in the Ecumenical System
 
Constructive Modal and Linear Logics
Constructive Modal and Linear LogicsConstructive Modal and Linear Logics
Constructive Modal and Linear Logics
 
Semantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACTSemantics and Reasoning for NLP, AI and ACT
Semantics and Reasoning for NLP, AI and ACT
 
NLCS 2013 opening slides
NLCS 2013 opening slidesNLCS 2013 opening slides
NLCS 2013 opening slides
 
Dialectica Comonads
Dialectica ComonadsDialectica Comonads
Dialectica Comonads
 
Categorical Explicit Substitutions
Categorical Explicit SubstitutionsCategorical Explicit Substitutions
Categorical Explicit Substitutions
 
Logic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for DialogLogic and Probabilistic Methods for Dialog
Logic and Probabilistic Methods for Dialog
 
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
Intuitive Semantics for Full Intuitionistic Linear Logic (2014)
 
Constructive Modalities
Constructive ModalitiesConstructive Modalities
Constructive Modalities
 

Dernier

New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionDilum Bandara
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 

Dernier (20)

New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Advanced Computer Architecture – An Introduction
Advanced Computer Architecture – An IntroductionAdvanced Computer Architecture – An Introduction
Advanced Computer Architecture – An Introduction
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 

Natural Number Objects in Dialectica Categories

  • 1. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Natural Number Objects in Dialectica Categories Valeria de Paiva Charles Morgan Samuel Gomes da Silva September 2, 2013 Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 2. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 3. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Linear Logic perspective into recursion and iteration? Linear Logic can be seen as magnifying lens to understand logic Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 4. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Linear Logic perspective into recursion and iteration? Linear Logic can be seen as magnifying lens to understand logic Decomposing implication via Girard’s translation A → B :=!A−◦B gives new insights on computational phenomena Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 5. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Linear Logic perspective into recursion and iteration? Linear Logic can be seen as magnifying lens to understand logic Decomposing implication via Girard’s translation A → B :=!A−◦B gives new insights on computational phenomena Want to use linear perspective for iteration and recursion Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 6. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Linear Recursion and Iteration? Iteration and recursion in intuitionistic logic done via PCF Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 7. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Linear Recursion and Iteration? Iteration and recursion in intuitionistic logic done via PCF the mother of all programming languages Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 8. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Linear Recursion and Iteration? Iteration and recursion in intuitionistic logic done via PCF the mother of all programming languages and its denotational models Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 9. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Categorical Models of PCF? Cartesian closed category Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 10. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Categorical Models of PCF? Cartesian closed category with booleans, NNO and fixpoints Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 11. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Categorical Models of PCF? Cartesian closed category with booleans, NNO and fixpoints Want to start with Linear PCF and linear natural number objects... Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 12. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Categorical Models of PCF? Cartesian closed category with booleans, NNO and fixpoints Want to start with Linear PCF and linear natural number objects... This talk: linear natural number objects in a specific model of Linear Logic, Dialectica categories Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 13. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions What are Natural Numbers Objects? Lawvere’s way of modelling the natural numbers with Peano’s Induction Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 14. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions What are Natural Numbers Objects? Lawvere’s way of modelling the natural numbers with Peano’s Induction CCC with NNO ⇒ all primitive recursive functions. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 15. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions What are Natural Numbers Objects? Lawvere’s way of modelling the natural numbers with Peano’s Induction CCC with NNO ⇒ all primitive recursive functions. A Natural Numbers Object (or NNO) is an object in a category equipped with structure giving it properties similar to those of the set of natural numbers N in the category Sets. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 16. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions What are Natural Numbers Objects? Lawvere’s way of modelling the natural numbers with Peano’s Induction CCC with NNO ⇒ all primitive recursive functions. A Natural Numbers Object (or NNO) is an object in a category equipped with structure giving it properties similar to those of the set of natural numbers N in the category Sets. Want to linearize this setting... Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 17. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions What are Natural Numbers Objects? A NNO in a CCC C consists of an object N of C together with two morphisms, zero : 1 → N and a successor mapping succ : N → N. The triple (N, zero, succ) is required to satisfy the condition that, given any pair of morphisms f : 1 → B and g : B → B in C, there exists a unique h : N → B such that the following diagram commutes. 1 zero E N d d d f d ‚ d h h c B Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva succ E N g c E B Natural Number Objects in Dialectica Categories
  • 18. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Natural Numbers Objects in Sets A NNO in Sets consists of the object N in Sets together with two morphisms, zero : 1 → N (where we really choose the element 0 of the natural numbers N, and the successor mapping succ : N → N is really + 1 : N → N. 1 zero E N d d d f d ‚ d h h c B Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva succ E N g c E B Natural Number Objects in Dialectica Categories
  • 19. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Natural Numbers Objects in Sets Given f : 1 −→ X (or f (∗) = x0 ) and g : X −→ X we have the map h given by h(n) = g n (f (∗)) makes the following diagram commute and is the unique map doing so. 1 zero E N +1 E N d d h d f d ‚ d c X Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva h g c E X Natural Number Objects in Dialectica Categories
  • 20. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Natural Numbers Objects in a SMCC? Par´ and Rom´n (thinking of Linear Logic) have the following: e a Given a monoidal category C a NNO is an object N of C and morphisms zero : I −→ N and succ : N −→ N such that for any object B of C and morphisms b : I −→ B and g : B −→ B there is a morphism h : N −→ B such that the diagrams below commute: I zero E N d d d b d ‚ d succ E N h h c B g c E B Can we calculate with it? Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 21. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Dialectica Categories Conceived as an internal model of G¨del’s Dialectica o Interpretation, turned out to be also a model of Linear Logic. Objects of the Dialectica category Dial2 (Sets) are triples, A = (U, X , R), where U and X are sets and R ⊆ U × X is a relation. Given elements u in U and x in X , either they are related by R, R(u, x) = 1 or they are not and R(u, x) = 0, hence the 2 in the name of the category. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 22. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Dialectica Categories A morphism from A to B = (V , Y , S) is a pair of functions f : U −→ V and F : Y −→ X such that uRF (y ) =⇒ f (u)Sy . R u∈U ' X T ⇓ f c V ' Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva S F Y y Natural Number Objects in Dialectica Categories
  • 23. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Tensor in Dialectica Categories Let A = (U, X , R) and B = (V , Y , S) be objects in Dial2 (Sets). The tensor product of A and B is given by A ⊗ B = (U × V , X V × Y U , R ⊗ S) where the relation R ⊗ S is given by (u, v ) R ⊗ S (f , g ) iff uRf (v ) and vSg (u). The unit for this tensor product is the object IDial := (1, 1, =), where 1 = {∗} is a singleton set and = is the identity relation on the singleton set. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 24. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Symmetric Monoidal Closed Dialectica Categories Let A = (U, X , R) and B = (V , Y , S) be objects in Dial2 (Sets). The internal-hom is given by [A, B] = (V U × X Y , U × Y , [R, S]) where (f , F )[R, S](u, x) iff uRF (y ) implies f (u)Sy . The tensor product is adjoint to the internal-hom, as usual HomDial (A ⊗ B, C ) ∼ HomDial (A, [B, C ]) = Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 25. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Other structure of Dialectica Categories Let A = (U, X , R) and B = (V , Y , S) be objects in Dial2 (Sets). There is an auxiliary tensor product structure given by A ◦ B = (U × V , X × Y , R ◦ S) where (u, v )R ◦ S(x, y ) iff uRx and vSy . This simpler tensor structure is not the adjoint of the internal-hom. It’s necessary to prove existence of appropriate modality !. The unit for this tensor product is also IDial . Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 26. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Cartesian structure of Dialectica Categories Let A = (U, X , R) and B = (V , Y , S) be objects in Dial2 (Sets). The cartesian product is given by A × B = (U × V , X + Y , ch) where X + Y = X × 0 ∪ Y × 1 and the relation ch (short for ‘choose’) is given by (u, v )ch(x, 0) if uRx and (u, v )ch(y , 1) if vSy . The unit for this product is (1, ∅, ∅), the terminal object of Dial2 (Sets). (there are also cartesian coproducts.) Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 27. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNOs in Dialectica Categories? To investigate iteration and recursion in linear categories we want to define a natural numbers object in Dial2 (Sets). We can use either the cartesian structure of Dial2 (Sets) or any one of its tensor structures. The first candidate monoidal structure is the cartesian product in Dial2 (Sets). This requires a map corresponding to zero from the terminal object (1, ∅, ∅) in Dial2 (Sets) to our natural numbers object candidate, say a generic object like (N, M, E ) Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 28. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNOs in Dialectica Categories? Reading the definition, (N, M, E ) is a NNO with respect to the cartesian structure of Dial2 (Sets)if there are maps (z, Z ) : (1, ∅, ∅) −→ (N, M, E ) and (s, S) : (N, M, E ) −→ (N, M, E ) such that for any object (X , Y , R) and any pair of morphisms (f , F ) : (1, ∅, ∅) −→ (X , Y , R) and (g , G ) : (X , Y , R) −→ (X , Y , R) there exists some (unique) (h, H) : (N, M, E ) −→ (X , Y , R) such that a big diagram commutes. Which big diagram? Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 29. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using cartesian structure ∅ ∅     1 z Z d sF d E d d d f d d ‚ d S M ' E     H T    E N s E Y G '   R c  X Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva H N h d d h M ' T Y   R c  g E X Natural Number Objects in Dialectica Categories
  • 30. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using cartesian structure Proposition 1. The category Dial2 (Sets) has a (trivial) NNO with respect to its cartesian structure, given by (N, ∅, ∅). Proof sketch: any possible NNO for Dial2 (Sets) is of the form N = (N, M, E ) for some set M and some relation E ⊆ N × M, where N is the usual natural numbers object in Sets, with the usual zero constant and the usual successor functions. There must exist a morphism in Dial2 (Sets) zero = (z, Z ) : 1 → N with two components, z : 1 → N (as in Sets) and Z : M → 0. But since the only map into the empty set in the category of Sets is the empty map, we conclude that M is empty and so is E as this is a relation in the product N × ∅. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 31. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using cartesian structure This trivial NNO works, because given any object B of Dial2 (Sets) with maps f : 1 → B and g : B → B, we can find a unique map h : N → B making all the necessary diagrams commute: In the first coordinate h is given by the map that exists for N as a NNO in Sets and in the second coordinate this is simply the empty map. Not very exciting... This triviality result is expected, since the ‘main’ structure of the category Dial2 (Sets) is the tensor product that makes it a symmetric monoidal closed category, not its cartesian structure. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 32. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure [Burroni] Peano-Lawvere axiom’s says that for any object X in a zX E sX E category E , there is a diagram X NX NX with the universal property that for any diagram of the form f E g E X Y Y there exists h : NX → Y such that the following diagram commutes zX E X NX sX E NX d d h d f d ‚ d c Y Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva h g c E Y Natural Number Objects in Dialectica Categories
  • 33. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure If a category satisfies this axiom, we say the category is a Peano-Lawvere (PL) category. Dial2 (Sets) is a PL-category if given any object (A, B, C ) of Dial2 (Sets) there is an object (N, M, E ) and maps (z, Z ) : (A, B, C ) −→ (N, M, E ) and (s, S) : (N, M, E ) −→ (N, M, E ) such that for any object of Dial2 (Sets) (X , Y , R) together with a pair of morphisms (f , F ) : (A, B, C ) −→ (X , Y , R) and (g , G ) : (X , Y , R) −→ (X , Y , R) there exists some (unique) map in Dial2 (Sets) (h, H) : (N, M, E ) −→ (X , Y , R) making the big diagram commute. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 34. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure B C    A z Z d sF d E d d d f d d ‚ d S M ' E    H T    E N s E Y Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva H G '   R c  X N h d d h M ' T Y   R c  g E X Natural Number Objects in Dialectica Categories
  • 35. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure Simplifying this picture for the case where the unit (1, 1, =) is used. If N = (N, M, E ) is a proposed NNO in Dial2 (Sets) then there must exist morphisms zero = (z, Z ) : (1, 1, =) → (N, M, E ) and succ = (s, S) : (N, M, E ) → (N, M, E ) such that: 1 =    1 z Z d sF d E d d d f d d ‚ d S M ' E    H T    E N s E Y X H G '   R c  Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva N h d d h M ' T Y   R c  X g Natural Number Objects in Dialectica Categories E
  • 36. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure Proposition 2. The category Dial2 (Sets) has a (trivial) weak NNO with respect to its monoidal closed structure described, given by (N, 1, N × 1). As before, any possible NNO for Dial2 (Sets) is of the form N = (N, M, E ) for some set M and some relation E ⊆ N × M, where N is the usual natural numbers object in Sets, with the usual zero constant and the usual successor function on natural numbers. The morphism zero has two components, z : 1 → N (as in Sets) and Z : M → 1. The map Z has to be the unique map !M : M → 1 sending all m’s in M to the singleton set ∗ Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 37. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure The morphism succ : N → N has two components (s, S), where s : N → N is the usual successor function in N, and S : M → M is to be determined, satisfying some equations. Fact 1. If there is a map (f , F ) : I → B in Dial2 (Sets) for a generic object B of the form (X , Y , R) then there exists x0 in X such for all y in Y we have x0 Ry . By definition of maps in Dial2 (Sets), we must have = 1' f c X ' 1 T F =! R Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Y Natural Number Objects in Dialectica Categories
  • 38. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure Fact 2. If there is a NNO in Dial2 (Sets) of the form (N, M, E ), where M is the singleton set 1, then S : 1 → 1 is the identity on 1 and E relates every n in N to ∗. If N = (N, 1, E ) is a NNO in Dial2 (Sets) then the map zero = (z, Z ) : I → N has to be the zero map in N together with the terminal map in 1 and the succ = (s, S) : N → N consists of the usual successor function on the integers and S : 1 → 1 has to be the identity on 1. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 39. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure The fact that (s, S) is map of Dial2 (Sets) gives us the diagram E N' 1 T S s c N' E 1 and the condition on morphisms says for all n in N and for all ∗ in 1, if nES∗ then n + 1 = s(n)E ∗. But S is the identity on 1, ie S∗ = ∗, so if nES∗ ⇒ n + 1E ∗, which is just what we need to prove that E relates every n in N to ∗. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 40. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure Back to the proposition 2: The object of Dial2 (Sets) of the form (N, 1, E ), where E relates every n in N to ∗, together with morphisms zero = (0, id1 ) : I → N and succ = (+1, id1 ) : N → N is a weak NNO in Dial2 (Sets). Proof. Let B be an object (X , Y , R) of Dial2 (Sets) such that there are maps (f , F ) : I → B and (g , G ) : B → B. To prove N = (N, 1, E ), where nE ∗ for all n in N is a weak NNO, we must define a map (h, H) : N → B such that the main NNO diagram commutes. It is clear that h : N → X can be defined using the fact that N is a NNO in Sets. It is clear that we must take H : Y → 1 as the terminal map on Y . We need to check that all the required conditions are satisfied. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 41. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure The 1. 2. 3. required conditions amount to showing that the map (h, H) is a map of Dial2 (Sets); the triangles commute, and the squares commute in the diagram below. 1 ' =    1 z =0 Z = id1 1 d sF =!Y E   d   E N d d d f d d ‚ d H ' T S = id1 T    E s = +1 E Y Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva H =!Y G '   R c  X N h d d h 1 Y   R c   g E X Natural Number Objects in Dialectica Categories
  • 42. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure Items 2 and 3 are boring, but easy. Need to show that the proposed map (h, H) is indeed a map in Dial2 (Sets). The map (h, H) is a map in Dial2 (Sets) if the condition for all m in N, for all y in Y , if mEH(y ) then h(m)Ry is satisfied. Since H(y ) = ∗ and we know mE ∗ for all m in N, we need to show h(m)Ry for all m ∈ N and all y in Y . (vertical square) By cases, either m = 0 or not. Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 43. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure If m = 0 we need to show h(0)Ry for all y ∈ Y . Since N is the NNO in Sets we know that 1 0 +1 E d fd ‚ E N N h h c c X g E X commutes, hence h(0) = f (∗) and h(m + 1) = g (h(m)). Since B = (X , Y , R) is an object that has a map (f , F ) : I → B we know (Fact 1) that there exists x0 = f (∗) such that f (∗)Ry for all y in Y and hence h(0) = f (∗)Ry for all y ∈ Y . Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 44. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions NNO using monoidal structure If m is not zero, then m = n + 1 and h(n + 1) = g (h(n)) by the definition of h in Sets. But B is an object of Dial2 (Sets) equipped with a map (g , G ) : B → B, which means that there exist g : X → X and G : Y → Y in Sets such that for all x ∈ X and for all y ∈ Y , if xRG (y ) then g (x)Ry . To show that h(n)Ry , since we know that h(0)Ry we need to show that if h(n)Ry for all y ∈ Y then h(n + 1)Ry for all y ∈ Y . But if h(n)Ry for all y ∈ Y , then in particular h(n)RG (y ) for all y ’s that happen to be in the range of G , that is if y happens to be Gy . In this case g (h(n))Ry , that is h(n + 1)Ry . Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 45. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Summing up We obtained a degenerate weak NNO, where in the first coordinate we have business as usual in Sets and in the second coordinate we have simply the singleton set 1 and terminal maps. We expected to find a NNO in the dialectica categories, with iteration and recursion as usual in the first coordinate, but co-recursion/co-iteration in the second coordinate. It is disappointing to obtain only a ‘degenerate’ NNO as above, where the second coordinate is trivial. Maybe we have not got the right level of generality... Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 46. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Summing up Natural number algebras 1 → N ← N are in bijective correspondence with F -algebras (for F the endofunctor F (X ) = 1 + X ) . The initial algebra for this functor in Set is indeed the usual natural numbers, where we have an isomoprhism N ∼ 1 + N. Since this is an isomorphism we could also see it as an = F -coalgebra, but this is not final in the category of sets. As Plotkin remarks this coalgebra is final in the category of sets and partial functions Pfn. Can we change our working underlying category of Dial2 (Sets) so that a non-trivial NNO can be constructed? Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 47. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Some references Sandra Alves, Maribel Fernandez, Mario Florido, and Ian Mackie. Linear recursive functions. In Rewriting, Computation and Proof, pages 182195. Springer, 2007. Dialectica and Chu constructions: Cousins?Theory and Applications of Categories, Vol. 17, 2006, No. 7, pp 127-152. Thesis TR: The Dialectica Categories http://www.cl.cam.ac.uk/techreports/UCAM-CL-TR-213.html A Dialectica-like Model of Linear Logic.In Proceedings of CTCS, Manchester, UK, September 1989. LNCS 389 . The Dialectica Categories. In Proc of Categories in Computer Science and Logic, Boulder, CO, 1987. Contemporary Mathematics, vol 92, American Mathematical Society, 1989 Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories
  • 48. Outline Motivation Natural Numbers Objects Dialectica Categories NNOs Conclusions Thanks! Valeria de Paiva, Charles Morgan, Samuel Gomes da Silva Natural Number Objects in Dialectica Categories