--> I) Base cases open INV red inv1(init,i,j) . close --> II) Inductive cases --> 1 want(s,k) -- 1.1 c-want(s,k) = true open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-want(s,k) = true . eq pc(s,k) = l1 . -- eq i = k . eq j = k . -- successor eq s' = want(s,k) . -- checking red istep1(i,j) . close -- open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-want(s,k) = true . eq pc(s,k) = l1 . -- eq (i = k) = false . eq j = k . -- successor eq s' = want(s,k) . -- checking red istep1(i,j) . close -- open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-want(s,k) = true . eq pc(s,k) = l1 . -- eq i = k . eq (j = k) = false . -- successor eq s' = want(s,k) . -- checking red istep1(i,j) . close -- open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-want(s,k) = true . eq pc(s,k) = l1 . -- eq (i = k) = false . eq (j = k) = false . -- successor eq s' = want(s,k) . -- checking red istep1(i,j) . close -- -- 1.2 c-want(s,k) = false open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions eq c-want(s,k) = false . -- successor eq s' = want(s,k) . -- checking red istep1(i,j) . close --> 2 try(s,k) -- 2.1 c-try(s,k) = true open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-try(s,k) = true . eq pc(s,k) = l2 . eq top(queue(s)) = k . -- eq i = k . eq j = k . -- successor eq s' = try(s,k) . -- checking red inv2(s,i) and inv2(s,j) implies istep1(i,j) . close -- open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-try(s,k) = true . eq pc(s,k) = l2 . eq top(queue(s)) = k . -- eq (i = k) = false . eq j = k . -- successor eq s' = try(s,k) . -- checking red inv2(s,i) and inv2(s,j) implies istep1(i,j) . close -- open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-try(s,k) = true . eq pc(s,k) = l2 . eq top(queue(s)) = k . -- eq i = k . eq (j = k) = false . -- successor eq s' = try(s,k) . -- checking red inv2(s,i) and inv2(s,j) implies istep1(i,j) . close -- open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-try(s,k) = true . eq pc(s,k) = l2 . eq top(queue(s)) = k . -- eq (i = k) = false . eq (j = k) = false . -- successor eq s' = try(s,k) . -- checking red inv2(s,i) and inv2(s,j) implies istep1(i,j) . close -- -- 2.2 c-try(s,k) = false open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions eq c-try(s,k) = false . -- successor eq s' = try(s,k) . -- checking red istep1(i,j) . close --> 3 exit(s,k) -- 3.1 c-exit(s,k) = true open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-exit(s,k) = true . eq pc(s,k) = cs . -- eq i = k . eq j = k . -- successor eq s' = exit(s,k) . -- checking red istep1(i,j) . close -- open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-exit(s,k) = true . eq pc(s,k) = cs . -- eq (i = k) = false . eq j = k . -- successor eq s' = exit(s,k) . -- checking red istep1(i,j) . close -- open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-exit(s,k) = true . eq pc(s,k) = cs . -- eq i = k . eq (j = k) = false . -- successor eq s' = exit(s,k) . -- checking red istep1(i,j) . close -- open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions -- eq c-exit(s,k) = true . eq pc(s,k) = cs . -- eq (i = k) = false . eq (j = k) = false . -- successor eq s' = exit(s,k) . -- checking red istep1(i,j) . close -- -- 3.2 c-exit(s,k) = false open ISTEP -- arbitrary objects op k : -> Pid . -- assumptions eq c-exit(s,k) = false . -- successor eq s' = exit(s,k) . -- checking red istep1(i,j) . close --> Q.E.D.