Hooke's law is valid only within the proportionality limit.
Gauss’s law is defined and valid only for a closed surface.