In mathematics, in the field of ring theory, a lattice is a module over a ring that is embedded in a vector space over a field, giving an algebraic generalisation of the way a lattice group is embedded in a real vector space.