Extension To First Order Arithmetic And Number Theory In Sequence Algebra
- an informal discussion
by
Huen Y.K.
CAHRC, P.O.Box 1003, Singapore 911101
http://web.singnet.com.sg/~huens/
http://web.singnet.com.sg/~activweb/
email: huens@mbox3.singnet.com.sg
(A short communication subject to future revisions - Version 1.0 dated 7/4/98)
Abstract
Sequence algebra arrives at its present status by adopting three
extensions to first order arithmetic theory and first order number
theory. These extensions are grafted on without
affecting standard arithmetic rules nor the redefinition of number theoretic
properties. Of the three extensions,
the first defines a new arithmetical operator
called Normc which is new and cannot be derived from standard arithmetic
operators whilst the second defines the expression z/(z-1) axiomatically as
representing a global set of natural numbers
whilst the third defines mixed mode operations whereby boolean functions and
arithmetic functions can be integrated and evaluated under the same algebraic
formulation. The author
cites findings
from publications in symbolic logic and mathematical logic to back his claims [1].
1. Introduction
In this discussion, there is no need for readers to know in detail first order arithmetic
theory and first order number theory. Other than mathematical logicians, ordinary users
do not begin a mathematical course by learning first the underlying logic. In spite of
insights provided by these theories, much progress in mathematics is made informally
outside mathematical logic. Of late, the author
discovers that some findings in mathematic logic do explain the increased
expressivity of sequence algebra over conventional number theory.
First order sentences in number theory range over only the integer number objects
in this domain of discourse. To make mathematical statements on sets of numbers
we need to define second order quantifiers [1]. Thus far such second order quantifiers
cannot be translated into true first-order sentences. The extensions provided
in sequence algebra has changed this situation. Now we have a first-order quantifier
which
describes the global set of integer numbers in the form given
by equation (1):
......................................z
Axiom:.....Natnum := ----- .........................(1).
....................................z - 1
Natnum is defined as an axiom to represent the global integer number set because when
taylor series is expanded, the terms are ordered consecutively according to the
natural number sequence
as shown in equation (2). There are numerous first-order theories of arithmetic but in this
paper we shall adopt an arithmetic theory with the axiomatized theory P where P stands
for Peano Arithmetic [1]. It is recognised that taylor series expansions only rely
on standard arithmetic operations and are well within first order
arithmetic. What is new is the way we interprete the series as representing the
natural number system.
..................................1........1........1........1........1........1.........1.........1...........1
Natnum := 1 + 1/z + ---- + ---- + ---- + ---- + ---- + ---- + ---- + ---- + O(---)...(2).
....................................2........3.........4........5........6........7.........8.........9..........10
..................................z........z.........z.........z.........z........z.........z.........z............z
If Natnum is the global model, then there are two versions of a theorem
of compactness from mathematic logic which has an "easy direction" and a "hard
direction" [1]. We give below the two versions translated for applications in the
number theory domain.
(i) Easy direction: If Natum has a model, then every finite subset of Natnum has
a model.
(ii) Hard direction: If every finite subset of Natnum has a model, then Natum itself has
a model.
To simplify presentation, only intuitive proofs are given.
From sequence algebra, every finite subset of Natnum has the same algebraic
structure as
equation (3) where ub represents the upperbound of the number of terms in the taylor
series.
Natnum := series(z/(z-1),z=infinity,ub);................(3).
Equation (3) ensures that all finite subsets of Natnum have models once the global
model of z/(z-1) is defined according to equation (1).
The second version is harder to prove and yet is provable intuitively in sequence algebra
as follows:
We start with Natnum_1= 1+1/z as representing the first two integer number set {0,1}.
When the cartesian product of Natnum_1 is taken we get Natnum_2 which represents
the integer number set {0,1,2} if we ignore the numerator coefficient values which
has to do with duplicities of terms as shown in the second term in equation (4):
...................................1
Natnum2 := 1 + 2/z + ---- .........................(4).
......................................2
...................................z
We can continue to take successive cartesian products of the outputs
which can be generalised
to equation (5). Here it is necessary to invoke a new arithmetic operator called
Normc which is defined as one of the extensions in sequence algebra. The function
of Normc is to reduce all numerator coefficient in the taylor series to unities.
Natnum_2n:= Normc(expand(Natnum_n^2)); ...............(5).
This means that when n tends to infinity, we should get by induction
the global natural number set
{0,1,2,..........,n,n+1,..........infinity}.............(6).
2. The Three Extensions To First Order Arithmetic Theory
The three extensions included in sequence algebra are briefly summarised as follows:
(i) Axiom: Let the taylor series expansions of z/(z-1) represent the global natural number set.
This axiom has already be discussed in the previous section. As far as arithmetic operations
are concerned, those from first-order arithmetic theory will suffice without defining new ones.
(ii) Normc operator: This is defined as a normalising operator which reduces globally
all numerator coefficients of the taylor series sequence to unities.
Seamless algebraic manipulations of number sequences within sequence algebraic
formulations can only be effected if all number sequences are in normalised forms.
This can be provided using the newly defined Normc arithmetic operator which simply
reduces all numerator coefficients to unities. However, this operator cannot be
derived from the existing ones. This is why a new one has to be defined. The
very first application of Normc is in deriving Prime(z) as the arithmetic difference
between Nat(z) and Normc(Comp(z)) as given by equation (7) derived using Macsyma
2.2.1.
series:taylor(sum(1/(z^i*(z^i-1)),i,2,40),z,inf,40);
Normc(series):=block([args: args(series)],apply( "+",args/map('numfactor,args)))$
Comp_z:Normc(series);
Natnum:taylor(z/(z-1),z,inf,40)-1-1/z;
We thus obtain the Prime(z) sequence as the difference between Natnum and
Comp_z:
Prime(z):=Natnum-Comp_z;
(1/(z^2)) + (1/(z^3)) + (1/(z^5)) + (1/(z^7)) + (1/(z^11)) + (1/(z^13)) + (1/(z^17)) + (1/(z^19))
+ (1/(z^23)) + (1/(z^29)) + (1/(z^31)) + (1/(z^37)) + . . . ...........(7).
(iii) Mixed Mode Functions: The use of functions which include both boolean
funtions and arithmetic functions but which are always reduced to arithmetic
values in computations. These are described in section 3.
3. The MMF Constructs
In computer programming, logical
constructs are routinely mixed with algebraic expressions in numerical computations
because the outputs of predicates are used for flow controls only. It is impossible
to mix logical levels with arithmetic values unless we introduce MMF constructs. An
MMF always contain predicate functions but the output is always reduced to binary
numerical levels of 0s and 1s. Thus the sole purpose of an MMF is to function
as an on/off switch which either display or suppress the display of a particular
term in a taylor series. Potential applications of MMFs are in the developments of
generating functions
for complicated integer sequences which cannot be realised using either
algebraic or boolean formulations.
It is truly meaningless to include logical levels of true and false in arithmetic expressions
as these lead to illegal arithmetic operations as listed in Table 1.
Table 1 - Illegal Arithmetic Operations Involving Boolean Logics
true + true
true + false
true/false and false/true
true^true and true^false
false^true and false^false
There are exceptions as summarised in Table 2 and some of these are used in
the formulation for MMFs. These are based on syntices in Macsyma 2.2.1. If
MMFs are to be adopted, then some standards must be implemented amongst
symbolic languages in the handling of logical levels as recommended in Table 2.
Table 2 - Legal Arithmetic Operations Involving Boolean Logics
true-true = 0
false-false = 0
true/true = 1
false/false = 1
(true-false)/(true-false) = 1
(false-false)/(true-false) = 0
The next two lines follow from the previous two lines and is used to reverse the numeric
output values:
(false-true)/(false-true) = 1
(true-true)/(false-true) = 0
We have not found any use for the next two lines but include these here for completeness:
true^0 = 1
false^0 = 1
There are two classes of MMFs, viz., Conjunctive and Disjunctive MMFs which will be
described in this section. Multilevelled MMFs can be formulated but for brevity, this
topic will be avoided in this paper.
(i) Conjunctive MMFs
The product of MMFs gives rise to a conjunctive MMF which functions like a multilevelled
AND logic operator. We may define a conjunctive MMF by equation (8). Both the inputs and outputs
are numerical but the intermediate values are logical. Only when all MMFs return 1 will
the output be 1, otherwise the output is 0. Unlike in boolean algebra, the number of MMFs
in conjunction is not limited to two.
.................................ub
.............................--------'
.............................'....| |
Conjunc_MMF :=....| | MMF(i)...........................(8).
..................................| |
..................................| |
................................i = 1
It might not look obvious but there are some advantages on the use of conjunctive MMFs
over conventional do loops. Those who have written programs with multiple do loops
will attest to the hassles of trying to rectify errors arising from deeply nested do loops.
In sequence algebraic formulations, generally we rely on a single primary do loop
which is used to generate a general integer sequence followed by filtering using
conjunctive
or disjunctive MMFs to abstract the final sequence subset. The reduced number
of do loops facilitates debugging of complicated programs.
(ii) Disjunctive MMF
A disjunctive MMF is implemented as an arithmetic summative expression of
constituent MMFs as shown in equation (9a) which is somewhat
analogous to a
multilevelled OR logic operator with the exception that when more than one constituent
MMF returns 1, the output can be greater than 1. It is even possible to return real output
values between 0 and 1 by
introducing a divisor equal to the upperbound ub of the disjunctive MMF as shown in
equation (9b).
..............................ub
............................-----
.............................\
Disjunc_MMF := ) MMF(i).............................(9a).
............................./
............................-----
.............................i = 1
Equation (4b) will return real values between 0 and 1.
.......................................ub
.....................................-----
......................................\
......Xor_MMF :=(1/ub) ) MMF(i).............................(9b).
....................................../
.....................................-----
......................................i = 1
4. Applications Of MMFs
Here is how MMFs could be applied in the generation of number sequences with
specific properties. Note that if a specifice number theoretic property does not
have a predicate function, then one will fail to formulat an MMF for it.
(i) Generation Of A Probabilistic Prime Sequence
Probabilistic primality predicate functions are available. Here we use one from
Maple V R 3 called Isprime( ). Probabilistic prime sequence Primex(z) and
probabilistic composite sequence Comp(z) are
generated by equations (10) and (11) respectively. Note that Prime is a reserved
word; so we use Primex instead in equation (10).
Primex(z):=sum(1/z^i*(isprime(i)-false)/(true-false),i=1..15);
......................1........1........1........1........1.......1
Primex(z) := ---- + ---- + ---- + ---- + --- + ---...................(10).
........................2........3........5........7.......11......13
......................z........z.........z.........z........z.......z
Comp(z):=sum(1/z^i*(isprime(i)-true)/(false-true),i=1..15);
..............................1........1........1........1.......1.......1......1......1
Comp(z) := 1/z + ---- + ---- + ---- + ---- + --- + --- + --- + ---.............(11).
................................4.........6........8........9......10....12.....14...15
..............................z.........z........z.........z.......z.......z.......z......z
5. Conclusions
This paper outlines the three extensions implemented in sequence algebra which
increase expressivities in first order number theory. All implementations are
still first-order constructs without affecting the original definitions in the two
first-order theories. The author is of the opinion that as the extensions are quite
mild and as successes have already been reported in several examples in
number theory, there is no good reason to reject these extensions as these
bring more advantages than disadvantages to number theory [2 to 6].
6 References
1. Silver L. Charles: From Symbolic Logic ... to Mathmeatical Logic,
Wm. C. Brown Publishers, Dubuque, U.S.A. Chapters 9 to 11, pp 255 to 369.
2. Huen Y.K.: A Matrix Map for Prime and Non-prime Numbers, INT. J. Math. Educ. Sci.
Technol., 1994, VOL. 25, NO.6, pp 913-920.
3. Huen Y.K.: Some Interesing Properties Of The Natural Number System, Int. J. Math. Educ.
Sci. Technol., 1996, VOL.27, NO. 5, 685-691.
4. Huen Y.K.: Visual algebra and its applications, INT. J. Math. Educ. Sci. Technol.,
1997, VOL.28, NO.3, pp 333-344.
5. Huen Y.K.: The twin prime problem revisited, INT. J. Math. Educ. Sci. Technol.,1997, VOL.28,
NO. 6, pp 825-834.
6.
Sequence Algebra - A Tutorial Paper
- Huen Y.K. (Date Released 2/2/98, 46 Kbytes)
=====================END OF PAPER ======================