Schemes over (locally) ringed spaces: working over complex-analytic spaces, rigid-analytic spaces, formal schemes, etc Monique Hakim developed in her doctoral thesis [1] the theory of relative schemes. These comprise, as a special case, the theory of schemes over (locally) ringed spaces. What makes the study of these spaces interesting?
In particular, for what reasons would one like to consider spaces over


*

*Complex-analytic spaces,

*Rigid-analytic spaces, or

*Formal schemes?



Note: Maybe it is worth mentioning that schemes over formal schemes have been considered in references [2-5] below.

References
[1] Hakim, Monique. "Topos annelés et schémas relatifs. Volume 64 of." Ergebnisse der Mathematik und ihrer Grenzgebiete (1972). [Link]
[2] Lan, Kai-Wen. Arithmetic compactifications of PEL-type Shimura varieties. No. 36. Princeton University Press, 2013. [PDF]
[3] Faltings, Gerd, & Chai, Ching-Li (2013). Degeneration of abelian varieties (Vol. 22). Springer Science & Business Media. [Link]
[4] Chai, Ching-Li. Compactification of Siegel moduli schemes. Vol. 107. Cambridge University Press, 1985. [Link]
 A: This a small example and a couple of reflections.
Consider an adic map of formal schemes $f \colon \mathfrak{X} \to \mathfrak{Y}$. Its fiber are schemes. So, I would consider this a "relative scheme" over $\mathfrak{Y}$ where $\mathfrak{Y}$ might be some interesting completion of a scheme, perhaps of a scheme of germs at a point of some base scheme completed at its maximal ideal, say. A lot of nice properties of schemes carry over to adic maps of formal schemes. This is not so surprising if you ponder that, after all, they are relative schemes.
On the other hand, non adic map of formal schemes do arise and are important. An instance of this is the completion of an ambient smooth scheme over a field along a singular closed subscheme. This provides a smooth formal scheme that supports the underlying non-smooth scheme. It allows, for instance to compute its correct De Rham cohomology in characteristic 0. But in this case you don't have a relative scheme. The classic reference for this is:
Hartshorne, Robin: On the De Rham cohomology of algebraic varieties. Inst. Hautes Études Sci. Publ. Math. No. 45 (1975), 5–99.
http://www.numdam.org/item/?id=PMIHES_1975__45__5_0
A further point is to think about rigid-analytic spaces as generic fibers of formal schemes. I cannot give specific examples but I suspect this may be related to the previous considerations.
