Skip to content

Commit b8d741a

Browse files
committed
term rewriting
1 parent cadae9d commit b8d741a

2 files changed

Lines changed: 39 additions & 0 deletions

File tree

Cards/Term Rewriting and All That.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,41 @@ A: If $R$ is normalizing then every element must have at least one normal form,
9595

9696
Q: Explain the intuition behind the following theorem: if a relation $R$ is normalizing and confluent, then every element has a unique normal form.
9797
A: Normalizing means every element has at least one normal form. Confluence means multiple normal forms must be joinable, i.e., not normal forms at all. Therefore this implies uniqueness of the normal form.
98+
99+
C:
100+
Term: [finitely branching relation]
101+
102+
Definition: [A relation where every element has only finitely many direct successors.]
103+
104+
C:
105+
Term: [globally finite relation]
106+
107+
Definition: [A relation where every element has only finitely many distinct successors.]
108+
109+
Q: Difference between termination and global finitude of a relation.
110+
A: Termination: the chains from every element have finite length.
111+
112+
Global finitude: the set of distinct successors from every element is finite.
113+
114+
Q: Give an example of a relation that is globally finite but non-terminating.
115+
A:
116+
$$\set{a \to b, b \to a}$$
117+
118+
The set of successors is $\set{a,b}$ for every element.
119+
120+
C:
121+
Term: [acyclic relation]
122+
123+
Definition: [A relation where there is no element $a$ such that $a \pluspath a$.]
124+
125+
Q: Give an example of a relation that is terminating but not finitely branching.
126+
A: The relation:
127+
128+
$$
129+
\begin{align*}
130+
a \to n, & \forall n \in \N \\\\
131+
n \to b, & \forall n \in N
132+
\end{align*}
133+
$$
134+
135+
That is: $a$ rewrites to any natural number, and every natural number rewrites to $b$.

Cards/macros.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
% term rewriting
66
\starpath \stackrel{*}{\rightarrow}
77
\lstarpath \stackrel{*}{\leftarrow}
8+
\pluspath \stackrel{+}{\rightarrow}
89
\conv \stackrel{*}{\leftrightarrow}
910
\join \downarrow

0 commit comments

Comments
 (0)