-- I) Base case open INV red inv230(init,tag) . close -- II) Inductive ceses --> 1) send1(s) open ISTEP -- arbitrary objects -- assumptions -- successor state eq s' = send1(s) . -- check if the predicate is true. red istep230(tag) . close --> 2) rec1(s) -- 2.1) c-rec1(s) open ISTEP -- arbitrary objects -- assumptions -- eq c-rec1(s) = true . eq empty?(fifo2(s)) = false . -- eq tag1(s) = top(fifo2(s)) . eq tag \in get(fifo2(s)) = false . -- successor state eq s' = rec1(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions -- eq c-rec1(s) = true . eq empty?(fifo2(s)) = false . -- eq tag1(s) = top(fifo2(s)) . eq tag \in get(fifo2(s)) = true . -- facts ceq tag \in fifo2(s) = true if tag \in get(fifo2(s)) . -- successor state eq s' = rec1(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions -- eq c-rec1(s) = true . eq empty?(fifo2(s)) = false . -- eq (tag1(s) = top(fifo2(s))) = false . eq tag \in get(fifo2(s)) = false . -- successor state eq s' = rec1(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions -- eq c-rec1(s) = true . eq empty?(fifo2(s)) = false . -- -- eq (tag1(s) = top(fifo2(s))) = false . eq (tag1(s) = tag) = false . -- eq tag \in get(fifo2(s)) = true . eq top(fifo2(s)) = tag . -- facts ceq tag \in fifo2(s) = true if tag \in get(fifo2(s)) . -- successor state eq s' = rec1(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions -- eq c-rec1(s) = true . eq empty?(fifo2(s)) = false . -- eq (tag1(s) = top(fifo2(s))) = false . eq tag \in get(fifo2(s)) = true . eq (top(fifo2(s)) = tag) = false . -- facts ceq tag \in fifo2(s) = true if tag \in get(fifo2(s)) . -- successor state eq s' = rec1(s) . -- check if the predicate is true. red inv130(s,tag) implies istep230(tag) . close -- -- 2.2) not c-rec1(s) open ISTEP -- arbitrary objects -- assumptions eq c-rec1(s) = false . -- successor state eq s' = rec1(s) . -- check if the predicate is true. red istep230(tag) . close --> 3) send2(s) open ISTEP -- arbitrary objects -- assumptions eq tag1(s) = tag2(s) . eq tag = tag2(s) . -- successor state eq s' = send2(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions eq tag1(s) = tag2(s) . eq (tag = tag2(s)) = false . eq tag \in fifo2(s) = true . -- successor state eq s' = send2(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions eq tag1(s) = tag2(s) . eq (tag = tag2(s)) = false . eq tag \in fifo2(s) = false . -- successor state eq s' = send2(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions eq (tag1(s) = tag2(s)) = false . -- successor state eq s' = send2(s) . -- check if the predicate is true. red istep230(tag) . close --> 4) rec2(s) -- 4.1) c-rec2(s) open ISTEP -- arbitrary objects -- assumptions -- eq c-rec2(s) = true . eq empty?(fifo1(s)) = false . -- eq (tag2(s) = 1st(top(fifo1(s)))) = false . -- successor state eq s' = rec2(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions -- eq c-rec2(s) = true . eq empty?(fifo1(s)) = false . -- eq tag2(s) = 1st(top(fifo1(s))) . eq tag1(s) = 1st(top(fifo1(s))) . -- successor state eq s' = rec2(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions -- eq c-rec2(s) = true . eq empty?(fifo1(s)) = false . -- eq tag2(s) = 1st(top(fifo1(s))) . eq (tag1(s) = 1st(top(fifo1(s)))) = false . -- successor state eq s' = rec2(s) . -- check if the predicate is true. red inv120(s) implies istep230(tag) . close -- -- 4.2) c-rec2(s) open ISTEP -- arbitrary objects -- assumptions eq c-rec2(s) = false . -- successor state eq s' = rec2(s) . -- check if the predicate is true. red istep230(tag) . close --> 5) drop1(s) -- 5.1) c-drop1(s) open ISTEP -- arbitrary objects -- assumptions -- eq c-drop1(s) = true . eq empty?(fifo1(s)) = false . -- successor state eq s' = drop1(s) . -- check if the predicate is true. red istep230(tag) . close -- -- 5.2) not c-drop1(s) open ISTEP -- arbitrary objects -- assumptions eq c-drop1(s) = false . -- successor state eq s' = drop1(s) . -- check if the predicate is true. red istep230(tag) . close --> 6) dup1(s) -- 6.1) c-dup1(s) open ISTEP -- arbitrary objects -- assumptions -- eq c-dup1(s) = true . eq empty?(fifo1(s)) = false . -- successor state eq s' = dup1(s) . -- check if the predicate is true. red istep230(tag) . close -- -- 6.2) not c-dup1(s) open ISTEP -- arbitrary objects -- assumptions eq c-dup1(s) = false . -- successor state eq s' = dup1(s) . -- check if the predicate is true. red istep230(tag) . close --> 7) drop2(s) -- 7.1) c-drop2(s) open ISTEP -- arbitrary objects -- assumptions -- eq c-drop2(s) = true . eq empty?(fifo2(s)) = false . -- eq tag \in get(fifo2(s)) = false . -- successor state eq s' = drop2(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions -- eq c-drop2(s) = true . eq empty?(fifo2(s)) = false . -- eq tag \in get(fifo2(s)) = true . -- facts ceq tag \in fifo2(s) = true if tag \in get(fifo2(s)) . -- successor state eq s' = drop2(s) . -- check if the predicate is true. red istep230(tag) . close -- -- 7.2) not c-drop2(s) open ISTEP -- arbitrary objects -- assumptions eq c-drop2(s) = false . -- successor state eq s' = drop2(s) . -- check if the predicate is true. red istep230(tag) . close --> 8) dup2(s) -- 8.1) c-dup2(s) open ISTEP -- arbitrary objects -- assumptions -- eq c-dup2(s) = true . eq empty?(fifo2(s)) = false . -- eq tag \in top(fifo2(s)) | fifo2(s) = false . -- successor state eq s' = dup2(s) . -- check if the predicate is true. red istep230(tag) . close -- open ISTEP -- arbitrary objects -- assumptions -- eq c-dup2(s) = true . eq empty?(fifo2(s)) = false . -- eq tag \in top(fifo2(s)) | fifo2(s) = true . -- facts ceq tag \in fifo2(s) = true if tag \in top(fifo2(s)) | fifo2(s) . -- successor state eq s' = dup2(s) . -- check if the predicate is true. red istep230(tag) . close -- -- 8.2) not c-dup2(s) open ISTEP -- arbitrary objects -- assumptions eq c-dup2(s) = false . -- successor state eq s' = dup2(s) . -- check if the predicate is true. red istep230(tag) . close --> Q.E.D.