In dependent type theory, propositional equality and definitional equality are not the same, even for closed terms.
Let's explore the difference:
1. Definitional Equality (≡ or judgmental equality)
- Also called judgmental equality or convertibility.
- Two terms a and b are definitionally equal if they reduce to the same normal form via computation, i.e., they are computationally indistinguishable.
- It is decided by the type theory’s computation rules (e.g., β-reduction in lambda calculus).
- Checked by the type checker.
- It is not a constructible object in the type theory; you can't have a term of type
a ≡ b.
Example:
Definition f := fun x => x + 1.
f 2 ≡ 3 // because f 2 reduces to 3
2. Propositional Equality (=ₜ)
- Given as a type/formal proposition in the system — written usually as
a = b or Id A a b.
- Meaning: a is equal to b in type A.
- You must construct a proof of this equality (e.g., using
refl for reflexivity).
- It is an inhabited type, i.e., you can give evidence of equality.
Example (in Coq or Agda style systems):
-- Suppose we are in a type A
a =ₜ b : Type // Requires a proof to inhabit this type
Are They the Same for Closed Terms?
==> No. Even for closed terms, propositional equality and definitional equality are fundamentally different.
Although it's tempting to think they coincide for closed terms (terms with no free variables), that’s not generally true:
-
A pair of closed terms may be propositionally equal (with a proof), but not definitionally equal, i.e., they don’t reduce to the same normal form.
-
Conversely, if two closed terms are definitionally equal, then they are usually propositionally equal, since you can use reflexivity (refl, or eq-refl) to prove a = a.
But the converse doesn't hold.
Example:
Let’s consider a closed term example in a system such as Agda or Coq:
Theorem ex : 0 + n = n.
Proof.
intros. apply Nat.add_0_l.
Qed.
Here:
0 + n is not definitionally equal to n, because Coq does not reduce it automatically (addition is defined recursively; 0 + n doesn’t simplify fully unless n is a numeral).
- But we can prove that
0 + n = n propositionally using existing theorems.
Even when n is fully instantiated (making the term "closed"), this distinction can remain, because definitional equality requires exact syntactic identity up to computation, while propositional equality allows reasoning and proving that two expressions are equal, even when they differ in form.
Summary:
| Aspect | Definitional Equality | Propositional Equality |
|---|
| Symbol | ≡, sometimes == | =, or Id A a b |
| Level | Meta-level / judgmental | Type-level / internal to theory |
| Proof needed | No | Yes |
| Computation-based | Yes | No |
| Expressible in the theory | No | Yes |
| For closed terms | Not the same as propositional | Requires proof even for closed terms |
Bottom Line:
No, in dependent type theory, definitional equality and propositional equality are not the same, even for closed terms.