Primary decomposition of ideals of lattice homomorphisms