Chapter 8ARS & Confluenceslides.en.pdf:371

Confluence and Termination

When two paths converge, or stop

Def 3.7ConfluenceDef 3.8Termination
Concept

When you rewrite things, you can take different paths. Confluence asks: do
those paths always come back together?

Formally, an ARS A,\langle A, \to \rangle is confluent iff for all
a,b,cAa, b, c \in A:

abacd. bdcda \to^* b \land a \to^* c \Rightarrow \exists d.\ b \to^* d \land c \to^* d

This is the "diamond" drawn vertically: anything reachable in two ways from aa
can be brought together to a common dd.

Three closely related notions (weaker to stronger):

1. Diamond property (one-step): bacb \leftarrow a \to c implies
d. bdcd\exists d.\ b \to d \land c \to d. Strictly one-step reductions
can be joined in one step.
2. Weak confluence: bacb \leftarrow a \to c implies
d. bdcd\exists d.\ b \to^* d \land c \to^* d. One-step reductions join in
any number of steps.
3. Confluence: bacb \leftarrow^* a \to^* c implies
d. bdcd\exists d.\ b \to^* d \land c \to^* d. Multi-step reductions join in
any number of steps.

Confluence is stronger than weak confluence which is stronger than the diamond.

Termination is a separate property: an ARS is terminating iff there is
no infinite chain a0a1a2a_0 \to a_1 \to a_2 \to \cdots. Equivalently, every
reduction sequence eventually hits a normal form.

Why termination matters. Without termination, "the answer" might not exist.
With termination, every reduction sequence eventually reaches a normal form.
If also confluent, ALL sequences reach THE SAME normal form — the answer is
unique regardless of strategy.

Animation — ars confluence
Transcript — click a line to jump9 cues
  1. 0.0sConfluence: the diamond property
  2. 1.1sFour cyan nodes appear: t on top, a, b in middle, u below
  3. 2.1sAmber arrows t to a and t to b
  4. 3.1sGreen arrows a to u and b to u form the diamond
  5. 4.4sIf both a goes to u and b goes to u, the system is confluent
  6. 6.8sDiamond fades, counter-example appears
  7. 7.8sFive cyan nodes: x, a, b, c, d in a non-converging shape
  8. 9.2sAmber arrows x to a and x to b, red arrows a to c and b to d
  9. 10.2sNot every ARS is confluent
Worked example
Step 0 of 3
Practice — score 100% to advance
Multiple choice
Q1
Confluence says: if aba \to^* b and aca \to^* c then…
Q2
Which is the strongest property?
Q3
What does termination mean?
Q4
If an ARS is confluent AND terminating, then…
Q5
Weak confluence is to confluence as…
Order the steps
Arrange these proof steps in the correct order using the arrows.
1
Confluencebacd. bdcdb \leftarrow^* a \to^* c \Rightarrow \exists d.\ b \to^* d \land c \to^* d
2
Weak confluencebacd. bdcdb \leftarrow a \to c \Rightarrow \exists d.\ b \to^* d \land c \to^* d
3
Diamond property (one-step) — bacd. bdcdb \leftarrow a \to c \Rightarrow \exists d.\ b \to d \land c \to d
Loading…