In intensional type theory, the principle of uniquness of identity proofs (UIP) stipulates that objects can only be equal in one way.
Formulated as a rule, the UIP at a type states the existence of a construction
That is: given any two terms , and two proofs that they are propositionally equal, those two proofs and are propositionally equal themselves.
This may be equivalently formulated as an axiom:
Unlike its equivalent axiom, Axiom K, does not have good computational behaviour: see the nLab.
Because of equality reflection, this rule is trivially derivable in extensional type theory.
Pattern-matching allows one to construct an inhabitant of UIP: given variables , pattern-match on both of them to reduce them to with , and then return .
Hedberg's theorem implies that UIP holds at types with decidable equality.
The groupoid model of type theory was constructed with the explicit purpose of refuting UIP. As at least one of its models refutes it, intensional Martin-Löf type theory does not prove UIP.