Professional Documents
Culture Documents
Functions
Functions
1
(2.12) Tmop (i , j , k ) ↔k =¿ ( i ) ∨ k= plus ( i, j ) ∨ k=¿ ( i , j )
Mirroring incorrectly: k is either the successor of i, or k is (i+j), or k is (i×j).
Put more correctly: If k is the GN of string s, and i is the GN of string t, and j is the GN of string
u, then Tmop(i,j,k) holds iff s is either the successor of t or s is (t+u) or s is (t×u).
(2.13) nmrl ( 0 )=2 ; nmrl ( n+1 )=¿ ( nmrl ( n ) )
Mirring: numrl(n) = the GN of the formal numeral n.
(2.14)
Tmseq ( n ) ↔ Seq ( n )∧( ∀ k ≤ l ( n )) ¿
( ∃i , j<k ) (Tmop ( [n]i ,[n] j ,[n] k ))
Mirroring: Tmseq(n) holds iff n is the GNN of a sequence of strings t1,t2,…tl(n) with the following
property: each tk is either an atomic term, or, for some strings ti and tj earlier in the sequence, tk is
Sti or (ti+tj) or (ti×tj).
(2.15) Tm ( n ) ↔ ( ∃m ≤ bg ( n ) ) ( Tmseq ( m )∧n=[ m ]l ( m) )
Mirroring: Tm(n) iff n is the GN of a string that is a term of LPA
(2.16) Atform ( n ) ↔ (∃ j , k ≤n ) ( Tm ( j )∧Tm ( k )∧n= j∗25∗k )
(2.17) ¬ ( n )=26∗n
(2.18) cond ( m ,n )= paren ( m∗27∗n )
(2.19) gen ( k , n )=2 8∗2k ∗paren ( n )
(2.20) Formop (i , j , k ) ↔k =¬ (i ) ∨k =cond ( i , j ) ∨(∃m ≤ k )(Var ( m) ∧k=gen ( m ,i ) )
(2.21) Formseq ( n ) ↔ Seq ( n )∧(∀ k ≤ l ( n ))¿
( ∃i , j<k ) Formop ( [ n ] i , [ n ] j , [ n ] k ) ¿
(2.22) Form (n)↔(∃ m≤ bg ( n ))( Formseq ( m )∧n=[ m ]l ( m) )Mirroring: Form(n) iff n is the GN of a
formula.
(2.23) Bound ( i ,k , n ) ↔ Form ( n ) ∧Var ( k )∧(∃ p , q , r ≤n)¿
l ( p )+ 1≤ i≤ l ( p )+l ( gen ( k , q ) ) ¿
Mirroring: Bound(i,k,n) holds if
n is the GN of a formula F,
k is the number correlated with a variable v,
within F there is a subformula of the form v(G), and
the ith place in F is within v(G)
(2.24) Free ( i , k , n ) ↔ Form ( n )∧Var ( k )∧[ n ] i=k ∧Bound (i , k , n)
2
Mirroring: Free(i,k,n) if n is the GN of some formula F, k is the number correlated with a
variable u, and u occurs free at the ith spot in F.
(2.24a) ( max k ≤ m ) R ( k )=(μk ≤ m)(R ( k )∧( ∀ j≤ m ) ( j>k → R ( j ) ))
Returns the value of the largest number k (within the bound of m) for which R(k) holds , and 0 if
it doesn't hold for any number.
(2.25)
occ ( 0 , k , n )=¿
occ ( m+1 , k ,n )=¿
Mirroring: If n is GN of a formula F and k is the number of a variable v, then occ(0,k,n) gives
the position of the rightmost free occurrence of v in F. occ(1,k,n) gives the position of the
second rightmost free occurrence of v in F. And so on.
(2.26) nocc ( k , n )=( μm ≤l ( n ) ) ( occ ( m , k , n )=0 )
Mirroring: if n is the GN of a formula F and k is the number of a variable v, then nocc(k,n) yields
the number of times that v appears free in F.
(2.27)
subat ( n , p ,i ) =( μm<bg ( p+ n ) )
( ∃ q , r ≤ n ) ( n=q∗2[ n] ∗r ) ¿
i
i=l ( q )+1∧m=q∗p∗r ¿
Mirroring: If n is the GN of a string s and p is the GN of a string t, then subat(n,p,i) is the GN of
the string that results from substituting t for whatever appears at the ith place in s.
(2.28)
subst ( n , k , p , 0 )=n
subst ( n , k , p , i+1 ) =subat ( subst ( n , k , p ,i ) , p , occ ( i , k ,n ) )
Mirroring, incorrectly put: n is a formula, k is a variable, and p is a string; subst(n,k,p,1) is the
result of substituting p for k in the right most occurrence of k in n. subst(n,k,p,2) is the result of
substituting p for k in the two right most occurrences of k in n.
(2.29) ¿ ( n , k , p )=subst ( n , k , p , nocc ( k , n ) )
Mirroring incorrectly: sub(n,k,p) gives the result of substituting string p for every place where k
occurs free in n.
Mirroing: if n is the GN of a formula F, k is the N of a variable v, and p is the GN of string t,
then sub(n,k,p) is the GN of the result of substituting t for every free occurrence of v in F.
(2.30)
( 2.30 ) diag ( n ) =(n , 19, nmrl ( n)) ¿
3
4