A Few Math Questions
Moderator: Alyrium Denryle
A Few Math Questions
I have two questions.
First: In a game of chess, can you consider the position, assuming no captures and no pawn moves, as an abelian group? If so, can pawn moves and captures be described as transformations from one group to another?
Second: I'm having trouble visualizing functions of complex variables. Is there any good way to do this? I'm afraid that I won't be able to intuitively grasp integration of complex functions if I'm unable to visualize the functions themselves. Also, is it correct to view a function on the complex numbers as a vector field?
Edit for clarification
First: In a game of chess, can you consider the position, assuming no captures and no pawn moves, as an abelian group? If so, can pawn moves and captures be described as transformations from one group to another?
Second: I'm having trouble visualizing functions of complex variables. Is there any good way to do this? I'm afraid that I won't be able to intuitively grasp integration of complex functions if I'm unable to visualize the functions themselves. Also, is it correct to view a function on the complex numbers as a vector field?
Edit for clarification
Last edited by Surlethe on 2006-05-18 12:44am, edited 1 time in total.
A Government founded upon justice, and recognizing the equal rights of all men; claiming higher authority for existence, or sanction for its laws, that nature, reason, and the regularly ascertained will of the people; steadily refusing to put its sword and purse in the service of any religious creed or family is a standing offense to most of the Governments of the world, and to some narrow and bigoted people among ourselves.
F. Douglass
- Durandal
- Bile-Driven Hate Machine
- Posts: 17927
- Joined: 2002-07-03 06:26pm
- Location: Silicon Valley, CA
- Contact:
If you're talking about the C programming language, no, it's definitely not a vector field. A function in C is basically a procedure which takes 0 or more arguments as input and may or may not return output.
Damien Sorresso
"Ever see what them computa bitchez do to numbas? It ain't natural. Numbas ain't supposed to be code, they supposed to quantify shit."
- The Onion
"Ever see what them computa bitchez do to numbas? It ain't natural. Numbas ain't supposed to be code, they supposed to quantify shit."
- The Onion
Sorry; I should have been clearer. By "C", I mean the complex numbers. I'll clarify the OP.
A Government founded upon justice, and recognizing the equal rights of all men; claiming higher authority for existence, or sanction for its laws, that nature, reason, and the regularly ascertained will of the people; steadily refusing to put its sword and purse in the service of any religious creed or family is a standing offense to most of the Governments of the world, and to some narrow and bigoted people among ourselves.
F. Douglass
- Kuroneko
- Jedi Council Member
- Posts: 2469
- Joined: 2003-03-13 03:10am
- Location: Fréchet space
- Contact:
Re: A Few Math Questions
Do you mean the set of positions having group structure? I'm not sure how that would work for chess, but the set of decidable positions, in the sense that it is possible for some player to win no matter what the play, should be representable as a subclass of the Conway games, which do form an Abelian group.Surlethe wrote:First: In a game of chess, can you consider the position, assuming no captures and no pawn moves, as an abelian group? If so, can pawn moves and captures be described as transformations from one group to another?
Yes, treating a complex number as a two-dimensional vector is one of the more visual approaches. Functions on C to C would correspond to two-dimensional vector fields over the plane. Another method is more typical of visualizing four-dimensional objects--treat the function topographically, with elevation on the plane representing complex modulus of the value of the function and some other property (color is easiest) for complex argument.Surlethe wrote:Second: I'm having trouble visualizing functions of complex variables. Is there any good way to do this? I'm afraid that I won't be able to intuitively grasp integration of complex functions if I'm unable to visualize the functions themselves. Also, is it correct to view a function on C as a vector field?
Re: A Few Math Questions
Yes, the set of positions having a group structure, with the operation defined as a function from one position to the next in terms of the moves of each individual piece -- that is, in the opening position, could you form a group from the moves of all the pieces which can move? I'm afraid I'm not being clear enough here, since I'm not familiar enough with groups. I'm trying for something more general than forced wins, since those arise relatively rarely in the game.Kuroneko wrote:Do you mean the set of positions having group structure? I'm not sure how that would work for chess, but the set of decidable positions, in the sense that it is possible for some player to win no matter what the play, should be representable as a subclass of the Conway games, which do form an Abelian group.
Then this makes visualizing line integrals easier, I think, since they simply reduce to the work integrals of multivariable calculus. How does one think of function compositions, then, in the context of a two-dimensional vector field? Specifically, I'm trying to work out what sin z does to the z-plane, but I'm having trouble visualizing it in terms of a transformation.Yes, treating a complex number as a two-dimensional vector is one of the more visual approaches. Functions on C to C would correspond to two-dimensional vector fields over the plane. Another method is more typical of visualizing four-dimensional objects--treat the function topographically, with elevation on the plane representing complex modulus of the value of the function and some other property (color is easiest) for complex argument.
A Government founded upon justice, and recognizing the equal rights of all men; claiming higher authority for existence, or sanction for its laws, that nature, reason, and the regularly ascertained will of the people; steadily refusing to put its sword and purse in the service of any religious creed or family is a standing offense to most of the Governments of the world, and to some narrow and bigoted people among ourselves.
F. Douglass
- Durandal
- Bile-Driven Hate Machine
- Posts: 17927
- Joined: 2002-07-03 06:26pm
- Location: Silicon Valley, CA
- Contact:
Well in that case my usefulness has been exhausted.Surlethe wrote:Sorry; I should have been clearer. By "C", I mean the complex numbers. I'll clarify the OP.
Damien Sorresso
"Ever see what them computa bitchez do to numbas? It ain't natural. Numbas ain't supposed to be code, they supposed to quantify shit."
- The Onion
"Ever see what them computa bitchez do to numbas? It ain't natural. Numbas ain't supposed to be code, they supposed to quantify shit."
- The Onion
- Ariphaos
- Jedi Council Member
- Posts: 1739
- Joined: 2005-10-21 02:48am
- Location: Twin Cities, MN, USA
- Contact:
Re: A Few Math Questions
Probably should also add the caveat that forced captures should be excluded from membership as well (namely, having a knight put a check on the king, in the initial case).Surlethe wrote:Yes, the set of positions having a group structure, with the operation defined as a function from one position to the next in terms of the moves of each individual piece -- that is, in the opening position, could you form a group from the moves of all the pieces which can move? I'm afraid I'm not being clear enough here, since I'm not familiar enough with groups. I'm trying for something more general than forced wins, since those arise relatively rarely in the game.
But you can assign each specific position a symbol in such a case, forming a set, though I have no idea if you could render the operations moving from one symbol to another in traditional linear math a la 2+2=4. I'm not sure if it forms a group since certain moves would be disallowed based on their position.
Brings up an interesting thought (to me anyway) on how to render games like chess or go in such a manner, if it's even possible.
- Kuroneko
- Jedi Council Member
- Posts: 2469
- Joined: 2003-03-13 03:10am
- Location: Fréchet space
- Contact:
Groups need a binary operation, so this would mean that two different games (positions) are 'combined' in some manner. This has a straightforward meaning in something like Go, in which endgames can be seen as collections of isolated subgames, but what this would mean in chess is less clear. This is definitely possible formally in terms of Conway games (except that possibly some elements that have no corresponding chess positions might be introduced), but doing so 'naturally' is a more interesting problem. A group is easy to make, even an Abelian one.Surlethe wrote:Yes, the set of positions having a group structure, with the operation defined as a function from one position to the next in terms of the moves of each individual piece -- that is, in the opening position, could you form a group from the moves of all the pieces which can move?
I see your concern about the pawns--if there are no pawns and both castling and capture are disallowed, then every move is immediately reversible, although castling is not so much of a problem if sequences of moves are allowed to reverse positions. However, if we identify the opposite edges of the chessboard with likewise direction, so that the board now has the topology of a torus (equivalently, take an infinite chessboard and identify coordinates mod 8), the pawns are no longer a problem. To make this work, also identify a given position with the equivalence class of all relative sequences of moves from the initial position that result in that given position. By 'relative', I mean, "rook 1 up two units" rather than "Ra1a3". Obviously, not all positions are legal in this way (in particular, each column must have exactly one pawn, if pawns are in the game), but this gives a straightforward way to do a sum of positions. Given positions X and Y, with representative sequences x and y, simple append the sequence of moves to one another. If conflicts occur (such as one piece moving on top of another), then there must be alternative sequences x', y' which make the appropriate detours and still result in the given positions X and Y, and it is not possible to leave the board because the chessboard is now a torus. Thus, X+Y is well-defined in all instances. For the same reason, X+Y = Y+X, and thus the group is Abelian.
You can remove the pawns if you wish. The fact that the actual chessboard is not a torus is irrelevant--this is a group on board positions; the use of illegal moves to generate them (illegal on non-torii boards) is of no consequence, as once they are generated on the torus, they can be mapped directly back to the real chessboard. Again, the only real constraint is that there are no captures.
It's not at all clear that the initial position itself isn't a forced win situation--for good enough play. It may just be that 'good enough' is simply too far above human ability, not that it is impossible in principle.Surlethe wrote:I'm afraid I'm not being clear enough here, since I'm not familiar enough with groups. I'm trying for something more general than forced wins, since those arise relatively rarely in the game.
Not quite. Given a vector field F:R²→R² and a path σ:[a,b]→R², the line integral is Int_σ[ F⋅dσ ] = Int_a^b[ F(σ(t))⋅σ'(t) dt ]. If F and σ are interpreted as complex-valued, this is the real part of Int_a^b[ conj[F(σ(t))] σ'(t) dt ], where conj() is complex conjugate. In other words, the work integral is the real part of the corresponding line integral of the conjugate 'field'. There is indeed a lot of similarity with the work integral, but it would be a mistake to interchange the two simply because they have similar form.Surlethe wrote:Then this makes visualizing line integrals easier, I think, since they simply reduce to the work integrals of multivariable calculus.
I don't think this has a good visualization, but a multi-step one is easy enough (but it's not useful).Surlethe wrote:How does one think of function compositions, then, in the context of a two-dimensional vector field?
Well, by basic trigonometry, we have sin(u+iv) = sin u cosh v + i cos u sinh v. Thus, if z = x+iy and w = u+iv, the mapping z = sin w is a maps between a vertical strip and the entire plane. Lines of constant v in the w-plane are mapped to ellipses with foci (±1,0), whereas lines of constant u are mapped to hyperbolas with the same foci. This mapping is actually very useful since sine is meromorphic; for example, this an ideal coordinate transformation to represent a cross-section of the gravitational or electric field of an elliptically-symmetric mass or charge, since it maps the field of a sphere conformally into ellipsoids (interpret (u,v) as (θ,r), so that a field of a circle is mapped conformally onto an ellipse).Surlethe wrote:Specifically, I'm trying to work out what sin z does to the z-plane, but I'm having trouble visualizing it in terms of a transformation.
Kuroneko alluded to certian properties of groups without actually defining them, so I'll fill in.
A group is a set, and a binary operation.
There are a few defining properties of groups, which I will show using 'x' as the operator and 'a', 'b', etc. as symbols for arbitrary elements of the set, which I denote as S.
"closure"
a x b exists and is in S
"identity"
there exists an element i such that
i x a = a
"associativity"
(a x b) x c = a x (b x c)
Abelian groups also have the property that
a x b = b x a
So, if your set is the set of chess positions, then it's not clear how you will represent the moves; and if your set is the set of chess moves, then it'll keep changing from turn to turn and anyway no group action makes sense.
As for complex numbers, that's tricky. For C -> C, I generally just look at the poles and jump to the algebra. For R -> C, it's three dimensional, so that's easy -- e^ikx becomes a corkscrew, and so forth.
A group is a set, and a binary operation.
There are a few defining properties of groups, which I will show using 'x' as the operator and 'a', 'b', etc. as symbols for arbitrary elements of the set, which I denote as S.
"closure"
a x b exists and is in S
"identity"
there exists an element i such that
i x a = a
"associativity"
(a x b) x c = a x (b x c)
Abelian groups also have the property that
a x b = b x a
So, if your set is the set of chess positions, then it's not clear how you will represent the moves; and if your set is the set of chess moves, then it'll keep changing from turn to turn and anyway no group action makes sense.
As for complex numbers, that's tricky. For C -> C, I generally just look at the poles and jump to the algebra. For R -> C, it's three dimensional, so that's easy -- e^ikx becomes a corkscrew, and so forth.
Since you can't pass in Chess as you can in Go, how do you have an identity?
Children of the Ancients
I'm sorry, but the number you have dialed is imaginary. Please rotate the phone by 90 degrees and try again.
I'm sorry, but the number you have dialed is imaginary. Please rotate the phone by 90 degrees and try again.
Here's how I'm defining the set and operations now: let the number of pieces and the pawn structure remain constant (i.e., no captures and no pawn moves); let Ge consist of the set of all the legal positions on the board. Then the operation is simply going to be a transformation of the piece positions: b*a is the rearrangement of pieces, by legal moves, from the position in a to the position in b (similar to the way operations are defined in the dihedral group). I'm not entirely sure how to show this definition is even well-defined, though; it may be necessary to specify an initial condition.drachefly wrote:<snip>
So, if your set is the set of chess positions, then it's not clear how you will represent the moves; and if your set is the set of chess moves, then it'll keep changing from turn to turn and anyway no group action makes sense.
A Government founded upon justice, and recognizing the equal rights of all men; claiming higher authority for existence, or sanction for its laws, that nature, reason, and the regularly ascertained will of the people; steadily refusing to put its sword and purse in the service of any religious creed or family is a standing offense to most of the Governments of the world, and to some narrow and bigoted people among ourselves.
F. Douglass
I'm not sure; that struck me as one of the biggest problems after I posted this. The thing is, by limiting it to piece moves, after any even number of legal moves, you can always repeat a position, so even if there's no actual identity in the set, it can appear after a certain set of moves.Jaepheth wrote:Since you can't pass in Chess as you can in Go, how do you have an identity?
Perhaps by defining a move to be both white and black playing, it is possible to have an identity without giving up the order of turns, thus satisfying the rules and satisfying the group axiom.
A Government founded upon justice, and recognizing the equal rights of all men; claiming higher authority for existence, or sanction for its laws, that nature, reason, and the regularly ascertained will of the people; steadily refusing to put its sword and purse in the service of any religious creed or family is a standing offense to most of the Governments of the world, and to some narrow and bigoted people among ourselves.
F. Douglass
This is not similar to the way operations are defined in the dihedral group!b*a is the rearrangement of pieces, by legal moves, from the position in a to the position in b (similar to the way operations are defined in the dihedral group)
b is the rearrangement of pieces, by whatever means necessary, from the position in 0 (the origin -- the original setup).
a*b could then be doing the moves to get to a, then doing the moves to get to b. Or you could define * as the composition operator going the more usual way (b, then a)
THAT would be similar to the dihedral group.
Incidentally, my list of properties of groups was incomplete (never claimed it was). There is another important property!
INVERSES!
for all a, there exists an element a' such that
a * a' = i
so,
b*a' would be the set of moves needed to get from a to b:
start at a. Then apply these moves to it...
b*a'*a = b*i = b
INVERSES!
for all a, there exists an element a' such that
a * a' = i
so,
b*a' would be the set of moves needed to get from a to b:
start at a. Then apply these moves to it...
b*a'*a = b*i = b
Right. That's what I was getting at. Is the difference -- where I was mistaken -- using legal moves instead of any moves necessary?drachefly wrote:This is not similar to the way operations are defined in the dihedral group!b*a is the rearrangement of pieces, by legal moves, from the position in a to the position in b (similar to the way operations are defined in the dihedral group)
b is the rearrangement of pieces, by whatever means necessary, from the position in 0 (the origin -- the original setup).
a*b could then be doing the moves to get to a, then doing the moves to get to b. Or you could define * as the composition operator going the more usual way (b, then a)
THAT would be similar to the dihedral group.
A Government founded upon justice, and recognizing the equal rights of all men; claiming higher authority for existence, or sanction for its laws, that nature, reason, and the regularly ascertained will of the people; steadily refusing to put its sword and purse in the service of any religious creed or family is a standing offense to most of the Governments of the world, and to some narrow and bigoted people among ourselves.
F. Douglass
- Kuroneko
- Jedi Council Member
- Posts: 2469
- Joined: 2003-03-13 03:10am
- Location: Fréchet space
- Contact:
I should probably add that if W_σ[F] is the work integral over a vector field F:R²→R² identified with the complex function f:C→C, then given a path σ, Int_σ[ f(z)dz ] = W_σ[conj(F)] + i W_σ[ refl(F) ], where conj is the conjugate ([x;y]↦[x;-y]) and refl is a reflection about y = x ([x;y]↦[y,x]). This makes the connection explicit.
In the group I've defined, the elements are chess positions rather than moves, so that the identity is the initial position. It is identified with the equivalence class of all sequences of moves from the initial position that end with the initial position.Jaepheth wrote:Since you can't pass in Chess as you can in Go, how do you have an identity?
- Kuroneko
- Jedi Council Member
- Posts: 2469
- Joined: 2003-03-13 03:10am
- Location: Fréchet space
- Contact:
I represent a position as the equivalence class of all sequences of relative moves from the initial position to that given position.drachefly wrote:So, if your set is the set of chess positions, then it's not clear how you will represent the moves; ...
That's exactly what I did, except that I combine the sequences of moves on a toroidal board, so that it is impossible for a move to prescribe leaving the board.drachefly wrote:b is the rearrangement of pieces, by whatever means necessary, from the position in 0 (the origin -- the original setup).
a*b could then be doing the moves to get to a, then doing the moves to get to b. Or you could define * as the composition operator going the more usual way (b, then a)
Yes, and the identity should be two-sided, i×a = a×i = a, since groups in are not necessarily Abelian.drachefly wrote:Incidentally, my list of properties of groups was incomplete (never claimed it was). There is another important property! INVERSES!
One problem I see with this is your definition of Ge. Ge cannot be the set of all legal positions on the board. Specifically, you need to exclude "dead-end" positions, by which I mean: checkmate positions, stalemate positions, and any position from which all of the moves lead to "dead-end" positions. These positions are all irreversible, even though they do not involve captures or pawn pushes.Surlethe wrote:Here's how I'm defining the set and operations now: let the number of pieces and the pawn structure remain constant (i.e., no captures and no pawn moves); let Ge consist of the set of all the legal positions on the board. Then the operation is simply going to be a transformation of the piece positions: b*a is the rearrangement of pieces, by legal moves, from the position in a to the position in b (similar to the way operations are defined in the dihedral group). I'm not entirely sure how to show this definition is even well-defined, though; it may be necessary to specify an initial condition.
On a similar note, you should consider castle eligibility.
Once these restrictions are in place, you could define the group by simply enumerating all of the positions in Ge. Once these positions were numbered (so that, for example, I(p) is the number assigned to position p during the enmueration), then the operation a * b could simply be the position corresponding to (I(a) + I(b)) mod N, where N is the total size of Ge. Unfortunately, that operation has no obvious correspondence to the moves needed to reach positions a or b.
Just as the map is not the territory, the headline is not the article
Yes, I noticed. But how do you define what a primitive, single, legal move is?Kuroneko wrote:I represent a position as the equivalence class of all sequences of relative moves from the initial position to that given position.drachefly wrote:So, if your set is the set of chess positions, then it's not clear how you will represent the moves; ...
As for the rest, I was basically rehashing what you did but going slower for the rest of the audience.
Yes, and the identity should be two-sided, i×a = a×i = a, since groups in are not necessarily Abelian.[/quote]drachefly wrote:Incidentally, my list of properties of groups was incomplete (never claimed it was). There is another important property! INVERSES!
I already covered that by making the inverses work both ways --
a x a' x a = i x a = a x i
I dont think so. It has to work from the same side on all elements tough (I'm not sure if this requirement can be removed). Then the above proves that it is two-sided.drachefly wrote:For that to work, you needed inverses to be two-sided.
To me it seams that way and this time I can't blame my lack of sleep so maybe I'm just stupid. Where do I use two-sidedness of the inverse?
Hmm... now that I've re-examined it more closely, it looks valid. I wonder, does this work if instead of
i x a = a
a' x a = i
we take
i x a = a
a x a' = i
and do not assume that (a')' = a?
then we can't put together line 3... instead, we get
c = a x a' = a x i x a' = a x (a x a') x a' = a x (a' x (a')') x a' -> not very useful
Interesting...
i x a = a
a' x a = i
we take
i x a = a
a x a' = i
and do not assume that (a')' = a?
then we can't put together line 3... instead, we get
c = a x a' = a x i x a' = a x (a x a') x a' = a x (a' x (a')') x a' -> not very useful
Interesting...