Is there an equivalent of the uniqueness of identity proofs, for types with a decidable order ? In particular, in the type of Peano natural numbers ? Is it implemented somewhere in Coq's library ? (I couldn't find it)
It seems true on the natural numbers, because a proof that n <= p looks the same as a proof of n == p : it iteratively destructs n and p until the number on the left reaches 0, then concludes.