X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=article.tex;h=b7df641e68703266c1729e1c3abf32680e35f805;hb=c132ec1004fa71f8ea8467b659d3f5996089f1dc;hp=b778663dd0c814ac84c3edffa6c57a71969f935c;hpb=1aa4dce9dace603365ff1b302c938b6bfe9bbc1e;p=topbloke-formulae.git diff --git a/article.tex b/article.tex index b778663..b7df641 100644 --- a/article.tex +++ b/article.tex @@ -429,21 +429,27 @@ Used for removing a branch dependency. \subsection{Conditions} +\[ \eqn{ Into Base }{ + L \in \pn +}\] \[ \eqn{ Unique Tip }{ \pendsof{L}{\pry} = \{ R^+ \} }\] \[ \eqn{ Currently Included }{ L \haspatch \pry }\] -\[ \eqn{ Not Self }{ - L \not\in \{ R^+ \} -}\] -\subsection{No Replay} +\subsection{Ordering of ${L, R^+, R^-}$:} By Unique Tip, $R^+ \le L$. By definition of $\base$, $R^- \le R^+$ -so $R^- \le L$. So $R^+ \le C$ and $R^- \le C$ and No Replay for -Merge Results applies. $\qed$ +so $R^- \le L$. So $R^+ \le C$ and $R^- \le C$. + +(Note that the merge base $R^+ \not\le R^-$, i.e. the merge base is +later than one of the branches to be merged.) + +\subsection{No Replay} + +No Replay for Merge Results applies. $\qed$ \subsection{Desired Contents} @@ -481,11 +487,38 @@ $\qed$ \subsection{Unique Base} -Need to consider only $C \in \py$, ie $L \in \py$. +Into Base means that $C \in \pn$, so Unique Base is not +applicable. $\qed$ + +\subsection{Tip Contents} + +Again, not applicable. $\qed$ + +\subsection{Base Acyclic} + +By Base Acyclic for $L$, $D \isin L \implies D \not\in \py$. +And by Into Base $C \not\in \py$. +Now from Desired Contents, above, $D \isin C +\implies D \isin L \lor D = C$, which thus +$\implies D \not\in \py$. $\qed$. + +\subsection{Coherence and Patch Inclusion} + +Need to consider some $D \in \py$. By Into Base, $D \neq C$. + +\subsubsection{For $\p = \pr$:} +By Desired Contents, above, $D \not\isin C$. +So $C \nothaspatch \pr$. -xxx tbd +\subsubsection{For $\p \neq \pr$:} +By Desired Contents, $D \isin C \equiv D \isin L$ +(since $D \in \py$ so $D \not\in \pry$). -xxx need to finish anticommit +If $L \nothaspatch \p$, $D \not\isin L$ so $D \not\isin C$. +So $L \nothaspatch \p \implies C \nothaspatch \p$. + +Whereas if $L \haspatch \p$, $D \isin L \equiv D \le L$. +so $L \haspatch \p \implies C \haspatch \p$. \section{Merge} @@ -544,7 +577,7 @@ Merge Ends condition applies. Good. \subsection{No Replay} -See No Replay for Merge Results. +No Replay for Merge Results applies. $\qed$ \subsection{Unique Base} @@ -618,7 +651,8 @@ So indeed $L \haspatch \p \land R \haspatch \p \implies C \haspatch \p$. \subsubsection{For (wlog) $X \not\haspatch \p, Y \haspatch \p$:} -$C \haspatch \p \equiv M \nothaspatch \p$. +$M \haspatch \p \implies C \nothaspatch \p$. +$M \nothaspatch \p \implies C \haspatch \p$. \proofstarts @@ -711,6 +745,35 @@ $\baseof{C} = R$ so $D \isin C \equiv D \isin \baseof{C}$. OK. $\qed$ -xxx up to here, need to prove other things about merges +\subsection{Foreign Inclusion} + +Consider some $D$ s.t. $\patchof{D} = \bot$. +By Foreign Inclusion of $L, M, R$: +$D \isin L \equiv D \le L$; +$D \isin M \equiv D \le M$; +$D \isin R \equiv D \le R$. + +\subsubsection{For $D = C$:} + +$D \isin C$ and $D \le C$. OK. + +\subsubsection{For $D \neq C, D \isin M$:} + +Thus $D \le M$ so $D \le L$ and $D \le R$ so $D \isin L$ and $D \isin +R$. So by $\merge$, $D \isin C$. And $D \le C$. OK. + +\subsubsection{For $D \neq C, D \not\isin M, D \isin X$:} + +By $\merge$, $D \isin C$. +And $D \isin X$ means $D \le X$ so $D \le C$. +OK. + +\subsubsection{For $D \neq C, D \not\isin M, D \not\isin L, D \not\isin R$:} + +By $\merge$, $D \not\isin C$. +And $D \not\le L, D \not\le R$ so $D \not\le C$. +OK + +$\qed$ \end{document}