Implement the use of elimPair in case and prove, matching the model implementation.