next up previous
Next: About this document Up: No Title Previous: The Concrete Machine

Proof of Correctness

It should be pretty obvious that Mod7Counter machine satisfies the Day machine. But, let's go through the steps.

  1. Step 1: Define an abstraction function and representation invariant. The picture relating concrete to abstract states looks like:

    tex2html_wrap239
  2. Step 2: Initial conditions and commuting diagram for each action.

When I did the last part of the proof above, I didn't really do it as shown, but rather I reduced both sides of the equation at the same time yielding sun = sun. I can do that because equality is bi-directional:

  tex2html_wrap_inline219  =  tex2html_wrap_inline221 ¯

= AF(0) def'ns of AF and tex2html_wrap_inline169

sun = sun def'ns of tex2html_wrap_inline181 and AF

I think this proof is more readable and it's perfectly acceptable. Just remember to give your justification next to each proof step if it's not obvious or clear from context.


next up previous
Next: About this document Up: No Title Previous: The Concrete Machine

Norman Papernick
Mon Mar 18 17:44:24 EST 1996