Similar Items: An extensible equality checking algorithm for dependent type theories