跳到主要内容

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

Author​

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

Description​

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

∀x,y,z∈S. (xRy∧xRz∧y≠z⇒∃w∈S. (yRw∧zRw)).\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) R⊆R∗\mathcal R\subseteq\mathcal R^*, (ii) ∀x∈S. (xR∗x)\forall x\in S.\ (x\mathcal R^*x), (iii) ∀x,y,z∈S. (xR∗y∧yR∗z⇒xR∗z)\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,z∈S. (xRy∧xRz⇒∃w∈S. (yR∗w∧zR∗w)).\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 x0Rx1Rx2R⋯x_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.

题目描述​

设 R⊆S×SR\subseteq S\times S 为二元关系,R∗R^* 为其自反传递闭包,即满足 R⊆R∗R\subseteq R^*、对所有 x∈Sx\in S 有 xR∗xxR^*x,且对所有 x,y,z∈Sx,y,z\in S 有 xR∗y∧yR∗z⇒xR∗zxR^*y\land yR^*z\Rightarrow xR^*z 的最小关系。

  • 若 xRy,xRz,y≠zxRy,xRz,y\ne z 时总存在 ww 使 yRw,zRwyRw,zRw,则称 RR 有菱形性质;
  • 若 R∗R^* 有菱形性质,则称 RR 有汇合性;
  • 若 xRy,xRzxRy,xRz 时总存在 ww 使 yR∗w,zR∗wyR^*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 弱汇合,且不存在无限链 x0Rx1Rx2R⋯x_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 弱汇合。

但 aR∗caR^*c 且 aR∗daR^*d,而 c,dc,d 均无后继,不能共同到达同一点,所以 RR 不汇合。

(2)​

先证“单步对多步”引理:若 xRyxRy 且 xR∗zxR^*z,则 y,zy,z 可经 R∗R^* 汇合。对 xR∗zxR^*z 的步数归纳。零步时取公共后继 yy;正步时写成 xRz1R∗zxRz_1R^*z。若 y=z1y=z_1 显然,否则由菱形性质存在 uu 使 yRu,z1RuyRu,z_1Ru,再对 z1Ruz_1Ru 与 z1R∗zz_1R^*z 使用归纳假设即可。

现对 xR∗yxR^*y 的步数归纳。给定 xR∗y,xR∗zxR^*y,xR^*z,零步情形显然;正步时写成 xRx1R∗yxRx_1R^*y。由上述引理,x1x_1 与 zz 可汇合于某个 uu。第一条路径 x1R∗yx_1R^*y 的长度已减少,故可对 x1R∗y,x1R∗ux_1R^*y,x_1R^*u 使用归纳假设,使 y,uy,u 汇合。又因 zR∗uzR^*u,所以 y,zy,z 也汇合。故 R∗R^* 有菱形性质,RR 汇合。

(3)​

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

xRx1R∗y,xRx2R∗z.xRx_1R^*y,\qquad xRx_2R^*z.

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

yR∗p, uR∗p,zR∗q, uR∗q.yR^*p,\ uR^*p,\qquad zR^*q,\ uR^*q.

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

(4)​

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

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

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

各情形均有汇合性。