Similar Items: Consistency and Completeness of Rewriting in the Calculus of Constructions