Another way to say "a lamp is used to provide light" is "Light is provided when you use a lamp."