Spectral theory and sheaf theory. III.