Well, inequalities don't actually make any sense in the complex numbers. (By which I mean, there's no way of assigning an order under which all the properties you'd want to be true actually are.) So simply saying d>0 implies that d needs to be real. And, while tundra's "solution" was kind of clever, it's invalid over the reals (x, when restricted to the reals, isn't periodic), and clearly not what flOvermind has in mind.
I'm out of clever ideas myself, and would quite like to hear the solution, actually
Re: Math puzzles
Posted: Wed Nov 17, 2010 8:53 am
by flOvermind
tundra wrote:A possible solution to Problem 1, though using complex-valued functions in the complex plane:
We want f(z) + g(z) = z, where z = x + i*y, i such that i^2 = -1 i.e., x = Re(z) = the real part of z, y = Im(z) = = the imaginary part of z.
Define f(z) = f(x+i*y) = x - sin(x) + sin(y) Note that f(z) has period d = 2*pi*i: When z changes by d, its real part, x, is unchanged, so x - sin(x) does not change either. Its imaginary part, y, changes by 2*pi, but this is just the period of sin(y). So f(z) is unchanged.
Similarly, define g(z) = g(x+i*y) = i*y + sin(x) - sin(y) When z changes by d' = 2*pi, y is unaffected, and we just have the periodicity of sin(x).
So f and g are both periodic, with periods d = 2*pi*i and d'= 2*pi, respectively.
And when we take their sum, the sine functions all cancel, leaving us with:
f(z) + g(z) = x + i*y = z, as desired.
That appears to be correct, even though it is not the solution I had in mind. To be honest, it's a bit of a surprise to me that in the complex plane the solution is so "well-behaved"
By the way, your solution is more complicated than necessary:
Let just f(x+iy) = x and g(x+iy) = iy. f is periodic with a period of i (for example, actually it's periodic in any imaginary number). g is periodic with a period of 1 (and also all other real numbers).
gaius wrote:Hehe, that's a nifty way around the real problem .
Way around? Not really, I'd say he's pretty close d > 0 could actually be replaced by d != 0. The only intention of that was to make sure nobody claims "But my function is periodic, because f(x) = f(x+0) ". In my original post, I even forgot it until DrStraw pointed it out...
A strong hint at the real-valued solution:
Tundra's solution (or the simplification of it) uses no special property of complex numbers. In the same way, we could construct a solution for e.g. R^2, R^5, Q^27, and all sorts of other vector spaces .
Re: Math puzzles
Posted: Wed Nov 17, 2010 9:25 am
by robinz
Oh, I think I see (based on the last hint). NB: don't look at the hidden text unless you want to see the solution. (Ignore that last sentence and read it if it subsequently gets shot down though - but I'm pretty sure it works.)
So you basically choose a basis for the reals over the rationals - this bit requires the axiom of choice. Then you pick any two elements of your basis - they may as well be 1 and pi, or your favourite irrational number - and express any x as x=a+b*pi+{a linear combination of the other basis elements}. Then just set, for example, f(x)=b*pi+{blah}, g(x)=a, and you have a solution. (f has period 1, g has period pi.)
Nice - I really ought to have been able to come up with that from the earlier hints
Re: Math puzzles
Posted: Wed Nov 17, 2010 9:37 am
by fwiffo
Well, that's what I was groping for anyhow.
Re: Math puzzles
Posted: Wed Nov 17, 2010 10:11 am
by Bill Spight
gaius wrote:Shaddy, your "proof" sounds like it comes from a textbook somewhere, but all my mathematical intuition screams that there must be a flaw in this logic. As I said before, I'm not a mathematician but a physicist - I like to think in terms of concrete stuff.
My first thought was that the whole conclusion seems to conflict with information theory; you generate information where there is none. Can you disprove this line of reasoning? Thinking further though, your "proof" does not do anything for finite sets except for the trivial observation that, with a finite set of people, the number of errors is also finite. You are not really boosting the accuracy rate, you're only making sure the amount of errors is not infinite (right?). Maybe that could lift my objection, though my math is not good enough to really be certain.
After thinking a bit more, I have far greater problems with the following paradox. You imply that, for every infinite sequence of ones and zeroes, it is possible to find a uniquely defined equivalence set. Accepting that, let's evaluate this "algorithm" (it has infinite runtime, but apparently such an algorithm is acceptable in your paradigm!):
1. Take an infinite sequence of ones and zeroes. 2. Change the first element. By definition, the resulting sequence will still be in the same equivalence set as the original one (there is only one mistake!). 3. Now, do the following: IF we are in the original equivalence set, change the next (second, third, etc.) element. ELSE, halt. 4. Repeat (3) for all elements.
Now, obviously, after repeating for all elements, the list will not be in the same equivalence set any more. Therefore, we conclude that after some number of steps (let's call it n), (3) must halt. But then, despite only having one difference, the list at step n-1 and at step n are not in the same equivalence set!
Paradox?
I think, as Aristotle might say, you are highlighting the difference between potential infinity and actual infinity. (IIRC, Aristotle did not think that actual infinity existed, even logically.) Normally, "for each" and "for all" mean the same thing. However, it does make a difference for step 4. I think that Aristotle would say that you must say, "Repeat (3) for each element." That leaves us in the realm of the potentially infinite. The problem has a solution only in the realm of the actually infinite.
Re: Math puzzles
Posted: Wed Nov 17, 2010 10:43 am
by Redundant
Some general statements about problem two:
It also helps to think of how totally impossible this strategy is to implement in reality. It consists of memorizing an uncountable number of infinitely long sequences of zero and one.
Also, gaius is right in that there is no upper bound on the number of incorrect guesses that can be had, we only know that it will always be finite following this strategy.
However, gaius' algorithm does not in fact halt. At any n, we can have changed at most finitely many members, so we still move on to n+1.
Re: Math puzzles
Posted: Wed Nov 17, 2010 11:03 am
by gaius
Bill Spight wrote:I think, as Aristotle might say, you are highlighting the difference between potential infinity and actual infinity. (IIRC, Aristotle did not think that actual infinity existed, even logically.) Normally, "for each" and "for all" mean the same thing. However, it does make a difference for step 4. I think that Aristotle would say that you must say, "Repeat (3) for each element." That leaves us in the realm of the potentially infinite. The problem has a solution only in the realm of the actually infinite.
I still fail to see the difference. Of course I understand that the algorithm I posted is completely unreasonable because it will never finish, but so is the solution algorithm as it requires the construction of infinitely many "equivalence classes". However, the "solution algorithm" assumes a theoretical paradigm in which countably infinite runtimes are somehow acceptable, so I will reiterate my point. Either (a) we accept countably infinite runtimes as workeable; my algorithm will finish, and the paradox will be clear, or (b) we do not accept countably infinite runtimes, in which case the "solution algorithm" clearly does not finish, and hence, is not a valid solution to the problem. Whether we choose (a) or (b), the answer is disproved. In fact, if correct, my reasoning would disprove the existence of well-defined equivalence classes.
I realise that people smarter than me have probably considered this point too, but I would really like to hear how they came up with a workaround!
Bill, I am personally not a native English speaker, but in my vocabulary the words "each" and "all" are synonyms. As you might know, Aristotle was not an English speaker either. In fact, he spoke a strange language called Ancient Greek. Perhaps you could elaborate on the difference between these two words?
EDIT: I am not 100% sure that these runtimes are countably infinite. If not, please replace the phrase "countably infinite" by "infinite". The reasoning will be unaffected.
Re: Math puzzles
Posted: Wed Nov 17, 2010 11:43 am
by Shaddy
I think I see a problem with your algorithm. It seems to me that you are saying, ok, we have an infinite sequence of 0s and 1s like this
001010100110110101001...
and we flip bits in sequence until we arrive at something that is not in our original equivalence class. However, we should not be keeping them flipped. Each person has knowledge of every hat except his own, so the first person's knowledge is like
_01010100110110101001...
, the second person's like
0_1010100110110101001...
and so on. Each person knows the entire sequence, except one bit- so it's always finitely different from the sequence they have memorized because they make at most one mistake.
edit: about the information thing. I don't know if that really applies here, because the scenario is completely removed from reality, but by setting an order, we gain some information, which we use to do stuff with equivalence classes. And yeah, this doesn't work for finite numbers of people, there's a separate solution for that case of the problem.
Re: Math puzzles
Posted: Wed Nov 17, 2010 11:46 am
by Bill Spight
gaius wrote:
Bill Spight wrote:I think, as Aristotle might say, you are highlighting the difference between potential infinity and actual infinity. (IIRC, Aristotle did not think that actual infinity existed, even logically.) Normally, "for each" and "for all" mean the same thing. However, it does make a difference for step 4. I think that Aristotle would say that you must say, "Repeat (3) for each element." That leaves us in the realm of the potentially infinite. The problem has a solution only in the realm of the actually infinite.
I still fail to see the difference. Of course I understand that the algorithm I posted is completely unreasonable because it will never finish, but so is the solution algorithm as it requires the construction of infinitely many "equivalence classes". However, the "solution algorithm" assumes a theoretical paradigm in which countably infinite runtimes are somehow acceptable, so I will reiterate my point. Either (a) we accept countably infinite runtimes as workeable; my algorithm will finish, and the paradox will be clear, or (b) we do not accept countably infinite runtimes, in which case the "solution algorithm" clearly does not finish, and hence, is not a valid solution to the problem. Whether we choose (a) or (b), the answer is disproved. In fact, if correct, my reasoning would disprove the existence of well-defined equivalence classes.
I realise that people smarter than me have probably considered this point too, but I would really like to hear how they came up with a workaround!
Bill, I am personally not a native English speaker, but in my vocabulary the words "each" and "all" are synonyms. As you might know, Aristotle was not an English speaker either. In fact, he spoke a strange language called Ancient Greek. Perhaps you could elaborate on the difference between these two words?
EDIT: I am not 100% sure that these runtimes are countably infinite. If not, please replace the phrase "countably infinite" by "infinite". The reasoning will be unaffected.
As for the difference between "for each" and "for all", modern mathematical logic does not recognize it. The key to the difference is what Redundant says: your process does not halt. So, even though the bit is flipped for each element, at no point in the process is it flipped for all of the elements. The process remains in the realm of the potentially infinite. Aristotle would say that, even though each element is eventually changed, we cannot conclude that all of the elements are eventually changed. The number of changed elements is always finite.
Consider how paradoxes arise in probability theory when you try to consider actually infinite sets. Jaynes is right, IMO, that we should construct finite models and take them to the limit. In that he is following Aristotle, although I do not know if he was aware of Aristotle's distinction.
Re: Math puzzles
Posted: Wed Nov 17, 2010 11:54 am
by DrStraw
flOvermind wrote:Puzzle 1: Find two periodic functions f and g, such that their sum is the identity function (that is, f(x) + g(x) = x).
I still have an issue with the statement of the problem. The operation is function addition and x is not the identity for that operation. x is only the identity under function composition.
Now for the simplest answer. As the domain and range of the functions are not defined I am going to take them both as the reals modulo 1. Then f(x) = g(x) = x/2 gives the desired solution.
Re: Math puzzles
Posted: Wed Nov 17, 2010 12:54 pm
by hyperpape
Dr. Straw, is there some hidden problem there? I thought he was just being a little inexplicit, by not writing "i.e. for all x, f(x) + g(x) = x".
Re: Math puzzles
Posted: Wed Nov 17, 2010 1:55 pm
by GoCat
DrStraw wrote:Now for the simplest answer. As the domain and range of the functions are not defined I am going to take them both as the reals modulo 1. Then f(x) = g(x) = x/2 gives the desired solution.
This is a much nicer version of the answer I tried to compose using clocks. But then, you're a mathematician.... so you would know how to do it right! I guess in these terms, I was thinking of f(x) = 2x, g(x) = -x. I think the idea was in my head, just didn't have the math to state it clearly!
Re: Math puzzles
Posted: Wed Nov 17, 2010 1:56 pm
by Redundant
There are very many nice properties of the zero ring. Any equation involving any of its elements are true.
Re: Math puzzles
Posted: Wed Nov 17, 2010 2:05 pm
by Suji
Here's a problem related to Redundant's, and I'm not quite sure how I solved it since in my solution M/2 was still an infinite number.
Imagine 200 people in prison and the prison warden makes them a deal that if they can guess the color of the hat on their head they get to go free. The Warden, knowing the solution to Redundant's problem, decides to make it a bit harder on the prisoners and not only uses Black and White hats but uses Red, Green, and Blue hats as well.
So, the Warden with his five colors of hats decides to give the prisoners time to develop a strategy beforehand. When the judgment day arrives, so to speak, he is going to put all the prisoners in a room and ask them the color of their hat. If they get it correct, they can go free. If they are incorrect, they have to stay there and serve the remainder of their original sentence.
Obviously, they can see everybody else's hat and not their own.
What is the optimal solution for the prisoners?
Re: Math puzzles
Posted: Wed Nov 17, 2010 6:27 pm
by Redundant
The infinite case still works the same as before
Finitely ... I'll have to think about this.
Another cool problem. Find two sets (A and B) that partition the naturals (including zero) subject to the following condition: for each n, the number of distinct unordered pairs in A that sum to n is the same as those for B.