Two identities for lattices