One can note that the second of the two examples is an instance of pseudogapping, pseudogapping being a particular manifestation of VP-ellipsis.
The second example in question demonstrates pseudogapping, which is a type of VP-ellipsis.