Theoretical resources and problems in optics