diff -r c862d556fb18 -r 045a07ac35a7 src/HOL/HoareParallel/OG_Examples.thy --- a/src/HOL/HoareParallel/OG_Examples.thy Wed Mar 02 10:33:10 2005 +0100 +++ b/src/HOL/HoareParallel/OG_Examples.thy Wed Mar 02 12:06:15 2005 +0100 @@ -484,17 +484,19 @@ subsubsection {* Increment a Variable in Parallel *} -text {* First some lemmas about summation properties. Summation is -defined in PreList. *} +declare setsum_op_ivl_Suc [simp] +text {* First some lemmas about summation properties. *} +(* lemma Example2_lemma1: "!!b. j (\i::nat b j = 0 " apply(induct n) apply simp_all apply(force simp add: less_Suc_eq) done - +*) lemma Example2_lemma2_aux: "!!b. j - (\iiii=0..i=0..i=0.. s \ (\i::nati s \ (\i::nat=0..i=0..j \ Suc (\i::nat< n. b i)=(\i< n. (b (j := Suc 0)) i)" + "!!b. \j \ Suc (\i::nat=0..i=0..iii=0..i=0..j") @@ -526,7 +528,7 @@ apply simp_all done -lemma Example2_lemma3: "!!b. \i< n. b i = (Suc 0) \ (\ii< n. b i = (Suc 0) \ (\i=0.. - \- .{\x=0 \ (\i< n. \c i)=0}. + \- .{\x=0 \ (\i=0..c i)=0}. COBEGIN SCHEME [0\ix=(\i< n. \c i) \ \c i=0}. + .{\x=(\i=0..c i) \ \c i=0}. \ \x:=\x+(Suc 0),, \c:=\c (i:=(Suc 0)) \ - .{\x=(\i< n. \c i) \ \c i=(Suc 0)}. + .{\x=(\i=0..c i) \ \c i=(Suc 0)}. COEND .{\x=n}." apply oghoare