-Definability of Sequence-Coding Operations Let p 1 = 2, p 2 = 3, . - - PowerPoint PPT Presentation

definability of sequence coding operations let p 1 2 p 2
SMART_READER_LITE
LIVE PREVIEW

-Definability of Sequence-Coding Operations Let p 1 = 2, p 2 = 3, . - - PowerPoint PPT Presentation

-Definability of Sequence-Coding Operations Let p 1 = 2, p 2 = 3, . . . , p i = i th prime number. N < N is the set of finite sequences of natural numbers. Sequence-coding function : N < N N is defined by k p a i +1 a


slide-1
SLIDE 1

∆-Definability of Sequence-Coding Operations Let p1 = 2, p2 = 3, . . . , pi = ith prime number. N<N is the set of finite sequences of natural numbers. Sequence-coding function : N<N → N is defined by a1, . . . , ak :=

k

  • i=1

pai+1

i

. If a = a1, . . . , ak, then |a| = k and (a)i = ai. All of the sequence-coding operations are ∆-definable (hence, representable).

slide-2
SLIDE 2

We have ∆-formulas: Divides(y, x) :≡ (∃z ≤ x)[x = y · z], Prime(x) :≡ S0 < x ∧ (∀y ≤ x)[Divides(y, x) → (y = 1 ∨ y = x)]

slide-3
SLIDE 3

We have ∆-formulas: Divides(y, x) :≡ (∃z ≤ x)[x = y · z], Prime(x) :≡ S0 < x ∧ (∀y ≤ x)[Divides(y, x) → (y = 1 ∨ y = x)

  • ¬Divides(y, x) ∨ (y = 1 ∨ y = x)

] Remark: Technically, ¬Divides(y, x) is not a ∆-formula. However, it is equivalent to a ∆-formula.

slide-4
SLIDE 4

The set PrimePair := {(pi, pi+1) : i ≥ 1} ⊆ N2 is defined by the ∆-formula PrimePair(x, y) :≡ Prime(x) ∧ Prime(y) ∧ x < y ∧ (∀z < y)[Prime(z) → z ≤ x].

slide-5
SLIDE 5

The set PrimePair := {(pi, pi+1) : i ≥ 1} ⊆ N2 is defined by the ∆-formula PrimePair(x, y) :≡ Prime(x) ∧ Prime(y) ∧ x < y ∧ (∀z < y)[Prime(z) → z ≤ x]. The set Codenumber = { a1, . . . , ak

  • pa1+1

1

pa2+1

2

···pak+1

k

: (a1, . . . , ak) ∈ N<N} ⊆ N is defined by the ∆-formula Codenumber(c) :≡ Divides(SS0, c) ∧ (∀z < c)(∀y < z)

  • PrimePair(y, z) ∧ Divides(z, c)
  • → Divides(y, c)
  • .

This formula expresses: “c is divisible by 2 and for every prime pair (pi, pi+1), if pi+1 divides c, so pi divides c.”

slide-6
SLIDE 6

Continuing, we define the set Yardstick := {0, 1, 2, . . . , k − 1

  • 213253...(pk)k

: k ∈ N} by the ∆-formula Yardstick(x) :≡ Divides(2, x) ∧ ¬Divides(4, x) ∧ (∀y ≤ x)(∀z ≤ x)(∀i < x)

  • PrimePair(y, z) ∧ Divides(z, x)
  • Divides(y E i
  • yi

, x) ↔ Divides(z E Si

zi+1

, x)

  • .
slide-7
SLIDE 7

We next define the set IthPrime := {(i, pi) : i ∈ N≥1} by the ∆-formula IthPrime(i, y) :≡ Prime(y) ∧ (∃x ≤ some term)    Yardstick(x) ∧ Divides(yi, x) ∧ ¬Divides(yi+1, x)    . Question: What term suffices for this bounded quantifier?

slide-8
SLIDE 8

We next define the set IthPrime := {(i, pi) : i ∈ N≥1} by the ∆-formula IthPrime(i, y) :≡ Prime(y) ∧ (∃x ≤ yi2)    Yardstick(x) ∧ Divides(yi, x) ∧ ¬Divides(yi+1, x)    . Question: What term suffices for this bounded quantifier? Answer: We want x to be the i-th yardstick number (p1)1(p2)2 . . . (pi)i. This is at most (pi)(pi)2(pi)3 · · · (pi)i = (pi)(i+1

2 ) ≤ (pi)i2.

Therefore, if y = pi, it suffices to take x ≤ yi2.

slide-9
SLIDE 9

We next define the set IthPrime := {(i, pi) : i ∈ N≥1} by the ∆-formula IthPrime(i, y) :≡ Prime(y) ∧ (∃x ≤ yi2)    Yardstick(x) ∧ Divides(yi, x) ∧ ¬Divides(yi+1, x)    . Question: What term suffices for this bounded quantifier? Answer: We want x to be the i-th yardstick number (p1)1(p2)2 . . . (pi)i. This is at most (pi)(pi)2(pi)3 · · · (pi)i = (pi)(i+1

2 ) ≤ (pi)i2.

Therefore, if y = pi, it suffices to take x ≤ yi2. Alternatively, since pi ≤ (i + 1)i (easy fact), we could instead use x ≤ (i + 1)i2.

slide-10
SLIDE 10

