Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

|->

op Lib.|-> : 'a * 'b -> {redex : 'a, residue : 'b}

Infix operator for building a component of a substitution.

An application x |-> y is equal to {redex = x, residue = y}. Since HOL substitutions are lists of {redex,residue} records, the |-> operator is merely sugar used to create substitutions.

Failure

Never fails.

Example

> type_subst [alpha |-> beta, beta |-> gamma]
            (alpha --> beta);
val it = “:β -> γ”: hol_type

See also

Lib.subst, Type.type_subst, Term.subst, Term.inst, Thm.SUBST