Match on the current goal
Mgoal(p)
with:
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.
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)).