Previous | LECTURES | Next |
Constructing Sentences
i. For the three quadruples that define a TM there are corresponding sentences in L that, under the interpretation A, describe the operation of the machine.
Consider each in turn.
a. Rewrite.
For the quadruple (qi, Sj, Sk, qm) that appears in the machine table, include in D the sentence:
"txy [[Qitx Ù Sjtx] ® [Qmt'x Ù Skt'x Ù (y¹x ® (S0ty ® S0t'y Ù ... Ù Srty ® Srt'y))]]
which is supposed to be interpreted as saying:
'If TM at t is in qi and on x and scans Sj then at t+1 TM is in qm and on x and scanning Sk, and all other cells are unaffected.'
b. Move Right.
For the quadruple (qi, Sj, R, qm) that appears in the machine table, include in D the sentence:
"txy [[Qitx Ù Sjtx] ® [Qmt'x' Ù S0ty ® S0t'y Ù ... Ù Srty ® Srt'y]]
which is supposed to be interpreted as saying:
'If TM at t is in qi and on x and scans Sj then at t+1 TM is in qm and on x+1 and all cell contents are unaffected.'
c. Move Left.
For the quadruple (qi, Sj, L, qm) that appears in the machine table, include in D the sentence:
"txy [[Qitx' Ù Sjtx'] ® [Qmt'x Ù S0ty ® S0t'y Ù ... Ù Srty ® Srt'y]]
which is supposed to be interpreted as saying:
'If TM at t is in qi and on x+1 and scans Sj then at t+1 TM is in qm and on x and all cell contents are unaffected.'
ii. Include in D a sentence that says that TM starts in q1 on cell 0 scanning the leftmost of n 1s, and the tape is otherwise empty.
Q1ee Ù S1ee' Ù S1ee Ù ... Ù S1een-1 Ù "y[[y ¹ e Ù y ¹ e' Ù ... Ù y ¹ en-1] ® S0ey]