fix: type incorrect term produced by `contradiction`

This PR fixes a type error in the proof generated by the `contradiction` tactic.

closes #4851
2 files changed