MENTAL
 Main Menu
 Language
 Derivatives
 Numerical Range


Numerical Range
 NUMERICAL
RANGE

"The universe of entities is the range of the values of variables. To be is to be the value of a variable" (Quine).



Simple Numerical Range

Semantics

A simple numeric range is an open expression of consecutive numbers (of unit increment). It is defined from the initial (r1) and final (r2) numbers of the range.
Syntax
Justification

The range represents a shorthand way of describing consecutive numbers.


Definition

⟨( r1...r2 =: (r1r1=r2 →'
(r1 (r1+1)…r2) ← r1<r2 →'
( r1r1=r2 →' (r1 (r1-1)...r2))) )⟩



Remarks
Examples
Numeric Range with Increment

Semantics

The increment is defined indirectly by specifying a second element of the sequence. The increment is the difference between the second and the first. The last element of the range cannot exceed the specified upper limit, if the increment is positive. If it is negative, it cannot be less than the specified lower limit. The result is also an open expression.


Syntax
Definition

⟨( (r1 r2 ... r3) =: ( (s = r2r1)
((r1 ¡(r1+s ... r3)↓)) ← r1<r2 →'
r1r1=r2 →' ¡(r1 (r1−s ... r2)↓) )
)↓!
)⟩



Examples
  1. (1 4 ... 12) // rep. 1 4 7 10
  2. ( 10 7 ... 1 ) // rep. (10 7 4 1)
  3. (1 1.02 ... 1.1) // rep. 1 1.02 1.04 1.06 1.08 1.1
  4. (10 8 ... 1) // rep. 10 8 6 4 2
  5. ( a a+2 ... a+8 ) // rep. (a a+2 a+4 a+6 a+8)
  6. ( a a−2 ... a−8 ) // rep. (a a a−2 a−4 a−6 a−8)
  7. (a b ... 4*b−a) // rep. a b 2*b−a 3*b−a, 4*b−a

Higher order ranges

One or both of the two defining ends of a range may themselves be ranges. One thus has a rank of order two. Examples:
  1. 123...( 1...6 ) // rep. 123...123456
  2. ( 1...5 )...1234567 // rep. 12345...1234567
  3. ( 1...5 )...( 1...7 ) // rep. 12345...12345677
  4. ( 1 ( 1 ( 1...4 ) ... ) // rep. (1 1234 2447 ...)
  5. (1...5 10...15) // rep. (1 2 3 4 5 10 11 12 13 14 15)

Other Types of Numeric Ranges

Infinite Range

When the upper end of the range is not specified, by definition, it is an infinite numeric range.

Simple infinite range (increment 1): Infinite range with increment definition: Examples:
  1. 3... // rep. 3 4 5 ...
  2. (−3)... // rep. −3 −2 −1 0 1 2 3 ...
  3. ( 1 3 ... ) // rep. (1 3 5 7 9 ...) // sequence of odd numbers
  4. (3 1 ...) // rep. 3 1 −1 −3 −5 ...

Operating range

It is an expression of the form where is an operator. An operative range is equivalent, by definition, to inserting the operator between all the components of the range:

⟨( r1⊥...⊥r2 =: ⊥⊣( r1...r2 )⟩

⟨( r1r2...⊥r3 =: ⊥⊣( (r1 r2 ... r3) ) ) )⟩


Depending on the type of operator we have additive ranges, multipliers, etc.

A "normal" range is a particular case of operating range when (⊥ = θ).

There can also be infinite operating ranges, of the forms: Examples:
  • Exponential range:
  • Range of unions:
    Continuous range

    The continuous range on the real line is the set of numbers between two given numbers. It is defined as follows:

    ⟨( r1_r2 =: {⟨(r← (rr1rr2)⟩} ← r1r2 →'
    {⟨(r ← (r≥r2rr1)⟩} )⟩


    Infinite continuous range definition on the right:

    ⟨( r1_ =: {⟨( r ← r≥r1 )⟩} )⟩

    Definition of infinite continuous range on the left:

    ⟨( _r1 =: {⟨( r ← r≤r1 )⟩} )⟩

    Examples:
    Range Properties
    1. ⟨( r...r = r )⟩ // by the definition of range

    2. ⟨( (x x ...) ≡ x★ )⟩

    3. ⟨( ((r1 r1+1 ... r2) ≡ (r1...r2r1<r2))) )⟩

    4. ⟨( ((r1 r1−1 ... r2) ≡ (r1...r2r1>r2))) )⟩

    5. (1+... = ∞)

    6. ⟨( ( r1.... r2 )# = r2r1+1 ) ← r1<r2 →' r1r2+1 )⟩

    7. ⟨( ( r... )# = ∞ )⟩

    8. ⟨( ( ...r )# = ∞ )⟩

    9. ⟨( (r1 r2 ...)# = ∞ )⟩

    10. ⟨( r1_r2r2_r1 )⟩