A Modal Logic for Quantiication and Substitution