Theorem gwerth-cymedrig