Breaks apart a constant into name, theory, and type.
DESCRIPTION
dest_thy_const is a term destructor for constants. If M is a
constant, declared in theory Thy with name Name, having type ty,
then dest_thy_const M returns {Thy, Name, Ty}, where Ty is equal
to ty.