The Art of Simulating the Early Universe arXiv:2006.15122 . A dissertation on lattice techniques for the simulation of scalar-gauge field theories. It provides the theoretical basis for the equations implemented in CosmoLattice.