| 1 |
\documentclass{article} |
| 2 |
|
| 3 |
\usepackage[utf8]{inputenc} |
| 4 |
|
| 5 |
\usepackage{membranecomputing-dev/membranecomputing} |
| 6 |
\usepackage{hyperref} |
| 7 |
\usepackage{enumitem} |
| 8 |
\usepackage{amssymb} |
| 9 |
\usepackage{longtable} |
| 10 |
|
| 11 |
\title{Package \texttt{membranecomputing} (v0.2.1)} |
| 12 |
\author{David Orellana-MartÃn \\ \texttt{\href{mailto:[email protected]}{[email protected]}}} |
| 13 |
\begin{document} |
| 14 |
|
| 15 |
\maketitle |
| 16 |
|
| 17 |
\tableofcontents |
| 18 |
|
| 19 |
\section{Introduction} |
| 20 |
\label{sec:introduction} |
| 21 |
|
| 22 |
Membrane computing is a framework where different models of |
| 23 |
computations, called membrane systems or P systems arise from. The |
| 24 |
notation of these models is very variate since the number of |
| 25 |
researchers in the area is very high, and also their background is |
| 26 |
different, and therefore the notation can slightly change. The idea of |
| 27 |
this package is to cover all the possible variants in the area and |
| 28 |
their respective rules. Concerning the rules, the objective is |
| 29 |
twofold: On the one hand, to use commands to transcript a rule in a |
| 30 |
paper format; On the other hand, since P-Lingua is the \textit{de |
| 31 |
facto} standard language for simulating P systems, there is a |
| 32 |
possibility to print the rules in the P-Lingua language, ready to be |
| 33 |
copied and pasted into a \texttt{.pli} file. |
| 34 |
|
| 35 |
\section{Package options} |
| 36 |
\label{sec:package-options} |
| 37 |
|
| 38 |
The \texttt{membranecomputing} package offers the option |
| 39 |
\texttt{blackboard}. The differences of this option can be found in |
| 40 |
Subsection~\ref{sec:font-option}. |
| 41 |
|
| 42 |
\subsection{Font option} |
| 43 |
\label{sec:font-option} |
| 44 |
|
| 45 |
Notation of P systems can change depending on the model. But even with |
| 46 |
the same model, some differences can be found between different |
| 47 |
papers. For instance, while some researchers use the symbol $\Gamma$ |
| 48 |
to denote the working alphabet, other use the letter $O$. Other |
| 49 |
example is the use of the letters $\mathcal{M}_{i}$ or $w_{i}$ for |
| 50 |
describing the initial multisets of the regions. For this purpose, |
| 51 |
this option has been implemented. |
| 52 |
|
| 53 |
\begin{itemize} |
| 54 |
\item \texttt{traditional} (\textit{Default}) This typesets the |
| 55 |
symbols like |
| 56 |
$\Gamma, \Sigma, \mathcal{M}_{i}, \mathcal{R}_{i}, |
| 57 |
\rho_{i}$~\footnote{For SNP systems, the singleton $\{a\}$, is still |
| 58 |
called $O$ in this mode.}. |
| 59 |
\item \texttt{blackboard} This typesets the symbols like |
| 60 |
$O, E, w_{i}, R_{i}, p_{i}$. |
| 61 |
\end{itemize} |
| 62 |
|
| 63 |
The rest of the symbols are defined without taking into account this option. |
| 64 |
|
| 65 |
\section{Using the package} |
| 66 |
\label{sec:using-package} |
| 67 |
|
| 68 |
In this section I will try to explain all the different uses of this |
| 69 |
package, from basic use to creation of new templates. |
| 70 |
|
| 71 |
\subsection{Basic notations} |
| 72 |
\label{sec:basic-notations} |
| 73 |
|
| 74 |
This is a list of some notations that can be used for defining initial |
| 75 |
multisets, sets of rules, and so on. |
| 76 |
|
| 77 |
\vspace{1mm} |
| 78 |
|
| 79 |
$ |
| 80 |
\begin{array}{lll} |
| 81 |
\mbox{Working alphabet} & \verb=\wa= & \wa \\ |
| 82 |
\mbox{Input alphabet} & \verb=\ia= & \ia \\ |
| 83 |
\mbox{Labels set} & \verb=\ls= & \ls \\ |
| 84 |
\mbox{Membrane structure} & \verb=\ms= & \ms \\ |
| 85 |
\mbox{Initial multiset} & \verb=\im{i}= & \im{i} \\ |
| 86 |
\mbox{Rule set} & \verb=\rs{i}= & \rs{i} \\ |
| 87 |
\mbox{Probabilities set} & \verb=\ps{i}= & \ps{i} \\ |
| 88 |
\mbox{vE} & \verb=\vE= & \vE \\ |
| 89 |
\mbox{Neuron} & \verb=\neuron{i}= & \neuron{i} \\ |
| 90 |
\mbox{Compartment} & \verb=\compartment{i}= & \compartment{i} \\ |
| 91 |
\mbox{Agent} & \verb=\agent{i}= & \agent{i} \\ |
| 92 |
\mbox{Degree} & \verb=\degree= & \degree \\ |
| 93 |
\mbox{Synapses} & \verb=\syn= & \syn \\ |
| 94 |
\mbox{Input region} & \verb=\iin= & \iin \\ |
| 95 |
\mbox{Output region} & \verb=\iout= & \iout \\ |
| 96 |
\mbox{Object yes} & \verb=\yes= & \yes \\ |
| 97 |
\mbox{Object no} & \verb=\no= & \no \\ |
| 98 |
\end{array} |
| 99 |
$ |
| 100 |
|
| 101 |
\subsection{Languages and computability theory} |
| 102 |
\label{sec:lang-comp-theory} |
| 103 |
|
| 104 |
$ |
| 105 |
\begin{array}{lll} |
| 106 |
\mbox{Regular language} & \verb=\REG= & \REG \\ |
| 107 |
\mbox{Linear language} & \verb=\LIN= & \LIN \\ |
| 108 |
\mbox{Context-free language} & \verb=\CF= & \CF \\ |
| 109 |
\mbox{Context-sensitive language} & \verb=\CS= & \CS \\ |
| 110 |
\mbox{Recursively enumerable language} & \verb=\RE= & \RE \\ |
| 111 |
\end{array} |
| 112 |
$ |
| 113 |
|
| 114 |
To define a new set of languages, it is enough to make a new command |
| 115 |
as follows: |
| 116 |
|
| 117 |
\begin{verbatim} |
| 118 |
\newcommand{\L}{\compSet{L}} |
| 119 |
\end{verbatim} |
| 120 |
|
| 121 |
This results in: $\compSet{L}$. |
| 122 |
|
| 123 |
\subsection{Families of membrane systems} |
| 124 |
\label{sec:famil-membr-syst} |
| 125 |
|
| 126 |
Since the number of ``ingredients'' of the different variants of P |
| 127 |
systems is sometimes high, then some notations can be used to short |
| 128 |
them whenever they must be used. For instance, polarizationless P |
| 129 |
systems with active membranes when dissolution rules and division |
| 130 |
rules only for elementary membranes are allowed is usually denoted as |
| 131 |
$\AMO{-d, +ne}$. To denote this, it is enough to write |
| 132 |
\verb=\AM0{d, +ne}=. In this package, some examples of different |
| 133 |
families of P systems are defined. |
| 134 |
|
| 135 |
$ |
| 136 |
\begin{array}{lll} |
| 137 |
\mbox{Ps with am} & \verb=\AM[\alpha]{\beta}= & \AM[\alpha]{\beta} \\ |
| 138 |
\mbox{Polarizationless Ps with am} & \verb=\AMO{\alpha}= & \AMO{\alpha} \\ |
| 139 |
\mbox{Tissue Ps with s/a rules} & \verb=\TC[\alpha]{\beta}= & \TC[\alpha]{\beta} \\ |
| 140 |
\mbox{Tissue Ps with s/a and division rules} & \verb=\TDC{\alpha}= & \TDC{\alpha} \\ |
| 141 |
\mbox{Tissue Ps with s/a and separation rules} & \verb=\TSC{\alpha}= & \TSC{\alpha} \\ |
| 142 |
\mbox{Ps with s/a rules} & \verb=\CC[\alpha]{\beta}= & \CC[\alpha]{\beta} \\ |
| 143 |
\mbox{Ps with s/a and division rules} & \verb=\CDC{\alpha}= & \CDC{\alpha} \\ |
| 144 |
\mbox{Ps with s/a and separation rules} & \verb=\CSC{\alpha}= & \CSC{\alpha} \\ |
| 145 |
\mbox{Tissue Ps with evol. comm. rules} & \verb=\TEC[\alpha]{\beta}= & \TEC[\alpha]{\beta} \\ |
| 146 |
\mbox{Tissue Ps with evol. comm. and division rules} & \verb=\TDEC{\alpha}= & \TDEC{\alpha} \\ |
| 147 |
\mbox{Tissue Ps with evol. comm. and separation rules} & \verb=\TSEC{\alpha}= & \TSEC{\alpha} \\ |
| 148 |
\mbox{Ps with evol. comm. rules} & \verb=\CEC[\alpha]{\beta}= & \CEC[\alpha]{\beta} \\ |
| 149 |
\mbox{Ps with evol. comm. and division rules} & \verb=\CDEC{\alpha}= & \CDEC{\alpha} \\ |
| 150 |
\mbox{Ps with evol. comm. and separation rules} & \verb=\CSEC{\alpha}= & \CSEC{\alpha} |
| 151 |
\end{array} |
| 152 |
$ |
| 153 |
|
| 154 |
There are some command conflicts with the \texttt{complexity} |
| 155 |
package~\footnote{\url{https://ctan.org/pkg/complexity}}. If you need |
| 156 |
both packages, please load first the \texttt{complexity} package first |
| 157 |
and later \texttt{membranecomputing} package. If you do this, some of |
| 158 |
the commands defined in this section change, and |
| 159 |
$\verb=\AM=, \verb=\TC=, \verb=\REG=, \verb=\LIN=, \verb=\RE=$ become |
| 160 |
$\verb=\mcAM=, \verb=\mcTC=, \verb=\mcREG=, \verb=\mcLIN=, |
| 161 |
\verb=\mcRE=$, respectively. |
| 162 |
|
| 163 |
To define a new notation for a family of membrane systems, it is |
| 164 |
enough to make a new command as follows: |
| 165 |
|
| 166 |
\begin{verbatim} |
| 167 |
\newcommand{\MS}[3]{\Pfamily{MS}{#1}{#2}{#3}} |
| 168 |
\end{verbatim} |
| 169 |
|
| 170 |
This results in: $\Pfamily{MS}{\#2}{\#3}{\#4}$. |
| 171 |
|
| 172 |
\subsection{Computational complexity theory} |
| 173 |
\label{sec:comp-compl-theory} |
| 174 |
|
| 175 |
It is usual to define different complexity classes in the framework |
| 176 |
of membrane computing. In this sense, it would be interesting to |
| 177 |
automate the definition of these classes to avoid using all \LaTeX |
| 178 |
commands each time we want to use them. |
| 179 |
|
| 180 |
$ |
| 181 |
\begin{array}{lll} |
| 182 |
\mbox{} & \verb=\PMC[\alpha]{\beta}= & \PMC[\alpha]{\beta} \\ |
| 183 |
\mbox{} & \verb=\PSPACEMC[\alpha]{\beta}= & \PSPACEMC[\alpha]{\beta} \\ |
| 184 |
\mbox{} & \verb=\EXPMC[\alpha]{\beta}= & \EXPMC[\alpha]{\beta} \\ |
| 185 |
\mbox{} & \verb=\EXPSPACEMC[\alpha]{\beta}= & \EXPSPACEMC[\alpha]{\beta} \\ |
| 186 |
\end{array} |
| 187 |
$ |
| 188 |
|
| 189 |
To define a new notation for a complexity class in membrane systems, it is |
| 190 |
enough to make a new command as follows: |
| 191 |
|
| 192 |
\begin{verbatim} |
| 193 |
\newcommand{\C}[3]{\complClass{C}{#1}{#2}} |
| 194 |
\end{verbatim} |
| 195 |
|
| 196 |
This results in: $\complClass{C}{\#1}{\#2}$~\footnote{CMC does not |
| 197 |
stand for Conference on Membrane Computing here.}. |
| 198 |
|
| 199 |
\subsection{P systems} |
| 200 |
\label{sec:p-systems} |
| 201 |
|
| 202 |
One of the two main contributions of this package is to make easier to |
| 203 |
name a P system. Usually, when we have to define a new membrane |
| 204 |
system, we have to write something like |
| 205 |
|
| 206 |
\begin{verbatim} |
| 207 |
\Pi = (\Gamma, \mu, H, \mathcal{M}_1, \mathcal{M}_{2}, \mathcal{R}, i_{out}) |
| 208 |
\end{verbatim} |
| 209 |
|
| 210 |
For making this task easier, the command \verb=psystem= has been |
| 211 |
defined. Basically, it takes 5 arguments (first is optional) and can |
| 212 |
be used as follows: \verb=\psystem[#1]{#2}{#3}{#4}{#5}=, where |
| 213 |
|
| 214 |
\begin{enumerate}[label=\texttt{\#\arabic*}] |
| 215 |
\item $\in \{\mathtt{recognizer}, \mathtt{nonrecognizer}\}$: adds an |
| 216 |
input alphabet and an input region. |
| 217 |
\item $\in \{\mathtt{cell}, \mathtt{tissue}\}$: adds a membrane |
| 218 |
structure in the first case. |
| 219 |
\item |
| 220 |
$\in \{\mathtt{transition}, \mathtt{activemembranes}, |
| 221 |
\mathtt{symportantiport}, \mathtt{spiking}, \mathtt{kernel}, |
| 222 |
\mathtt{colony}\}$: changes some of the parameters of the P system. |
| 223 |
\item is a subscript for the symbol $\Pi$. |
| 224 |
\item $> 1$ is the degree of the system. |
| 225 |
\end{enumerate} |
| 226 |
|
| 227 |
For instance, the command |
| 228 |
\begin{verbatim} |
| 229 |
\psystem[recognizer]{cell}{activemembranes}{1}{10} |
| 230 |
\end{verbatim} |
| 231 |
would lead to the following: |
| 232 |
|
| 233 |
\begin{center} |
| 234 |
\psystem[recognizer]{cell}{activemembranes}{1}{10} |
| 235 |
\end{center} |
| 236 |
|
| 237 |
Some templates have been prepared for most of the usual variants of P |
| 238 |
systems: |
| 239 |
|
| 240 |
$ |
| 241 |
\begin{array}{ll} |
| 242 |
\verb=\psystemAM= & \psystemAM \\ |
| 243 |
\verb=\rpsystemAM= & \rpsystemAM \\ |
| 244 |
\verb=\psystemSA= & \psystemSA \\ |
| 245 |
\verb=\rpsystemSA= & \rpsystemSA \\ |
| 246 |
\verb=\SNpsystem= & \SNpsystem \\ |
| 247 |
\verb=\rSNpsystem= & \rSNpsystem \\ |
| 248 |
\verb=\kpsystem= & \kpsystem \\ |
| 249 |
\verb=\rkpsystem= & \rkpsystem \\ |
| 250 |
\verb=\pcolony= & \pcolony \\ |
| 251 |
\verb=\rpcolony= & \rpcolony \\ |
| 252 |
\end{array} |
| 253 |
$ |
| 254 |
|
| 255 |
All commands preceded by a \verb=r= are the recognizer version of |
| 256 |
their r-less counterpart. |
| 257 |
|
| 258 |
\subsection{Rules} |
| 259 |
\label{sec:rules} |
| 260 |
|
| 261 |
The (current) big work of this paper is to normalise the notation of |
| 262 |
the rules of P systems. Several differences can be found in the |
| 263 |
literature, most of them about spacing, position of elements, and so |
| 264 |
on. The idea is to unify these notations in one big element: the |
| 265 |
\verb=\mcrule= command. This command tries to cover all types of rules |
| 266 |
in the membrane computing framework, including esoteric rules that |
| 267 |
could arise. The idea is to catch some basic elements and parse them |
| 268 |
in order to obtain the whole rule. As some types of P systems use |
| 269 |
different notations, as arrows, separators and so on, different cases |
| 270 |
have being contemplated. The definition of this command is |
| 271 |
\verb=\mcrule[#1]{#2}{#3}{#4}{#5}{#6}=, where: |
| 272 |
|
| 273 |
\begin{enumerate}[label=\texttt{\#\arabic*}] |
| 274 |
\item $\in \{\mathtt{written} (\mathit{Default}), \mathtt{plingua}\}$: the first one |
| 275 |
makes it look as the usual scientific notation while the second one |
| 276 |
transforms the rule into P-Lingua notation. |
| 277 |
\item It can be one of the following parameters: |
| 278 |
|
| 279 |
$ |
| 280 |
\begin{array}{lll} |
| 281 |
\mathtt{rewriting} & \mbox{Classical rewriting rules} & \rewritingT \\ |
| 282 |
\mathtt{single} & \mbox{Rules with a single pair of brackets} & \pevolutionT \\ |
| 283 |
\mathtt{multiple} & \mbox{Rules with different brackets in the LHS and the RHS} & \psendoutT \\ |
| 284 |
\mathtt{paren} & \mbox{Rules delimited by parentheses} & \antiportT \\ |
| 285 |
\mathtt{spike} & \mbox{Spiking rules} & \spikingT |
| 286 |
\end{array} |
| 287 |
$ |
| 288 |
\item $> 1$: Number of regions in the LHS (the main region and the outside regions are counted as one) |
| 289 |
\item $> 1$: Number of regions in the RHS (the main region and the outside regions are counted as one) |
| 290 |
\item explained below |
| 291 |
\item explained below |
| 292 |
\end{enumerate} |
| 293 |
|
| 294 |
The \verb=\mcrule= command is a tool capable of representing a wide |
| 295 |
variety of types of rule. The idea is to represent all the rules in a |
| 296 |
standardised way and well-spaced. An example with each type of rule is |
| 297 |
given: |
| 298 |
|
| 299 |
\begin{itemize} |
| 300 |
\item $\mathtt{rewriting}$: \verb=\mcrule{rewriting}{}{}{u}{v}= will |
| 301 |
produce $\mcrule{rewriting}{}{}{u}{v}$. |
| 302 |
\item $\mathtt{single}$: |
| 303 |
\verb=\mcrule{single}{}{}{{a}{h}{+}}{{c_{2}\alpha}}= will produce |
| 304 |
$\mcrule{single}{}{}{{a}{h}{+}}{c_{2}\alpha}$. |
| 305 |
\item $\mathtt{multiple}$:\newline |
| 306 |
\verb=\mcrule{multiple}{4}{4}{{{a}{3}{+}}{{b}}{{e_{1}}{4}}{;}}=\newline |
| 307 |
\verb={{}{{a}}{-}{{o}{!}}}= will produce\newline |
| 308 |
$\mcrule{multiple}{4}{4}{{{a}{3}{+}}{{b}}{{e_{1}}{4}}{;}}{{}{{a}}{-}{{o}{!}}}$. I |
| 309 |
will explain in detail what means each thing: |
| 310 |
\begin{itemize} |
| 311 |
\item \verb={4}{4}=: In the left-hand side of the rule, 4 |
| 312 |
``regions'' will be analysed (in this case, membrane $3$, its |
| 313 |
parent membrane, membrane $4$ and a special symbol); In the |
| 314 |
right-hand side of the rule, 4 ``regions'' will be analysed (in |
| 315 |
this case, the empty ``main'' membrane, its parent membrane, a |
| 316 |
special symbol and a special region)~\footnote{It is a very |
| 317 |
strange rule, but it will be useful to explain some special |
| 318 |
cases to use in your own rules.}. |
| 319 |
\item \verb={{{a}{3}{+}}{{b}}{{e_{1}}{4}}{;}}=: It is divided into |
| 320 |
four parts: |
| 321 |
\begin{itemize} |
| 322 |
\item \verb={{a}{3}{+}}=: The ``main'' membrane of the rule has |
| 323 |
label $3$ and polarisation $+$, and its contents is an object |
| 324 |
$a$. |
| 325 |
\item \verb={{b}}=: The outer content of the ``main'' membrane is |
| 326 |
an object $b$. |
| 327 |
\item \verb={{e_{1}}{4}}=: It has a inner membrane with label $4$ |
| 328 |
and its contents is an object $e_{1}$. |
| 329 |
\item \verb={;}=: It writes down a $;$ symbol~\footnote{Useful for |
| 330 |
creation/deletion rules in kP systems.}. |
| 331 |
\end{itemize} |
| 332 |
\item \verb={{}{{a}}{-}{{o}{!}}}=: It is divided into four |
| 333 |
parts: |
| 334 |
\begin{itemize} |
| 335 |
\item \verb={}=: The ``main'' membrane of the rule is not |
| 336 |
specified, so it is omitted~\footnote{Useful for dissolution |
| 337 |
rules.}. |
| 338 |
\item \verb={{a}}=: The outer content of the ``main'' membrane is |
| 339 |
an object $a$. |
| 340 |
\item \verb=-= It writes down a $-$ symbol~\footnote{Also useful |
| 341 |
for creation/deletion rules in kP systems.}. |
| 342 |
\item \verb={{o}{!}}=: The symbol $!$ in the label is a reserved |
| 343 |
character to write down a guard $\{ o \}$~\footnote{Also used in |
| 344 |
kP systems.}. |
| 345 |
\end{itemize} |
| 346 |
\end{itemize} |
| 347 |
\item $\mathtt{paren}$: \verb=\mcrule{paren}{}{}{{ab}{3}}{{c}{2}}= |
| 348 |
will produce $\mcrule{paren}{}{}{{ab}{3}}{{c}{2}}$. |
| 349 |
\item $\mathtt{spike}$: |
| 350 |
\verb=\mcrule{spike}{}{}{{a^{3}}{a^{2}}}{{a}{1}}= will produce |
| 351 |
$\mcrule{spike}{}{}{{a^{3}}{a^{2}}}{{a}{1}}$. |
| 352 |
\end{itemize} |
| 353 |
|
| 354 |
Using $\mathtt{plingua}$ instead of |
| 355 |
$\mathtt{written}$ as the optional parameter, it will write the rule |
| 356 |
in the P-Lingua syntax. Therefore, the $\mathtt{multiple}$ rule |
| 357 |
previously used in this section would render as\newline |
| 358 |
$\mcrule[plingua]{multiple}{4}{4}{{{a}{3}{+}}{{b}}{{e_{1}}{4}}{;}}{{}{{a}}{-}{{o}{!}}}$. |
| 359 |
|
| 360 |
With this, anyone can create almost any kind of rule that one could |
| 361 |
think~\footnote{Do you have any idea about other kind of rule? Please |
| 362 |
write me so I can think in a way to implement it.}. However, for the |
| 363 |
sake of simplicity, I have defined some commands for the basic types |
| 364 |
of rules from the bibliography. |
| 365 |
|
| 366 |
{\footnotesize |
| 367 |
\begin{longtable}{ll} |
| 368 |
\verb=\rewriting{u}{v}= & $\rewriting{u}{v}$ \\ |
| 369 |
\verb=\rewritingT= & $\rewritingT$ \\ |
| 370 |
\verb=\evolution{a}{b}{h}{\alpha}= & $\evolution{a}{b}{h}{\alpha}$ \\ |
| 371 |
\verb=\evolutionT= & $\evolutionT$ \\ |
| 372 |
\verb=\evolutionP{a}{b}{h}{\alpha}= & $\evolutionP{a}{b}{h}{\alpha}$ \\ |
| 373 |
\verb=\evolutionPT= & $\evolutionPT$ \\ |
| 374 |
\verb=\pevolution{a}{b}{h}= & $\pevolution{a}{b}{h}$ \\ |
| 375 |
\verb=\pevolutionT= & $\pevolutionT$ \\ |
| 376 |
\verb=\pevolutionP{a}{b}{h}= & $\pevolutionP{a}{b}{h}$ \\ |
| 377 |
\verb=\pevolutionPT= & $\pevolutionPT$ \\ |
| 378 |
\verb=\antiport{u}{i}{v}{j}= & $\antiport{u}{i}{v}{j}$ \\ |
| 379 |
\verb=\antiportT= & $\antiportT$ \\ |
| 380 |
\verb=\symportT= & $\symportT$ \\ |
| 381 |
\verb=\antiportP{u}{i}{v}{j}= & $\antiportP{u}{i}{v}{j}$ \\ |
| 382 |
\verb=\antiportPT= & $\antiportPT$ \\ |
| 383 |
\verb=\symportPT= & $\symportPT$ \\ |
| 384 |
\verb=\sendin{a}{b}{h}{\alpha_{1}}{\alpha_{2}}= & $\sendin{a}{b}{h}{\alpha_{1}}{\alpha_{2}}$ \\ |
| 385 |
\verb=\sendinT= & $\sendinT$ \\ |
| 386 |
\verb=\sendinP{a}{b}{h}{\alpha_{1}}{\alpha_{2}}= & $\sendinP{a}{b}{h}{\alpha_{1}}{\alpha_{2}}$ \\ |
| 387 |
\verb=\sendinPT= & $\sendinPT$ \\ |
| 388 |
\verb=\psendin{a}{b}{h}= & $\psendin{a}{b}{h}$ \\ |
| 389 |
\verb=\psendinT= & $\psendinT$ \\ |
| 390 |
\verb=\psendinP{a}{b}{h}= & $\psendinP{a}{b}{h}$ \\ |
| 391 |
\verb=\psendinPT= & $\psendinPT$ \\ |
| 392 |
\verb=\sendout{a}{b}{h}{\alpha_{1}}{\alpha_{2}}= & $\sendout{a}{b}{h}{\alpha_{1}}{\alpha_{2}}$ \\ |
| 393 |
\verb=\sendoutT= & $\sendoutT$ \\ |
| 394 |
\verb=\sendoutP{a}{b}{h}{\alpha_{1}}{\alpha_{2}}= & $\sendoutP{a}{b}{h}{\alpha_{1}}{\alpha_{2}}$ \\ |
| 395 |
\verb=\sendoutPT= & $\sendoutPT$ \\ |
| 396 |
\verb=\psendout{a}{b}{h}= & $\psendout{a}{b}{h}$ \\ |
| 397 |
\verb=\psendoutT= & $\psendoutT$ \\ |
| 398 |
\verb=\psendoutP{a}{b}{h}= & $\psendoutP{a}{b}{h}$ \\ |
| 399 |
\verb=\psendoutPT= & $\psendoutPT$ \\ |
| 400 |
\verb=\dissolution{a}{b}{h}{\alpha}= & $\dissolution{a}{b}{h}{\alpha}$ \\ |
| 401 |
\verb=\dissolutionT= & $\dissolutionT$ \\ |
| 402 |
\verb=\dissolutionP{a}{b}{h}{\alpha}= & $\dissolutionP{a}{b}{h}{\alpha}$ \\ |
| 403 |
\verb=\dissolutionPT= & $\dissolutionPT$ \\ |
| 404 |
\verb=\pdissolution{a}{b}{h}= & $\pdissolution{a}{b}{h}$ \\ |
| 405 |
\verb=\pdissolutionT= & $\pdissolutionT$ \\ |
| 406 |
\verb=\pdissolutionP{a}{b}{h}= & $\pdissolutionP{a}{b}{h}$ \\ |
| 407 |
\verb=\pdissolutionPT= & $\pdissolutionPT$ \\ |
| 408 |
\verb=\division{a}{b}{c}{h}{\alpha}{\alpha_{1}}{\alpha_{2}}= & $\division{a}{b}{c}{h}{\alpha}{\alpha_{1}}{\alpha_{2}}$ \\ |
| 409 |
\verb=\divisionT= & $\divisionT$ \\ |
| 410 |
\verb=\divisionP{a}{b}{c}{h}{\alpha}{\alpha_{1}}{\alpha_{2}}= & $\divisionP{a}{b}{c}{h}{\alpha}{\alpha_{1}}{\alpha_{2}}$ \\ |
| 411 |
\verb=\divisionPT= & $\divisionPT$ \\ |
| 412 |
\verb=\pdivision{a}{b}{c}{h}= & $\pdivision{a}{b}{c}{h}$ \\ |
| 413 |
\verb=\pdivisionT= & $\pdivisionT$ \\ |
| 414 |
\verb=\pdivisionP{a}{b}{c}{h}= & $\pdivisionP{a}{b}{c}{h}$ \\ |
| 415 |
\verb=\pdivisionPT= & $\pdivisionPT$ \\ |
| 416 |
\verb=\separation{a}{h}{\alpha}{\alpha_{1}}{\alpha_{2}}= & $\separation{a}{h}{\alpha}{\alpha_{1}}{\alpha_{2}}$ \\ |
| 417 |
\verb=\separationT= & $\separationT$ \\ |
| 418 |
\verb=\separationP{a}{h}{\alpha}{\alpha_{1}}{\alpha_{2}}= & $\separationP{a}{h}{\alpha}{\alpha_{1}}{\alpha_{2}}$ \\ |
| 419 |
\verb=\separationPT= & $\separationPT$ \\ |
| 420 |
\verb=\pseparation{a}{h}= & $\pseparation{a}{h}$ \\ |
| 421 |
\verb=\pseparationT= & $\pseparationT$ \\ |
| 422 |
\verb=\pseparationP{a}{h}= & $\pseparationP{a}{h}$ \\ |
| 423 |
\verb=\pseparationPT= & $\pseparationPT$ \\ |
| 424 |
\verb=\creation{a}{b}{c}{h}{h_{1}}{\alpha}{\alpha_{1}}{\alpha_{2}}= & $\creation{a}{b}{c}{h}{h_{1}}{\alpha}{\alpha_{1}}{\alpha_{2}}$ \\ |
| 425 |
\verb=\creationT= & $\creationT$ \\ |
| 426 |
\verb=\creationP{a}{b}{c}{h}{h_{1}}{\alpha}{\alpha_{1}}{\alpha_{2}}= & $\creationP{a}{b}{c}{h}{h_{1}}{\alpha}{\alpha_{1}}{\alpha_{2}}$ \\ |
| 427 |
\verb=\creationPT= & $\creationPT$ \\ |
| 428 |
\verb=\pcreation{a}{b}{c}{h}{h_{1}}= & $\pcreation{a}{b}{c}{h}{h_{1}}$ \\ |
| 429 |
\verb=\pcreationT= & $\pcreationT$ \\ |
| 430 |
\verb=\pcreationP{a}{b}{c}{h}{h_{1}}= & $\pcreationP{a}{b}{c}{h}{h_{1}}$ \\ |
| 431 |
\verb=\pcreationPT= & $\pcreationPT$ \\ |
| 432 |
\verb=\spiking{E}{a^{n}}{a}{d}= & $\spiking{E}{a^{n}}{a}{d}$ \\ |
| 433 |
\verb=\spikingT= & $\spikingT$ \\ |
| 434 |
\verb=\forgettingT= & $\forgettingT$ \\ |
| 435 |
\verb=\spikingP{E}{a^{n}}{a}{d}= & $\spikingP{E}{a^{n}}{a}{d}$ \\ |
| 436 |
\verb=\spikingPT= & $\spikingPT$ \\ |
| 437 |
\verb=\forgettingPT= & $\forgettingPT$ \\ |
| 438 |
\verb=\krewriting{x}{y}{g}= & $\krewriting{x}{y}{g}$ \\ |
| 439 |
\verb=\krewritingT= & $\krewritingT$ \\ |
| 440 |
\verb=\krewritingP{x}{y}{g}= & $\krewritingP{x}{y}{g}$ \\ |
| 441 |
\verb=\krewritingPT= & $\krewritingPT$ \\ |
| 442 |
\verb=\linkcreation{x}{y}{t_{l_{i}}}{t_{l_{j}}}{g}= & $\linkcreation{x}{y}{t_{l_{i}}}{t_{l_{j}}}{g}$ \\ |
| 443 |
\verb=\linkcreationT= & $\linkcreationT$ \\ |
| 444 |
\verb=\linkcreationP{x}{y}{t_{l_{i}}}{t_{l_{j}}}{g}= & $\linkcreationP{x}{y}{t_{l_{i}}}{t_{l_{j}}}{g}$ \\ |
| 445 |
\verb=\linkcreationPT= & $\linkcreationPT$ \\ |
| 446 |
\verb=\linkdestruction{x}{y}{t_{l_{i}}}{t_{l_{j}}}{g}= & $\linkdestruction{x}{y}{t_{l_{i}}}{t_{l_{j}}}{g}$ \\ |
| 447 |
\verb=\linkdestructionT= & $\linkdestructionT$ \\ |
| 448 |
\verb=\linkdestructionP{x}{y}{t_{l_{i}}}{t_{l_{j}}}{g}= & $\linkdestructionP{x}{y}{t_{l_{i}}}{t_{l_{j}}}{g}$ \\ |
| 449 |
\verb=\linkdestructionPT= & $\linkdestructionPT$ \\ |
| 450 |
\verb=\tissueevolcomm{u}{v}{v'}{u'}{i}{j}= & $\tissueevolcomm{u}{v}{v'}{u'}{i}{j}$ \\ |
| 451 |
\verb=\tissueevolcommT= & $\tissueevolcommT$ \\ |
| 452 |
\verb=\tissueevolsympT= & $\tissueevolsympT$ \\ |
| 453 |
\verb=\tissueevolcommP{u}{v}{v'}{u'}{i}{j}= & $\tissueevolcommP{u}{v}{v'}{u'}{i}{j}$ \\ |
| 454 |
\verb=\tissueevolcommPT= & $\tissueevolcommPT$ \\ |
| 455 |
\verb=\tissueevolsympPT= & $\tissueevolsympPT$ \\ |
| 456 |
\verb=\evolcomm{u}{v}{v'}{u'}{i}{j}= & $\evolcomm{u}{v}{v'}{u'}{i}{j}$ \\ |
| 457 |
\verb=\evolcommT= & $\evolcommT$ \\ |
| 458 |
\verb=\evolsyminT= & $\evolsyminT$ \\ |
| 459 |
\verb=\evolsymoutT= & $\evolsymoutT$ \\ |
| 460 |
\verb=\evolcommP{u}{v}{v'}{u'}{i}{j}= & $\evolcommP{u}{v}{v'}{u'}{i}{j}$ \\ |
| 461 |
\verb=\evolcommPT= & $\evolcommPT$ \\ |
| 462 |
\verb=\evolsyminPT= & $\evolsyminPT$ \\ |
| 463 |
\verb=\evolsymoutPT= & $\evolsymoutPT$ \\ |
| 464 |
\end{longtable} |
| 465 |
} |
| 466 |
|
| 467 |
As you can see, the names follow a pattern: |
| 468 |
|
| 469 |
\begin{itemize} |
| 470 |
\item Their name is descriptive in terms of the rule it represents. |
| 471 |
\item If the rule starts with a \texttt{p}, it means that it is a |
| 472 |
polarizationless rule. |
| 473 |
\item If the rule ends with (or its second to last letter is) a |
| 474 |
\texttt{P}, it means it will write the rule in P-Lingua format. |
| 475 |
\item If the rule ends with a \texttt{T}, it means it is a rule |
| 476 |
template; that is, the typical rule used to describe its behaviour. |
| 477 |
\end{itemize} |
| 478 |
|
| 479 |
If you have an idea to make the notation simpler, please let me know. |
| 480 |
|
| 481 |
\section{Future work} |
| 482 |
\label{sec:future-work} |
| 483 |
|
| 484 |
A TODO list for the future development of the package. Please do not |
| 485 |
hesitate to contact me if you think that something should be included |
| 486 |
in this list, or if there is any bug or concept that should be |
| 487 |
included as soon as possible. Please, contact me at |
| 488 |
\href{mailto:[email protected]}{[email protected]} |
| 489 |
|
| 490 |
\begin{itemize} |
| 491 |
\item Add new variants of P systems, as well as some new templates for |
| 492 |
other rules. |
| 493 |
\item Clean the code and create new command for analysing the |
| 494 |
\texttt{multiple} case automatically. |
| 495 |
\item Add the possibility of define rules with more than one level of |
| 496 |
deepness. |
| 497 |
\item Add a automatic parsing of a membrane structure, so a |
| 498 |
well-spaced structure can appear in a paper. It would be interesting |
| 499 |
to also let it export a string in the P-Lingua format. |
| 500 |
\item A long-term objective is to export a .pdf with the picture of a |
| 501 |
P system with its contents. Creating an image for your paper could |
| 502 |
be as simple as defining it as you usually do, it would be cool, right? |
| 503 |
\end{itemize} |
| 504 |
|
| 505 |
I hope you find the package interesting and useful for your |
| 506 |
purposes. And, as I said above, please do not hesitate to contact me |
| 507 |
if you have any questions of or suggestions for it. |
| 508 |
|
| 509 |
\end{document} |