| New Reply |
Set cardinality, Turing encoding, and inductive proofs... |
Share Thread | Thread Tools |
| Sep18-12, 11:13 PM | #1 |
|
|
Set cardinality, Turing encoding, and inductive proofs...
I'm going to construct an ordered set, and I'd like to ask some questions about it; and in particular consider coding problems about this set and sets in general (Turing tape encoding).
Start with: A={ } And, allow a mutable temporary set, initialized with: T={ } and an iterator: set n=0 For reference, "x", is a character; Now to construct the set: 1) T = T [itex]\bigcup[/itex] "x" 2) A = A [itex]\bigcup[/itex] T 3) n = n+1 4) Test if |T| ?= |A| and T ?[itex]\in[/itex] A 5) Goto 1. The Algorithm at each iteration (step 4), will yield a pattern: n=1, A = { {x} } , T ={ x }, Test=True n=2, A = { {x}, {x,x} }, T= {x.x}, Test=True n=3, A = { {x}, {x,x}, {x,x,x} }, T={x,x,x}, Test=True n=4, A = { {x}, {x,x}, {x,x,x}, {x,x,x,x} }, T={x,x,x,x}, Test = True ... etc The ordering of the set A is the order in which the elements were added algorithmically. Now, using strong induction; I can say: Base case: for n=1, [itex]\exists[/itex] y [itex]\in[/itex] A : |y| = |A| For case n+1, exactly one element is added to T, and one element added to A, hence: [itex]\exists[/itex] y [itex]\in[/itex] A : |y| = |A| BY 1:1 correspondence (it is not needed to count n items.) This is inductively true, because of algorithmic step #4. ∴ For all steps, n, even an infinite number of steps (n+1...) -- [itex]\exists[/itex] y [itex]\in[/itex] A : |y| = |A| Now, does anyone see a problem with what I have done? If so, what? |
| Sep21-12, 12:29 PM | #2 |
|
Recognitions:
|
|
| Sep27-12, 06:11 PM | #3 |
|
|
Yes, I mean a simple union operator. Although, I'm not used to it coming out so large... ;) Take each 'x's inserted into set T as a *distinct* constant, with a subscript not written down but implied; (This happens in many areas of mathematics -- eg: one C is not the same as another C... sigh... My inexperience of set theory conventions is the issue here...), I apologize for not being clear; I wasn't sure how to phrase it better at the time without writing pages of stuff... In agreement with your observation, string concatenation is an acceptable interpretation of what is in each subset, but I don't want the whole string counted as '1' element. Rather, count the string as a subset; and the cells of the string as *distinct* sub-elements of that subset. I put "x" in quotes in the opening post thinking the idea of a character string would help, but I see that was a bad choice. I don't wish to define a particular way that each x must be distinct; but it's sufficient to say that each x is at least distinct in where it appears in the string/stream. eg: the x immediately next to the "{" is at an earlier position than the second "x" after the "{". It's an ordered set encoding, with the least element of any subset being leftmost in the text written in the post. "x" can be replaced with many different things once the discussion progresses (assuming a flaw doesn't derail me!), and I am using a character for now simply because *encoding* sets on a Turing tape is intrinsically a string concatenation problem. If there is better notation, I'd be happy to follow it. The Latex symbols available on PF, however, do appear to be limited; eg: assignment vs. equality isn't clear cut as to which symbol I ought to use. Do you see any problem with the inductive proof, given the clarification of what "x" is? |
| Sep27-12, 06:36 PM | #4 |
|
|
Set cardinality, Turing encoding, and inductive proofs...Can you say in words what you're trying to do? I'm already disinclined to spend time on this because Stephen Tashi's questions already brought out the fact that you are unclear what a union is and you are attempting to use one symbol 'x' to mean many different things. So there's some underlying confusion. If you say what you're trying to do or prove, it would help me to get started following the symbology. Also you seem to be combining set theory and programming concepts in a confusing way. '=' is an equality operator, not an assignment statement. And again when you write {x,x} you are simply confusing the issue tremendously. Nothing sensible can arise. Are you trying to construct the von Neumann ordinals? http://en.wikipedia.org/wiki/Ordinal...on_of_ordinals |
| Sep27-12, 09:51 PM | #5 |
|
|
Here's a weak ANALOGY; Consider the counting numbers ... 1 is a counting number, (base case), 1+1 is a counting number; and for every n generated by adding 1 to a previous number, there is still an n+1 which is also a counting number. The statement "n+1 is a counting number" holds true regardless of how many 'n' exist in a set; Again, I mean -- Even if the set has infinite cardinality (Aleph naught) there will be *no element* in that set, which fails to produce another counting number if 1 is added to the element's value. If so, I don't want to use enumerated subscripts because those will be hazardous later in the discussion; so what notation ought I use ? I know '=' is routinely used as an assignment operator where algorithms and Turing machines are concerned. But, I looked for alternatives in the Latex symbols here on the PF before writing that post, and didn't see a non ambiguous assignment operator available. For that reason, I simply used the typical programming symbol for assignment; and used "?=" to test equality. I could add the word,"Let" to the assignments, I suppose; would that help? or do you have a suggestion, perhaps? I'd happily restart the thread with better notation if the moderators permit, and there is some kind of consensus about how the O.P. ought to have been written. The construction I have made is arbitrary, and very simple, and has both finite and infinite aspects that I want to consider. In particular, I am interested in studying the possibility of character encoding various infinite sets, and proofs of what has or hasn't been encoded in such a set. For example: If it helps you, A specific instance where "x" is replaced by useful characters might be, { {1}, {1 2}, {1 2 3}, {1 2 3 4}, ... The character sequence on your screen, would be the start of a Turing tape or "infinite stream". With that particular *set* and it's encoding defined, I might ask something like "Could a Turing machine ever get a final closing '}' "? ( but that's not my goal, a set theory question is... ) There are several questions I'd like to be able to ask about -- but, until I have help with the basics; new questions are out of reach. |
| Sep29-12, 06:04 PM | #6 |
|
|
I'll attempt the OP again, and see if this is better, if you see a mistake in notation -- please supply a link with a way which is better.
-------------------------------------------------------------- I'm going to construct a set (initially a set ordered by cardinality of subsets, but you may treat it as a sequence), and I'd like to ask some questions about the construction; and in particular consider some computer/stream encoding problems about this set and sets in general (a Turing tape type idea.). For the purposes of discussion, the | | operator means cardinality, since P.F. does not support the more explicit symbols available in the AMS Tex package. Start with: Let A := { } and Let T := { } and Let n := 0 The set being constructed is called "A", "T" is a temporary used to construct set A, and n is an iterator counter for doing strong inductive proofs with, later. Now to construct the set:
The Algorithm at each iteration (step 4), will yield a pattern: n=1, A = { {xa} } , T ={ xa }, Test=True n=2, A = { {xa}, {xa,xb} }, T= {xa,xb}, Test=True n=3, A = { {xa}, {xa,xb}, {xa,xb,xc} }, T={xa,xb,xc}, Test=True n=4, A = { {xa}, {xa,xb}, {xa,xb,xc}, {xa,xb,xc,xd} }, T={xa,xb,xc,xd}, Test = True ... etc The ordering of the set A is the order in which the elements were added algorithmically, eg: by cardinality of the subsets. The first subset inserted has the smallest cardinality. Now, I am going to do a strong inductive proof that I think can be seen by inspection; but I am wanting to verify how one is done formally. The base case is: for n=1, ∃ y ∈ A : |y| = |A| For case n+1, exactly one element is added to T, and one element added to A, hence There is a 1:1 correspondence between what was added to T and to A. ∴ for every iteration: ∃ y ∈ A : |y| = |A| Which means, for all sets constructable by iteratively adding one element in this fashion, that there always will exist at least one element with the same cardinality as the set it was added to. The value of n plays no role in the construction of the set, but only serves to demark step n and n+1 in the inductive proof. The actual proof is based only on 1:1 correspondence of elements. Now, does anyone see a problem with what I have done using strong induction? Eg: is the proof *written* validly or not? (The result is not what I am asking about, just the construction of the proof.) |
| Sep29-12, 06:47 PM | #7 |
|
Recognitions:
|
if [itex] A = \{x_a\} [/itex] and [itex] T = \{x_a, x_b\} [/itex] then [itex] A \cup T = \{x_a, x_b\} [/itex]. You aren't taking the union of the two sets. You are using A as a set whose members are other sets and you are adding T to the list of the members of set A. I see nothing wrong with performing such an operation, but you shouldn't use the notation [itex] \cup [/itex] to symbolize it. Some people might find the notation [itex] A:= A \cup \{\{ T \}\} [/itex] acceptable for that operation, but it would be clearer if you just said it in words. Likewise [itex] T = T \cup \{x_a\} [/itex] is the operation that adds [itex]x_a[/itex] to the list of the members of [itex] T [/itex]. |
| Sep29-12, 07:26 PM | #8 |
|
|
1 is a finite number. And if n is a finite number, n + 1 is a finite number. Therefore every element of the natural numbers is a finite number. (You can define finite any way you like, doesn't matter for this example). But no set in 1:1 correspondence with the counting numbers is a finite number. You can make up your own examples. Every natural number is either prime, composite, or 1, But no number in 1:1 correspondence with the natural numbers is prime, composite, or 1. When you take limits, you often lose properties. In general that's a common pattern for math errors in proofs. Every element of the sequence 1/2, 1/3, 1/4, 1/5, ... is greater than zero. But if you take the limit, the limit is zero, which is not greater than zero. In programming we always say x := x + 1 but typically in math we typically introduce new (usually subscripted) variables. Can't you just give me the big picture description of what you're trying to build? |
| Sep29-12, 10:42 PM | #9 |
|
|
I'm not trying to be a pain -- but your corrections are exactly what I am seeking. They are more important, in many ways, than the particular problem I am laying out. I won't miss the braces again! There are two+ reasons I am not saying it in words; And I am, of course, open to suggestions about how to work around these issues. The first is that I have had several conversations where people seem totally unable to transform the words back into logical statements; Secondly, I wouldn't know the *precise* words myself to describe what I see pictorially in my mind. Perhaps, I might try to explain in words and notation side by side; if that would help ? Take for example the following question; Can I subtract 1.0 from [itex]0.999\bar{9}[/itex] algorithmically and show the two are the same? Consider: In decimal subtraction, the same result can be gotten by subtracting the MSDigit first (big endian style), so long as borrows are propagated correctly. Now, I have said exactly what I am going to do -- but most people seem to not get what I said, or they will immediately trip over the concept of a finite unbounded computation, vs. an infinite one; (eg; at every step there is a borrow...and a remainder) or they will try to say -- that can't be done because of the halting problem -- or, since the idea is unusual, they will simply reject it as my being crazy, etc. It ends up being a very long discussion.... and typically fails. People don't seem to notice that the halting problem doesn't apply to a fixed algorithm with a known input! eg: And that it is necessary when comparing an infinite stream to another one (by subtraction as computers generally do) that the program Never halt if the streams are identical. A string compare only halts when the subtraction produces a non-zero result. I can demonstrate a few iterations of the algorithm for proving decimal 1.0 equal to the all 9's version -- and it will be very short compared to the previous paragraph. [itex]1.0 - 0.9999\bar{9} = 0.1 - 0.0999\bar{9} = 0.01 - 0.0099\bar{9}[/itex] ... The answer being computed in place would be the left hand side of each subtraction. And I can easily make an algorithm for generating all future steps. Considered in one way, there is a residual '1' digit at every step of the calculation, however looked at in another way (which I think is more proper) that '1' is a temporary that will be zeroed in the next step. I don't know what to call the algorithmic necessity of a temporary or a register in computations which deal with sets of cardinality Aleph Naught. In English, I might try an analogy -- eg: the event horizon, but I have no vocabulary to describe it otherwise; Things beyond the event horizon can't be accessed without fantasy errors creeping in.... Anyhow, that's what I am dealing with -- and the problem will get more interesting as I develop a vocabulary and become more rigorous. That's also why I want to do a formal strong inductive proof on sets of cardinality Aleph Naught. The strong inductive proof is a major tool for conveying the ideas I have to others. (And getting them correct in my own mind.) I appreciate your help. |
| Sep29-12, 11:14 PM | #10 |
|
|
Construct the set of counting numbers by adding an element that is 1 greater than the greatest element already in the set; each set so constructed is *always* finite at every iteration of the algorithm. Let A := { 1 } Let N:= 1
However, when the algorithm is allowed to run without end -- it is inductively the entire set of counting numbers which has cardinality Aleph Naught. Counting numbers CAN be constructed by *counting*. I am not taking a limit, I am defining an ordered set algorithmically; or a sequence if you prefer. IF this is so, then 1:1 correspondence confounds the idea of open and closed sets. I can ask: Is Aleph Naught truly *infinte* or is it merely finite, unbounded? How do you prove something is infinite?, is it not by 1:1 correspondence ? I do solve the same problems, but my methods are typically graphical and algorithmic. It's hard to shift paradigms without some intermediate practice -- which I hope to gain some of here. Feel free to take what I wrote, and give a different mathematical description of it -- I'll examine it, and if I can follow it -- I'll emulate it. The proof is merely an exhibit to examine; that's why I am not really interested in explaining what I am trying to prove -- for I am interested in the proof itself, not really the result which I think will never be agreeable to anyone here. |
| Sep29-12, 11:34 PM | #11 |
|
Recognitions:
|
I think your presentation will be more palatable if you make it clear that it relates to the theory of computation or a theory about manipulating infinite strings. The average reader will look at your steps and assume you want to say something about sets of numbers. I don't know the lingo of computability theory that well, but I'm sure it has one. |
| Sep30-12, 12:15 AM | #12 |
|
|
O.K, I think, Thanks to Stephen Tashi ! That I finally at least have an OP which generates the set I wanted to generate.. So, here it is one last time (hopefully the last time); and perhaps the moderators will allow an edit of post #1, to include a link down to the more sensible O.P.
-------------------------------------------------------------- I am trying to grasp what is computable, and not computable, in an algorithmic sense when dealing with sets of cardinality Aleph Naught. I will be (for the most part) dealing either with place holders for numbers (unknowns like x) to see how a set can be organized on a Turing tape (or modern infinite stream) -- or decimal representations of numbers. Hence, there are two things I will be dealing with -- infinite strings of characters on tape (decimal representations), and set theory. The first example set is intended only to decide on how to approach inductive proofs, and what will be acceptable as a properly formed strong induction proof, and what is not. I am out of practice, and need some assistance in getting the steps of a strong inductive proof correctly written. To begin with: I'm going to construct an example set -- and I will over-specify the set as an ordered set; The ordering is not necessary to the questions I wish to answer, but it is convenient to my way of thinking; you may discard the ordered nature of the set and treat it unordered if you wish to be an advanced auditor of the thread... For the purposes of discussion, the | | operator means cardinality, since the P.F. does not support the more explicit symbols available in the AMS Tex package. Start with: Let A := { } and Let T := { } and Let n := 0 The set being constructed is called "A", "T" is a temporary used to construct set A, and n is an iterator counter for doing strong inductive proofs with, later. Now to construct the set:
The Algorithm at each iteration (step 4), will yield a pattern: n=1, A = { {xa} } , T ={ xa }, Test=True n=2, A = { {xa}, {xa,xb} }, T= {xa,xb}, Test=True n=3, A = { {xa}, {xa,xb}, {xa,xb,xc} }, T={xa,xb,xc}, Test=True n=4, A = { {xa}, {xa,xb}, {xa,xb,xc}, {xa,xb,xc,xd} }, T={xa,xb,xc,xd}, Test = True ... etc The ordering of the set A is the order in which the elements were added algorithmically, eg: by cardinality of the subsets. The first subset inserted has the smallest cardinality. Now, I am going to do an arbitrary strong inductive proof that I think can be seen by inspection; but I am wanting to verify how such a proof is done. The base case is: for n=1, ∃ y ∈ A : |y| = |A| For case n+1, exactly one element is added to T, and one element added to A, hence There is a 1:1 correspondence between what was added to T and to A. (1 element each). ∴ for every iteration: ∃ y ∈ A : |y| = |A| Which means, for all sets constructable by iteratively adding one element in this fashion, that there always will exist at least one element with the same cardinality as the set it was added to. The value of n plays no role in the construction of the set, but only serves to demark step n and n+1 in the inductive proof. The actual proof is based only on 1:1 correspondence of elements. Now, does anyone see a problem with what I have done using strong induction? Eg: is the proof *written* validly or not? (The result is not what I am asking about, just the construction of the proof.) |
| Sep30-12, 01:04 PM | #13 |
|
|
In the infinite case, in order to determine if two infinite sets have the same cardinality you have to examine every possible function between them to see if it's a bijection. Is that computable? There are uncountably many functions between two infinite sets. Is this a concern? |
| Sep30-12, 08:37 PM | #14 |
|
Recognitions:
|
To use strong induction, case n+1 refers to the fact that whatever to be proven is true for all the cases 1,2,.. n. I don't think you need strong induction. |
| Oct2-12, 05:13 PM | #15 |
|
|
My understanding is that listing a single 1:1 mapping between the two sets is sufficient to show they have the same cardinality (I'm presuming no redundant elements); So I am implicitly taking as an axiom, that any 1:1 correspondence may be re-ordered (mapped) into any other 1:1 correspondence that can be constructed. If this is wrong, do you have a concrete example of a set that is a counter-example ? I can't examine entire swaths of set theory at my level, and without tracing out all steps of a proof inductively constructed; I'm not going to be certain the idea applies -- so, if you want assent from me, keep it simple. ;) or perhaps wait until I have developed the ideas here enough to point out an analogy of some kind. Regarding the un-countability of all possible mappings; that will become important, I think, later in the discussion. That seems, intuitively, an issue of constructing permutations of a list/ordered set;and can't be tackled without discussing character encoding of simultaneous infinite lists on a Turing tape/stream. |
| Oct3-12, 05:40 AM | #16 |
|
|
Georg Cantor is the one who claims 1:1 correspondence means two sets are the same size. He does not restrict, as far I as I can tell -- and I have asked others -- this axiom to infinite sets. He claims that it works for finite sets as well -- and his method is an extension of this basic trait of finite sets to "infinite" sets. Sets, by their nature (as Stephen Tashi mentioned) do not allow redundant elements. In any example, where the two sets have finite elements -- cardinality can be found by counting the number of elements in each and comparing the number; AKA, indexing them with an integer subscript and comparing the highest valued subscript in each set and seeing if they are the same. If it were possible for two sets having the same cardinality by counting to NOT be in 1:1 correspondence, then there must be a 1 to many, or many to 1 relationship within those two sets. Such a relationship is unaffected by adding more elements; and therefore such a statement would disprove that 1:1 correspondence correctly identifies sets of known finite cardinality; and since infinite cardinality is made up of subsets of finite cardinality -- infinite sets could never be guaranteed to be in 1:1 correspondence either. This violates Georg Cantors axiom for infinite sets; and hence, your potential disagreement would be with an axiom implied by my using the cardinality "Aleph Naught" at all. ------------------------------- Now: A direct answer to your question in terms of what I did. My (attempted) proof, at every finite subset constructed of the final set -- is *also* countable; and hence, you may *also* verify the cardinality of every finite set by counting. However, Since a counting number is finite but unbounded, it can't be used to state the cardinality of a set which has the property that for every finite cardinality subset, there is another subset of larger finite cardinality; for no finite counting number is the largest possible finite counting number (by definition). That's why I chose to use 1:1 correspondence in the proof. |
| Oct3-12, 06:49 AM | #17 |
|
|
I didn't just say QED at the end -- but gave a statement of what was proven. Hence, I can copy that statement to the start of the proof to show what I'm going to prove -- it's sort of redundant; but OK, I can do that. Regarding the mutability of A, which is being constructed, you said: If it is more proper to say Aa ... A[itex]\aleph[/itex], I suppose I could do that -- but, I'm not sure how the mathematician would understand why the sequence ended in aleph naught; I simply don't know how to subscript them un-ambiguously. That brings up another problem... If there is no legitimate way to subscript them but there is a way to compute such a set -- that seems to say Mathematical notation is deficient. And if Georg Cantor used Mathematical notation -- that would suggest there are some things he couldn't have proved that are computable.... I don't like that idea/fantasy/nighmare. There appear to be two different ideas about what weak/strong induction is in the literature, and I may have picked the wrong word to use in a mathematical context. There is the idea used to differentiate an informal induction (eg: typically used outside mathematics -- philosophy, perhaps?) which is called weak induction; and the words "strong induction" in that sphere of discourse refers to a mathematical kind of proof. Within mathematics there appears to be a subtlety that you have mentioned; and I'm not quite sure what the distinction is. It would seem to me that weak induction, given a base case, and the relationship for n-->n+1, would show that what is proven is true for all cases for it has to be true for n=1, and n+1, and n+1+1, etc. eg: in mine, it is true at every step that an element exists within A that has the same cardinality as A; So it is true for all A. Did I miss something? or do you mean that I could downgrade to weak induction, although strong induction would still hold? ----------------------------------- The missing n may be just a wording/notation issue. I'm looking here: Mathematical induction weak and strong weak induction: And in that case, the statement is true that: ∃ y ∈ Aa : |y| = |Aa| Then I gave an operation to perform, eg: add 1 element to Tlast, and add Tpresent as another element to Alast. This operation maintains the relationship: ∃ y ∈ Apresent : |y| = |Apresent| because a set in 1:1 correspondence with another set, when 1 new unique element is added to each set, then the newly created sets must still be in 1:1 correspondence for the new elements are in 1:1 correspondence -- and this is true regardless of how many elements (n) were in each set originally. But given the inability of an integer index to reach all the way to cardinality Aleph Naught, I don't see how it is appropriate to mention n explicitly for anything but a finitely countable set. So, how would you overcome this notational problem ? |
| New Reply |
| Thread Tools | |
Similar Threads for: Set cardinality, Turing encoding, and inductive proofs...
|
||||
| Thread | Forum | Replies | ||
| Cardinality of the Union of Two Sets that have Same Cardinality as Real Numbers | Calculus & Beyond Homework | 3 | ||
| encoding | Calculus & Beyond Homework | 5 | ||
| Assistance w/ Inductive Proofs required :-) | Calculus & Beyond Homework | 6 | ||
| Regarding MP3 Encoding | Computing & Technology | 1 | ||
| Huffman encoding | Programming & Comp Sci | 1 | ||