core / init.meta.relation_tactics
source
If the main target has the form r lhs rhs, then return (r,lhs,rhs).
r lhs rhs
(r,lhs,rhs)
Try to apply subst exhaustively