Adding Manual Rewrite Reasoners: Difference between revisions

From Event-B
Jump to navigationJump to search
imported>Son
New page: Manual rewrite Reasoners of this type apply a rewriting rule for a given formula (or sub-formula) in the goal or in one of the hypotheses.
 
imported>Son
No edit summary
Line 1: Line 1:
Manual rewrite Reasoners of this type apply a rewriting rule for a given formula (or sub-formula) in the goal or in one of the hypotheses.
Manual rewrite Reasoners of this type apply a rewriting rule for a given formula (or sub-formula) in the goal or in one of the hypotheses. Hence beside the input sequent, reasoners of this type have an extra input to specify the location of the (sub-)formula where the rewriting should carry out. We take the example of which rewrites according to the following rules for implication.
 
<math>
  \begin{array}{rcl}
    \top \limp P & \Rightarrow & P \\
    P \limp \top & \Rightarrow & \top \\
    \bot \limp P & \Rightarrow & \top \\
    P \limp \bot & \Rightarrow & \neg P
  \end{array}
</math>
 
We can reuse some of the code that we already developed for the [[Adding Automatic Rewrite Reasoners | automatic rewrite reasoner]].
 
Below are the step by step instructions to create an automatic rewrite reasoner:

Revision as of 16:11, 13 September 2008

Manual rewrite Reasoners of this type apply a rewriting rule for a given formula (or sub-formula) in the goal or in one of the hypotheses. Hence beside the input sequent, reasoners of this type have an extra input to specify the location of the (sub-)formula where the rewriting should carry out. We take the example of which rewrites according to the following rules for implication.


  \begin{array}{rcl}
     \top \limp P & \Rightarrow & P \\
     P \limp \top & \Rightarrow & \top \\
     \bot \limp P & \Rightarrow & \top \\
     P \limp \bot & \Rightarrow & \neg P
  \end{array}

We can reuse some of the code that we already developed for the automatic rewrite reasoner.

Below are the step by step instructions to create an automatic rewrite reasoner: