A theory of measuring, electing, and ranking | Synapse