The tactic
PAT_X_ASSUM tm ttac ([A1, ..., An], g)
finds the first Ai which matches tm using higher-order pattern
matching in the sense of ho_match_term. Free variables in the
pattern that are also free in the assumptions or the goal must not be
bound by the match. In effect, these variables are being treated as
local constants.