A formal theory of sortal quantification