idtypes
Identity types, sometimes referred to as idtypes, are a foundational construct in dependent type theory used to express equality between two values of a given type. For a type A and elements x, y : A, the identity type Id_A(x, y) (often written x =_A y) consists of proofs that x and y are equal. The canonical inhabitant of Id_A(a, a) is refl_a, the reflexivity witness, and shape of proofs about equality is determined by how this type is constructed and eliminated in the surrounding theory.
In dependent type theories used by languages such as Coq, Agda, Idris, and Lean, identity types come
In homotopy type theory (HoTT), identity types are interpreted as paths between points in a space, with
Usage and implications: identity types are used to prove that two terms are equal, to transport data
Overall, idtypes are a central tool for constructive reasoning, formal verification, and the expressiveness of dependently