chiark / gitweb /
traversal: wip prove Recreate Base Beginning OK, currently need to prove Tip Correct...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Jul 2012 22:26:16 +0000 (23:26 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Jul 2012 22:26:16 +0000 (23:26 +0100)
trav-alg.tex
trav-proofs.tex

index abe24410def1fdeb757404dc30f0d9cbe7ce4f1c..8a9a68ad1e63e19d05bf44ccb19912935373f84d 100644 (file)
@@ -29,6 +29,11 @@ such that:
 \statement{Correct Base}{
   \baseof{\tipcy} = \tipcn
 }
 \statement{Correct Base}{
   \baseof{\tipcy} = \tipcn
 }
+\statement{Base Correct Contents}{
+  \tipcn \haspatch \pd
+   \equiv
+  \pc \hasdep \pd
+}
 \statement{Tip Exceeds Inputs}{
   \tipcy \ge \pendsof{\allsrcs}{\pcy}
 }
 \statement{Tip Exceeds Inputs}{
   \tipcy \ge \pendsof{\allsrcs}{\pcy}
 }
@@ -97,7 +102,7 @@ Choose a $\hasdep$-maximal direct dependency $\pd$ of $\pc$.
 
 \item
 
 
 \item
 
-Use $\alg{Create Base}$ with $L$ = $\pdy,\; \pq = \pc$ to generate $C$
+Use $\alg{Create Base}$ with $L$ = $\tipdy,\; \pq = \pc$ to generate $C$
 and set $W \iassign C$.  (Recreate Base Beginning.)
 
 \item
 and set $W \iassign C$.  (Recreate Base Beginning.)
 
 \item
index 981483e1c92c77f7c9d94811efe23b87e4e3ff58..3c2a1754cd8991bcc8cd1c4877812297cc9cdbd4 100644 (file)
@@ -5,6 +5,19 @@ that the commit generation preconditions are met.
 
 WIP WHAT ABOUT PROVING ALL THE TRAVERSAL RESULTS
 
 
 WIP WHAT ABOUT PROVING ALL THE TRAVERSAL RESULTS
 
+\subsection{Traversal Lemmas}
+
+Firstly, some lemmas.
+
+\statement{Tip Correct Contents}{
+  \tipcy \haspatch \pd
+    \equiv
+  \pc = \pd \lor \pc \hasdep \pd
+}
+\proof{
+   WIP
+}
+
 \subsection{Base Dependency Merge, Base Sibling Merge}
 
 We do not prove that the preconditions are met.  Instead, we check
 \subsection{Base Dependency Merge, Base Sibling Merge}
 
 We do not prove that the preconditions are met.  Instead, we check
@@ -17,8 +30,9 @@ WIP WHAT ABOUT PROVING ALL THE TRAVERSAL RESULTS
 
 \subsection{Recreate Base Beginning}
 
 
 \subsection{Recreate Base Beginning}
 
-WHAT IF $\pendsof{L}{\pqy} \neq \{\}$ ?
-FIX BY CHANGE PRECOND OF CREATE BASE
+\subsubsection{Create Acyclic}
+
+$L = \tipdy$ so
 
 \subsection{Tip Base Merge}
 
 
 \subsection{Tip Base Merge}