Invariance under complex transformations and its relevance to the cosmological constant problem