1. Sommerville, R. & Dave, R. Physical models of galaxy formation in a cosmological framework. Ann. Rev. Astron. Astrophys. 53, 51–113 (2015).

2. Fardal, M. et al. Inferring the Andromeda Galaxy’s mass from its giant southern stream with Bayesian simulation sampling. Mon. Not. R. Astron. Soc. 434, 2779–2802 (2013).

3. Block, D. et al. An almost head-on collision as the origin of two off-centre rings in the Andromeda galaxy. Nature 443, 832–834 (2006).

4. Dierickx, M., Blecha, L. & Loeb, A. Signatures of the M31-M32 galactic collision. Astrophys. J. 788, 38–44 (2014).

5. Bullock, J. & Johnston, K. Tracing galaxy formation with stellar halos. I. Methods. Astrophys. J. 635, 931–949 (2005).

6. Hammer, F. et al. A 2-3 billion year old major merger paradigm for the Andromeda galaxy and its outskirts. Mon. Not. R. Astron. Soc. 475, 2754–2767 (2018).

7. Bernard, E. et al. The nature and origin of substructure in the outskirts of M31 – II. Detailed star formation histories. Mon. Not. R. Astron. Soc. 446, 2789–2801 (2015).

8. D’Souza, R. & Bell, E. The masses and metallicities of stellar haloes reflect galactic merger histories. Mon. Not. R. Astron. Soc. 474, 5300–5318 (2018).

9. Vogelsberger, M. et al. Properties of galaxies reproduced by a hydrodynamic simulation. Nature 509, 177–182 (2014).

10. Cooper, A. et al. Galactic accretion and the outer structure of galaxies in the CDM model. Mon. Not. R. Astron. Soc. 434, 3348–3367 (2013).

11. Ibata, R. et al. The large-scale structure of the halo of the Andromeda galaxy. I. Global stellar density, morphology and metallicity properties. Astrophys. J. 780, 128–148 (2014).

12. Gilbert, K. et al. Global properties of M31’s stellar halo from the SPLASH survey. II. Metallicity profile. Astrophys. J. 796, 76–96 (2014).

13. Monachesi, A. et al. The star formation history of M32. Astrophys. J. 745, 97–117 (2012).

14. Ibata, R. et al. On the accretion origin of a vast extended stellar disk around the Andromeda galaxy. Astrophys. J. 634, 287–313 (2005).

15. Ibata, R. et al. A giant stream of metal-rich stars in the halo of the galaxy M31. Nature 412, 49–52 (2001).

16. Williams, B. et al. A global star-forming episode in M31 2-4 Gyr ago. Astrophys. J. 806, 48–57 (2015).

17. van der Marel, R. et al. Improved evidence for a black hole in M32 from HST/FOS spectra. I. Observations. Astrophys. J. 488, 119–135 (1997).

18. Haring, N. & Rix, H.-W. On the black hole mass-bulge mass. Astrophys. J. 604, 89–92 (2004).

19. Irwin, M. et al. A minor axis surface brightness profile of M31. Astron. J. 628, 105–108 (2005).

20. Gilbert, K. et al. Global properties of M31’s stellar halo from the SPLASH survey I. Surface brightness. Astrophys. J. 760, 76–97 (2012).

21. Bekki, K. et al. A new formation model for M32: a threshed early-type spiral galaxy? Astrophys. J. 557, 39–42 (2001).

22. Burkert, A. On the formation of compact ellipticals. Mon. Not. R. Astron. Soc. 266, 877–885 (1994).

23. Choi, P. et al. Tidal interaction of M32 and NGC205 with M31: surface photometry and numerical simulations. Astron. J. 124, 310–331 (2002).

24. Kormendy, J. in Astrophysics and Space Science Library Vol 418 Galactic Bulges 431–477 (Springer, Berlin, 2016).

25. Howley, K. Internal stellar kinematics of M32 from the SPLASH survey: dark halo constraints. Astrophys. J. 765, 65–87 (2013).

