Geometry of interaction
(→Interpreting the multiplicative connectives) |
(→The Geometry of Interaction as operators: notation \bot for the set of nilpotent operators, definition of the identity) |
||
Line 9: | Line 9: | ||
= The Geometry of Interaction as operators = |
= The Geometry of Interaction as operators = |
||
− | The original construction of GoI by Girard follows a general pattern already mentionned in [[coherent semantics]] under the name ''symmetric reducibility''. First set a general space in which the interpretations of proofs will live; here, in the case of GoI, the space is the space of bounded operators on <math>\ell^2</math>. |
+ | The original construction of GoI by Girard follows a general pattern already mentionned in [[coherent semantics]] under the name ''symmetric reducibility''. First set a general space called the ''proof space'' because this is where the interpretations of proofs will live. In the case of GoI, the proof space is the space of bounded operators on <math>\ell^2</math>. Note that the proof space generally contains much more objects than interpretations of proofs; in the GoI case we will see that interpretations of proofs happen to be some very peculiar kind of partial isometries. |
− | Second define a suitable duality on this space that will be denoted as <math>u\perp v</math>. For the GoI, two dualities have proved to work, the first one being nilpotency: two operators <math>u</math> and <math>v</math> are dual if <math>uv</math> is nilpotent, that is, if there is an nonegative integer <math>n</math> such that <math>(uv)^n = 0</math>. |
+ | Second define a duality on this space that will be denoted as <math>u\perp v</math>. For the GoI, two dualities have proved to work, the first one being nilpotency: two operators <math>u</math> and <math>v</math> are dual if <math>uv</math> is nilpotent, that is, if there is a nonegative integer <math>n</math> such that <math>(uv)^n = 0</math>. We will denote by <math>\bot</math> the set of nilpotent operators so that the duality reads: |
+ | : <math>u\perp v</math> iff <math>uv\in\bot</math>. |
||
− | Last define a ''type'' as a subset <math>T</math> of the proof space that is equal to its bidual: <math>T = T\biorth</math>. In the case of GoI this means that <math>u\in T</math> iff for all operator <math>v</math>, if <math>v\in T\orth</math>, that is if <math>u'v</math> is nilpotent for all <math>u'\in T</math>, then <math>u\perp v</math>, that is <math>uv</math> is nilpotent. |
+ | This duality applies to operators and shouldn't be confused with orthogonality of vectors. In this article we will use the notation <math>\perp</math> exclusively for the duality of operators. |
− | It remains now to interpret logical operations, that is associate a type to each formula, an object to each proof and show the adequacy lemma, if <math>u</math> is the interpretation of a proof of the formula <math>A</math> then <math>u</math> belongs to the type associated to <math>A</math>. |
+ | Last define a ''type'' as a subset <math>T</math> of the proof space that is equal to its bidual: <math>T = T\biorth</math>. This means that <math>u\in T</math> iff for all operator <math>v</math>, if <math>v\in T\orth</math>, that is if <math>u'v\in\bot</math> for all <math>u'\in T</math>, then <math>uv\in\bot</math>. |
+ | |||
+ | It remains now to interpret logical operations, that is associate a type to each formula, an object to each proof and show the ''adequacy lemma'': if <math>u</math> is the interpretation of a proof of the formula <math>A</math> then <math>u</math> belongs to the type associated to <math>A</math>. |
||
== Preliminaries == |
== Preliminaries == |
||
Line 28: | Line 28: | ||
: <math> x = \sum_{n\in\mathbb{N}} x_ne_n</math>. |
: <math> x = \sum_{n\in\mathbb{N}} x_ne_n</math>. |
||
− | In this article we call ''operator'' on <math>H</math> a ''continuous'' linear map from <math>H</math> to <math>H</math>. The continuity is equivalent to the fact that operators are ''bounded'', which means that one may define the ''norm'' of an operator <math>u</math> as the sup on the unit ball of the norms of its values: |
+ | In this article we call ''operator'' on <math>H</math> a ''continuous'' linear map from <math>H</math> to <math>H</math>. Continuity is equivalent to the fact that operators are ''bounded'', which means that one may define the ''norm'' of an operator <math>u</math> as the sup on the unit ball of the norms of its values: |
: <math>\|u\| = \sup_{\{x\in H,\, \|x\| = 1\}}\|u(x)\|</math>. |
: <math>\|u\| = \sup_{\{x\in H,\, \|x\| = 1\}}\|u(x)\|</math>. |
||
Line 61: | Line 61: | ||
: the codomain of <math>\varphi\circ\psi</math> is the image of the domain. |
: the codomain of <math>\varphi\circ\psi</math> is the image of the domain. |
||
− | Partial permutations are well known to form a structure of ''inverse monoid that we detail now. |
+ | Partial permutations are well known to form a structure of ''inverse monoid'' that we detail now. |
− | A ''partial identitie'' is a partial permutation <math>1_D</math> whose domain and codomain are both equal to a subset <math>D</math> on which <math>1_D</math> is the identity function. Among partial identities one finds the identity on the empty subset, that is the empty map, that we will denote as <math>0</math> and the identity on <math>\mathbb{N}</math> that we will denote <math>1</math>. This latter permutation is the neutral for composition. |
+ | A ''partial identitie'' is a partial permutation <math>1_D</math> whose domain and codomain are both equal to a subset <math>D</math> on which <math>1_D</math> is the identity function. Among partial identities one finds the identity on the empty subset, that is the empty map, that we will denote as <math>0</math> and the identity on <math>\mathbb{N}</math> that we will denote by <math>1</math>. This latter permutation is the neutral for composition. |
If <math>\varphi</math> is a partial permutation there is an inverse partial permutation <math>\varphi^{-1}</math> whose domain is <math>D_{\varphi^{-1}} = C_{\varphi}</math> and who satisfies: |
If <math>\varphi</math> is a partial permutation there is an inverse partial permutation <math>\varphi^{-1}</math> whose domain is <math>D_{\varphi^{-1}} = C_{\varphi}</math> and who satisfies: |
||
Line 70: | Line 70: | ||
: <math>\varphi\circ\varphi^{-1} = 1_{C_\varphi}</math> |
: <math>\varphi\circ\varphi^{-1} = 1_{C_\varphi}</math> |
||
− | Given a partial permutation <math>\varphi</math> one defines a partial isometry <math>u_\varphi</math> by <math>u_\varphi(e_n) = e_{\varphi(n)}</math> if <math>n\in D_\varphi</math>, <math>0</math> otherwise. In other terms if <math>x=(x_n)_{n\in\mathbb{N}}</math> is a sequence in <math>\ell^2</math> then <math>u_\varphi(x)</math> is the sequence <math>(y_n)_{n\in\mathbb{N}}</math> defined by: |
+ | Given a partial permutation <math>\varphi</math> one defines a partial isometry <math>u_\varphi</math> by: |
+ | : <math>u_\varphi(e_n) = |
||
+ | \begin{cases} |
||
+ | e_{\varphi(n)} & \text{ if }n\in D_\varphi,\\ |
||
+ | 0 & \text{ otherwise.} |
||
+ | \end{cases} |
||
+ | </math> |
||
+ | In other terms if <math>x=(x_n)_{n\in\mathbb{N}}</math> is a sequence in <math>\ell^2</math> then <math>u_\varphi(x)</math> is the sequence <math>(y_n)_{n\in\mathbb{N}}</math> defined by: |
||
: <math>y_n = x_{\varphi^{-1}(n)}</math> if <math>n\in C_\varphi</math>, <math>0</math> otherwise. |
: <math>y_n = x_{\varphi^{-1}(n)}</math> if <math>n\in C_\varphi</math>, <math>0</math> otherwise. |
||
Line 89: | Line 89: | ||
== Interpreting the multiplicative connectives == |
== Interpreting the multiplicative connectives == |
||
− | Recall that when <math>u</math> and <math>v</math> are operators we denote by <math>u\perp v</math> the fact that <math>uv</math> is nilpotent. This duality applies to operators and shouldn't be confused with orthogonality of vectors in <math>H</math>. In the sequel we will only use the notation <math>\perp</math> for the duality of operators. |
+ | Recall that when <math>u</math> and <math>v</math> are operators we denote by <math>u\perp v</math> the fact that <math>uv</math> is nilpotent, and that <math>\bot</math> denotes the set of nilpotent operators so that <math>u\perp v</math> iff <math>uv\in\bot</math>. |
If <math>X</math> is set of operators also recall that <math>X\orth</math> denotes the set of dual operators: |
If <math>X</math> is set of operators also recall that <math>X\orth</math> denotes the set of dual operators: |
||
− | : <math>X\orth = \{v\in \mathcal{B}(H) \text{ such that }\forall u\in X, uv \text{ is nilpotent}\}</math>. |
+ | : <math>X\orth = \{v\in \mathcal{B}(H) \text{ such that }\forall u\in X, uv \in\bot\}</math>. |
There are a few properties of this duality that we will use without mention in the sequel; let <math>X</math> and <math>Y</math> be sets of operators: |
There are a few properties of this duality that we will use without mention in the sequel; let <math>X</math> and <math>Y</math> be sets of operators: |
||
Line 121: | Line 121: | ||
Now through the isomorphism <math>H\oplus H\cong H</math> we may transform <math>U</math> into the operator <math>u</math> on <math>H</math> defined by: |
Now through the isomorphism <math>H\oplus H\cong H</math> we may transform <math>U</math> into the operator <math>u</math> on <math>H</math> defined by: |
||
− | : <math>u = pU_{11}p^* + pU_{12}q^* + qU_{21}p^* + qu_{22}q^*</math>. |
+ | : <math>u = pU_{11}p^* + pU_{12}q^* + qU_{21}p^* + qU_{22}q^*</math>. |
We call <math>u</math> the ''internalization'' of <math>U</math>. Conversely given an operator <math>u</math> on <math>H</math> we may externalize it obtaining an operator <math>U</math> on <math>H\oplus H</math>: |
We call <math>u</math> the ''internalization'' of <math>U</math>. Conversely given an operator <math>u</math> on <math>H</math> we may externalize it obtaining an operator <math>U</math> on <math>H\oplus H</math>: |
||
Line 138: | Line 138: | ||
0 & v |
0 & v |
||
\end{pmatrix}</math> |
\end{pmatrix}</math> |
||
+ | |||
+ | As with orthogonality we use here the notation <math>\tens</math> in a specific sense: the tensor of two types should not be confused with the tensor of vectors or the tensor of spaces. |
||
The linear implication is derived from the tensor by duality: given two types <math>A</math> and <math>B</math> the type <math>A\limp B</math> is defined by: |
The linear implication is derived from the tensor by duality: given two types <math>A</math> and <math>B</math> the type <math>A\limp B</math> is defined by: |
||
Line 143: | Line 145: | ||
Unfolding this definition we see that we have: |
Unfolding this definition we see that we have: |
||
− | : <math>A\limp B = \{u\in\mathcal{B}(H)\text{ such that } \forall v\in A, \forall w\in B\orth,\, u(pvp^* + qwq^*) \text{ is nilpotent}\}</math>. |
+ | : <math>A\limp B = \{u\in\mathcal{B}(H)\text{ such that } \forall v\in A, \forall w\in B\orth,\, u(pvp^* + qwq^*) \in\bot\}</math>. |
+ | |||
+ | === The idendity === |
||
+ | |||
+ | As an example of the internalization/externalization procedure, let us give the example of the (interpretation of the) identity. Given a type <math>A</math> we are to find an operator <math>\iota</math> in type <math>A\limp A</math>, thus satisfying: |
||
+ | : <math>\forall u\in A, v\in A\orth,\, \iota(pup^* + qvq^*)\in\bot</math>. |
||
+ | |||
+ | An easy solution is to take <math>\iota = pq^* + qp^*</math>. In this way we get <math>\iota(pup^* + qvq^*) = qup^* + pvq^*</math>. Therefore <math>(\iota(pup^* + qvq^*))^2 = quvq^* + pvup^*</math>, from which one deduces that this operator is nilpotent iff <math>uv</math> is nilpotent. It is the case since <math>u</math> is in <math>A</math> and <math>v</math> in <math>A\orth</math>. |
||
+ | |||
+ | It is interesting to note that the <math>\iota</math> thus defined if actually the internalization of the operator on <math>H\oplus H</math> given by the matrix: |
||
+ | : <math>\begin{pmatrix}0 & 1\\1 & 0\end{pmatrix}</math>. |
||
+ | |||
+ | We will see once the composition is defined that the <math>\iota</math> operator is the interpretation of the identity proof, as expected. |
||
= The Geometry of Interaction as an abstract machine = |
= The Geometry of Interaction as an abstract machine = |
Revision as of 10:12, 31 March 2010
The geometry of interaction, GoI in short, was defined in the early nineties by Girard as an interpretation of linear logic into operators algebra: formulae were interpreted by Hilbert spaces and proofs by partial isometries.
This was a striking novelty as it was the first time that a mathematical model of logic (lambda-calculus) didn't interpret a proof of as a morphism from (the space interpreting) A to (the space interpreting) B and proof composition (cut rule) as the composition of morphisms. Rather the proof was interpreted as an operator acting on (the space interpreting) , that is a morphism from to . For proof composition the problem was then, given an operator on and another one on to construct a new operator on . This problem was originally expressed as a feedback equation solved by the execution formula. The execution formula has some formal analogies with Kleene's formula for recursive functions, which allowed to claim that GoI was an operational semantics, as opposed to traditionnal denotational semantics.
The first instance of the GoI was restricted to the MELL fragment of linear logic (Multiplicative and Exponential fragment) which is enough to encode lambda-calculus. Since then Girard proposed several improvements: firstly the extension to the additive connectives known as Geometry of Interaction 3 and more recently a complete reformulation using Von Neumann algebras that allows to deal with some aspects of implicit complexity
The GoI has been a source of inspiration for various authors. Danos and Regnier have reformulated the original model exhibiting its combinatorial nature using a theory of reduction of paths in proof-nets and showing the link with abstract machines; in particular the execution formula appears as the composition of two automata that interact one with the other through their common interface. Also the execution formula has rapidly been understood as expressing the composition of strategies in game semantics. It has been used in the theory of sharing reduction for lambda-calculus in the Abadi-Gonthier-Lévy reformulation and simplification of Lamping's representation of sharing. Finally the original GoI for the MELL fragment has been reformulated in the framework of traced monoidal categories following an idea originally proposed by Joyal.
Contents |
The Geometry of Interaction as operators
The original construction of GoI by Girard follows a general pattern already mentionned in coherent semantics under the name symmetric reducibility. First set a general space called the proof space because this is where the interpretations of proofs will live. In the case of GoI, the proof space is the space of bounded operators on . Note that the proof space generally contains much more objects than interpretations of proofs; in the GoI case we will see that interpretations of proofs happen to be some very peculiar kind of partial isometries.
Second define a duality on this space that will be denoted as . For the GoI, two dualities have proved to work, the first one being nilpotency: two operators u and v are dual if uv is nilpotent, that is, if there is a nonegative integer n such that (uv)^{n} = 0. We will denote by the set of nilpotent operators so that the duality reads:
- iff .
This duality applies to operators and shouldn't be confused with orthogonality of vectors. In this article we will use the notation exclusively for the duality of operators.
Last define a type as a subset T of the proof space that is equal to its bidual: . This means that iff for all operator v, if , that is if for all , then .
It remains now to interpret logical operations, that is associate a type to each formula, an object to each proof and show the adequacy lemma: if u is the interpretation of a proof of the formula A then u belongs to the type associated to A.
Preliminaries
We begin by a brief tour of the operations in Hilbert spaces that will be used in the sequel. In this article H will stand for the Hilbert space of sequences of complex numbers such that the series converges. If and are two vectors of H we denote by their scalar product:
- .
Two vectors of H are othogonal if their scalar product is nul. This notion is not to be confused with the orthogonality of operators defined above. The norm of a vector is the square root of the scalar product with itself:
- .
Let us denote by the canonical hilbertian basis of H: where δ_{kn} is the Kroenecker symbol. Thus if is a sequence in H we have:
- .
In this article we call operator on H a continuous linear map from H to H. Continuity is equivalent to the fact that operators are bounded, which means that one may define the norm of an operator u as the sup on the unit ball of the norms of its values:
- .
The set of (bounded) operators is denoted . This is our proof space.
The range or codomain of the operator u is the set of images of vectors; the kernel of u is the set of vectors that are anihilated by u; the domain of u is the set of vectors orthogonal to the kernel:
- ;
- ;
- .
These three sets are closed subspaces of H.
The adjoint of an operator u is the operator u^{ * } defined by for any .
A projector is an idempotent operator of norm 1, that is an operator p such that p^{2} = p and . A projector is auto-adjoint and its domain is equal to its codomain.
A partial isometry is an operator u satisfying uu^{ * }u = u; as a consequence uu^{ * } is a projector the range of which is the range of u. Similarly u^{ * }u is also a projector the range of which is the domain of u. The restriction of u to its domain is an isometry. Projectors are particular examples of partial isometries.
If u is a partial isometry then u^{ * } is also a partial isometry the domain of which is the codomain of u and the codomain of which is the domain of u.
If the domain of u is H that is if u^{ * }u = 1 we say that u has full domain, and similarly for codomain. If u and v are two partial isometries, the equation uu^{ * } + vv^{ * } = 1 means that the codomains of u and v are orthogonal and that their direct sum is H.
Partial permutations and partial isometries
It turns out that most of the operators needed to interpret logical operations are generated by partial permutations on the basis, which in particular entails that they are partial isometries.
More precisely a partial permutation on is a function defined on a subset of which is one-to-one onto a subset of . is called the domain of and its codomain. Partial permutations may be composed: if ψ is another partial permutation on then is defined by:
- iff and ;
- if then ;
- the codomain of is the image of the domain.
Partial permutations are well known to form a structure of inverse monoid that we detail now.
A partial identitie is a partial permutation 1_{D} whose domain and codomain are both equal to a subset D on which 1_{D} is the identity function. Among partial identities one finds the identity on the empty subset, that is the empty map, that we will denote as 0 and the identity on that we will denote by 1. This latter permutation is the neutral for composition.
If is a partial permutation there is an inverse partial permutation whose domain is and who satisfies:
Given a partial permutation one defines a partial isometry by:
In other terms if is a sequence in then is the sequence defined by:
- if , 0 otherwise.
The domain of is the subspace spaned by the family and the codomain of is the subspace spaned by . As a particular case if is 1_{D} the partial identity on D then is the projector on the subspace spaned by .
If ψ is another partial permutation then we have:
- .
If is a partial permutation then the adjoint of is:
- .
In particular the projector on the domain of is given by:
- .
and similarly the projector on the codomain of is:
- .
Interpreting the multiplicative connectives
Recall that when u and v are operators we denote by the fact that uv is nilpotent, and that denotes the set of nilpotent operators so that iff .
If X is set of operators also recall that denotes the set of dual operators:
- .
There are a few properties of this duality that we will use without mention in the sequel; let X and Y be sets of operators:
- ;
- .
- if then ;
In particular is always a type (equal to its biorthogonal). We say that X generates the type .
The tensor and the linear application
Our first step is, given two types A and B, to construct the type . For this purpose we define an isomorphism by where and are partial isometries given by:
- p(e_{n}) = e_{2n},
- q(e_{n}) = e_{2n + 1}.
From the definition p and q have full domain, that is satisfy p^{ * }p = q^{ * }q = 1. On the other hand their codomains are orthogonal, thus we have p^{ * }q = q^{ * }p = 0. We also have pp^{ * } + qq^{ * } = 1 although this property is not needed in the sequel.
Note that the choice of p and q is actually arbitrary, any two partial isometries with full domain and orthogonal codomains would do the job.
Let U be an operator on . We can write U as a matrix:
where each U_{ij} operates on H.
Now through the isomorphism we may transform U into the operator u on H defined by:
- u = pU_{11}p^{ * } + pU_{12}q^{ * } + qU_{21}p^{ * } + qU_{22}q^{ * }.
We call u the internalization of U. Conversely given an operator u on H we may externalize it obtaining an operator U on :
- U_{11} = p^{ * }up;
- U_{12} = p^{ * }uq;
- U_{21} = q^{ * }up;
- U_{22} = q^{ * }uq.
Given A and B two types, we define their tensor by:
Note the closure by biorthogonal to make sure that we obtain a type. From what precedes we see that is generated by the internalizations of operators on of the form:
As with orthogonality we use here the notation in a specific sense: the tensor of two types should not be confused with the tensor of vectors or the tensor of spaces.
The linear implication is derived from the tensor by duality: given two types A and B the type is defined by:
- .
Unfolding this definition we see that we have:
- .
The idendity
As an example of the internalization/externalization procedure, let us give the example of the (interpretation of the) identity. Given a type A we are to find an operator ι in type , thus satisfying:
- .
An easy solution is to take ι = pq^{ * } + qp^{ * }. In this way we get ι(pup^{ * } + qvq^{ * }) = qup^{ * } + pvq^{ * }. Therefore (ι(pup^{ * } + qvq^{ * }))^{2} = quvq^{ * } + pvup^{ * }, from which one deduces that this operator is nilpotent iff uv is nilpotent. It is the case since u is in A and v in .
It is interesting to note that the ι thus defined if actually the internalization of the operator on given by the matrix:
- .
We will see once the composition is defined that the ι operator is the interpretation of the identity proof, as expected.