A model-free elasticity theory of melting