We next define the set IthPrime := {(i, pi) : i ∈ N≥1} by the ∆-formula IthPrime(i, y) :≡ Prime(y) ∧ (∃x ≤ yi·i)    Yardstick(x) ∧ Divides(yi, x) ∧ ¬Divides(yi+1, x)    .

  • Exercise. Convince yourself that IthPrime(i, y) indeed defines IthPrime.

That is, show that

  • N |

= IthPrime(k, pk) for every k ≥ 1,

  • N |

= ¬IthPrime(a, b) whenever a = 0 or b = pa.

slide-11
SLIDE 11

We next define the set IthPrime := {(i, pi) : i ∈ N≥1} by the ∆-formula IthPrime(i, y) :≡ Prime(y) ∧ (∃x ≤ yi·i)    Yardstick(x) ∧ Divides(yi, x) ∧ ¬Divides(yi+1, x)    .

  • Remark. The set IthPrime ⊆ N2 corresponds to the function N → N

defined by i → pi. Therefore, we say that the formula IthPrime(i, y) defines the function i → pi.

slide-12
SLIDE 12

Continuing, the set Length :=

  • (a1, . . . , ak, k) : k ≥ 1 and (a1, . . . , ak) ∈ Nk

is defined by the ∆-formula Length(c, ℓ) :≡ Codenumber(c) ∧ (∃y ≤ c) IthPrime(ℓ, y) ∧ Divides(y, c) ∧ (∀z ≤ c)[PrimePair(y, z) → ¬Divides(z, c)]

  • .
slide-13
SLIDE 13

Continuing, the set Length :=

  • (a1, . . . , ak, k) : k ≥ 1 and (a1, . . . , ak) ∈ Nk

is defined by the ∆-formula Length(c, ℓ) :≡ Codenumber(c) ∧ (∃y ≤ c) IthPrime(ℓ, y) ∧ Divides(y, c) ∧ (∀z ≤ c)[PrimePair(y, z) → ¬Divides(z, c)]

  • .

The set IthElement :=

  • (aj, j, a1, . . . , ak) : 1 ≤ j ≤ k and (a1, . . . , ak) ∈ Nk

is defined by the ∆-formula IthElement(e, i, c) :≡ Codenumber(c) ∧ (∃y ≤ c)

  • IthPrime(i, y) ∧ Divides(ySe, c) ∧ ¬Divides(ySSe, c)
  • .
slide-14
SLIDE 14

∆-Definability of Sequence-Coding Operations For practice, try writing a ∆-formula that defines the set Concatenation ⊆ N3 of triples of the form (a1, . . . , ak, b1, . . . , bℓ, a1, . . . , ak, b1, . . . , bℓ).

slide-15
SLIDE 15

  • del Numbers of Terms and Formulas

We assign a unique number to each symbol in LNT as follows: ¬ 1 ∨ 3 ∀ 5 = 7 9 S 11 + 13 · 15 E 17 < 19 ( 21 ) 23 vi 2i Suppose s :≡ s1 . . . sn is a string of symbols, which constituting a well-formed term or formula of LNT. Naively, we could encode s by the number #(s1), . . . , #(sn) where #(si) is the number corresponding to the symbol si. However, it much better to encode s according to the inductive type of terms and formulas.

slide-16
SLIDE 16

Def 5.7.1. For each term t and formula ϕ, the G¨

  • del numbers t and ϕ

are defined as follows: ¬α = 1, α +t1t2 = 13, t1, t2 (α ∨ β) = 3, α, β · t1t2 = 15, t1, t2 (∀vi)(α) = 5, vi, α Et1t2 = 17, t1, t2 =t1t2 = 7, t1, t2 <t1t2 = 19, t1, t2 0 = 9 vi = 2i. St = 11, t

slide-17
SLIDE 17

Def 5.7.1. For each term t and formula ϕ, the G¨

  • del numbers t and ϕ

are defined as follows: ¬α = 1, α +t1t2 = 13, t1, t2 (α ∨ β) = 3, α, β · t1t2 = 15, t1, t2 (∀vi)(α) = 5, vi, α Et1t2 = 17, t1, t2 =t1t2 = 7, t1, t2 <t1t2 = 19, t1, t2 0 = 9 vi = 2i. St = 11, t

  • Obs. t and ϕ are never divisible by 7. (Why?)
slide-18
SLIDE 18

Def 5.7.1. For each term t and formula ϕ, the G¨

  • del numbers t and ϕ

are defined as follows: ¬α = 1, α +t1t2 = 13, t1, t2 (α ∨ β) = 3, α, β · t1t2 = 15, t1, t2 (∀vi)(α) = 5, vi, α Et1t2 = 17, t1, t2 =t1t2 = 7, t1, t2 <t1t2 = 19, t1, t2 0 = 9 vi = 2i. St = 11, t

  • Example. =0S0 = 7, 0, S0

= 7, 9, 11, 9 = 7, 210, 11, 210 = 28310255(21231025+1). Notice how fast SSSS0 grows: SSSS0 = 11, 11, 11, 11, 9 = 2123212321232123210

slide-19
SLIDE 19

Next Steps (Section 5.8) ∆-definability of sets Terms := {t : terms t} = {a ∈ N : a = t for some term t}, Formulas := {ϕ : formulas ϕ} = {a ∈ N : a = ϕ for some formula ϕ}.