The real number √2 as a set

by Michael Brunnbauer

In set theory, all kinds of mathematical objects are hereditary sets: Numbers, relations, functions, etc.

Often, these mathematical objects can be constructed with sets in different ways and there is no canonical way to do it - so you may encounter different definitions in different textbooks.

If you wonder how √2 may look like as a set, here is one example.

One of the ways to contruct the real numbers are Dedekind cuts of the rational numbers, so that a real number is defined as the (infinite) set of all rational numbers on one half of a Dedekind cut (one half determines the other).

We are using the right half of a Dedekind cut where the left half may have a biggest element and the right half does never have a smallest element. This can be understood as the set of all rational numbers that are bigger than the real number in question.

The set of all such cuts then is the set of all real numbers.

Klick on a rational number to see how it may be defined as a set.

√2 = {

2/1,

3/1, 3/2,

4/1,

5/1, 5/2, 5/3,

6/1,

7/1, 7/2, 7/3, 7/4,

8/1, 8/3, 8/5,

9/1, 9/2, 9/4, 9/5,

10/1, 10/3, 10/7,

11/1, 11/2, 11/3, 11/4, 11/5, 11/6, 11/7,

12/1, 12/5, 12/7,

13/1, 13/2, 13/3, 13/4, 13/5, 13/6, 13/7, 13/8, 13/9,

14/1, 14/3, 14/5, 14/9,

15/1, 15/2, 15/4, 15/7, 15/8,

16/1, 16/3, 16/5, 16/7, 16/9, 16/11,

17/1, 17/2, 17/3, 17/4, 17/5, 17/6, 17/7, 17/8, 17/9, 17/10, 17/11, 17/12,

18/1, 18/5, 18/7, 18/11,

19/1, 19/2, 19/3, 19/4, 19/5, 19/6, 19/7, 19/8, 19/9, 19/10, 19/11, 19/12, 19/13,

20/1, 20/3, 20/7, 20/9, 20/11, 20/13,

21/1, 21/2, 21/4, 21/5, 21/8, 21/10, 21/11, 21/13,

22/1, 22/3, 22/5, 22/7, 22/9, 22/13, 22/15,

23/1, 23/2, 23/3, 23/4, 23/5, 23/6, 23/7, 23/8, 23/9, 23/10, 23/11, 23/12, 23/13, 23/14, 23/15, 23/16,

24/1, 24/5, 24/7, 24/11, 24/13,

25/1, 25/2, 25/3, 25/4, 25/6, 25/7, 25/8, 25/9, 25/11, 25/12, 25/13, 25/14, 25/16, 25/17,

26/1, 26/3, 26/5, 26/7, 26/9, 26/11, 26/15, 26/17,

27/1, 27/2, 27/4, 27/5, 27/7, 27/8, 27/10, 27/11, 27/13, 27/14, 27/16, 27/17, 27/19,

28/1, 28/3, 28/5, 28/9, 28/11, 28/13, 28/15, 28/17, 28/19,

29/1, 29/2, 29/3, 29/4, 29/5, 29/6, 29/7, 29/8, 29/9, 29/10, 29/11, 29/12, 29/13, 29/14, 29/15, 29/16, 29/17, 29/18, 29/19, 29/20,

30/1, 30/7, 30/11, 30/13, 30/17, 30/19,

31/1, 31/2, 31/3, 31/4, 31/5, 31/6, 31/7, 31/8, 31/9, 31/10, 31/11, 31/12, 31/13, 31/14, 31/15, 31/16, 31/17, 31/18, 31/19, 31/20, 31/21,

32/1, 32/3, 32/5, 32/7, 32/9, 32/11, 32/13, 32/15, 32/17, 32/19, 32/21,

33/1, 33/2, 33/4, 33/5, 33/7, 33/8, 33/10, 33/13, 33/14, 33/16, 33/17, 33/19, 33/20, 33/23,

34/1, 34/3, 34/5, 34/7, 34/9, 34/11, 34/13, 34/15, 34/19, 34/21, 34/23,

35/1, 35/2, 35/3, 35/4, 35/6, 35/8, 35/9, 35/11, 35/12, 35/13, 35/16, 35/17, 35/18, 35/19, 35/22, 35/23, 35/24,

36/1, 36/5, 36/7, 36/11, 36/13, 36/17, 36/19, 36/23, 36/25,

37/1, 37/2, 37/3, 37/4, 37/5, 37/6, 37/7, 37/8, 37/9, 37/10, 37/11, 37/12, 37/13, 37/14, 37/15, 37/16, 37/17, 37/18, 37/19, 37/20, 37/21, 37/22, 37/23, 37/24, 37/25, 37/26,

38/1, 38/3, 38/5, 38/7, 38/9, 38/11, 38/13, 38/15, 38/17, 38/21, 38/23, 38/25,

39/1, 39/2, 39/4, 39/5, 39/7, 39/8, 39/10, 39/11, 39/14, 39/16, 39/17, 39/19, 39/20, 39/22, 39/23, 39/25,

40/1, 40/3, 40/7, 40/9, 40/11, 40/13, 40/17, 40/19, 40/21, 40/23, 40/27,

41/1, 41/2, 41/3, 41/4, 41/5, 41/6, 41/7, 41/8, 41/9, 41/10, 41/11, 41/12, 41/13, 41/14, 41/15, 41/16, 41/17, 41/18, 41/19, 41/20, 41/21, 41/22, 41/23, 41/24, 41/25, 41/26, 41/27, 41/28,

42/1, 42/5, 42/11, 42/13, 42/17, 42/19, 42/23, 42/25, 42/29,

43/1, 43/2, 43/3, 43/4, 43/5, 43/6, 43/7, 43/8, 43/9, 43/10, 43/11, 43/12, 43/13, 43/14, 43/15, 43/16, 43/17, 43/18, 43/19, 43/20, 43/21, 43/22, 43/23, 43/24, 43/25, 43/26, 43/27, 43/28, 43/29, 43/30,

44/1, 44/3, 44/5, 44/7, 44/9, 44/13, 44/15, 44/17, 44/19, 44/21, 44/23, 44/25, 44/27, 44/29, 44/31,

45/1, 45/2, 45/4, 45/7, 45/8, 45/11, 45/13, 45/14, 45/16, 45/17, 45/19, 45/22, 45/23, 45/26, 45/28, 45/29, 45/31,

46/1, 46/3, 46/5, 46/7, 46/9, 46/11, 46/13, 46/15, 46/17, 46/19, 46/21, 46/25, 46/27, 46/29, 46/31,

47/1, 47/2, 47/3, 47/4, 47/5, 47/6, 47/7, 47/8, 47/9, 47/10, 47/11, 47/12, 47/13, 47/14, 47/15, 47/16, 47/17, 47/18, 47/19, 47/20, 47/21, 47/22, 47/23, 47/24, 47/25, 47/26, 47/27, 47/28, 47/29, 47/30, 47/31, 47/32, 47/33,

48/1, 48/5, 48/7, 48/11, 48/13, 48/17, 48/19, 48/23, 48/25, 48/29, 48/31,

49/1, 49/2, 49/3, 49/4, 49/5, 49/6, 49/8, 49/9, 49/10, 49/11, 49/12, 49/13, 49/15, 49/16, 49/17, 49/18, 49/19, 49/20, 49/22, 49/23, 49/24, 49/25, 49/26, 49/27, 49/29, 49/30, 49/31, 49/32, 49/33, 49/34,

50/1, 50/3, 50/7, 50/9, 50/11, 50/13, 50/17, 50/19, 50/21, 50/23, 50/27, 50/29, 50/31, 50/33,

...

}

For real numbers R1, R2 as defined above, R1 < R2 is defined as (R2 ⊂ R1 and R1 != R2).

R1 + R2 is reduced to addition of rational numbers by defining it as the set of all Q1 + Q2 with Q1 ∈ R1 and Q2 ∈ R2.

Here is a way to enumerate all rational numbers a/c that are elements of of √2:

Let a be 2
Repeat:
  Let c be 1
  While a·a > 2·c·c:
    Enumerate a/c 
    Increase c by 1.
  Increase a by 1

This enumeration may list the same rational number several times. To avoid this, you can compare the new number a/c with all already enumerated numbers a1/c1. If a/c = a1/c1 (or easier: a·c1 = a1·c), then the number was already listed.

The enumeration as Python function with a limiting parameter k:

def print_sqrt2(k):
    dedekind=set()
    for a in range(2,k+1):
        c=1
        while a*a > 2*c*c:
            found=False
            for a1,c1 in dedekind:
                if a*c1 == a1*c:
                    found=True
                    break
            if not found:
                dedekind.add((a,c))
                print str(a)+'/'+str(c)+', '
            c+=1
        print
    print "..."

(back to Linked Open Sets)