<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://140-77-166-78.cprapid.com/mediawiki/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://140-77-166-78.cprapid.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thomas+Ehrhard</id>
		<title>LLWiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://140-77-166-78.cprapid.com/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Thomas+Ehrhard"/>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Special:Contributions/Thomas_Ehrhard"/>
		<updated>2026-04-12T11:29:39Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.19.20+dfsg-0+deb7u3</generator>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-23T20:20:16Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Additives */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt; and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{fun}(s)=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\bot=\one=\{*\}&amp;lt;/math&amp;gt;. Then we have &amp;lt;math&amp;gt;\mathsf{ev}\circ\sigma:\mathbf{Rel}(X\tens(X\limp\bot),\bot)&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta_X=\mathsf{fun}(\mathsf{ev}\circ\sigma)\in\mathbf{Rel}(X,(X\limp\bot)\limp\bot)&amp;lt;/math&amp;gt;. It is clear that &amp;lt;math&amp;gt;\eta=\set{(a,((a,*),*))}{a\in X}&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; is a natural isomorphism: one says that the SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a *-autonomous category, with &amp;lt;math&amp;gt;\bot&amp;lt;/math&amp;gt; as dualizing object.&lt;br /&gt;
&lt;br /&gt;
==== Additives ====&lt;br /&gt;
&lt;br /&gt;
Given a family &amp;lt;math&amp;gt;(X_i)_{i\in I}&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;\with_{i\in I}X_i=\cup_{i\in I}\{i\}\times X_i&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;\pi_j\in\mathbf{Rel}(\with_{i\in I}X_i,X_j)&amp;lt;/math&amp;gt; given by &amp;lt;math&amp;gt;\pi_j=\set{((j,a),a)}{a\in X_j}&amp;lt;/math&amp;gt;. Then &amp;lt;math&amp;gt;(\with_{i\in I}X_i,(\pi_i)_{i\in I})&amp;lt;/math&amp;gt; is the cartesian product of the &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt;s in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Exponentials ====&lt;br /&gt;
&lt;br /&gt;
One defines &amp;lt;math&amp;gt;\oc X&amp;lt;/math&amp;gt; as the set of all finite multisets of elements of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. Given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt;, one defines &amp;lt;math&amp;gt;\oc s=\set{([a_1,\dots,a_n],[b_1,\dots,b_n])}{n\in\mathbb N\ \text{and}\ \forall i\ (a_i,b_i)\in s}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;[a_1,\dots,a_n]&amp;lt;/math&amp;gt; is the multiset containing &amp;lt;math&amp;gt;a_1,\dots,a_n&amp;lt;/math&amp;gt;, taking multiplicities into account. This defines a functor &amp;lt;math&amp;gt;\mathbf{Rel}\to\mathbf{Rel}&amp;lt;/math&amp;gt;, that we endow with a comonad structure as follows:&lt;br /&gt;
* the counit, called dereliction, is the natural transformation &amp;lt;math&amp;gt;\mathsf{der}_X\in\mathbf{Rel}(\oc X,X)&amp;lt;/math&amp;gt;, given by &amp;lt;math&amp;gt;\mathsf{der}_X=\set{([a],a)}{a\in X}&amp;lt;/math&amp;gt;&lt;br /&gt;
* the comultiplication, called digging, is the natural transformation &amp;lt;math&amp;gt;\mathsf{digg}_X\in\mathbf{Rel}(\oc X,\oc\oc X)&amp;lt;/math&amp;gt;, given by &amp;lt;math&amp;gt;\mathsf{digg}_X=\set{(m_1+\cdots+m_n,[m_1,\dots,m_n])}{n\in\mathbb N\ \text{and}\ m_1,\dots,m_n\in\oc X}&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-23T20:19:29Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Exponentials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt; and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{fun}(s)=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\bot=\one=\{*\}&amp;lt;/math&amp;gt;. Then we have &amp;lt;math&amp;gt;\mathsf{ev}\circ\sigma:\mathbf{Rel}(X\tens(X\limp\bot),\bot)&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta_X=\mathsf{fun}(\mathsf{ev}\circ\sigma)\in\mathbf{Rel}(X,(X\limp\bot)\limp\bot)&amp;lt;/math&amp;gt;. It is clear that &amp;lt;math&amp;gt;\eta=\set{(a,((a,*),*))}{a\in X}&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; is a natural isomorphism: one says that the SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a *-autonomous category, with &amp;lt;math&amp;gt;\bot&amp;lt;/math&amp;gt; as dualizing object.&lt;br /&gt;
&lt;br /&gt;
==== Additives ====&lt;br /&gt;
&lt;br /&gt;
Given a family &amp;lt;math&amp;gt;(X_i)_{i\in I}&amp;lt;/math&amp;gt;, let &amp;lt;math&amp;gt;\with_{i\in I}X_i=\bigcup_{i\in I}\{i\}\times X_i&amp;lt;/math&amp;gt;. Let &amp;lt;math&amp;gt;\pi_j\in\mathbf{Rel}(\wiyh_{i\in I}X_i,X_j)&amp;lt;/math&amp;gt; given by &amp;lt;math&amp;gt;\pi_j=\set{((j,a),a)}{a\in X_j}&amp;lt;/math&amp;gt;. Then &amp;lt;math&amp;gt;(\with_{i\in I}X_i,(\pi_i)_{i\in I})&amp;lt;/math&amp;gt; is the cartesian product of the &amp;lt;math&amp;gt;X_i&amp;lt;/math&amp;gt;s in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Exponentials ====&lt;br /&gt;
&lt;br /&gt;
One defines &amp;lt;math&amp;gt;\oc X&amp;lt;/math&amp;gt; as the set of all finite multisets of elements of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. Given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt;, one defines &amp;lt;math&amp;gt;\oc s=\set{([a_1,\dots,a_n],[b_1,\dots,b_n])}{n\in\mathbb N\ \text{and}\ \forall i\ (a_i,b_i)\in s}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;[a_1,\dots,a_n]&amp;lt;/math&amp;gt; is the multiset containing &amp;lt;math&amp;gt;a_1,\dots,a_n&amp;lt;/math&amp;gt;, taking multiplicities into account. This defines a functor &amp;lt;math&amp;gt;\mathbf{Rel}\to\mathbf{Rel}&amp;lt;/math&amp;gt;, that we endow with a comonad structure as follows:&lt;br /&gt;
* the counit, called dereliction, is the natural transformation &amp;lt;math&amp;gt;\mathsf{der}_X\in\mathbf{Rel}(\oc X,X)&amp;lt;/math&amp;gt;, given by &amp;lt;math&amp;gt;\mathsf{der}_X=\set{([a],a)}{a\in X}&amp;lt;/math&amp;gt;&lt;br /&gt;
* the comultiplication, called digging, is the natural transformation &amp;lt;math&amp;gt;\mathsf{digg}_X\in\mathbf{Rel}(\oc X,\oc\oc X)&amp;lt;/math&amp;gt;, given by &amp;lt;math&amp;gt;\mathsf{digg}_X=\set{(m_1+\cdots+m_n,[m_1,\dots,m_n])}{n\in\mathbb N\ \text{and}\ m_1,\dots,m_n\in\oc X}&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-23T18:32:21Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Exponentials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt; and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{fun}(s)=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\bot=\one=\{*\}&amp;lt;/math&amp;gt;. Then we have &amp;lt;math&amp;gt;\mathsf{ev}\circ\sigma:\mathbf{Rel}(X\tens(X\limp\bot),\bot)&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta_X=\mathsf{fun}(\mathsf{ev}\circ\sigma)\in\mathbf{Rel}(X,(X\limp\bot)\limp\bot)&amp;lt;/math&amp;gt;. It is clear that &amp;lt;math&amp;gt;\eta=\set{(a,((a,*),*))}{a\in X}&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; is a natural isomorphism: one says that the SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a *-autonomous category, with &amp;lt;math&amp;gt;\bot&amp;lt;/math&amp;gt; as dualizing object.&lt;br /&gt;
&lt;br /&gt;
==== Exponentials ====&lt;br /&gt;
&lt;br /&gt;
One defines &amp;lt;math&amp;gt;\oc X&amp;lt;/math&amp;gt; as the set of all finite multisets of elements of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. Given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt;, one defines &amp;lt;math&amp;gt;\oc s=\set{([a_1,\dots,a_n],[b_1,\dots,b_n])}{n\in\mathbb N\ \text{and}\ \forall i\ (a_i,b_i)\in s}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;[a_1,\dots,a_n]&amp;lt;/math&amp;gt; is the multiset containing &amp;lt;math&amp;gt;a_1,\dots,a_n&amp;lt;/math&amp;gt;, taking multiplicities into account. This defines a functor &amp;lt;math&amp;gt;\mathbf{Rel}\to\mathbf{Rel}&amp;lt;/math&amp;gt;, that we endow with a comonad structure as follows:&lt;br /&gt;
* the counit, called dereliction, is the natural transformation &amp;lt;math&amp;gt;\mathsf{der}_X\in\mathbf{Rel}(\oc X,X)&amp;lt;/math&amp;gt;, given by &amp;lt;math&amp;gt;\mathsf{der}_X=\set{([a],a)}{a\in X}&amp;lt;/math&amp;gt;&lt;br /&gt;
* the comultiplication, called digging, is the natural transformation &amp;lt;math&amp;gt;\mathsf{digg}_X\in\mathbf{Rel}(\oc X,\oc\oc X)&amp;lt;/math&amp;gt;, given by &amp;lt;math&amp;gt;\mathsf{digg}_X=\set{(m_1+\cdots+m_n,[m_1,\dots,m_n])}{n\in\mathbb N\ \text{and}\ m_1,\dots,m_n\in\oc X}&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-23T18:23:58Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Exponentials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt; and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{fun}(s)=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\bot=\one=\{*\}&amp;lt;/math&amp;gt;. Then we have &amp;lt;math&amp;gt;\mathsf{ev}\circ\sigma:\mathbf{Rel}(X\tens(X\limp\bot),\bot)&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta_X=\mathsf{fun}(\mathsf{ev}\circ\sigma)\in\mathbf{Rel}(X,(X\limp\bot)\limp\bot)&amp;lt;/math&amp;gt;. It is clear that &amp;lt;math&amp;gt;\eta=\set{(a,((a,*),*))}{a\in X}&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; is a natural isomorphism: one says that the SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a *-autonomous category, with &amp;lt;math&amp;gt;\bot&amp;lt;/math&amp;gt; as dualizing object.&lt;br /&gt;
&lt;br /&gt;
==== Exponentials ====&lt;br /&gt;
&lt;br /&gt;
One defines &amp;lt;math&amp;gt;\oc X&amp;lt;/math&amp;gt; as the set of all finite multisets of elements of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. Given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt;, one defines &amp;lt;math&amp;gt;\oc s=\set{([a_1,\dots,a_n],[b_1,\dots,b_n])}{n\in\mathbb N\ \text{and}\ \forall i\ (a_i,b_i)\in s}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;[a_1,\dots,a_n]&amp;lt;/math&amp;gt; is the multiset containing &amp;lt;math&amp;gt;a_1,\dots,a_n&amp;lt;/math&amp;gt;, taking multiplicities into account. This defines a functor &amp;lt;math&amp;gt;\mathbf{Rel}\to\mathbf{Rel}&amp;lt;/math&amp;gt;, that we endow with a comonad structure as follows:&lt;br /&gt;
* the counit, called dereliction, is the natural transformation &amp;lt;math&amp;gt;\mathsf d_X\in\mathbf{Rel}(\oc X,X)&amp;lt;/math&amp;gt;, given by &amp;lt;math&amp;gt;\mathsf d_X=\set{([a],a)}{a\in X}&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-23T18:20:29Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Exponentials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt; and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{fun}(s)=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\bot=\one=\{*\}&amp;lt;/math&amp;gt;. Then we have &amp;lt;math&amp;gt;\mathsf{ev}\circ\sigma:\mathbf{Rel}(X\tens(X\limp\bot),\bot)&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta_X=\mathsf{fun}(\mathsf{ev}\circ\sigma)\in\mathbf{Rel}(X,(X\limp\bot)\limp\bot)&amp;lt;/math&amp;gt;. It is clear that &amp;lt;math&amp;gt;\eta=\set{(a,((a,*),*))}{a\in X}&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; is a natural isomorphism: one says that the SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a *-autonomous category, with &amp;lt;math&amp;gt;\bot&amp;lt;/math&amp;gt; as dualizing object.&lt;br /&gt;
&lt;br /&gt;
==== Exponentials ====&lt;br /&gt;
&lt;br /&gt;
One defines &amp;lt;math&amp;gt;\oc X&amp;lt;/math&amp;gt; as the set of all finite multisets of elements of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. Given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt;, one defines &amp;lt;math&amp;gt;\oc s=\set{([a_1,\dots,a_n],[b_1,\dots,b_n])}{n\in\mathbb N\ \text{and}\ \forall i\ (a_i,b_i)\in s}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;[a_1,\dots,a_n]&amp;lt;/math&amp;gt; is the multiset containing &amp;lt;math&amp;gt;a_1,\dots,a_n&amp;lt;/math&amp;gt;, taking multiplicities into account. This defines a functor &amp;lt;math&amp;gt;\mathbf{Rel}\to\mathbf{Rel}&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-23T18:16:14Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Exponentials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt; and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{fun}(s)=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\bot=\one=\{*\}&amp;lt;/math&amp;gt;. Then we have &amp;lt;math&amp;gt;\mathsf{ev}\circ\sigma:\mathbf{Rel}(X\tens(X\limp\bot),\bot)&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta_X=\mathsf{fun}(\mathsf{ev}\circ\sigma)\in\mathbf{Rel}(X,(X\limp\bot)\limp\bot)&amp;lt;/math&amp;gt;. It is clear that &amp;lt;math&amp;gt;\eta=\set{(a,((a,*),*))}{a\in X}&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; is a natural isomorphism: one says that the SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a *-autonomous category, with &amp;lt;math&amp;gt;\bot&amp;lt;/math&amp;gt; as dualizing object.&lt;br /&gt;
&lt;br /&gt;
==== Exponentials ====&lt;br /&gt;
&lt;br /&gt;
One defines &amp;lt;math&amp;gt;\oc X&amp;lt;/math&amp;gt; as the set of all finite multisets of elements of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. Given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt;, one defines &amp;lt;math&amp;gt;\oc s=\set{([a_1,\dots,a_n],[b_1,\dots,b_n])}{n\in\mathbb N\ \text{and}\ \forall i\ (a_i,b_i)\in s}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-23T18:06:12Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Monoidal structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt; and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{fun}(s)=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\bot=\one=\{*\}&amp;lt;/math&amp;gt;. Then we have &amp;lt;math&amp;gt;\mathsf{ev}\circ\sigma:\mathbf{Rel}(X\tens(X\limp\bot),\bot)&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta_X=\mathsf{fun}(\mathsf{ev}\circ\sigma)\in\mathbf{Rel}(X,(X\limp\bot)\limp\bot)&amp;lt;/math&amp;gt;. It is clear that &amp;lt;math&amp;gt;\eta=\set{(a,((a,*),*))}{a\in X}&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; is a natural isomorphism: one says that the SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a *-autonomous category, with &amp;lt;math&amp;gt;\bot&amp;lt;/math&amp;gt; as dualizing object.&lt;br /&gt;
&lt;br /&gt;
==== Exponentials ====&lt;br /&gt;
&lt;br /&gt;
One defines &amp;lt;math&amp;gt;\oc X&amp;lt;/math&amp;gt; as the set of all finite multisets of elements of &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt;. Given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt;, one defines &amp;lt;math&amp;gt;\oc s=\set{([a_1,\dots,a_n],[b_1,\dots,b_n])}{\forall i\ (a_i,b_i)\in s}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T17:32:51Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Monoidal structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt; and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{fun}(s)=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Let &amp;lt;math&amp;gt;\bot=\one=\{*\}&amp;lt;/math&amp;gt;. Then we have &amp;lt;math&amp;gt;\mathsf{ev}\circ\sigma:\mathbf{Rel}(X\tens(X\limp\bot),\bot)&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta_X=\mathsf{fun}(\mathsf{ev}\circ\sigma)\in\mathbf{Rel}(X,(X\limp\bot)\limp\bot)&amp;lt;/math&amp;gt;. It is clear that &amp;lt;math&amp;gt;\eta=\set{(a,((a,*),*))}{a\in X}&amp;lt;/math&amp;gt; and hence &amp;lt;math&amp;gt;\eta&amp;lt;/math&amp;gt; is a natural isomorphism: one says that the SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a *-autonomous category, with &amp;lt;math&amp;gt;\bot&amp;lt;/math&amp;gt; as dualizing object.&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T13:23:27Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* The category of sets and relations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt; and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{fun}(s)=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T13:22:50Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Monoidal structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{fun}(s)=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T13:21:14Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Monoidal structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(s)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The definition of all these data is quite simple in &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;: &amp;lt;math&amp;gt;X\limp Y=X\times Y&amp;lt;/math&amp;gt;, &amp;lt;math&amp;gt;\mathsf{ev}_{X,Y}=\set{(((a,b),a),b)}{(a,b)\in X\times Y}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;\mathsf{s}=\set{(c,(a,b))}{((c,a),b)\in s}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T13:16:59Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Monoidal structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;). In other words, for any objects &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, we are given an object &amp;lt;math&amp;gt;X\limp Y&amp;lt;/math&amp;gt; and a morphism &amp;lt;math&amp;gt;\mathsf{ev}\in\mathbf{Rel}((X\limp Y)\tens X,Y)&amp;lt;/math&amp;gt; with the following universal property: for any morphism &amp;lt;math&amp;gt;s\in\mathbf{Rel}(Z\tens X,Y)&amp;lt;/math&amp;gt;, there is a unique morphism &amp;lt;math&amp;gt;\mathsf{fun}(f)\in\mathbf{Rel}(Z,X\limp Y)&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\mathsf{ev}\circ(\mathsf{fun}(s)\tens\mathsf{Id}_X)=s&amp;lt;/math&amp;gt;&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T13:08:14Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Monoidal structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\alpha,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;).&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T13:07:05Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Monoidal structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this tensor product is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;).&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T13:06:12Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Monoidal structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this monoidal functor is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto (X\limp Y)&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;).&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T05:49:54Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Monoidal structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this monoidal functor is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\sigma)&amp;lt;/math&amp;gt;, but we shall simply denote it as &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; for simplicity.&lt;br /&gt;
&lt;br /&gt;
The SMCC &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is closed. This means that, given any object &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; (a set), the functor &amp;lt;math&amp;gt;Z\mapsto Z\tens X&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;) admits a right adjoint &amp;lt;math&amp;gt;Y\mapsto X\limp Y&amp;lt;/math&amp;gt; (from &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt;).&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T05:39:23Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* Monoidal structure */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product of sets &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt; (which &amp;lt;em&amp;gt;is not&amp;lt;/em&amp;gt; a cartesian product in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; in the categorical sense). It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this monoidal functor is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\sigma)&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-16T05:35:32Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: /* The category of sets and relations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and the identity morphism is the diagonal relation &amp;lt;math&amp;gt;\mathsf{Id}_X=\set{(a,a)}{a\in X}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
An isomorphism in the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is a relation which is a bijection, as easily checked.&lt;br /&gt;
&lt;br /&gt;
==== Monoidal structure ====&lt;br /&gt;
&lt;br /&gt;
The tensor product is the usual cartesian product &amp;lt;math&amp;gt;X\tens Y=X\times Y&amp;lt;/math&amp;gt;. It is a bifunctor: given &amp;lt;math&amp;gt;s_i\in\mathbf{Rel}(X_i,Y_i)&amp;lt;/math&amp;gt; (for &amp;lt;math&amp;gt;i=1,2&amp;lt;/math&amp;gt;), one sets &amp;lt;math&amp;gt;s_1\tens s_2=\set{((a_1,a_2),(b_1,b_2))}{(a_i,b_i)\in s_i\ \text{for}\ i=1,2}&amp;lt;/math&amp;gt;. The unit of this monoidal functor is &amp;lt;math&amp;gt;\one=\{*\}&amp;lt;/math&amp;gt; where &amp;lt;math&amp;gt;*&amp;lt;/math&amp;gt; is an arbitrary element.&lt;br /&gt;
&lt;br /&gt;
For defining a monoidal category, it is not sufficient to provide the definition of the tensor product functor &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt; and its unit &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt;, one has also to provide natural isomorphisms &amp;lt;math&amp;gt;\lambda_X\in\mathbf{Rel}(\one\tens X,X)&amp;lt;/math&amp;gt;,&lt;br /&gt;
&amp;lt;math&amp;gt;\rho_X\in\mathbf{Rel}(X\tens\one,X)&amp;lt;/math&amp;gt; (left and right neutrality of &amp;lt;math&amp;gt;\one&amp;lt;/math&amp;gt; for &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;) and &amp;lt;math&amp;gt;\alpha_{X,Y,Z}\in\mathbf{Rel}((X\tens Y)\tens Z,X\tens(Y\tens Z))&amp;lt;/math&amp;gt; (associativity of &amp;lt;math&amp;gt;\tens&amp;lt;/math&amp;gt;). All these isomorphisms have to satisfy a number of commutations. In the present case, they are defined in the obvious way.&lt;br /&gt;
&lt;br /&gt;
This monoidal category &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho)&amp;lt;/math&amp;gt; is symmetric, meaning that it is endowed with an additional natural isomorphism &amp;lt;math&amp;gt;\sigma_{X,Y}\in\mathbf{Rel}(X\tens Y,Y\tens X)&amp;lt;/math&amp;gt;, also subject to some commutations. Here, again, this isomorphism is defined in the obvious way (symmetry of the cartesian product). So, to be precise, the SMCC (symmetric monoidal closed category) &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; is the tuple &amp;lt;math&amp;gt;(\mathbf{Rel},\tens,\one,\lambda,\rho,\sigma)&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	<entry>
		<id>http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics</id>
		<title>Relational semantics</title>
		<link rel="alternate" type="text/html" href="http://140-77-166-78.cprapid.com/mediawiki/index.php/Relational_semantics"/>
				<updated>2009-03-14T20:47:51Z</updated>
		
		<summary type="html">&lt;p&gt;Thomas Ehrhard: New page: == Relational semantics ==  This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\p...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Relational semantics ==&lt;br /&gt;
&lt;br /&gt;
This is the simplest denotational semantics of linear logic. It consists in interpreting a formula &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a set &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt; and a proof &amp;lt;math&amp;gt;\pi&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A&amp;lt;/math&amp;gt; as a subset &amp;lt;math&amp;gt;\pi^*&amp;lt;/math&amp;gt; of &amp;lt;math&amp;gt;A^*&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== The category of sets and relations ===&lt;br /&gt;
&lt;br /&gt;
It is the category &amp;lt;math&amp;gt;\mathbf{Rel}&amp;lt;/math&amp;gt; whose objects are sets, and such that &amp;lt;math&amp;gt;\mathbf{Rel}(X,Y)=\mathcal P(X\times Y)&amp;lt;/math&amp;gt;. Composition is the ordinary composition of relations: given &amp;lt;math&amp;gt;s\in\mathbf{Rel}(X,Y)&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;t\in\mathbf{Rel}(Y,Z)&amp;lt;/math&amp;gt;, one &lt;br /&gt;
sets &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;t\circ s=\set{(a,c)\in X\times Z}{\exists b\in Y\ (a,b)\in s\ \text{and}\ (b,c)\in t}&amp;lt;/math&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Thomas Ehrhard</name></author>	</entry>

	</feed>