Normal forms for relations #
This file develops basic normal form notions for abstract reduction relations.
We represent finite reduction sequences by Relation.ReflTransGen r. The assumption
WellFounded (flip r) expresses termination of forward reductions.
The main results are:
- existence of normal forms for terminating relations;
- Newman's lemma: for a terminating relation, local confluence implies confluence;
- for terminating relations, confluence is equivalent to uniqueness of normal forms.
An element is in normal form if it admits no one-step reduction.
Equations
- Relation.IsNormalForm r a = ∀ (b : α), ¬r a b
Instances For
An element b is a normal form of a with respect to r.
Equations
- Relation.IsNormalFormOf r a b = (Relation.ReflTransGen r a b ∧ Relation.IsNormalForm r b)
Instances For
A relation has unique normal forms if any two normal forms reachable from the same element by finite reductions are equal.
Equations
- Relation.UniqueNormalForms r = ∀ {a b c : α}, Relation.ReflTransGen r a b → Relation.ReflTransGen r a c → Relation.IsNormalForm r b → Relation.IsNormalForm r c → b = c
Instances For
A relation is locally confluent if any two one-step reductions starting from the same element can be joined by finite reductions.
Equations
- Relation.LocallyConfluent r = ∀ {a b c : α}, r a b → r a c → Relation.Join (Relation.ReflTransGen r) b c
Instances For
If forward reductions are terminating, then every element has at least one normal form.
If a is in normal form and a reduces finitely to b, then b = a.
Confluence implies local confluence.
Confluence implies local confluence.
The Church-Rosser property implies local confluence.
Newman's lemma, main direction. If flip r is well-founded and r is locally confluent, then
r is confluent.
Confluence implies unique normal forms.
Confluence implies unique normal forms.
Under well-foundedness of flip r, unique normal forms imply confluence.