Core-halo mass relation of ultralight axion dark matter from merger history | Synapse