You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: notes/abs_aug_dec.tex
-17Lines changed: 0 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -15,20 +15,3 @@ \subsection{From augmented posets to decorated posets and back}
15
15
&e\dashv e'\iff e\redl{-}_s e'.
16
16
\end{align*}
17
17
\end{definition}
18
-
19
-
In the following chain of abstractions:
20
-
\[
21
-
\begin{tikzpicture} %[scale=0.8]
22
-
% \node (s) at (0,0) {\((E,\leq,\labl)\)};
23
-
\node (as) at (3,0) {\((E,\cover,\prec,\dashv,\labl)\)};
24
-
\node (ds) at (6,0) {\((E,\redl{+},\redl{-},\labl)\)};
25
-
\node (trace) at (9,0) {\(\theta:t_1;t_2;\cdots t_n\)};
26
-
% \draw [->] (s) to [bend left] (as);
27
-
% \draw [->] (as) to [bend left] (s);
28
-
\draw [->] (ds) to [bend left] (as);
29
-
\draw [->] (as) to [bend left] (ds);
30
-
\draw [->] (ds) to [bend left] (trace);
31
-
\draw [->] (trace) to [bend left] (ds);
32
-
\end{tikzpicture}
33
-
\]
34
-
the definition above covers the abstractions from causal traces to decorated posets and from decorated posets to augmented posets. The abstractio of~\autoref{def:abstraction} is the composition of the two. The concretisation function from an augmented poset to a decorated one returns all decorations of~\autoref{def:decorate_poset} that are valid.
Note that from~\autoref{def:linears}, for any events $e_i$,$e$ in an augmented poset, if $e_i\redl{+} e$ or $e\redl{-}e_i$ then $e_i\sqsubseteq e$.
37
37
38
38
\begin{definition}[Id graphs]
39
-
We define an \emph{id graph} $G_I = (N,E)$ as a simple graphs $G = (V,E)$ where each node has associated an id unique in the graph: $n=(i,v)$ , where $v\in V$ and $i\in\nat$.
39
+
We define an \emph{id graph} as a simple graph $G = (V,E)$ equipped with an identity function on nodes $\idf:V\to\nat$ such that $\forall n_1, n_2\in V$, if $\idf(n_1)=\idf(n_2)$ then $n_1 = n_2$.
40
+
%where each node has associated an id unique in the graph: $n=(i,v)$ , where $v\in V$ and $i\in\nat$.
41
+
42
+
Morphisms on id graphs preserves the identity function on nodes.
40
43
\end{definition}
41
44
42
45
Id graphs will help us keep track of the decorations.
Copy file name to clipboardExpand all lines: notes/app_site_graphs.tex
+4-9Lines changed: 4 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -36,15 +36,10 @@ \subsection{Rules in Kappa: the prefix convention}
36
36
we obtain the domain of definition \verb|A(x?), C(y?), B(y?)|.
37
37
38
38
39
-
\begin{definition}[Numbered site graphs]
40
-
Let us equip a site graph $G$ with an identity function $\idf:\nodes_G\to\nat$ such that $\forall n_1, n_2\in\nodes_G$, if $\idf(n_1)=\idf(n_2)$ then $n_1 = n_2$.
41
-
42
-
Morphisms on numbered site graphs are the morphisms on site graphs that additionally preserves the identity function on nodes.
43
-
\end{definition}
44
-
45
-
\begin{mdframed}[backgroundcolor=blue!20]
46
-
make this consistent with id graphs
47
-
\end{mdframed}
39
+
%% \begin{definition}[Numbered site graphs]
40
+
%% Let us equip a site graph $G$ with an identity function $\idf:\nodes_G\to \nat$ such that $\forall n_1, n_2\in\nodes_G$, if $\idf(n_1)=\idf(n_2)$ then $n_1 = n_2$.
41
+
%% Morphisms on numbered site graphs are the morphisms on site graphs that additionally preserves the identity function on nodes.
Copy file name to clipboardExpand all lines: notes/grammar.tex
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -54,8 +54,7 @@ \subsection{Interpretation}
54
54
We interpret the logic on the domain of events and posets.
55
55
56
56
%an interpretation is the link between syntax and semantics. The functions and predicates are interpreted as their corresponding operations on events and posets.
57
-
58
-
The predicates $s_1 = s_2$ and $s_1\subseteq s_2$ are interpreted using isomorphisms and embedings in the category of posets defined below (\autoref{sec:posets}).
57
+
%The predicates $s_1 = s_2$ and $s_1\subseteq s_2$ are interpreted using isomorphisms and embedings in the category of posets defined below (\autoref{sec:posets}).
59
58
60
59
%The interpretation of $s_1\cap s_2$ is the set $s_1\otimes s_2$, introduced in \autoref{def:posets_otimes}.
61
60
The predicate $\dashv$ can be seen as a predicate that relates events in different posets. Our interpretation in the restrainted case of graph rewriting systems (and in Kappa) will be that of inhibition (\autoref{def:ref_neg_infl}), as we will see in the next sections. The remaining of function and predicates used in our logic have a standard interpretation.
Two transitions $t_1$ and $t_2$ of $\theta$ are low res dependent in $\theta$, if $t_1\prec_{\theta} t_2$ can be derived by similar rules to the ones above. In a similar manner, we define when a transition $t_1$ inhibits a transition $t_2$ of $\theta$, denoted $t_1\dashv_{\theta} t_2$.
%Two transitions $t_1$ and $t_2$ of $\theta$ are low res dependent in $\theta$, if $t_1\prec_{\theta} t_2$ can be derived by similar rules to the ones above.
15
+
In a similar manner, we define when a transition $t_1$ inhibits a transition $t_2$ of $\theta$, denoted $t_1\dashv_{\theta} t_2$.
19
16
Define $\leq$ the transitive and reflexive closure of low res dependence. We say that $\theta$ is a \emph{causal trace} if it is directed w.r.t. $\leq$.
20
17
\end{definition}
21
18
@@ -57,23 +54,23 @@ \subsection{From transition systems to posets}
57
54
\label{def:decorate_poset}
58
55
\begin{enumerate}
59
56
\item[] $~$
60
-
\item Given a set of events $E$ and a labeling function $\labl$ on events, define a function $\decor:E\times E \to E\times E\timesG$ that associates to a pair of events $(e,e')$ the following set
57
+
\item Given a set of events $E$ and a labeling function $\labl$ on events, define a function $\decor:E\times E \to E\times E\times\spa$ that associates to a pair of events $(e,e')$ the following set
61
58
\begin{align*}
62
-
\decor_{+}(e,e') = \{(e,e',O) : O\text{ is a graph such that }\labl(e)\redl{+}_O\labl(e')\}\\
63
-
\decor_{-}(e,e') = \{(e,e',O) : O\text{ is a graph such that }\labl(e)\redl{-}_O\labl(e')\}
59
+
\decor_{+}(e,e') = \{(e,e',\spa) : \spa\text{ is a span such that }\labl(e)\redl{+}_{\spa}\labl(e')\}\\
60
+
\decor_{-}(e,e') = \{(e,e',\spa) : \spa\text{ is a graph such that }\labl(e)\redl{-}_{\spa}\labl(e')\}
64
61
\end{align*}
65
62
66
-
\item Let $s = (E,\cover,\prec,\dashv,\labl)$ be an augmented poset. A \emph{decorated} poset of $s$, denoted $s^{\star}$, is defined as follows
63
+
\item Let $s = (E,\prec,\dashv,\labl)$ be an augmented poset. A \emph{decorated} poset of $s$, denoted $s^{\star}$, is defined as follows
67
64
\begin{align*}
68
65
s^{\star} = (E,\redl{+},\redl{-},\labl), \text{ where }
69
-
&e\redl{+}_O e' \iff (e,e',O)\in\decor_+(e,e')\text{ and }e\prec e'\\
70
-
&e\redl{-}_O e' \iff (e,e',O)\in\decor_-(e,e')\text{ and }e\dashv e'\\
66
+
&e\redl{+}_{\spa} e' \iff (e,e',{\spa})\in\decor_+(e,e')\text{ and }e\prec e'\\
67
+
&e\redl{-}_{\spa} e' \iff (e,e',{\spa})\in\decor_-(e,e')\text{ and }e\dashv e'\\
71
68
\end{align*}
72
69
We denote $\decor(s)$ the set of all decorated posets of $s$.
73
70
\end{enumerate}
74
71
\end{definition}
75
72
76
-
Note that the notation $e\redl{+}_s e'$ is an overload of the notation $\labl(e)\redl{+}_s\labl(e')$. The first is defined on events using the abstraction function. The second, defined on rules, can be inferred from the rules itself.
73
+
Note that the notation $e\redl{+}_{\spa} e'$ is an overload of the notation $\labl(e)\redl{+}_{\spa}\labl(e')$. The first is defined on events using the abstraction function. The second, defined on rules, can be inferred from the rules itself.
77
74
78
75
\begin{definition}
79
76
Let $e_1$,$e_2$ be two events in a decorated poset and let $s:L_1\remb O\lemb L_2$ be a span. We say that $e_1$ and $e_2$ are \emph{pairs for positive influence w.r.t. $s$} if for all events $e_3$ such that $e_3\redl{+}_{s_1} e_1$ and $s_1:R_3\remb O_1\lemb L_1$ for which the diagram commutes
@@ -260,6 +257,22 @@ \subsection{From transition systems to posets}
260
257
\end{lemma}
261
258
The proof is in~\autoref{sec:valid_decor}.
262
259
260
+
In the following chain of abstractions:
261
+
\[
262
+
\begin{tikzpicture} %[scale=0.8]
263
+
% \node (s) at (0,0) {\((E,\leq,\labl)\)};
264
+
\node (as) at (3,0) {\((E,\prec,\dashv,\labl)\)};
265
+
\node (ds) at (6,0) {\((E,\redl{+},\redl{-},\labl)\)};
266
+
\node (trace) at (9,0) {\(\theta:t_1;t_2;\cdots t_n\)};
267
+
% \draw [->] (s) to [bend left] (as);
268
+
% \draw [->] (as) to [bend left] (s);
269
+
\draw [->] (ds) to [bend left] (as);
270
+
\draw [->] (as) to [bend left] (ds);
271
+
\draw [->] (ds) to [bend left] (trace);
272
+
\draw [->] (trace) to [bend left] (ds);
273
+
\end{tikzpicture}
274
+
\]
275
+
the definition above covers the abstractions from causal traces to decorated posets. The abstraction of~\autoref{def:abstraction} goes from causal traces to augmented posets. The concretisation function from an augmented poset to a decorated one returns all decorations of~\autoref{def:decorate_poset} that are valid.
263
276
264
277
%% \begin{example} - for the cover relation
265
278
%% Let us consider the following rules:
@@ -369,7 +382,7 @@ \subsection{From posets to traces}
where $\mathsf{decorate}$ returns a decoration of $s$ as in~\autoref{def:decorate_poset}, $\mathsf{decoration\_of\_trace}$ is an abstraction of a trace to its decorated poset, defined in the~\autoref{sec:abstract_decoration}, $\mathsf{valid}$ is from~\autoref{def:constraints_poset} and lastly, $\mathsf{refine}$ is a function that extends a trace and a refinement to the new event $e$. We provide more details for $\mathsf{refine}$ in the appendix. Also in the appendix, we show that at each call of $\mathsf{concretise}$, the concretisations obtained so far are correct w.r.t.~\autoref{def:concret}.
385
+
where $\mathsf{decorate}$ returns a decoration of $s$ as in~\autoref{def:decorate_poset}, $\mathsf{decoration\_of\_trace}$ is an abstraction of a trace to its decorated poset, defined in the~\autoref{prop:constraints_poset}, $\mathsf{valid}$ is from~\autoref{def:constraints_poset} and lastly, $\mathsf{refine}$ is a function that extends a trace and a refinement to the new event $e$. We provide more details for $\mathsf{refine}$ in the appendix. Also in the appendix, we show that at each call of $\mathsf{concretise}$, the concretisations obtained so far are correct w.r.t.~\autoref{def:concret}.
373
386
374
387
\subsection{Interpreting inhibition on posets}
375
388
@@ -393,5 +406,5 @@ \subsection{Interpreting inhibition on posets}
393
406
\draw [->] (n2) -- (n);
394
407
\end{tikzpicture}
395
408
\]
396
-
where $\mathtt{Ref}_1(e_1) = M_1\Rightarrow N_1$, $\mathtt{Ref}_2(e_2) = M_2\Rightarrow N_2$, and $\labl(e_1)\redl{-}_s\labl(e_2)$, for some cospan $s:L_1\remb O\lemb L_2$
409
+
where $\mathtt{Ref}_1(e_1) = M_1\Rightarrow N_1$, $\mathtt{Ref}_2(e_2) = M_2\Rightarrow N_2$, and $\labl(e_1)\redl{-}_{\spa}\labl(e_2)$, for some cospan $\spa:L_1\remb O\lemb L_2$.
Copy file name to clipboardExpand all lines: notes/site_graphs.tex
+29-12Lines changed: 29 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,8 @@ \subsection{The category of site-graphs}
89
89
For the two graphs \verb|A(x!1), B(x!1)| and \verb|A(x)| there is no pushout.
90
90
\end{example}
91
91
92
+
However this is not an issue for the dpo rewriting with kappa rules.
93
+
92
94
\begin{lemma}
93
95
Let $L\overset{h}{\remb} K \overset{g}{\lemb} R$ be a rule and let $M$ and $m:L\emb M$ be a site graph and matching, respectively. The DPO rewriting can be applied whenever the gluing conditions hold.
94
96
\end{lemma}
@@ -110,8 +112,25 @@ \subsection{The category of site-graphs}
110
112
\draw [->] (r) -- (n);
111
113
\end{tikzpicture}
112
114
\]
113
-
Let us first construct $D$ and show that it is a pushout complement. Secondly, we construct $N$ and show that it is the pushout.
115
+
We first define a pushout in a "constructive" manner. Then we construct the graph $D$ and show that show that it is a pushout complement. Lastly, we construct $N$ and show that it is the pushout.
116
+
114
117
\begin{enumerate}
118
+
\item Let $R\overset{r}{\remb}K\overset{k}{\lemb} D$ be a span and let $N$ be the following graph:
119
+
\begin{itemize}
120
+
\item let $\equiv$ be the smallest equivalence relation with $(k(u),r(u))\in\equiv$, for all $u\in\nodes_K$.
We show that if $N$ is a site graph, i.e. there are no conflicts in $\links_N$ and $p_{k,N}$, then it is the pushout. Let us suppose that there exists $N'$ and two morphisms $g':D\emb N'$ and $n':R\to N'$ such that $\forall u\in\nodes_K$, $g'(k(u)) = n'(r(u))$. Define the morphism $h:N\to N'$ as follows:
@@ -122,34 +141,32 @@ \subsection{The category of site-graphs}
122
141
It is a site graph, because it is a subgraph of $M$, and therefore there is no conflict on the edges and property sets.
123
142
124
143
The morphism $f:D\to M$ is defined as the inclusion morphism.
125
-
Let us now show that $D\overset{f}{\leftarrow}M\overset{g}{\rightarrow} L$ is the pushout of the span $L\overset{l}{\rightarrow}K\overset{k}{\leftarrow} D$.
126
-
\begin{mdframed}[backgroundcolor=blue!20]
127
-
to do
128
-
\end{mdframed}
144
+
Let us now show that $D\overset{f}{\leftarrow}M\overset{g}{\rightarrow} L$ is the pushout of the span $L\overset{l}{\rightarrow}K\overset{k}{\leftarrow} D$. We show that $M$ can be obtained as in the first item of the proof from the graphs $D$ and $L$.
145
+
146
+
By manipulating the definition of the set $\nodes_D$ we obtain $\nodes_D\setminus m(l(\nodes_K))\cup m(\nodes_L) = \nodes_M$ which is equivalent to first merging sets $\nodes_D$ and $m(\nodes_L)$ and then define an equivalence class on nodes such that $(m(l(u)),k(u))\in\equiv$, for all $u\in\nodes_K$. Therefore $\nodes_M = (\nodes_D\cup m(\nodes_L))|_{\equiv}$. We proceed similarly for the links and the property sets.
129
147
130
-
\item The pushout of the span $R\overset{r}{\rightarrow}K\overset{k}{\leftarrow} D$ is constructed as follow:
148
+
\item The pushout of the span $R\overset{r}{\rightarrow}K\overset{k}{\leftarrow} D$is constructed as follow:
131
149
\begin{itemize}
132
150
\item let $\equiv$ be the smallest equivalence relation with $(k(u),r(u))\in\equiv$, for all $u\in\nodes_K$.
First let us show that $N$ is a site graph. For that we have to show that $\links_N$ is conflict free. Suppose that there exists $((a,i),(b,j)\in\links_D$ and $((a,i),(c,j)\in\links_R$ and such that $(a,i)\in\nodes_K$. We have then that both $((a,i),(b,j)$ and $((a,i),(c,j)$ are edges in $N$, which are conflicting. However, from the definition of rule (\autoref{def:rule_site}), there exists $x$ such that $((a,i),x)\in\links_K$ and therefore either $k$ or $r$ is not a morphism.
156
+
First let us show that $N$ is a site graph. For that we have to show that $\links_N$ is conflict free. Suppose that there exists $(a,i),(b,j)\in\links_D$ and $(a,i),(c,j)\in\links_R$ and such that $(a,i)\in\nodes_K$. We have then that both $(a,i),(b,j)$ and $(a,i),(c,j)$ are edges in $N$, which are conflicting. However, from the definition of rule (\autoref{def:rule_site}), there exists $x$ such that $(a,i),x)\in\links_K$ and therefore either $k$ or $r$ is not a morphism.
139
157
%
140
158
Suppose that there is a conflict in $N$ due to the property sets. For example, let $(a,i)\in p{k,R}$, $(a,i)\in p{k',D}$ and $k\neq k'$. We can reach a contradiction by deriving that $(a,i)\in p{k'',L}$ from \autoref{def:rule_site}.
141
159
142
-
Let us now show that $N$ is the pushout.
143
-
\begin{mdframed}[backgroundcolor=blue!20]
144
-
to do
145
-
\end{mdframed}
160
+
We have that $N$ is the pushout from the first item of our proof.
146
161
\end{enumerate}
147
162
\end{proof}
148
163
149
164
%\input{influence_kappa.tex}
165
+
Results form~\autoref{sec:ts} hold on site graphs as well with one inconvience. As the pushout of two site graphs is not always a site graphs we have to ensure that whenever we compose transition as in~\autoref{def:concret} we do obtain site graphs. The problem occurs whenever we have two events $e_1$ and $e_2$ for which there is a decoration $R_1\remb O\lemb L_2$ but there is a conflict in the pushout.
166
+
The following lemma ensures that for any two such events, there is an intermediate event, occuring between $e_1$ and $e_2$, that "resolves" the conflict.
150
167
151
168
\begin{lemma}
152
-
Let $\theta$ be a trace and $s=\{E,\tleq,\tprec,\labl\}$ be a story such that $\alpha(\theta) = s$. For any events $e_1,e_2\in E$ if $e_1\prece_2$ and $e_1\not< e_2$ then there exists $e_3\in E$ such that $e_3\tprec e_2$ and either $e_1< e_3$ or $e_3\dashve_1$.
169
+
Let $\theta$ be a causal trace and $t_1:M_1\overset{m_1,p_1}{\Rightarrow} N_1$, $t_2M_2\overset{m_2,p_2}{\Rightarrow} N_2$ two transitions such that $t_1\prect_2$ but $t_1< t_2$. Then there exists transition $t_3$ such that $t_3\leq t_2$ and either $t_1\prec t_2$ or $t_3\dashvt_1$.
153
170
\end{lemma}
154
171
\begin{proof}
155
172
From~\autoref{def:prec} there exists $t_1:M_1\overset{m_1,p_1}{\Rightarrow} N_1$ and $t_2:M_2\overset{m_2,p_2}{\Rightarrow} N_2$ two transitions such that $\alpha(t_1)=e_1$, $\alpha(t_2)=e_2$ and $\theta:N_1\Rightarrow^{\star}M_2$ a trace between them. Let us first make some remarks.
0 commit comments