4.48 Submatch Hypothesis

Match on hypothesis

Syntax

  Shyp(p | r )
with:

Use

This command searches for an hypothesis matching with the pattern p, and is replaced by the replacement pattern r.

If an hypothesis matching with the pattern p is found, the Shyp command is replaced by the content of the replacement pattern r.

If no hypothesis match with the pattern p, the command fails. If multiple hypothesis match with the pattern p, the most recent hypothesis is used.

This command is mainly used to generalize a set of proof commands to several proof obligations.

Example

Given the following hypothesis:


    Hypothesis  
        var1 : function[ens1]  
 


in that case, the command ah(Shyp( a : b[c] | c <: dom(b))) will be replaced by ah(ens1 <: dom(function)) as follows: