跳到主要内容

東京大学 情報理工学系研究科 コンピュータ科学専攻 2016年8月実施 専門科目II 問題2

Author

祭音Myyura (co-authored with GPT 5.6 SOL)

Description

We say that a binary relation RS×S\mathcal R\subseteq S\times S on a set SS satisfies the diamond property if the following condition holds:

x,y,zS. (xRyxRzyzwS. (yRwzRw)).\forall x,y,z\in S.\ (x\mathcal Ry\land x\mathcal Rz\land y\ne z \Rightarrow\exists w\in S.\ (y\mathcal Rw\land z\mathcal Rw)).

A binary relation R\mathcal R on SS is said to satisfy confluence if the reflexive and transitive closure R\mathcal R^* of the binary relation R\mathcal R (i.e., R\mathcal R^* is the least relation such that (i) RR\mathcal R\subseteq\mathcal R^*, (ii) xS. (xRx)\forall x\in S.\ (x\mathcal R^*x), (iii) x,y,zS. (xRyyRzxRz)\forall x,y,z\in S.\ (x\mathcal R^*y\land y\mathcal R^*z\Rightarrow x\mathcal R^*z)) satisfies the diamond property.

A binary relation R\mathcal R on SS is said to satisfy weak confluence if the following condition holds:

x,y,zS. (xRyxRzwS. (yRwzRw)).\forall x,y,z\in S.\ (x\mathcal Ry\land x\mathcal Rz \Rightarrow\exists w\in S.\ (y\mathcal R^*w\land z\mathcal R^*w)).

For example, R1={(a,b),(a,c),(b,d),(c,e),(d,e)}\mathcal R_1=\{(a,b),(a,c),(b,d),(c,e),(d,e)\} satisfies confluence and weak confluence, but does not satisfy the diamond property. Answer the following questions.

(1) Give an example of a binary relation on the set {a,b,c,d}\{a,b,c,d\} that satisfies weak confluence but not confluence.

(2) Prove that, for every set SS and every binary relation R\mathcal R on SS, if R\mathcal R satisfies the diamond property, then R\mathcal R also satisfies confluence.

(3) Prove that, for every set SS and every binary relation R\mathcal R on SS, if R\mathcal R satisfies weak confluence and also if there is no infinite sequence x0Rx1Rx2Rx_0\mathcal Rx_1\mathcal Rx_2\mathcal R\cdots, then R\mathcal R satisfies confluence.

(4) Prove that, for every binary relation R\mathcal R on the set {a,b,c}\{a,b,c\}, if R\mathcal R satisfies weak confluence, R\mathcal R also satisfies confluence.

题目描述

RS×SR\subseteq S\times S 为二元关系,RR^* 为其自反传递闭包,即满足 RRR\subseteq R^*、对所有 xSx\in SxRxxR^*x,且对所有 x,y,zSx,y,z\in SxRyyRzxRzxR^*y\land yR^*z\Rightarrow xR^*z 的最小关系。

  • xRy,xRz,yzxRy,xRz,y\ne z 时总存在 ww 使 yRw,zRwyRw,zRw,则称 RR菱形性质
  • RR^* 有菱形性质,则称 RR汇合性
  • xRy,xRzxRy,xRz 时总存在 ww 使 yRw,zRwyR^*w,zR^*w,则称 RR弱汇合性

例如,R1={(a,b),(a,c),(b,d),(c,e),(d,e)}R_1=\{(a,b),(a,c),(b,d),(c,e),(d,e)\} 满足汇合性和弱汇合性,但不满足菱形性质。

(1)在 S={a,b,c,d}S=\{a,b,c,d\} 上给出一个弱汇合但不汇合的关系。

(2)证明有菱形性质的关系必汇合。

(3)证明:若 RR 弱汇合,且不存在无限链 x0Rx1Rx2Rx_0Rx_1Rx_2R\cdots,则 RR 汇合。

(4)证明:在 S={a,b,c}S=\{a,b,c\} 上,弱汇合关系必汇合。

Kai

(1)

R={(a,b),(a,c),(b,a),(b,d)}.R=\{(a,b),(a,c),(b,a),(b,d)\}.

aa 处的分叉 aRb,aRcaRb,aRc 可在 cc 汇合,因为 bRaRcbRaRc;在 bb 处的分叉 bRa,bRdbRa,bRd 可在 dd 汇合,因为 aRbRdaRbRd。故 RR 弱汇合。

aRcaR^*caRdaR^*d,而 c,dc,d 均无后继,不能共同到达同一点,所以 RR 不汇合。

(2)

先证“单步对多步”引理:若 xRyxRyxRzxR^*z,则 y,zy,z 可经 RR^* 汇合。对 xRzxR^*z 的步数归纳。零步时取公共后继 yy;正步时写成 xRz1RzxRz_1R^*z。若 y=z1y=z_1 显然,否则由菱形性质存在 uu 使 yRu,z1RuyRu,z_1Ru,再对 z1Ruz_1Ruz1Rzz_1R^*z 使用归纳假设即可。

现对 xRyxR^*y 的步数归纳。给定 xRy,xRzxR^*y,xR^*z,零步情形显然;正步时写成 xRx1RyxRx_1R^*y。由上述引理,x1x_1zz 可汇合于某个 uu。第一条路径 x1Ryx_1R^*y 的长度已减少,故可对 x1Ry,x1Rux_1R^*y,x_1R^*u 使用归纳假设,使 y,uy,u 汇合。又因 zRuzR^*u,所以 y,zy,z 也汇合。故 RR^* 有菱形性质,RR 汇合。

(3)

不存在无限链,故“是 xx 的真后继”给出良基次序。对起点 xx 作良基归纳。设

xRx1Ry,xRx2Rz.xRx_1R^*y,\qquad xRx_2R^*z.

x1=x2x_1=x_2,直接在真后继 x1x_1 处使用归纳假设。否则由弱汇合性,有 uu 使 x1Ru,x2Rux_1R^*u,x_2R^*u。分别在 x1,x2x_1,x_2 处使用归纳假设,得到

yRp, uRp,zRq, uRq.yR^*p,\ uR^*p,\qquad zR^*q,\ uR^*q.

再在 uu 处使用归纳假设,使 p,qp,q 汇合,于是 y,zy,z 汇合。若某条路径为零步则结论直接成立。故 RR 汇合。这就是 Newman 引理。

(4)

删去自环不改变 RR^*,也不影响不同后继之间的弱汇合性。

若删去自环后无有向环,则不存在无限链,由(3)知 RR 汇合。若存在非平凡强连通分量,则因 S=3|S|=3,该分量大小只能为 2233

  • 大小为 33 时,所有元素互相可达,任意两条分支均可汇合;
  • 大小为 22 时,记该分量为 CC,余下元素为 dd。缩点图无环,所以 C,dC,d 之间至多有一个方向。若无边,各分支留在同一强连通分量内;若 CdC\to d,从 CC 出发的所有分支可在 dd 汇合;若 dCd\to C,从 dd 出发的所有分支可在 CC 中汇合。

各情形均有汇合性。