4.27 Match goal

Match on the current goal

Syntax

  Mgoal(p)
with:

Use

This commande is replaced by the current goal if the current goal matches the pattern given as parameter. If the goal does not match with the pattern, the command fails.

This command is used as parameter to other commands in order to generalize a proof.

Example

Let us consider the following goal.


    Goal  
        var1 : functions[ens1]  
 


The command Mgoal(a : b) will match with the current goal. Thus, to search for all the hypothesis that imply the current goal, it is posible to use the command sh(h => Mgoal(a : b)).