In general relativity, the first two terms ∫ 2 3 ρ(v ∕2− ΦN )d xdt are lumped together into the matter action (also containing the rest mass contribution in GR), and the last term is generalized by the Einstein–Hilbert action.