26. Read, J. et al. The tidal stripping of satellites. Mon. Not. R. Astron. Soc. 366, 429–437 (2006).

27. Dalcanton, J. et al. The Panchromatic Hubble Andromeda Treasury VIII. A wide-field, high-resolution map of dust extinction in M31. Astrophys. J. 814, 3–50 (2015).

28. Olsen, K. et al. The star formation histories of the bulge and disk of M31 from resolved stars in the near-infrared. Astron. J. 132, 271–289 (2006).

29. Genel, S. et al. Introducing the Illustris project: the evolution of galaxy populations across cosmic time. Mon. Not. R. Astron. Soc. 445, 175–200 (2014).

30. Vogelsberger, M. et al. Introducing the Illustris Project: simulating the coevolution of dark and visible matter in the Universe. Mon. Not. R. Astron. Soc. 444, 1518–1547 (2014).

31. Guo, Q. et al. From dwarf spheroidals to cD galaxies: simulating the galaxy population in a ΛCDM cosmology. Mon. Not. R. Astron. Soc. 413, 101–131 (2011).

32. Penarrubia, J. et al. A timing constraint on the (total) mass of the Large Magellanic Cloud. Mon. Not. R. Astron. Soc. 456, 54–58 (2016).

33. Tamm, A. et al. Stellar mass map and dark matter distribution in M31. Astron. Astrophys. 546, 4–15 (2013).

34. Sanchez-Blazquez, P. et al. Stellar population gradients in galaxy disks from the CALIFA survey. Astron. Astrophys. 570, 6–85 (2016).

35. Amorisco, N. Contributions to the accreted stellar halo: an atlas of stellar deposition. Mon. Not. R. Astron. Soc. 464, 2882–2895 (2017).

36. Brown, T. et al. The detailed star formation history in the spheroid, outer disk, and tidal stream of the Andromeda galaxy. Astrophys. J. 652, 323–353 (2006).

37. Fardal, M. et al. Investigating the Andromeda stream – II. Orbital fits and properties of the progenitor. Astrophys. J. 366, 1012–1028 (2006).

38. Dorman, C. et al. The SPLASH survey: kinematics of Andromeda’s inner spheroid. Astrophys. J. 752, 147–166 (2012).

39. Gilbert, K. et al. Stellar kinematics in the complicated inner spheroid of M31: discovery of substructure along the southeastern minor axis and its relationship to the giant southern stream. Astrophys. J. 668, 245–267 (2007).

40. Gilbert, K. et al. Global properties of M31’s stellar halo from the SPLASH survey III: measuring the stellar velocity dispersion profile. Astrophys. J. 852, 128–149 (2017).

41. Brown, T. et al. The extended star formation history of the Andromeda spheroid at 21 kpc on the minor axis. Astrophys. J. 658, 95–98 (2007).

42. Brown, T. et al. The extended star formation history of the Andromeda spheroid at 35 kpc on the minor axis. Astrophys. J. Lett. 685, 121 (2008).

43. Sheth, K. et al. The Spitzer Survey of stellar structures in galaxies. Proc. Astron. Soc. Pacif. 122, 1379–1414 (2010).

44. Muñoz-Mateos, J. et al. The Spitzer Survey of stellar structure in galaxies (S4G): stellar masses, sizes, and radial profiles for 2352 nearby galaxies. Astrophys. J. Suppl. Ser. 219, 2–31 (2015).

45. Ferrarese, L. et al. The ACS Virgo Cluster Survey. VI. Isophotal analysis and the structure of early-type galaxies. Astrophys. J. Suppl. Ser. 164, 334–434 (2006).

46. Rodriguez-Gomez, V. et al. The merger rate of galaxies in the Illustris simulation: a comparison with observations and semi-empirical models. Mon. Not. R. Astron. Soc. 449, 49–64 (2015).

47. Kirby, E. et al. The universal stellar mass-stellar metallicity relation for dwarf galaxies. Astrophys. J. 779, 102–123 (2013).