<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.speedsolving.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Circular17</id>
	<title>Speedsolving.com Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.speedsolving.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Circular17"/>
	<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php/Special:Contributions/Circular17"/>
	<updated>2026-10-22T06:33:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Talk:Commutator&amp;diff=22846</id>
		<title>Talk:Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Talk:Commutator&amp;diff=22846"/>
		<updated>2013-04-12T12:31:21Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Relationship of NA’=N and NB’=N */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Addition of commutator GIF ==&lt;br /&gt;
I change P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt; to P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; for consistency reasons.&lt;br /&gt;
I got rid of the table because it is now extraneous. However it is commented out in the raw text of this talk page in case you want to re-include it. &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Which can be described as :&lt;br /&gt;
&amp;lt;table border=1 cellspacing=0&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;step&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;intersection&amp;lt;br/&amp;gt;N&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;N A&#039;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;storage&amp;lt;br/&amp;gt;N A&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;N B&#039;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;storage&amp;lt;br/&amp;gt;N B&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Initial&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After A&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After B&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After A&#039;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After B&#039;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Circular17, I don&#039;t want to mess with your work and make large changes, but I think the part that is directly above the gif and reproduced below is not longer needed. I think in this case &amp;quot;a picture/animation says a thousand words&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
xxxxxxxxxxxxxxxxxxxx&amp;lt;br&amp;gt;&lt;br /&gt;
We notice that N A and N B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage N A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of N A&#039; is brought by A, and is then hidden by B in N B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of N B&#039; is brought by B, and then is placed immediately in N A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
xxxxxxxxxxxxxxxxx&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That being said, I think what might be really helpful is if below the animation, we talk about a &amp;quot;real life example&amp;quot;. I&#039;ll see if I  can put something together.[[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 15:18, 28 November 2012 (EST)&lt;br /&gt;
&lt;br /&gt;
== Changes by Circular17 ==&lt;br /&gt;
&lt;br /&gt;
[[User:Circular17|Circular17]] comment &amp;gt;&amp;gt; http://en.wikipedia.org/wiki/User_talk:Dave3457#Commutator_on_Speedsolving_wiki&lt;br /&gt;
&lt;br /&gt;
:I would be happy to look over your work. Keep in mind that I not sure that I always receive an email notification when a page I&#039;m watching on Speedsolving Wiki (SSW) is changed . I did receive one for your March 30 changes however. My watchlist only showed one of your March 30  edits. (Maybe that&#039;s intended)&lt;br /&gt;
: I am looking things over now, it might take a couple of days.&lt;br /&gt;
: Aren&#039;t commutators wonderful ! :) I just discovered (using a program) a wonderful 2-gen one that twists 2 corners. Its the only one of its kind that I know of, it may be my favorite comm being a 2-gen and all. Check it out below. (Note: I personally cut and paste new algorithms I&#039;m learning into CubeTwister)&lt;br /&gt;
:Its not that hard to understand how this comm works, you don&#039;t have to memorize it, follow the two corner-edge pairs on each side of the twisted corner and how the twisted corner moves between them. &lt;br /&gt;
:R2DRD&#039;RDR2 D2 R2D&#039;R&#039;DR&#039;D&#039;R2 D2 (16,22)&lt;br /&gt;
:[ R2DR D&#039; RDR2, D2]   OR [ R2DR D&#039; RDR2, D] - [[User:Dave3457|Dave3457]] ([[User talk:Dave3457#top|talk]]) 04:05, 31 March 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
::I don&#039;t know how these notifications works.&lt;br /&gt;
::That&#039;s an interesting sequence indeed.&lt;br /&gt;
::I would reflect it like this :&lt;br /&gt;
::R2U&#039;R&#039;UR&#039;U&#039;R2 U&#039; R2URU&#039;RUR2 U&lt;br /&gt;
::so that it can be used for orienting corners of the last layer on top.&lt;br /&gt;
::or for left hand :&lt;br /&gt;
::L2ULU&#039;LUL2 U L2U&#039;L&#039;UL&#039;U&#039;L2 U&#039;&lt;br /&gt;
::--[[User:Circular17|Circular17]] ([[User talk:Circular17|talk]]) 02:46, 31 March 2013 (EDT)&lt;br /&gt;
:::Ya, any commutator I post will certainly be designed for those who solve the top layer last. Myself, I don&#039;t solve for speed and solve the bottom layer last. In fact I often do not rotate the cube at all but keep each face pointing in the same direction all of the time. That way I don&#039;t use muscle memory to perform an algorithm and force myself to understand the algorithms more deeply.&lt;br /&gt;
:::- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 23:07, 8 April 2013 (EDT) &lt;br /&gt;
:I created two images to help with the defining of the variables and took what you wrote and expanded it. I&#039;ve noticed that your writing is very &amp;quot;dense&amp;quot;. Judging from your WP User page, I&#039;m assuming that English is not your first language although you wouldn&#039;t guess judging from your grammar. (you do occasionally &amp;quot;miss&amp;quot; an odd word however). (For the record, I fully appreciate that my own grammar and spelling is very poor).&lt;br /&gt;
::You are right, English is not my first spoken language. But I started it very early with programming languages.&lt;br /&gt;
:With regards to your writing, may I suggest that you make it less &amp;quot;dense&amp;quot;. I suspect that you are a mathematician. [I can&#039;t be sure because I can&#039;t read your user page :)] Whether or not you are a mathematician you tend to take the symbolic shortcuts that mathematicians tend to. &lt;br /&gt;
::You are right, I&#039;ve studied mathematics and IT.&lt;br /&gt;
:For example I changed &amp;quot;When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute,...&amp;quot; to &amp;quot;When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, A and B commute,...&amp;quot;&lt;br /&gt;
::Oh that&#039;s right. I&#039;ll try to think about it. It&#039;s not really a shortcut, but that there is a mathematical object describing the intersection which is called the empty set. But I completely understand that most people would be confused.&lt;br /&gt;
:That being said I appreciate that as things get more technical as you go into more and more detail, not using the concise language of mathematics becomes more and more difficult.&lt;br /&gt;
::Yeah, that&#039;s why I&#039;ve done that, because I was lost myself.&lt;br /&gt;
:Because of my desire to share the wonders of the commutator to the general non-mathematical population I, personally, will be focusing on the basics here and will be trying to make those basics as clear as possible using images and &amp;quot;extended&amp;quot; language. (Also I&#039;m not sure I&#039;m going to understand, or be able to take the time to understand, the later stuff) &lt;br /&gt;
::Your explanations are very good. Thanks.&lt;br /&gt;
:I hope you don&#039;t mind but I&#039;m planning on modifying and &amp;quot;extending&amp;quot; the first and second sections quite heavily.&lt;br /&gt;
::Have fun :)&lt;br /&gt;
:I&#039;ve only glanced at the new stuff that you have written, but from what I&#039;ve read it seems pretty &amp;quot;heady&amp;quot;.&lt;br /&gt;
::Yes, it was hard for me to do this mathematical work, so I can understand that it&#039;s not very readable.&lt;br /&gt;
:My general thoughts at this point are that we can expect each reader to stop reading the page when things get to difficult for them. Or to put it another way, they will stop when the amount of effort required is not worth the reward. Toward this end, I personally, would strongly suggest beginning with the easiest stuff and working toward the more difficult, even if its not the &amp;quot;correct&amp;quot; order from a mathematician&#039;s point of view. For example, you presently begin with the example case  [M&#039;, U2] = M&#039; U2 M U2 which rotates edges, however the case you mention later, [R&#039; D&#039; R D R&#039; D&#039; R, U] which twists two corners would be much easier to understand. I could see me creating a series of images or an animation for that one.&lt;br /&gt;
::Absolutely. I&#039;m ok with that.&lt;br /&gt;
&lt;br /&gt;
:Also, I&#039;m thinking that, at least when we are dealing with the basic stuff, that things would be easier to understand if we dealt with an example right from the start rather than talk in the abstract. For example you wrote...&lt;br /&gt;
:::If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
: While I know I&#039;m speaking from the point of view of a guy with only an average IQ, I think a lot of people besides me would not follow that easily either. If a diagram was associated with it I&#039;m sure it would be a lot easier to follow. &lt;br /&gt;
::In fact, I&#039;m thinking about specific moves while writing this. My goal was to make it general so that it can be applied to any situation. The quirk part and so on are the result of that exhaustive description.&lt;br /&gt;
:Personally, I thinking that since the B move is usually the rotation of the Up side, we should start with &#039;&#039;&#039;A inplace&#039;&#039;&#039; situations rather than the &#039;&#039;&#039;B inplace&#039;&#039;&#039; situations and that way we can talk about the easier to understand examples ...&lt;br /&gt;
&lt;br /&gt;
:* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
:* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
:* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
:* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
::Ok.&lt;br /&gt;
:&#039;&#039;&#039;Odds and ends:&#039;&#039;&#039;&lt;br /&gt;
:...I noticed that you referred to a single corner being &amp;quot;rotated&amp;quot;. Personally I prefer to reserve the word &amp;quot;rotate&amp;quot; to when I&#039;m dealing with 3-cycles and such. I instead try to refer to them as being &amp;quot;twisted&amp;quot;&lt;br /&gt;
:- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 00:45, 9 April 2013 (EDT)&lt;br /&gt;
::Ok.&lt;br /&gt;
:I want to make a strong suggestion. Do you know how later on you use subscripts to identify pieces such as &#039;&#039;&#039;P&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;,&#039;&#039;&#039;P&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;,&#039;&#039;&#039;P&#039;&#039;&#039;&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; . May I suggest that we also use subscripts to identify the locations of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;. May I suggest the capital letter &#039;&#039;&#039;L&#039;&#039;&#039; which would stand for &#039;&#039;&#039;L&#039;&#039;&#039;ocation. ie &#039;&#039;&#039;J&#039;&#039;&#039;=&amp;gt;&#039;&#039;&#039;L&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, &#039;&#039;&#039;K&#039;&#039;&#039;=&amp;gt;&#039;&#039;&#039;L&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;. This would greatly relieve the &amp;quot;mental strain&amp;quot; one experiences trying to remember what they stand for. Since &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; are bolded one could simply do a mass &amp;quot;find and replace&amp;quot; operation. (although not in the images).&lt;br /&gt;
:While technically we should do it for &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; as well, given how often those locations of referenced, I think that might be to much clutter and not really necessary. I would be happy to do the switch over.&lt;br /&gt;
:- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 15:23, 9 April 2013 (EDT)&lt;br /&gt;
::I was tempted to use the letter L at some point, but I noticed that it can be confused with the move L (left). With subscript however, this may be ok. About &#039;&#039;&#039;N&#039;&#039;&#039;, are you thinking about &#039;&#039;&#039;L&#039;&#039;&#039;&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; ? Not sure it would be better, so I suppose we can keep it that way. And it sounds good, I think. N like intersection, like N-tersection. --[[User:Circular17|Circular17]] ([[User talk:Circular17|talk]]) 07:49, 12 April 2013 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Relationship of NA’=N and NB’=N ==&lt;br /&gt;
&lt;br /&gt;
:Circular17, I suspect that there is something misleading about the way things are being presented right now. There is a bit of a suggestion that NA’=N and NB’=N are not perfectly symmetrical. (or maybe they aren’t) &lt;br /&gt;
:Specifically…the two NA’=N examples that I have discussed…&lt;br /&gt;
:[R&#039; D&#039; R D R&#039; D&#039; R, U] and [M2 D2 M2, U]  &lt;br /&gt;
:have their NB’=N symmetric counterparts which accomplish the exact same thing…&lt;br /&gt;
:[U, R’ D R D’ R’ D R] and [U, M2 D2 M2]&lt;br /&gt;
:It seems that in these two cases [A,B] = [B,A’]. &lt;br /&gt;
:However it isn’t true for…&lt;br /&gt;
:[U2,M] which is a NA’=N version&lt;br /&gt;
:and &lt;br /&gt;
:[M&#039;, U2] which is a NB’=N version&lt;br /&gt;
:ie [A,B] ≠ [B,A’] in this case. &lt;br /&gt;
:I guess it is because of the “overlap”. That Quirk thing that you talk about but that I don’t understand yet. Am I right on that?&lt;br /&gt;
:Whatever the case, we don’t want to give the impression that NA’=N and NB’=N are any different if they aren’t. I guess it comes down to whether or not you can do the same thing with both by just exchanging and reversing things. To what degree are they different? &lt;br /&gt;
:-- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 04:29, 12 April 2013 (EDT)&lt;br /&gt;
::I suppose you are talking about [A,B]&#039; = (ABA&#039;B&#039;)&#039; = BAB&#039;A&#039; = [B,A]. It&#039;s true.&lt;br /&gt;
::NA&#039;=N and NB&#039;=N are symmetrical cases. But it is important to distinguish them, because A and B do not have the same roles, exchanging them is like a time reversal. --[[User:Circular17|Circular17]] ([[User talk:Circular17|talk]]) 08:31, 12 April 2013 (EDT)&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Talk:Commutator&amp;diff=22845</id>
		<title>Talk:Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Talk:Commutator&amp;diff=22845"/>
		<updated>2013-04-12T11:51:24Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Changes by Circular17 */ same indent&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Addition of commutator GIF ==&lt;br /&gt;
I change P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt; to P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; for consistency reasons.&lt;br /&gt;
I got rid of the table because it is now extraneous. However it is commented out in the raw text of this talk page in case you want to re-include it. &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Which can be described as :&lt;br /&gt;
&amp;lt;table border=1 cellspacing=0&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;step&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;intersection&amp;lt;br/&amp;gt;N&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;N A&#039;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;storage&amp;lt;br/&amp;gt;N A&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;N B&#039;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;storage&amp;lt;br/&amp;gt;N B&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Initial&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After A&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After B&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After A&#039;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After B&#039;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Circular17, I don&#039;t want to mess with your work and make large changes, but I think the part that is directly above the gif and reproduced below is not longer needed. I think in this case &amp;quot;a picture/animation says a thousand words&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
xxxxxxxxxxxxxxxxxxxx&amp;lt;br&amp;gt;&lt;br /&gt;
We notice that N A and N B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage N A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of N A&#039; is brought by A, and is then hidden by B in N B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of N B&#039; is brought by B, and then is placed immediately in N A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
xxxxxxxxxxxxxxxxx&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That being said, I think what might be really helpful is if below the animation, we talk about a &amp;quot;real life example&amp;quot;. I&#039;ll see if I  can put something together.[[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 15:18, 28 November 2012 (EST)&lt;br /&gt;
&lt;br /&gt;
== Changes by Circular17 ==&lt;br /&gt;
&lt;br /&gt;
[[User:Circular17|Circular17]] comment &amp;gt;&amp;gt; http://en.wikipedia.org/wiki/User_talk:Dave3457#Commutator_on_Speedsolving_wiki&lt;br /&gt;
&lt;br /&gt;
:I would be happy to look over your work. Keep in mind that I not sure that I always receive an email notification when a page I&#039;m watching on Speedsolving Wiki (SSW) is changed . I did receive one for your March 30 changes however. My watchlist only showed one of your March 30  edits. (Maybe that&#039;s intended)&lt;br /&gt;
: I am looking things over now, it might take a couple of days.&lt;br /&gt;
: Aren&#039;t commutators wonderful ! :) I just discovered (using a program) a wonderful 2-gen one that twists 2 corners. Its the only one of its kind that I know of, it may be my favorite comm being a 2-gen and all. Check it out below. (Note: I personally cut and paste new algorithms I&#039;m learning into CubeTwister)&lt;br /&gt;
:Its not that hard to understand how this comm works, you don&#039;t have to memorize it, follow the two corner-edge pairs on each side of the twisted corner and how the twisted corner moves between them. &lt;br /&gt;
:R2DRD&#039;RDR2 D2 R2D&#039;R&#039;DR&#039;D&#039;R2 D2 (16,22)&lt;br /&gt;
:[ R2DR D&#039; RDR2, D2]   OR [ R2DR D&#039; RDR2, D] - [[User:Dave3457|Dave3457]] ([[User talk:Dave3457#top|talk]]) 04:05, 31 March 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
::I don&#039;t know how these notifications works.&lt;br /&gt;
::That&#039;s an interesting sequence indeed.&lt;br /&gt;
::I would reflect it like this :&lt;br /&gt;
::R2U&#039;R&#039;UR&#039;U&#039;R2 U&#039; R2URU&#039;RUR2 U&lt;br /&gt;
::so that it can be used for orienting corners of the last layer on top.&lt;br /&gt;
::or for left hand :&lt;br /&gt;
::L2ULU&#039;LUL2 U L2U&#039;L&#039;UL&#039;U&#039;L2 U&#039;&lt;br /&gt;
::--[[User:Circular17|Circular17]] ([[User talk:Circular17|talk]]) 02:46, 31 March 2013 (EDT)&lt;br /&gt;
:::Ya, any commutator I post will certainly be designed for those who solve the top layer last. Myself, I don&#039;t solve for speed and solve the bottom layer last. In fact I often do not rotate the cube at all but keep each face pointing in the same direction all of the time. That way I don&#039;t use muscle memory to perform an algorithm and force myself to understand the algorithms more deeply.&lt;br /&gt;
:::- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 23:07, 8 April 2013 (EDT) &lt;br /&gt;
:I created two images to help with the defining of the variables and took what you wrote and expanded it. I&#039;ve noticed that your writing is very &amp;quot;dense&amp;quot;. Judging from your WP User page, I&#039;m assuming that English is not your first language although you wouldn&#039;t guess judging from your grammar. (you do occasionally &amp;quot;miss&amp;quot; an odd word however). (For the record, I fully appreciate that my own grammar and spelling is very poor).&lt;br /&gt;
::You are right, English is not my first spoken language. But I started it very early with programming languages.&lt;br /&gt;
:With regards to your writing, may I suggest that you make it less &amp;quot;dense&amp;quot;. I suspect that you are a mathematician. [I can&#039;t be sure because I can&#039;t read your user page :)] Whether or not you are a mathematician you tend to take the symbolic shortcuts that mathematicians tend to. &lt;br /&gt;
::You are right, I&#039;ve studied mathematics and IT.&lt;br /&gt;
:For example I changed &amp;quot;When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute,...&amp;quot; to &amp;quot;When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, A and B commute,...&amp;quot;&lt;br /&gt;
::Oh that&#039;s right. I&#039;ll try to think about it. It&#039;s not really a shortcut, but that there is a mathematical object describing the intersection which is called the empty set. But I completely understand that most people would be confused.&lt;br /&gt;
:That being said I appreciate that as things get more technical as you go into more and more detail, not using the concise language of mathematics becomes more and more difficult.&lt;br /&gt;
::Yeah, that&#039;s why I&#039;ve done that, because I was lost myself.&lt;br /&gt;
:Because of my desire to share the wonders of the commutator to the general non-mathematical population I, personally, will be focusing on the basics here and will be trying to make those basics as clear as possible using images and &amp;quot;extended&amp;quot; language. (Also I&#039;m not sure I&#039;m going to understand, or be able to take the time to understand, the later stuff) &lt;br /&gt;
::Your explanations are very good. Thanks.&lt;br /&gt;
:I hope you don&#039;t mind but I&#039;m planning on modifying and &amp;quot;extending&amp;quot; the first and second sections quite heavily.&lt;br /&gt;
::Have fun :)&lt;br /&gt;
:I&#039;ve only glanced at the new stuff that you have written, but from what I&#039;ve read it seems pretty &amp;quot;heady&amp;quot;.&lt;br /&gt;
::Yes, it was hard for me to do this mathematical work, so I can understand that it&#039;s not very readable.&lt;br /&gt;
:My general thoughts at this point are that we can expect each reader to stop reading the page when things get to difficult for them. Or to put it another way, they will stop when the amount of effort required is not worth the reward. Toward this end, I personally, would strongly suggest beginning with the easiest stuff and working toward the more difficult, even if its not the &amp;quot;correct&amp;quot; order from a mathematician&#039;s point of view. For example, you presently begin with the example case  [M&#039;, U2] = M&#039; U2 M U2 which rotates edges, however the case you mention later, [R&#039; D&#039; R D R&#039; D&#039; R, U] which twists two corners would be much easier to understand. I could see me creating a series of images or an animation for that one.&lt;br /&gt;
::Absolutely. I&#039;m ok with that.&lt;br /&gt;
&lt;br /&gt;
:Also, I&#039;m thinking that, at least when we are dealing with the basic stuff, that things would be easier to understand if we dealt with an example right from the start rather than talk in the abstract. For example you wrote...&lt;br /&gt;
:::If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
: While I know I&#039;m speaking from the point of view of a guy with only an average IQ, I think a lot of people besides me would not follow that easily either. If a diagram was associated with it I&#039;m sure it would be a lot easier to follow. &lt;br /&gt;
::In fact, I&#039;m thinking about specific moves while writing this. My goal was to make it general so that it can be applied to any situation. The quirk part and so on are the result of that exhaustive description.&lt;br /&gt;
:Personally, I thinking that since the B move is usually the rotation of the Up side, we should start with &#039;&#039;&#039;A inplace&#039;&#039;&#039; situations rather than the &#039;&#039;&#039;B inplace&#039;&#039;&#039; situations and that way we can talk about the easier to understand examples ...&lt;br /&gt;
&lt;br /&gt;
:* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
:* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
:* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
:* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
::Ok.&lt;br /&gt;
:&#039;&#039;&#039;Odds and ends:&#039;&#039;&#039;&lt;br /&gt;
:...I noticed that you referred to a single corner being &amp;quot;rotated&amp;quot;. Personally I prefer to reserve the word &amp;quot;rotate&amp;quot; to when I&#039;m dealing with 3-cycles and such. I instead try to refer to them as being &amp;quot;twisted&amp;quot;&lt;br /&gt;
:- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 00:45, 9 April 2013 (EDT)&lt;br /&gt;
::Ok.&lt;br /&gt;
:I want to make a strong suggestion. Do you know how later on you use subscripts to identify pieces such as &#039;&#039;&#039;P&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;,&#039;&#039;&#039;P&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;,&#039;&#039;&#039;P&#039;&#039;&#039;&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; . May I suggest that we also use subscripts to identify the locations of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;. May I suggest the capital letter &#039;&#039;&#039;L&#039;&#039;&#039; which would stand for &#039;&#039;&#039;L&#039;&#039;&#039;ocation. ie &#039;&#039;&#039;J&#039;&#039;&#039;=&amp;gt;&#039;&#039;&#039;L&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, &#039;&#039;&#039;K&#039;&#039;&#039;=&amp;gt;&#039;&#039;&#039;L&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;. This would greatly relieve the &amp;quot;mental strain&amp;quot; one experiences trying to remember what they stand for. Since &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; are bolded one could simply do a mass &amp;quot;find and replace&amp;quot; operation. (although not in the images).&lt;br /&gt;
:While technically we should do it for &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; as well, given how often those locations of referenced, I think that might be to much clutter and not really necessary. I would be happy to do the switch over.&lt;br /&gt;
:- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 15:23, 9 April 2013 (EDT)&lt;br /&gt;
::I was tempted to use the letter L at some point, but I noticed that it can be confused with the move L (left). With subscript however, this may be ok. About &#039;&#039;&#039;N&#039;&#039;&#039;, are you thinking about &#039;&#039;&#039;L&#039;&#039;&#039;&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; ? Not sure it would be better, so I suppose we can keep it that way. And it sounds good, I think. N like intersection, like N-tersection. --[[User:Circular17|Circular17]] ([[User talk:Circular17|talk]]) 07:49, 12 April 2013 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Relationship of NA’=N and NB’=N ==&lt;br /&gt;
&lt;br /&gt;
:Circular17, I suspect that there is something misleading about the way things are being presented right now. There is a bit of a suggestion that NA’=N and NB’=N are not perfectly symmetrical. (or maybe they aren’t) &lt;br /&gt;
:Specifically…the two NA’=N examples that I have discussed…&lt;br /&gt;
:[R&#039; D&#039; R D R&#039; D&#039; R, U] and [M2 D2 M2, U]  &lt;br /&gt;
:have their NB’=N symmetric counterparts which accomplish the exact same thing…&lt;br /&gt;
:[U, R’ D R D’ R’ D R] and [U, M2 D2 M2]&lt;br /&gt;
:It seems that in these two cases [A,B] = [B,A’]. &lt;br /&gt;
:However it isn’t true for…&lt;br /&gt;
:[U2,M] which is a NA’=N version&lt;br /&gt;
:and &lt;br /&gt;
:[M&#039;, U2] which is a NB’=N version&lt;br /&gt;
:ie [A,B] ≠ [B,A’] in this case. &lt;br /&gt;
:I guess it is because of the “overlap”. That Quirk thing that you talk about but that I don’t understand yet. Am I right on that?&lt;br /&gt;
:Whatever the case, we don’t want to give the impression that NA’=N and NB’=N are any different if they aren’t. I guess it comes down to whether or not you can do the same thing with both by just exchanging and reversing things. To what degree are they different? &lt;br /&gt;
:-- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 04:29, 12 April 2013 (EDT)&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Talk:Commutator&amp;diff=22844</id>
		<title>Talk:Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Talk:Commutator&amp;diff=22844"/>
		<updated>2013-04-12T11:49:41Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Changes by Circular17 */ response&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Addition of commutator GIF ==&lt;br /&gt;
I change P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt; to P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; for consistency reasons.&lt;br /&gt;
I got rid of the table because it is now extraneous. However it is commented out in the raw text of this talk page in case you want to re-include it. &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Which can be described as :&lt;br /&gt;
&amp;lt;table border=1 cellspacing=0&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;step&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;intersection&amp;lt;br/&amp;gt;N&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;N A&#039;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;storage&amp;lt;br/&amp;gt;N A&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;N B&#039;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;storage&amp;lt;br/&amp;gt;N B&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Initial&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After A&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After B&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After A&#039;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After B&#039;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Circular17, I don&#039;t want to mess with your work and make large changes, but I think the part that is directly above the gif and reproduced below is not longer needed. I think in this case &amp;quot;a picture/animation says a thousand words&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
xxxxxxxxxxxxxxxxxxxx&amp;lt;br&amp;gt;&lt;br /&gt;
We notice that N A and N B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage N A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of N A&#039; is brought by A, and is then hidden by B in N B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of N B&#039; is brought by B, and then is placed immediately in N A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
xxxxxxxxxxxxxxxxx&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That being said, I think what might be really helpful is if below the animation, we talk about a &amp;quot;real life example&amp;quot;. I&#039;ll see if I  can put something together.[[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 15:18, 28 November 2012 (EST)&lt;br /&gt;
&lt;br /&gt;
== Changes by Circular17 ==&lt;br /&gt;
&lt;br /&gt;
[[User:Circular17|Circular17]] comment &amp;gt;&amp;gt; http://en.wikipedia.org/wiki/User_talk:Dave3457#Commutator_on_Speedsolving_wiki&lt;br /&gt;
&lt;br /&gt;
:I would be happy to look over your work. Keep in mind that I not sure that I always receive an email notification when a page I&#039;m watching on Speedsolving Wiki (SSW) is changed . I did receive one for your March 30 changes however. My watchlist only showed one of your March 30  edits. (Maybe that&#039;s intended)&lt;br /&gt;
: I am looking things over now, it might take a couple of days.&lt;br /&gt;
: Aren&#039;t commutators wonderful ! :) I just discovered (using a program) a wonderful 2-gen one that twists 2 corners. Its the only one of its kind that I know of, it may be my favorite comm being a 2-gen and all. Check it out below. (Note: I personally cut and paste new algorithms I&#039;m learning into CubeTwister)&lt;br /&gt;
:Its not that hard to understand how this comm works, you don&#039;t have to memorize it, follow the two corner-edge pairs on each side of the twisted corner and how the twisted corner moves between them. &lt;br /&gt;
:R2DRD&#039;RDR2 D2 R2D&#039;R&#039;DR&#039;D&#039;R2 D2 (16,22)&lt;br /&gt;
:[ R2DR D&#039; RDR2, D2]   OR [ R2DR D&#039; RDR2, D] - [[User:Dave3457|Dave3457]] ([[User talk:Dave3457#top|talk]]) 04:05, 31 March 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
::I don&#039;t know how these notifications works.&lt;br /&gt;
::That&#039;s an interesting sequence indeed.&lt;br /&gt;
::I would reflect it like this :&lt;br /&gt;
::R2U&#039;R&#039;UR&#039;U&#039;R2 U&#039; R2URU&#039;RUR2 U&lt;br /&gt;
::so that it can be used for orienting corners of the last layer on top.&lt;br /&gt;
::or for left hand :&lt;br /&gt;
::L2ULU&#039;LUL2 U L2U&#039;L&#039;UL&#039;U&#039;L2 U&#039;&lt;br /&gt;
::--[[User:Circular17|Circular17]] ([[User talk:Circular17|talk]]) 02:46, 31 March 2013 (EDT)&lt;br /&gt;
:::Ya, any commutator I post will certainly be designed for those who solve the top layer last. Myself, I don&#039;t solve for speed and solve the bottom layer last. In fact I often do not rotate the cube at all but keep each face pointing in the same direction all of the time. That way I don&#039;t use muscle memory to perform an algorithm and force myself to understand the algorithms more deeply.&lt;br /&gt;
:::- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 23:07, 8 April 2013 (EDT) &lt;br /&gt;
:I created two images to help with the defining of the variables and took what you wrote and expanded it. I&#039;ve noticed that your writing is very &amp;quot;dense&amp;quot;. Judging from your WP User page, I&#039;m assuming that English is not your first language although you wouldn&#039;t guess judging from your grammar. (you do occasionally &amp;quot;miss&amp;quot; an odd word however). (For the record, I fully appreciate that my own grammar and spelling is very poor).&lt;br /&gt;
::You are right, English is not my first spoken language. But I started it very early with programming languages.&lt;br /&gt;
:With regards to your writing, may I suggest that you make it less &amp;quot;dense&amp;quot;. I suspect that you are a mathematician. [I can&#039;t be sure because I can&#039;t read your user page :)] Whether or not you are a mathematician you tend to take the symbolic shortcuts that mathematicians tend to. &lt;br /&gt;
::You are right, I&#039;ve studied mathematics and IT.&lt;br /&gt;
:For example I changed &amp;quot;When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute,...&amp;quot; to &amp;quot;When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, A and B commute,...&amp;quot;&lt;br /&gt;
::Oh that&#039;s right. I&#039;ll try to think about it. It&#039;s not really a shortcut, but that there is a mathematical object describing the intersection which is called the empty set. But I completely understand that most people would be confused.&lt;br /&gt;
:That being said I appreciate that as things get more technical as you go into more and more detail, not using the concise language of mathematics becomes more and more difficult.&lt;br /&gt;
::Yeah, that&#039;s why I&#039;ve done that, because I was lost myself.&lt;br /&gt;
:Because of my desire to share the wonders of the commutator to the general non-mathematical population I, personally, will be focusing on the basics here and will be trying to make those basics as clear as possible using images and &amp;quot;extended&amp;quot; language. (Also I&#039;m not sure I&#039;m going to understand, or be able to take the time to understand, the later stuff) &lt;br /&gt;
::Your explanations are very good. Thanks.&lt;br /&gt;
:I hope you don&#039;t mind but I&#039;m planning on modifying and &amp;quot;extending&amp;quot; the first and second sections quite heavily.&lt;br /&gt;
::Have fun :)&lt;br /&gt;
:I&#039;ve only glanced at the new stuff that you have written, but from what I&#039;ve read it seems pretty &amp;quot;heady&amp;quot;.&lt;br /&gt;
::Yes, it was hard for me to do this mathematical work, so I can understand that it&#039;s not very readable.&lt;br /&gt;
:My general thoughts at this point are that we can expect each reader to stop reading the page when things get to difficult for them. Or to put it another way, they will stop when the amount of effort required is not worth the reward. Toward this end, I personally, would strongly suggest beginning with the easiest stuff and working toward the more difficult, even if its not the &amp;quot;correct&amp;quot; order from a mathematician&#039;s point of view. For example, you presently begin with the example case  [M&#039;, U2] = M&#039; U2 M U2 which rotates edges, however the case you mention later, [R&#039; D&#039; R D R&#039; D&#039; R, U] which twists two corners would be much easier to understand. I could see me creating a series of images or an animation for that one.&lt;br /&gt;
::Absolutely. I&#039;m ok with that.&lt;br /&gt;
&lt;br /&gt;
:Also, I&#039;m thinking that, at least when we are dealing with the basic stuff, that things would be easier to understand if we dealt with an example right from the start rather than talk in the abstract. For example you wrote...&lt;br /&gt;
:::If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
: While I know I&#039;m speaking from the point of view of a guy with only an average IQ, I think a lot of people besides me would not follow that easily either. If a diagram was associated with it I&#039;m sure it would be a lot easier to follow. &lt;br /&gt;
::In fact, I&#039;m thinking about specific moves while writing this. My goal was to make it general so that it can be applied to any situation. The quirk part and so on are the result of that exhaustive description.&lt;br /&gt;
:Personally, I thinking that since the B move is usually the rotation of the Up side, we should start with &#039;&#039;&#039;A inplace&#039;&#039;&#039; situations rather than the &#039;&#039;&#039;B inplace&#039;&#039;&#039; situations and that way we can talk about the easier to understand examples ...&lt;br /&gt;
&lt;br /&gt;
:* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
:* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
:* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
:* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
::Ok.&lt;br /&gt;
:&#039;&#039;&#039;Odds and ends:&#039;&#039;&#039;&lt;br /&gt;
:...I noticed that you referred to a single corner being &amp;quot;rotated&amp;quot;. Personally I prefer to reserve the word &amp;quot;rotate&amp;quot; to when I&#039;m dealing with 3-cycles and such. I instead try to refer to them as being &amp;quot;twisted&amp;quot;&lt;br /&gt;
:- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 00:45, 9 April 2013 (EDT)&lt;br /&gt;
::Ok.&lt;br /&gt;
::I want to make a strong suggestion. Do you know how later on you use subscripts to identify pieces such as &#039;&#039;&#039;P&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;,&#039;&#039;&#039;P&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;,&#039;&#039;&#039;P&#039;&#039;&#039;&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; . May I suggest that we also use subscripts to identify the locations of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;. May I suggest the capital letter &#039;&#039;&#039;L&#039;&#039;&#039; which would stand for &#039;&#039;&#039;L&#039;&#039;&#039;ocation. ie &#039;&#039;&#039;J&#039;&#039;&#039;=&amp;gt;&#039;&#039;&#039;L&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, &#039;&#039;&#039;K&#039;&#039;&#039;=&amp;gt;&#039;&#039;&#039;L&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;. This would greatly relieve the &amp;quot;mental strain&amp;quot; one experiences trying to remember what they stand for. Since &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; are bolded one could simply do a mass &amp;quot;find and replace&amp;quot; operation. (although not in the images).&lt;br /&gt;
::While technically we should do it for &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; as well, given how often those locations of referenced, I think that might be to much clutter and not really necessary. I would be happy to do the switch over.&lt;br /&gt;
::- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 15:23, 9 April 2013 (EDT)&lt;br /&gt;
:::I was tempted to use the letter L at some point, but I noticed that it can be confused with the move L (left). With subscript however, this may be ok. About &#039;&#039;&#039;N&#039;&#039;&#039;, are you thinking about &#039;&#039;&#039;L&#039;&#039;&#039;&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; ? Not sure it would be better, so I suppose we can keep it that way. And it sounds good, I think. N like intersection, like N-tersection. --[[User:Circular17|Circular17]] ([[User talk:Circular17|talk]]) 07:49, 12 April 2013 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Relationship of NA’=N and NB’=N ==&lt;br /&gt;
&lt;br /&gt;
:Circular17, I suspect that there is something misleading about the way things are being presented right now. There is a bit of a suggestion that NA’=N and NB’=N are not perfectly symmetrical. (or maybe they aren’t) &lt;br /&gt;
:Specifically…the two NA’=N examples that I have discussed…&lt;br /&gt;
:[R&#039; D&#039; R D R&#039; D&#039; R, U] and [M2 D2 M2, U]  &lt;br /&gt;
:have their NB’=N symmetric counterparts which accomplish the exact same thing…&lt;br /&gt;
:[U, R’ D R D’ R’ D R] and [U, M2 D2 M2]&lt;br /&gt;
:It seems that in these two cases [A,B] = [B,A’]. &lt;br /&gt;
:However it isn’t true for…&lt;br /&gt;
:[U2,M] which is a NA’=N version&lt;br /&gt;
:and &lt;br /&gt;
:[M&#039;, U2] which is a NB’=N version&lt;br /&gt;
:ie [A,B] ≠ [B,A’] in this case. &lt;br /&gt;
:I guess it is because of the “overlap”. That Quirk thing that you talk about but that I don’t understand yet. Am I right on that?&lt;br /&gt;
:Whatever the case, we don’t want to give the impression that NA’=N and NB’=N are any different if they aren’t. I guess it comes down to whether or not you can do the same thing with both by just exchanging and reversing things. To what degree are they different? &lt;br /&gt;
:-- [[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 04:29, 12 April 2013 (EDT)&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22843</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22843"/>
		<updated>2013-04-12T11:22:16Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Effect */ in general but we can find some special cases for example if A = B&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows one to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
[[File:COMM Effects section Definitions.png|450px|thumb|right|This image defines the terms &#039;&#039;&#039;J&#039;&#039;&#039;, &#039;&#039;&#039;K&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A’,&#039;&#039;&#039;N&#039;&#039;&#039;B’ used to describe how the commutator works. ]]&lt;br /&gt;
To help us discuss how a commutator works we will first define some terms.&amp;lt;br&amp;gt;&lt;br /&gt;
The image on the right gives a visual indication of which pieces of a cube are affected by the different sequences of a commutator. In the example commutator chosen, the sequence A is F and the sequence B is U, giving the simple commutator [F, U].  &lt;br /&gt;
Referring to the image, the sequence A changes the pieces at a set of locations we will call &#039;&#039;&#039;J&#039;&#039;&#039;. The sequence B changes the pieces at a set of locations we will call &#039;&#039;&#039;K&#039;&#039;&#039;. We will call the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;.  If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, such as when A equals L and B equals R, then A and B are said to commute, and the commutator [L, R] does nothing. However if, as in the image, when &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; do have an intersection, A and B generally do not commute and the cube, as a result, is changed by the commutator. Note that the changes which this particular commutator make to the cube are rather difficult to understand, however more straight forward commutator examples will be discussed in a moment. &lt;br /&gt;
&lt;br /&gt;
There is a set of locations that we will be calling &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. This name is appropriate because the pieces can be identified by applying the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;. Referring to the lowest right hand cube, these particular locations are identified using two shades of grey. Pieces that are lighter grey are pieces that will be brought into the intersection region &#039;&#039;&#039;N&#039;&#039;&#039;, pieces that are darker grey are pieces that are already within the intersection region and will remain in the region. Such pieces will however be moved within the region, as in this case, or will be twisted in place. &lt;br /&gt;
&lt;br /&gt;
All of the above statements regarding the &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; region is also true for &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; region.&lt;br /&gt;
&lt;br /&gt;
The only pieces that are affected by any commutator are the ones located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up after the sequences A and B are executed, will be put back into their original locations with sequences A&#039; and B&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
This restoration of all the pieces that are not in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is the reason the commutator is such a powerful tool.&lt;br /&gt;
&lt;br /&gt;
Click the following thumbnail for an image similar to the one just discussed which instead uses the more common commutator [B&#039;&amp;amp;nbsp;D&amp;amp;nbsp;B,&amp;amp;nbsp;U&#039;]. &lt;br /&gt;
[[File:COMM Effects section Example.jpg|70px ]]&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
[[File:COMM_Effects_Twist_Corn.png|450px|thumb|right|This commutator twists two corners in place. It is an example of a commutator in which &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;=&#039;&#039;&#039;N&#039;&#039;&#039;. [http://alg.garron.us/?alg=M2_D2_M2_U_M2_D2_M2_U-__&amp;amp;scheme=brogwy Applet of commutator] ]]&lt;br /&gt;
The image on the right breaks down a commutator that twists two corner pieces. In the type of commutator being discussed in this section, the sequence A does not move pieces into the intersection region but only moves or twists pieces that are already within the region. As a result, the &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; region and intersection region &#039;&#039;&#039;N&#039;&#039;&#039; are the same. In this particular commutator, the sequence A twists the single piece that is in the intersection region counter-clockwise. (Refer to the cube image which shows the effects of sequence A on the cube) Note that, as for all commutators, sequence A moves or twists all of the pieces that are in the &#039;&#039;&#039;J&#039;&#039;&#039; region, however any changes to that region which are outside of the intersection region are undone by sequence A&#039;. If one performs this commutator on a cube or runs this [http://alg.garron.us/?alg=R-_D-_R_D_R-_D-_R__U_R-_D_R_D-_R-_D_R_U-&amp;amp;scheme=brogwy applet] they will see that the piece at &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; gets twisted clockwise when sequence A&#039; is restoring the rest of the &#039;&#039;&#039;J&#039;&#039;&#039; region. &lt;br /&gt;
&lt;br /&gt;
To appreciate sequence B&#039;s interaction with the intersection region one can observe the general nature of a commutator. Looking at the mathematical structure of a commutator, A B A&#039; B&#039; one can see that it has two overlapping [[conjugates]]. ie A B A&#039; B&#039; = (A B A&#039;) B&#039; = A (B A&#039; B&#039;). (If one is unfamiliar with conjugates it is critical that one read the lead of the conjugate page now before continuing.) It is the action of the second conjugate, B A&#039; B&#039;, that is apparent in this type of commutator. Because sequence A&#039; only alters the contents of the intersection region, sequence B can be viewed as the initial setup move of a conjugate, A&#039; can be viewed as the actual manipulation move and B&#039; can be viewed as the restoring move. Regarding this specific commutator, because sequence A twists the corner piece at &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; counter-clockwise, the sequence A&#039;, which is acting as the middle manipulation sequence of a conjugate, twists the corner piece at &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; clockwise.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:COMM_Eff_Exchange_Edges.jpg|450px|thumb|right|It is an example of a commutator in which &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;=&#039;&#039;&#039;N&#039;&#039;&#039;. [http://alg.garron.us/?alg=M2_D2_M2_U_M2_D2_M2_U-__&amp;amp;scheme=brogwy Applet of commutator] ]]&lt;br /&gt;
In this next example, the sequence A again does not move pieces into the intersection region resulting in the &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; region and intersection region &#039;&#039;&#039;N&#039;&#039;&#039; being the same. However in this commutator, the sequence A moves pieces around within the intersection region. Specifically, it exchanges the only two pieces that are in the intersection region. &lt;br /&gt;
&lt;br /&gt;
Everything else discussed regarding the previous example applies here as well.&amp;lt;br&amp;gt;&lt;br /&gt;
Here is an [http://alg.garron.us/?alg=M2_D2_M2_U_M2_D2_M2_U-__&amp;amp;scheme=brogwy applet of this commutator]&lt;br /&gt;
&lt;br /&gt;
In summary: Sequence A initially alters the pieces that are in the intersection region, then sequence B, acting as the setup move of a conjugate, moves a different group of pieces into that intersection region. Sequence A&#039; then, while restoring the rest of region &#039;&#039;&#039;J&#039;&#039;&#039;, &amp;quot;reverse alters&amp;quot; those new pieces and sequence B&#039; finally returns both altered groups of pieces back to their original locations.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with additional interferences. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
* the top-right-back corner is affected by all moves, R&#039;FRF&#039; = [R&#039;: F] F&#039; equivalent to UF&#039;, or R&#039;FRF&#039; = R&#039; [F: R] equivalent to R&#039;U, thus going to the top-front-right position, replacing a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are [[conjugate|conjugated]]. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top is affected by R&#039;F&#039;R so it is equivalent to x&#039;F&#039;x which is U&#039;.&lt;br /&gt;
&lt;br /&gt;
The front-bottom-left is affected by F&#039;RF so it is equivalent to z&#039;Rz whichi is D.&lt;br /&gt;
&lt;br /&gt;
So this move does :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, i.e. front-right edge and front-right-bottom corner, goes F&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, i.e. top-right edge and top-right-back corner, goes R&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, i.e. front-bottom edge, goes F&#039;R&lt;br /&gt;
* the front-right-top corner goes U&#039;&lt;br /&gt;
* the front-bottom-left goes D&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in all inplace cases and some overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in complex inplace cases and some overlap case&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22842</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22842"/>
		<updated>2013-04-12T11:17:58Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Effect */ common rather than general&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows one to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
[[File:COMM Effects section Definitions.png|450px|thumb|right|This image defines the terms &#039;&#039;&#039;J&#039;&#039;&#039;, &#039;&#039;&#039;K&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A’,&#039;&#039;&#039;N&#039;&#039;&#039;B’ used to describe how the commutator works. ]]&lt;br /&gt;
To help us discuss how a commutator works we will first define some terms.&amp;lt;br&amp;gt;&lt;br /&gt;
The image on the right gives a visual indication of which pieces of a cube are affected by the different sequences of a commutator. In the example commutator chosen, the sequence A is F and the sequence B is U, giving the simple commutator [F, U].  &lt;br /&gt;
Referring to the image, the sequence A changes the pieces at a set of locations we will call &#039;&#039;&#039;J&#039;&#039;&#039;. The sequence B changes the pieces at a set of locations we will call &#039;&#039;&#039;K&#039;&#039;&#039;. We will call the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;.  If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, such as when A equals L and B equals R, then A and B are said to commute, and the commutator [L, R] does nothing. However if, as in the image, when &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; do have an intersection, A and B do not commute and the cube, as a result, is changed by the commutator. Note that the changes which this particular commutator make to the cube are rather difficult to understand, however more straight forward commutator examples will be discussed in a moment. &lt;br /&gt;
&lt;br /&gt;
There is a set of locations that we will be calling &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. This name is appropriate because the pieces can be identified by applying the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;. Referring to the lowest right hand cube, these particular locations are identified using two shades of grey. Pieces that are lighter grey are pieces that will be brought into the intersection region &#039;&#039;&#039;N&#039;&#039;&#039;, pieces that are darker grey are pieces that are already within the intersection region and will remain in the region. Such pieces will however be moved within the region, as in this case, or will be twisted in place. &lt;br /&gt;
&lt;br /&gt;
All of the above statements regarding the &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; region is also true for &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; region.&lt;br /&gt;
&lt;br /&gt;
The only pieces that are affected by any commutator are the ones located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up after the sequences A and B are executed, will be put back into their original locations with sequences A&#039; and B&#039;.&amp;lt;br&amp;gt;&lt;br /&gt;
This restoration of all the pieces that are not in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is the reason the commutator is such a powerful tool.&lt;br /&gt;
&lt;br /&gt;
Click the following thumbnail for an image similar to the one just discussed which instead uses the more common commutator [B&#039;&amp;amp;nbsp;D&amp;amp;nbsp;B,&amp;amp;nbsp;U&#039;]. &lt;br /&gt;
[[File:COMM Effects section Example.jpg|70px ]]&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
[[File:COMM_Effects_Twist_Corn.png|450px|thumb|right|This commutator twists two corners in place. It is an example of a commutator in which &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;=&#039;&#039;&#039;N&#039;&#039;&#039;. [http://alg.garron.us/?alg=M2_D2_M2_U_M2_D2_M2_U-__&amp;amp;scheme=brogwy Applet of commutator] ]]&lt;br /&gt;
The image on the right breaks down a commutator that twists two corner pieces. In the type of commutator being discussed in this section, the sequence A does not move pieces into the intersection region but only moves or twists pieces that are already within the region. As a result, the &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; region and intersection region &#039;&#039;&#039;N&#039;&#039;&#039; are the same. In this particular commutator, the sequence A twists the single piece that is in the intersection region counter-clockwise. (Refer to the cube image which shows the effects of sequence A on the cube) Note that, as for all commutators, sequence A moves or twists all of the pieces that are in the &#039;&#039;&#039;J&#039;&#039;&#039; region, however any changes to that region which are outside of the intersection region are undone by sequence A&#039;. If one performs this commutator on a cube or runs this [http://alg.garron.us/?alg=R-_D-_R_D_R-_D-_R__U_R-_D_R_D-_R-_D_R_U-&amp;amp;scheme=brogwy applet] they will see that the piece at &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; gets twisted clockwise when sequence A&#039; is restoring the rest of the &#039;&#039;&#039;J&#039;&#039;&#039; region. &lt;br /&gt;
&lt;br /&gt;
To appreciate sequence B&#039;s interaction with the intersection region one can observe the general nature of a commutator. Looking at the mathematical structure of a commutator, A B A&#039; B&#039; one can see that it has two overlapping [[conjugates]]. ie A B A&#039; B&#039; = (A B A&#039;) B&#039; = A (B A&#039; B&#039;). (If one is unfamiliar with conjugates it is critical that one read the lead of the conjugate page now before continuing.) It is the action of the second conjugate, B A&#039; B&#039;, that is apparent in this type of commutator. Because sequence A&#039; only alters the contents of the intersection region, sequence B can be viewed as the initial setup move of a conjugate, A&#039; can be viewed as the actual manipulation move and B&#039; can be viewed as the restoring move. Regarding this specific commutator, because sequence A twists the corner piece at &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; counter-clockwise, the sequence A&#039;, which is acting as the middle manipulation sequence of a conjugate, twists the corner piece at &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; clockwise.&lt;br /&gt;
&amp;lt;br style=&amp;quot;clear:both&amp;quot; /&amp;gt;&lt;br /&gt;
[[File:COMM_Eff_Exchange_Edges.jpg|450px|thumb|right|It is an example of a commutator in which &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;=&#039;&#039;&#039;N&#039;&#039;&#039;. [http://alg.garron.us/?alg=M2_D2_M2_U_M2_D2_M2_U-__&amp;amp;scheme=brogwy Applet of commutator] ]]&lt;br /&gt;
In this next example, the sequence A again does not move pieces into the intersection region resulting in the &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; region and intersection region &#039;&#039;&#039;N&#039;&#039;&#039; being the same. However in this commutator, the sequence A moves pieces around within the intersection region. Specifically, it exchanges the only two pieces that are in the intersection region. &lt;br /&gt;
&lt;br /&gt;
Everything else discussed regarding the previous example applies here as well.&amp;lt;br&amp;gt;&lt;br /&gt;
Here is an [http://alg.garron.us/?alg=M2_D2_M2_U_M2_D2_M2_U-__&amp;amp;scheme=brogwy applet of this commutator]&lt;br /&gt;
&lt;br /&gt;
In summary: Sequence A initially alters the pieces that are in the intersection region, then sequence B, acting as the setup move of a conjugate, moves a different group of pieces into that intersection region. Sequence A&#039; then, while restoring the rest of region &#039;&#039;&#039;J&#039;&#039;&#039;, &amp;quot;reverse alters&amp;quot; those new pieces and sequence B&#039; finally returns both altered groups of pieces back to their original locations.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with additional interferences. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
* the top-right-back corner is affected by all moves, R&#039;FRF&#039; = [R&#039;: F] F&#039; equivalent to UF&#039;, or R&#039;FRF&#039; = R&#039; [F: R] equivalent to R&#039;U, thus going to the top-front-right position, replacing a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are [[conjugate|conjugated]]. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top is affected by R&#039;F&#039;R so it is equivalent to x&#039;F&#039;x which is U&#039;.&lt;br /&gt;
&lt;br /&gt;
The front-bottom-left is affected by F&#039;RF so it is equivalent to z&#039;Rz whichi is D.&lt;br /&gt;
&lt;br /&gt;
So this move does :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, i.e. front-right edge and front-right-bottom corner, goes F&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, i.e. top-right edge and top-right-back corner, goes R&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, i.e. front-bottom edge, goes F&#039;R&lt;br /&gt;
* the front-right-top corner goes U&#039;&lt;br /&gt;
* the front-bottom-left goes D&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in all inplace cases and some overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in complex inplace cases and some overlap case&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22745</id>
		<title>Conjugate</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22745"/>
		<updated>2013-04-02T10:42:46Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Conjugated part */ space&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;conjugate&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, and finally the inverse of the sequence A. In other words, a conjugate is an algorithm like A B A&#039;, where A and B can be any sequence of moves. In intuitive terms, it means: do something to set up another task which does something useful, and undo the setup.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;conjugate&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;&amp;lt;/i&amp;gt;, where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039;&lt;br /&gt;
&lt;br /&gt;
It is sometimes written as [A: B] = A B A&#039;&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
In A B A&#039;, the sequence A is the setup move or sequence and A&#039; puts the cube in its original state. In between, there is an embedded sequence B. Alone, this sequence would affect some set of locations &#039;&#039;&#039;K&#039;&#039;&#039; on the cube. Because of the conjugation, the affected pieces will be &#039;&#039;&#039;K&#039;&#039;&#039;A&#039;, which means that the locations will be transformed by the inverse of A.&lt;br /&gt;
&lt;br /&gt;
Indeed the sequence B will be applied on a cube which space has been modified by A. The sequence B is supposed to change some pieces in the locations &#039;&#039;&#039;K&#039;&#039;&#039; and A consists in bringing the piece you want to change to the location &#039;&#039;&#039;K&#039;&#039;&#039;. Once you&#039;ve done the sequence B, you bring those pieces back with A&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
If the set of locations &#039;&#039;&#039;K&#039;&#039;&#039; is not modified by A, then the conjugation does not change anything, and A B A&#039; = B.&lt;br /&gt;
&lt;br /&gt;
=== General case ===&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by the following subsequence of ABA&#039;:&lt;br /&gt;
* by B only: this part is outside of the conjugation&lt;br /&gt;
* by AB: this is the first semi-conjugated part&lt;br /&gt;
* by BA&#039;: this is the second semi-conjugated part&lt;br /&gt;
* by ABA&#039;: this is the conjugated part&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;J&#039;&#039;&#039; the set of pieces modified by A, and &#039;&#039;&#039;N&#039;&#039;&#039; the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The initial location of the outside part is:&lt;br /&gt;
&#039;&#039;&#039;O&#039;&#039;&#039; = ((&#039;&#039;&#039;K&#039;&#039;&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the first semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the second semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The slot location is:&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
The conjugation is often used to provide a setup for some transformation. The conjugation ABA&#039; is very similar to B, except that B is applied on other pieces as it would be without conjugation. For example, if a sequence exchange some pieces, or rotate some pieces, you can choose to exchange other pieces or rotate other pieces :&lt;br /&gt;
&lt;br /&gt;
[F&#039;: [M2D2M2, U]]&lt;br /&gt;
&lt;br /&gt;
where [M2D2M2, U] exchange the four top edges, so applying F&#039; exchange the front-right edge instead of the front-top edge.&lt;br /&gt;
&lt;br /&gt;
The intersection is &#039;&#039;&#039;N&#039;&#039;&#039; = front-top edge&lt;br /&gt;
&lt;br /&gt;
The slot is &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;F = front-right edge&lt;br /&gt;
&lt;br /&gt;
The conjugated part is:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
Surprisingly, in this example, the conjugated part is empty. It means that no individual piece is actually following the whole conjugation. F&#039; and [M2D2M2, U] are only connected so that some pieces are transfered through the intersection &#039;&#039;&#039;N&#039;&#039;&#039;. The transfer occur between both semi-conjugated parts.&lt;br /&gt;
&lt;br /&gt;
In this simple case, we do not really distinguish the semi-conjugated parts. But it is possible to take this difference into account, and also to use a conjugated part.&lt;br /&gt;
&lt;br /&gt;
==== Semi-conjugated parts ====&lt;br /&gt;
&lt;br /&gt;
Semi-conjugated parts can be used to move pieces inside or outside a slot. This is widely used to insert or extract a pair of pieces in [[F2L]] or to insert or extract corners or edges individually. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is extracted from the slot and &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is inserted into the slot.&lt;br /&gt;
&lt;br /&gt;
Example: RU&#039;R&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)UR&#039; = top-right-front corner and front-right edge&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-back edge and top-back-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-front-right corner and top-front edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
Example: RUR&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039;)U&#039;R&#039; = front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-front edge and top-front-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-back-left corner and top-back edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-top corner.&lt;br /&gt;
&lt;br /&gt;
==== Conjugated part ====&lt;br /&gt;
&lt;br /&gt;
The conjugated part is used to move pieces inside the slot (the pieces do not enter nor leave the slot):&lt;br /&gt;
&lt;br /&gt;
RUR&#039;&lt;br /&gt;
&lt;br /&gt;
where the intersection is &#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-front corner and top-right-back corner&lt;br /&gt;
&lt;br /&gt;
and the slot is &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = front-right edge, front-right-top corner and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039; = top-right-front corner&lt;br /&gt;
&lt;br /&gt;
This piece is moved to the front-right-bottom corner and rotated so that the right facelet is moved to the bottom facelet.&lt;br /&gt;
&lt;br /&gt;
=== Link with commutators ===&lt;br /&gt;
&lt;br /&gt;
The outside part &#039;&#039;&#039;O&#039;&#039;&#039; is only affected by B&#039;, so it can be put back into place by adding B&#039; to the sequence, giving ABA&#039;B&#039;, which is the [[commutator]] of A and B. &lt;br /&gt;
&lt;br /&gt;
The first semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, which was affected by AB, is then only affected by A, becoming the container of pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
The second semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, so affected by BA&#039;B&#039;, and is then a conjugated part of the commutator&lt;br /&gt;
* one part which is not affected by B&#039;, so affected only by BA&#039;, becoming the container of pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The conjugated part is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, becoming the quirk part&lt;br /&gt;
* one part which is not, becoming a conjugated part of the commutator&lt;br /&gt;
&lt;br /&gt;
Pieces that were not affected by the conjugate, but that are affected by the last B&#039; move, are the P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; pieces of the corresponding commutator.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutator]]&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22744</id>
		<title>Conjugate</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22744"/>
		<updated>2013-04-02T10:42:24Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Semi-conjugated parts */ typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;conjugate&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, and finally the inverse of the sequence A. In other words, a conjugate is an algorithm like A B A&#039;, where A and B can be any sequence of moves. In intuitive terms, it means: do something to set up another task which does something useful, and undo the setup.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;conjugate&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;&amp;lt;/i&amp;gt;, where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039;&lt;br /&gt;
&lt;br /&gt;
It is sometimes written as [A: B] = A B A&#039;&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
In A B A&#039;, the sequence A is the setup move or sequence and A&#039; puts the cube in its original state. In between, there is an embedded sequence B. Alone, this sequence would affect some set of locations &#039;&#039;&#039;K&#039;&#039;&#039; on the cube. Because of the conjugation, the affected pieces will be &#039;&#039;&#039;K&#039;&#039;&#039;A&#039;, which means that the locations will be transformed by the inverse of A.&lt;br /&gt;
&lt;br /&gt;
Indeed the sequence B will be applied on a cube which space has been modified by A. The sequence B is supposed to change some pieces in the locations &#039;&#039;&#039;K&#039;&#039;&#039; and A consists in bringing the piece you want to change to the location &#039;&#039;&#039;K&#039;&#039;&#039;. Once you&#039;ve done the sequence B, you bring those pieces back with A&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
If the set of locations &#039;&#039;&#039;K&#039;&#039;&#039; is not modified by A, then the conjugation does not change anything, and A B A&#039; = B.&lt;br /&gt;
&lt;br /&gt;
=== General case ===&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by the following subsequence of ABA&#039;:&lt;br /&gt;
* by B only: this part is outside of the conjugation&lt;br /&gt;
* by AB: this is the first semi-conjugated part&lt;br /&gt;
* by BA&#039;: this is the second semi-conjugated part&lt;br /&gt;
* by ABA&#039;: this is the conjugated part&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;J&#039;&#039;&#039; the set of pieces modified by A, and &#039;&#039;&#039;N&#039;&#039;&#039; the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The initial location of the outside part is:&lt;br /&gt;
&#039;&#039;&#039;O&#039;&#039;&#039; = ((&#039;&#039;&#039;K&#039;&#039;&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the first semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the second semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The slot location is:&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
The conjugation is often used to provide a setup for some transformation. The conjugation ABA&#039; is very similar to B, except that B is applied on other pieces as it would be without conjugation. For example, if a sequence exchange some pieces, or rotate some pieces, you can choose to exchange other pieces or rotate other pieces :&lt;br /&gt;
&lt;br /&gt;
[F&#039;: [M2D2M2, U]]&lt;br /&gt;
&lt;br /&gt;
where [M2D2M2, U] exchange the four top edges, so applying F&#039; exchange the front-right edge instead of the front-top edge.&lt;br /&gt;
&lt;br /&gt;
The intersection is &#039;&#039;&#039;N&#039;&#039;&#039; = front-top edge&lt;br /&gt;
&lt;br /&gt;
The slot is &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;F = front-right edge&lt;br /&gt;
&lt;br /&gt;
The conjugated part is:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
Surprisingly, in this example, the conjugated part is empty. It means that no individual piece is actually following the whole conjugation. F&#039; and [M2D2M2, U] are only connected so that some pieces are transfered through the intersection &#039;&#039;&#039;N&#039;&#039;&#039;. The transfer occur between both semi-conjugated parts.&lt;br /&gt;
&lt;br /&gt;
In this simple case, we do not really distinguish the semi-conjugated parts. But it is possible to take this difference into account, and also to use a conjugated part.&lt;br /&gt;
&lt;br /&gt;
==== Semi-conjugated parts ====&lt;br /&gt;
&lt;br /&gt;
Semi-conjugated parts can be used to move pieces inside or outside a slot. This is widely used to insert or extract a pair of pieces in [[F2L]] or to insert or extract corners or edges individually. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is extracted from the slot and &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is inserted into the slot.&lt;br /&gt;
&lt;br /&gt;
Example: RU&#039;R&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)UR&#039; = top-right-front corner and front-right edge&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-back edge and top-back-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-front-right corner and top-front edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
Example: RUR&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039;)U&#039;R&#039; = front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-front edge and top-front-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-back-left corner and top-back edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-top corner.&lt;br /&gt;
&lt;br /&gt;
==== Conjugated part ====&lt;br /&gt;
&lt;br /&gt;
The conjugated part is used to move pieces inside the slot (the pieces do not enter nor leave the slot) :&lt;br /&gt;
&lt;br /&gt;
RUR&#039;&lt;br /&gt;
&lt;br /&gt;
where the intersection is &#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-front corner and top-right-back corner&lt;br /&gt;
&lt;br /&gt;
and the slot is &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = front-right edge, front-right-top corner and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039; = top-right-front corner&lt;br /&gt;
&lt;br /&gt;
This piece is moved to the front-right-bottom corner and rotated so that the right facelet is moved to the bottom facelet.&lt;br /&gt;
&lt;br /&gt;
=== Link with commutators ===&lt;br /&gt;
&lt;br /&gt;
The outside part &#039;&#039;&#039;O&#039;&#039;&#039; is only affected by B&#039;, so it can be put back into place by adding B&#039; to the sequence, giving ABA&#039;B&#039;, which is the [[commutator]] of A and B. &lt;br /&gt;
&lt;br /&gt;
The first semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, which was affected by AB, is then only affected by A, becoming the container of pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
The second semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, so affected by BA&#039;B&#039;, and is then a conjugated part of the commutator&lt;br /&gt;
* one part which is not affected by B&#039;, so affected only by BA&#039;, becoming the container of pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The conjugated part is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, becoming the quirk part&lt;br /&gt;
* one part which is not, becoming a conjugated part of the commutator&lt;br /&gt;
&lt;br /&gt;
Pieces that were not affected by the conjugate, but that are affected by the last B&#039; move, are the P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; pieces of the corresponding commutator.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutator]]&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22743</id>
		<title>Conjugate</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22743"/>
		<updated>2013-04-02T10:38:35Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Conjugated part */ not enter nor leave&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;conjugate&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, and finally the inverse of the sequence A. In other words, a conjugate is an algorithm like A B A&#039;, where A and B can be any sequence of moves. In intuitive terms, it means: do something to set up another task which does something useful, and undo the setup.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;conjugate&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;&amp;lt;/i&amp;gt;, where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039;&lt;br /&gt;
&lt;br /&gt;
It is sometimes written as [A: B] = A B A&#039;&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
In A B A&#039;, the sequence A is the setup move or sequence and A&#039; puts the cube in its original state. In between, there is an embedded sequence B. Alone, this sequence would affect some set of locations &#039;&#039;&#039;K&#039;&#039;&#039; on the cube. Because of the conjugation, the affected pieces will be &#039;&#039;&#039;K&#039;&#039;&#039;A&#039;, which means that the locations will be transformed by the inverse of A.&lt;br /&gt;
&lt;br /&gt;
Indeed the sequence B will be applied on a cube which space has been modified by A. The sequence B is supposed to change some pieces in the locations &#039;&#039;&#039;K&#039;&#039;&#039; and A consists in bringing the piece you want to change to the location &#039;&#039;&#039;K&#039;&#039;&#039;. Once you&#039;ve done the sequence B, you bring those pieces back with A&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
If the set of locations &#039;&#039;&#039;K&#039;&#039;&#039; is not modified by A, then the conjugation does not change anything, and A B A&#039; = B.&lt;br /&gt;
&lt;br /&gt;
=== General case ===&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by the following subsequence of ABA&#039;:&lt;br /&gt;
* by B only: this part is outside of the conjugation&lt;br /&gt;
* by AB: this is the first semi-conjugated part&lt;br /&gt;
* by BA&#039;: this is the second semi-conjugated part&lt;br /&gt;
* by ABA&#039;: this is the conjugated part&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;J&#039;&#039;&#039; the set of pieces modified by A, and &#039;&#039;&#039;N&#039;&#039;&#039; the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The initial location of the outside part is:&lt;br /&gt;
&#039;&#039;&#039;O&#039;&#039;&#039; = ((&#039;&#039;&#039;K&#039;&#039;&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the first semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the second semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The slot location is:&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
The conjugation is often used to provide a setup for some transformation. The conjugation ABA&#039; is very similar to B, except that B is applied on other pieces as it would be without conjugation. For example, if a sequence exchange some pieces, or rotate some pieces, you can choose to exchange other pieces or rotate other pieces :&lt;br /&gt;
&lt;br /&gt;
[F&#039;: [M2D2M2, U]]&lt;br /&gt;
&lt;br /&gt;
where [M2D2M2, U] exchange the four top edges, so applying F&#039; exchange the front-right edge instead of the front-top edge.&lt;br /&gt;
&lt;br /&gt;
The intersection is &#039;&#039;&#039;N&#039;&#039;&#039; = front-top edge&lt;br /&gt;
&lt;br /&gt;
The slot is &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;F = front-right edge&lt;br /&gt;
&lt;br /&gt;
The conjugated part is:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
Surprisingly, in this example, the conjugated part is empty. It means that no individual piece is actually following the whole conjugation. F&#039; and [M2D2M2, U] are only connected so that some pieces are transfered through the intersection &#039;&#039;&#039;N&#039;&#039;&#039;. The transfer occur between both semi-conjugated parts.&lt;br /&gt;
&lt;br /&gt;
In this simple case, we do not really distinguish the semi-conjugated parts. But it is possible to take this difference into account, and also to use a conjugated part.&lt;br /&gt;
&lt;br /&gt;
==== Semi-conjugated parts ====&lt;br /&gt;
&lt;br /&gt;
Semi-conjugated parts can be used to move pieces inside or outside a slot. This is widely used to insert or extract a pair of pieces in [[F2L]] or to insert or extract corners or edges individually. &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is extract from the slot and &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is inserted into the slot.&lt;br /&gt;
&lt;br /&gt;
Example: RU&#039;R&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)UR&#039; = top-right-front corner and front-right edge&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-back edge and top-back-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-front-right corner and top-front edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
Example: RUR&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039;)U&#039;R&#039; = front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-front edge and top-front-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-back-left corner and top-back edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-top corner.&lt;br /&gt;
&lt;br /&gt;
==== Conjugated part ====&lt;br /&gt;
&lt;br /&gt;
The conjugated part is used to move pieces inside the slot (the pieces do not enter nor leave the slot) :&lt;br /&gt;
&lt;br /&gt;
RUR&#039;&lt;br /&gt;
&lt;br /&gt;
where the intersection is &#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-front corner and top-right-back corner&lt;br /&gt;
&lt;br /&gt;
and the slot is &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = front-right edge, front-right-top corner and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039; = top-right-front corner&lt;br /&gt;
&lt;br /&gt;
This piece is moved to the front-right-bottom corner and rotated so that the right facelet is moved to the bottom facelet.&lt;br /&gt;
&lt;br /&gt;
=== Link with commutators ===&lt;br /&gt;
&lt;br /&gt;
The outside part &#039;&#039;&#039;O&#039;&#039;&#039; is only affected by B&#039;, so it can be put back into place by adding B&#039; to the sequence, giving ABA&#039;B&#039;, which is the [[commutator]] of A and B. &lt;br /&gt;
&lt;br /&gt;
The first semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, which was affected by AB, is then only affected by A, becoming the container of pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
The second semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, so affected by BA&#039;B&#039;, and is then a conjugated part of the commutator&lt;br /&gt;
* one part which is not affected by B&#039;, so affected only by BA&#039;, becoming the container of pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The conjugated part is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, becoming the quirk part&lt;br /&gt;
* one part which is not, becoming a conjugated part of the commutator&lt;br /&gt;
&lt;br /&gt;
Pieces that were not affected by the conjugate, but that are affected by the last B&#039; move, are the P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; pieces of the corresponding commutator.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutator]]&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22742</id>
		<title>Conjugate</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22742"/>
		<updated>2013-04-02T10:36:41Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Usage */ conjugated part&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;conjugate&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, and finally the inverse of the sequence A. In other words, a conjugate is an algorithm like A B A&#039;, where A and B can be any sequence of moves. In intuitive terms, it means: do something to set up another task which does something useful, and undo the setup.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;conjugate&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;&amp;lt;/i&amp;gt;, where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039;&lt;br /&gt;
&lt;br /&gt;
It is sometimes written as [A: B] = A B A&#039;&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
In A B A&#039;, the sequence A is the setup move or sequence and A&#039; puts the cube in its original state. In between, there is an embedded sequence B. Alone, this sequence would affect some set of locations &#039;&#039;&#039;K&#039;&#039;&#039; on the cube. Because of the conjugation, the affected pieces will be &#039;&#039;&#039;K&#039;&#039;&#039;A&#039;, which means that the locations will be transformed by the inverse of A.&lt;br /&gt;
&lt;br /&gt;
Indeed the sequence B will be applied on a cube which space has been modified by A. The sequence B is supposed to change some pieces in the locations &#039;&#039;&#039;K&#039;&#039;&#039; and A consists in bringing the piece you want to change to the location &#039;&#039;&#039;K&#039;&#039;&#039;. Once you&#039;ve done the sequence B, you bring those pieces back with A&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
If the set of locations &#039;&#039;&#039;K&#039;&#039;&#039; is not modified by A, then the conjugation does not change anything, and A B A&#039; = B.&lt;br /&gt;
&lt;br /&gt;
=== General case ===&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by the following subsequence of ABA&#039;:&lt;br /&gt;
* by B only: this part is outside of the conjugation&lt;br /&gt;
* by AB: this is the first semi-conjugated part&lt;br /&gt;
* by BA&#039;: this is the second semi-conjugated part&lt;br /&gt;
* by ABA&#039;: this is the conjugated part&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;J&#039;&#039;&#039; the set of pieces modified by A, and &#039;&#039;&#039;N&#039;&#039;&#039; the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The initial location of the outside part is:&lt;br /&gt;
&#039;&#039;&#039;O&#039;&#039;&#039; = ((&#039;&#039;&#039;K&#039;&#039;&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the first semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the second semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The slot location is:&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
The conjugation is often used to provide a setup for some transformation. The conjugation ABA&#039; is very similar to B, except that B is applied on other pieces as it would be without conjugation. For example, if a sequence exchange some pieces, or rotate some pieces, you can choose to exchange other pieces or rotate other pieces :&lt;br /&gt;
&lt;br /&gt;
[F&#039;: [M2D2M2, U]]&lt;br /&gt;
&lt;br /&gt;
where [M2D2M2, U] exchange the four top edges, so applying F&#039; exchange the front-right edge instead of the front-top edge.&lt;br /&gt;
&lt;br /&gt;
The intersection is &#039;&#039;&#039;N&#039;&#039;&#039; = front-top edge&lt;br /&gt;
&lt;br /&gt;
The slot is &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;F = front-right edge&lt;br /&gt;
&lt;br /&gt;
The conjugated part is:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
Surprisingly, in this example, the conjugated part is empty. It means that no individual piece is actually following the whole conjugation. F&#039; and [M2D2M2, U] are only connected so that some pieces are transfered through the intersection &#039;&#039;&#039;N&#039;&#039;&#039;. The transfer occur between both semi-conjugated parts.&lt;br /&gt;
&lt;br /&gt;
In this simple case, we do not really distinguish the semi-conjugated parts. But it is possible to take this difference into account, and also to use a conjugated part.&lt;br /&gt;
&lt;br /&gt;
==== Semi-conjugated parts ====&lt;br /&gt;
&lt;br /&gt;
Semi-conjugated parts can be used to move pieces inside or outside a slot. This is widely used to insert or extract a pair of pieces in [[F2L]] or to insert or extract corners or edges individually. &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is extract from the slot and &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is inserted into the slot.&lt;br /&gt;
&lt;br /&gt;
Example: RU&#039;R&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)UR&#039; = top-right-front corner and front-right edge&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-back edge and top-back-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-front-right corner and top-front edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
Example: RUR&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039;)U&#039;R&#039; = front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-front edge and top-front-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-back-left corner and top-back edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-top corner.&lt;br /&gt;
&lt;br /&gt;
==== Conjugated part ====&lt;br /&gt;
&lt;br /&gt;
The conjugated part is used to move pieces inside the slot :&lt;br /&gt;
&lt;br /&gt;
RUR&#039;&lt;br /&gt;
&lt;br /&gt;
where the intersection is &#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-front corner and top-right-back corner&lt;br /&gt;
&lt;br /&gt;
and the slot is &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = front-right edge, front-right-top corner and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039; = top-right-front corner&lt;br /&gt;
&lt;br /&gt;
This piece is moved to the front-right-bottom corner and rotated so that the right facelet is moved to the bottom facelet.&lt;br /&gt;
&lt;br /&gt;
=== Link with commutators ===&lt;br /&gt;
&lt;br /&gt;
The outside part &#039;&#039;&#039;O&#039;&#039;&#039; is only affected by B&#039;, so it can be put back into place by adding B&#039; to the sequence, giving ABA&#039;B&#039;, which is the [[commutator]] of A and B. &lt;br /&gt;
&lt;br /&gt;
The first semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, which was affected by AB, is then only affected by A, becoming the container of pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
The second semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, so affected by BA&#039;B&#039;, and is then a conjugated part of the commutator&lt;br /&gt;
* one part which is not affected by B&#039;, so affected only by BA&#039;, becoming the container of pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The conjugated part is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, becoming the quirk part&lt;br /&gt;
* one part which is not, becoming a conjugated part of the commutator&lt;br /&gt;
&lt;br /&gt;
Pieces that were not affected by the conjugate, but that are affected by the last B&#039; move, are the P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; pieces of the corresponding commutator.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutator]]&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22741</id>
		<title>Conjugate</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22741"/>
		<updated>2013-04-02T10:23:49Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Conjugated part */ correction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;conjugate&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, and finally the inverse of the sequence A. In other words, a conjugate is an algorithm like A B A&#039;, where A and B can be any sequence of moves. In intuitive terms, it means: do something to set up another task which does something useful, and undo the setup.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;conjugate&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;&amp;lt;/i&amp;gt;, where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039;&lt;br /&gt;
&lt;br /&gt;
It is sometimes written as [A: B] = A B A&#039;&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
In A B A&#039;, the sequence A is the setup move or sequence and A&#039; puts the cube in its original state. In between, there is an embedded sequence B. Alone, this sequence would affect some set of locations &#039;&#039;&#039;K&#039;&#039;&#039; on the cube. Because of the conjugation, the affected pieces will be &#039;&#039;&#039;K&#039;&#039;&#039;A&#039;, which means that the locations will be transformed by the inverse of A.&lt;br /&gt;
&lt;br /&gt;
Indeed the sequence B will be applied on a cube which space has been modified by A. The sequence B is supposed to change some pieces in the locations &#039;&#039;&#039;K&#039;&#039;&#039; and A consists in bringing the piece you want to change to the location &#039;&#039;&#039;K&#039;&#039;&#039;. Once you&#039;ve done the sequence B, you bring those pieces back with A&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
If the set of locations &#039;&#039;&#039;K&#039;&#039;&#039; is not modified by A, then the conjugation does not change anything, and A B A&#039; = B.&lt;br /&gt;
&lt;br /&gt;
=== General case ===&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by the following subsequence of ABA&#039;:&lt;br /&gt;
* by B only: this part is outside of the conjugation&lt;br /&gt;
* by AB: this is the first semi-conjugated part&lt;br /&gt;
* by BA&#039;: this is the second semi-conjugated part&lt;br /&gt;
* by ABA&#039;: this is the conjugated part&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;J&#039;&#039;&#039; the set of pieces modified by A, and &#039;&#039;&#039;N&#039;&#039;&#039; the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The initial location of the outside part is:&lt;br /&gt;
&#039;&#039;&#039;O&#039;&#039;&#039; = ((&#039;&#039;&#039;K&#039;&#039;&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the first semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the second semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The slot location is:&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
==== Conjugated part ====&lt;br /&gt;
&lt;br /&gt;
The conjugated part is used to move pieces inside the slot :&lt;br /&gt;
&lt;br /&gt;
RUR&#039;&lt;br /&gt;
&lt;br /&gt;
where the slot is &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = front-right edge, front-right-top corner and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
==== Semi-conjugated parts ====&lt;br /&gt;
&lt;br /&gt;
Semi-conjugated parts can be used to move pieces inside or outside a slot. This is widely used to insert or extract a pair of pieces in [[F2L]] or to insert or extract corners or edges individually. &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is extract from the slot and &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is inserted into the slot.&lt;br /&gt;
&lt;br /&gt;
Example: RU&#039;R&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)UR&#039; = top-right-front corner and front-right edge&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-back edge and top-back-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-front-right corner and top-front edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
Example: RUR&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039;)U&#039;R&#039; = front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-front edge and top-front-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-back-left corner and top-back edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-top corner.&lt;br /&gt;
&lt;br /&gt;
=== Link with commutators ===&lt;br /&gt;
&lt;br /&gt;
The outside part &#039;&#039;&#039;O&#039;&#039;&#039; is only affected by B&#039;, so it can be put back into place by adding B&#039; to the sequence, giving ABA&#039;B&#039;, which is the [[commutator]] of A and B. &lt;br /&gt;
&lt;br /&gt;
The first semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, which was affected by AB, is then only affected by A, becoming the container of pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
The second semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, so affected by BA&#039;B&#039;, and is then a conjugated part of the commutator&lt;br /&gt;
* one part which is not affected by B&#039;, so affected only by BA&#039;, becoming the container of pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The conjugated part is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, becoming the quirk part&lt;br /&gt;
* one part which is not, becoming a conjugated part of the commutator&lt;br /&gt;
&lt;br /&gt;
Pieces that were not affected by the conjugate, but that are affected by the last B&#039; move, are the P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; pieces of the corresponding commutator.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutator]]&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22740</id>
		<title>Conjugate</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22740"/>
		<updated>2013-04-02T10:11:39Z</updated>

		<summary type="html">&lt;p&gt;Circular17: usage and link with commutators&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;conjugate&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, and finally the inverse of the sequence A. In other words, a conjugate is an algorithm like A B A&#039;, where A and B can be any sequence of moves. In intuitive terms, it means: do something to set up another task which does something useful, and undo the setup.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;conjugate&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;&amp;lt;/i&amp;gt;, where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039;&lt;br /&gt;
&lt;br /&gt;
It is sometimes written as [A: B] = A B A&#039;&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
In A B A&#039;, the sequence A is the setup move or sequence and A&#039; puts the cube in its original state. In between, there is an embedded sequence B. Alone, this sequence would affect some set of locations &#039;&#039;&#039;K&#039;&#039;&#039; on the cube. Because of the conjugation, the affected pieces will be &#039;&#039;&#039;K&#039;&#039;&#039;A&#039;, which means that the locations will be transformed by the inverse of A.&lt;br /&gt;
&lt;br /&gt;
Indeed the sequence B will be applied on a cube which space has been modified by A. The sequence B is supposed to change some pieces in the locations &#039;&#039;&#039;K&#039;&#039;&#039; and A consists in bringing the piece you want to change to the location &#039;&#039;&#039;K&#039;&#039;&#039;. Once you&#039;ve done the sequence B, you bring those pieces back with A&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
If the set of locations &#039;&#039;&#039;K&#039;&#039;&#039; is not modified by A, then the conjugation does not change anything, and A B A&#039; = B.&lt;br /&gt;
&lt;br /&gt;
=== General case ===&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by the following subsequence of ABA&#039;:&lt;br /&gt;
* by B only: this part is outside of the conjugation&lt;br /&gt;
* by AB: this is the first semi-conjugated part&lt;br /&gt;
* by BA&#039;: this is the second semi-conjugated part&lt;br /&gt;
* by ABA&#039;: this is the conjugated part&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;J&#039;&#039;&#039; the set of pieces modified by A, and &#039;&#039;&#039;N&#039;&#039;&#039; the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The initial location of the outside part is:&lt;br /&gt;
&#039;&#039;&#039;O&#039;&#039;&#039; = ((&#039;&#039;&#039;K&#039;&#039;&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the first semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the second semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;N&#039;&#039;&#039;B inter &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
The slot location is:&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
==== Conjugated part ====&lt;br /&gt;
&lt;br /&gt;
The conjugated part is used to provide a setup for some transformation. Regarding this part, the conjugation ABA&#039; is very similar to B, except that B is applied on other pieces as it would be without conjugation. For example, if a sequence exchange some pieces, or rotate some pieces, you can choose to exchange other pieces or rotate other pieces :&lt;br /&gt;
&lt;br /&gt;
[F&#039;: [M2D2M2, U]]&lt;br /&gt;
&lt;br /&gt;
where [M2D2M2, U] exchange the four top edges, so applying F&#039; exchange the front-right edge instead of the front-top edge.&lt;br /&gt;
&lt;br /&gt;
==== Semi-conjugated parts ====&lt;br /&gt;
&lt;br /&gt;
Semi-conjugated parts can be used to move pieces inside or outside a slot. This is widely used to insert or extract a pair of pieces in [[F2L]] or to insert or extract corners or edges individually. &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; is extract from the slot and &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is inserted into the slot.&lt;br /&gt;
&lt;br /&gt;
Example: RU&#039;R&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)UR&#039; = top-right-front corner and front-right edge&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-back edge and top-back-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-front-right corner and top-front edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
Example: RUR&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;N&#039;&#039;&#039; = top-right edge, top-right-back and top-right-front corners&lt;br /&gt;
&lt;br /&gt;
Slot location : &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;R&#039; = top-right-front corner, front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;U \ &#039;&#039;&#039;N&#039;&#039;&#039;)U&#039;R&#039; = front-right edge and front-right-bottom corner&lt;br /&gt;
&lt;br /&gt;
These pieces are extracted from the slot and replace the top-front edge and top-front-left corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; = &#039;&#039;&#039;N&#039;&#039;&#039;U&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; = top-back-left corner and top-back edge&lt;br /&gt;
&lt;br /&gt;
These pieces are inserted into the slot, replacing front-right edge, and front-right-top corner.&lt;br /&gt;
&lt;br /&gt;
=== Link with commutators ===&lt;br /&gt;
&lt;br /&gt;
The outside part &#039;&#039;&#039;O&#039;&#039;&#039; is only affected by B&#039;, so it can be put back into place by adding B&#039; to the sequence, giving ABA&#039;B&#039;, which is the [[commutator]] of A and B. &lt;br /&gt;
&lt;br /&gt;
The first semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt;, which was affected by AB, is then only affected by A, becoming the container of pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
The second semi-conjugated part &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt; is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, so affected by BA&#039;B&#039;, and is then a conjugated part of the commutator&lt;br /&gt;
* one part which is not affected by B&#039;, so affected only by BA&#039;, becoming the container of pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The conjugated part is split into two parts:&lt;br /&gt;
* one part which is affected by B&#039;, becoming the quirk part&lt;br /&gt;
* one part which is not, becoming a conjugated part of the commutator&lt;br /&gt;
&lt;br /&gt;
Pieces that were not affected by the conjugate, but that are affected by the last B&#039; move, are the P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; pieces of the corresponding commutator.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutator]]&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22739</id>
		<title>Conjugate</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Conjugate&amp;diff=22739"/>
		<updated>2013-04-01T09:57:24Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Effect */ general case&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;conjugate&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, and finally the inverse of the sequence A. In other words, a conjugate is an algorithm like A B A&#039;, where A and B can be any sequence of moves. In intuitive terms, it means: do something to set up another task which does something useful, and undo the setup.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;conjugate&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;&amp;lt;/i&amp;gt;, where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039;&lt;br /&gt;
&lt;br /&gt;
It is sometimes written as [A: B] = A B A&#039;&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
In A B A&#039;, the sequence A is the setup move or sequence and A&#039; puts the cube in its original state. In between, there is an embedded sequence B. Alone, this sequence would affect some set of locations &#039;&#039;&#039;K&#039;&#039;&#039; on the cube. Because of the conjugation, the affected pieces will be &#039;&#039;&#039;K&#039;&#039;&#039;A&#039;, which means that the locations will be transformed by the inverse of A.&lt;br /&gt;
&lt;br /&gt;
Indeed the sequence B will be applied on a cube which space has been modified by A. The sequence B is supposed to change some pieces in the locations &#039;&#039;&#039;K&#039;&#039;&#039; and A consists in bringing the piece you want to change to the location &#039;&#039;&#039;K&#039;&#039;&#039;. Once you&#039;ve done the sequence B, you bring those pieces back with A&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
If the set of locations &#039;&#039;&#039;K&#039;&#039;&#039; is not modified by A, then the conjugation does not change anything, and A B A&#039; = B.&lt;br /&gt;
&lt;br /&gt;
=== General case ===&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by the following subsequence of ABA&#039;:&lt;br /&gt;
* by B only: this part is outside of the conjugation&lt;br /&gt;
* by AB: this is the first semi-conjugated part&lt;br /&gt;
* by BA&#039;: this is the second semi-conjugated part&lt;br /&gt;
* by ABA&#039;: this is the conjugated part&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;J&#039;&#039;&#039; the set of pieces modified by A, and &#039;&#039;&#039;N&#039;&#039;&#039; the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The initial location of the outside part is:&lt;br /&gt;
&#039;&#039;&#039;O&#039;&#039;&#039; = ((&#039;&#039;&#039;K&#039;&#039;&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;)B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;&lt;br /&gt;
&lt;br /&gt;
The initial location of the first semi-conjugated part is:&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;1&amp;lt;/sub&amp;gt; = (&#039;&#039;&#039;N&#039;&#039;&#039;B \ &#039;&#039;&#039;N&#039;&#039;&#039;)B&#039;A&#039;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutator]]&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22738</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22738"/>
		<updated>2013-04-01T09:37:52Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk and conjugated part */ line ending&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with additional interferences. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
* the top-right-back corner is affected by all moves, R&#039;FRF&#039; = [R&#039;: F] F&#039; equivalent to UF&#039;, or R&#039;FRF&#039; = R&#039; [F: R] equivalent to R&#039;U, thus going to the top-front-right position, replacing a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are [[conjugate|conjugated]]. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top is affected by R&#039;F&#039;R so it is equivalent to x&#039;F&#039;x which is U&#039;.&lt;br /&gt;
&lt;br /&gt;
The front-bottom-left is affected by F&#039;RF so it is equivalent to z&#039;Rz whichi is D.&lt;br /&gt;
&lt;br /&gt;
So this move does :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, i.e. front-right edge and front-right-bottom corner, goes F&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, i.e. top-right edge and top-right-back corner, goes R&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, i.e. front-bottom edge, goes F&#039;R&lt;br /&gt;
* the front-right-top corner goes U&#039;&lt;br /&gt;
* the front-bottom-left goes D&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in all inplace cases and some overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in complex inplace cases and some overlap case&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22737</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22737"/>
		<updated>2013-04-01T09:37:32Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk and conjugated part */ wiki conjugate&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with additional interferences. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
* the top-right-back corner is affected by all moves, R&#039;FRF&#039; = [R&#039;: F] F&#039; equivalent to UF&#039;, or R&#039;FRF&#039; = R&#039; [F: R] equivalent to R&#039;U, thus going to the top-front-right position, replacing a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are [[conjugate|conjugated]]. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top is affected by R&#039;F&#039;R so it is equivalent to x&#039;F&#039;x which is U&#039;.&lt;br /&gt;
&lt;br /&gt;
The front-bottom-left is affected by F&#039;RF so it is equivalent to z&#039;Rz whichi is D.&lt;br /&gt;
&lt;br /&gt;
So this move does :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, i.e. front-right edge and front-right-bottom corner, goes F&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, i.e. top-right edge and top-right-back corner, goes R&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, i.e. front-bottom edge, goes F&#039;R&lt;br /&gt;
* the front-right-top corner goes U&#039;&lt;br /&gt;
* the front-bottom-left goes D&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in all inplace cases and some overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in complex inplace cases and some overlap case&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22736</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22736"/>
		<updated>2013-04-01T09:29:48Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Example */ explanations of the remaining corner&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with additional interferences. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
* the top-right-back corner is affected by all moves, R&#039;FRF&#039; = [R&#039;: F] F&#039; equivalent to UF&#039;, or R&#039;FRF&#039; = R&#039; [F: R] equivalent to R&#039;U, thus going to the top-front-right position, replacing a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top is affected by R&#039;F&#039;R so it is equivalent to x&#039;F&#039;x which is U&#039;.&lt;br /&gt;
&lt;br /&gt;
The front-bottom-left is affected by F&#039;RF so it is equivalent to z&#039;Rz whichi is D.&lt;br /&gt;
&lt;br /&gt;
So this move does :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, i.e. front-right edge and front-right-bottom corner, goes F&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, i.e. top-right edge and top-right-back corner, goes R&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, i.e. front-bottom edge, goes F&#039;R&lt;br /&gt;
* the front-right-top corner goes U&#039;&lt;br /&gt;
* the front-bottom-left goes D&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in all inplace cases and some overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in complex inplace cases and some overlap case&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22735</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22735"/>
		<updated>2013-04-01T09:22:09Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Example */ summary&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with additional interferences. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top is affected by R&#039;F&#039;R so it is equivalent to x&#039;F&#039;x which is U&#039;.&lt;br /&gt;
&lt;br /&gt;
The front-bottom-left is affected by F&#039;RF so it is equivalent to z&#039;Rz whichi is D.&lt;br /&gt;
&lt;br /&gt;
So this move does :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, i.e. front-right edge and front-right-bottom corner, goes F&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, i.e. top-right edge and top-right-back corner, goes R&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, i.e. front-bottom edge, goes F&#039;R&lt;br /&gt;
* the front-right-top corner goes U&#039;&lt;br /&gt;
* the front-bottom-left goes D&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in all inplace cases and some overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in complex inplace cases and some overlap case&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22731</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22731"/>
		<updated>2013-03-31T08:37:34Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Summary of sets of pieces */ usage&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with additional interferences. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top corner goes U&#039; and the front-bottom-left corner goes D.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in all inplace cases and some overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in complex inplace cases and some overlap case&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22730</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22730"/>
		<updated>2013-03-31T08:36:11Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Summary of sets of pieces */ not necessarily complex in fact&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with additional interferences. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top corner goes U&#039; and the front-bottom-left corner goes D.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22729</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22729"/>
		<updated>2013-03-31T08:34:13Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Example */ remove Q reference, because it could be C&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with additional interferences. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top corner goes U&#039; and the front-bottom-left corner goes D.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22728</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22728"/>
		<updated>2013-03-31T08:32:59Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Overlap */ interference instead of quirk in order to reduce confusion&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with additional interferences. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top corner goes U&#039; and the front-bottom-left corner goes D.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22727</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22727"/>
		<updated>2013-03-31T08:31:53Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ quirk and conjugate&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk and conjugated part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The quirk part and the conjugated part are used as final locations for pieces that go outside of the pseudo 3-cycle.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top corner goes U&#039; and the front-bottom-left corner goes D.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22726</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22726"/>
		<updated>2013-03-31T08:26:26Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ both&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of some pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with both P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top corner goes U&#039; and the front-bottom-left corner goes D.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22725</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22725"/>
		<updated>2013-03-31T08:25:49Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ line ending&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of some pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top corner goes U&#039; and the front-bottom-left corner goes D.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22724</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22724"/>
		<updated>2013-03-31T08:24:21Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of some pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top corner goes U&#039; and the front-bottom-left corner goes D.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22723</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22723"/>
		<updated>2013-03-31T08:23:51Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ conjugated part&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of some pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; and their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A/&amp;lt;sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
The conjugated part is :&lt;br /&gt;
&#039;&#039;&#039;C&#039;&#039;&#039; = (&#039;&#039;&#039;J&#039;&#039;&#039; union &#039;&#039;&#039;K&#039;&#039;&#039;) \ (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A/&amp;lt;sub&amp;gt; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039; union &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B union &#039;&#039;&#039;Q&#039;&#039;&#039;) = front-right-top corner and front-bottom-left corner&lt;br /&gt;
&lt;br /&gt;
The front-right-top corner goes U&#039; and the front-bottom-left corner goes D.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22722</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22722"/>
		<updated>2013-03-31T08:07:38Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Classification */ correction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of some pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap with quirk part and without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part and without quirk part: [R&#039;, F&#039;]&lt;br /&gt;
* overlap with both quirk and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22721</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22721"/>
		<updated>2013-03-31T08:06:34Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ quirk correction&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle and never hidden. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of some pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle, but are hidden by A or B at some point. So they are conjugated. Let&#039;s call their starting location &#039;&#039;&#039;C&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
In the overlap case, either &#039;&#039;&#039;Q&#039;&#039;&#039; or &#039;&#039;&#039;C&#039;&#039;&#039; is non empty, so there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be five sets with P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22720</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22720"/>
		<updated>2013-03-31T08:00:42Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ empty&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle, to store some pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be a fifth set P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
The quirk part is :&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039; = empty&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22719</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22719"/>
		<updated>2013-03-31T07:53:07Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Example */ pieces&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle, to store some pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be a fifth set P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner. So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the set of pieces at these locations.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the top-right edge and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner. So P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-bottom edge only.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22718</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22718"/>
		<updated>2013-03-31T07:49:49Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Example */ HA&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle, to store some pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be a fifth set P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22717</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22717"/>
		<updated>2013-03-31T07:49:07Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle, to store some pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be a fifth set P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F&#039;]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the front-right edge and the front-right-top corner.&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22716</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22716"/>
		<updated>2013-03-31T07:46:17Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ any part can go outside&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle, to store some pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of pieces that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be a fifth set P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22715</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22715"/>
		<updated>2013-03-31T07:35:25Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* No overlap */ storage comment&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;B may or may not overlap with &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, but that it does not have any implication, except that the location where the pieces come from can also be the location where they are temporarily stored. The most obvious case is when &#039;&#039;&#039;N&#039;&#039;&#039;A equals to &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, or &#039;&#039;&#039;N&#039;&#039;&#039;B equals to &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, which means that pieces of the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are swapped with pieces of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; or &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, as in [R2, F2]&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle, to store some pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be a fifth set P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22714</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22714"/>
		<updated>2013-03-31T07:25:44Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ double usage of Q&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part &#039;&#039;&#039;Q&#039;&#039;&#039; is used as an extra location for the pseudo 3-cycle, to store some pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;. So &#039;&#039;&#039;Q&#039;&#039;&#039; has two meanings :&lt;br /&gt;
* the initial location of pieces affected by all moves P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
* the final location of pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; that go outside of the pseudo 3-cycle&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In complex cases, there may be a fifth set P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22713</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22713"/>
		<updated>2013-03-31T07:20:07Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ removed confusing comma&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part is used as an extra location for the pseudo 3-cycle, to store some pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22712</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22712"/>
		<updated>2013-03-31T07:19:15Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ double usage of Q&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces are outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
The quirk part is used as an extra location for the pseudo 3-cycle, to store some pieces of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22711</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22711"/>
		<updated>2013-03-31T07:16:07Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Example */ quirk explanation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner (the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location &#039;&#039;&#039;Q&#039;&#039;&#039; is used, the top-right-back corner. Pieces that are initially in this location are moved according a special scheme (see below). &lt;br /&gt;
&lt;br /&gt;
In this example, the top-right-back corner goes to the top-front-right position, thus being separated from the edges around it.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces go outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22710</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22710"/>
		<updated>2013-03-31T07:10:46Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Quirk part */ rephrase&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces go outside of the pseudo 3-cycle. Let&#039;s call their starting location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22709</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22709"/>
		<updated>2013-03-31T07:05:30Z</updated>

		<summary type="html">&lt;p&gt;Circular17: removed spaces before :&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close: A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing:&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as: swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples: &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator:&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator:&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases:&lt;br /&gt;
* Case 2 only: the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time: the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by:&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage:&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039;:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces: P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets:&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators:&lt;br /&gt;
* trivial commutator which is equivalent to the identity: [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference: corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation: [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle: [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part: [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22708</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22708"/>
		<updated>2013-03-31T07:03:04Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Safe part */ explanation of HA&amp;#039;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing :&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as : swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples : &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator :&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator :&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases :&lt;br /&gt;
* Case 2 only : the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time : the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by :&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
We will also use pieces that are hidden by A&#039; so that they are not affected by B&#039; :&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces : P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators :&lt;br /&gt;
* trivial commutator which is equivalent to the identity : [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference : corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation : [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle : [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part : [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22707</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22707"/>
		<updated>2013-03-31T07:00:02Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Safe part */ typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing :&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as : swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples : &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator :&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator :&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases :&lt;br /&gt;
* Case 2 only : the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time : the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by :&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces : P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators :&lt;br /&gt;
* trivial commutator which is equivalent to the identity : [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference : corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation : [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle : [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part : [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Talk:Commutator&amp;diff=22706</id>
		<title>Talk:Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Talk:Commutator&amp;diff=22706"/>
		<updated>2013-03-31T06:46:23Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Changes by Circular17 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Addition of commutator GIF ==&lt;br /&gt;
I change P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt; to P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; for consistency reasons.&lt;br /&gt;
I got rid of the table because it is now extraneous. However it is commented out in the raw text of this talk page in case you want to re-include it. &lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Which can be described as :&lt;br /&gt;
&amp;lt;table border=1 cellspacing=0&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;step&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;intersection&amp;lt;br/&amp;gt;N&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;N A&#039;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;storage&amp;lt;br/&amp;gt;N A&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;N B&#039;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;storage&amp;lt;br/&amp;gt;N B&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Initial&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After A&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After B&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After A&#039;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;After B&#039;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;P&amp;lt;sub&amp;gt;I&amp;lt;/sub&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;/&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;
&amp;lt;/table&amp;gt;&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Circular17, I don&#039;t want to mess with your work and make large changes, but I think the part that is directly above the gif and reproduced below is not longer needed. I think in this case &amp;quot;a picture/animation says a thousand words&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
xxxxxxxxxxxxxxxxxxxx&amp;lt;br&amp;gt;&lt;br /&gt;
We notice that N A and N B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage N A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of N A&#039; is brought by A, and is then hidden by B in N B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of N B&#039; is brought by B, and then is placed immediately in N A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
xxxxxxxxxxxxxxxxx&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
That being said, I think what might be really helpful is if below the animation, we talk about a &amp;quot;real life example&amp;quot;. I&#039;ll see if I  can put something together.[[User:Dave3457|Dave3457]] ([[User talk:Dave3457|talk]]) 15:18, 28 November 2012 (EST)&lt;br /&gt;
&lt;br /&gt;
== Changes by Circular17 ==&lt;br /&gt;
&lt;br /&gt;
[[User:Circular17|Circular17]] comment &amp;gt;&amp;gt; http://en.wikipedia.org/wiki/User_talk:Dave3457#Commutator_on_Speedsolving_wiki&lt;br /&gt;
&lt;br /&gt;
:I would be happy to look over your work. Keep in mind that I not sure that I always receive an email notification when a page I&#039;m watching on Speedsolving Wiki (SSW) is changed . I did receive one for your March 30 changes however. My watchlist only showed one of your March 30  edits. (Maybe that&#039;s intended)&lt;br /&gt;
: I am looking things over now, it might take a couple of days.&lt;br /&gt;
: Aren&#039;t commutators wonderful ! :) I just discovered (using a program) a wonderful 2-gen one that twists 2 corners. Its the only one of its kind that I know of, it may be my favorite comm being a 2-gen and all. Check it out below. (Note: I personally cut and paste new algorithms I&#039;m learning into CubeTwister)&lt;br /&gt;
:Its not that hard to understand how this comm works, you don&#039;t have to memorize it, follow the two corner-edge pairs on each side of the twisted corner and how the twisted corner moves between them. &lt;br /&gt;
:R2DRD&#039;RDR2 D2 R2D&#039;R&#039;DR&#039;D&#039;R2 D2 (16,22)&lt;br /&gt;
:[ R2DR D&#039; RDR2, D2]   OR [ R2DR D&#039; RDR2, D] - [[User:Dave3457|Dave3457]] ([[User talk:Dave3457#top|talk]]) 04:05, 31 March 2013 (UTC)&lt;br /&gt;
&lt;br /&gt;
::I don&#039;t know how these notifications works.&lt;br /&gt;
::That&#039;s an interesting sequence indeed.&lt;br /&gt;
::I would reflect it like this :&lt;br /&gt;
::R2U&#039;R&#039;UR&#039;U&#039;R2 U&#039; R2URU&#039;RUR2 U&lt;br /&gt;
::so that it can be used for orienting corners of the last layer on top.&lt;br /&gt;
::or for left hand :&lt;br /&gt;
::L2ULU&#039;LUL2 U L2U&#039;L&#039;UL&#039;U&#039;L2 U&#039;&lt;br /&gt;
::--[[User:Circular17|Circular17]] ([[User talk:Circular17|talk]]) 02:46, 31 March 2013 (EDT)&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22704</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22704"/>
		<updated>2013-03-30T19:21:50Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Classification */ no need to mention quirk here&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing :&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as : swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples : &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator :&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator :&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases :&lt;br /&gt;
* Case 2 only : the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time : the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by :&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;H&#039;&#039;&#039;A) \ &#039;&#039;&#039;H&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces : P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators :&lt;br /&gt;
* trivial commutator which is equivalent to the identity : [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference : corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation : [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle : [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap without conjugated part : [R&#039;, F]&lt;br /&gt;
* overlap with conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22703</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22703"/>
		<updated>2013-03-30T19:20:48Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Classification */ overlap necessarily with quirk part&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing :&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as : swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples : &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator :&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator :&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases :&lt;br /&gt;
* Case 2 only : the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time : the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by :&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;H&#039;&#039;&#039;A) \ &#039;&#039;&#039;H&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces : P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. If it is the no overlap case, then pieces are hidden either by A or B, so P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty. Conversely, if P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; is empty, then pieces brought by A into the intersection are completely hidden by B. The inverse of the commutator B A B&#039; A&#039; shows that also A hides pieces brought by B, so that it is a no overlap case.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators :&lt;br /&gt;
* trivial commutator which is equivalent to the identity : [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference : corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation : [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle : [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap case with quirk part, but no conjugated part : [R&#039;, F]&lt;br /&gt;
* overlap case with quirk part and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22702</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22702"/>
		<updated>2013-03-30T19:12:51Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Classification */ 3-cycle example&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing :&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as : swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples : &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator :&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator :&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases :&lt;br /&gt;
* Case 2 only : the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time : the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by :&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;H&#039;&#039;&#039;A) \ &#039;&#039;&#039;H&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces : P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators :&lt;br /&gt;
* trivial commutator which is equivalent to the identity : [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference : corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation : [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle : [R&#039; D&#039; R, U&#039;]&lt;br /&gt;
* overlap case with conjugated part but no quirk part&lt;br /&gt;
* overlap case with quirk part, but no conjugated part : [R&#039;, F]&lt;br /&gt;
* overlap case with quirk part and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22701</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22701"/>
		<updated>2013-03-30T19:12:00Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Classification */ possible&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing :&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as : swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples : &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator :&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator :&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases :&lt;br /&gt;
* Case 2 only : the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time : the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by :&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;H&#039;&#039;&#039;A) \ &#039;&#039;&#039;H&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces : P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
So we get the following possible types of commutators :&lt;br /&gt;
* trivial commutator which is equivalent to the identity : [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference : corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation : [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* overlap case with conjugated part but no quirk part&lt;br /&gt;
* overlap case with quirk part, but no conjugated part : [R&#039;, F]&lt;br /&gt;
* overlap case with quirk part and conjugated part&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22699</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22699"/>
		<updated>2013-03-30T19:00:22Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Classification */ draft&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing :&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as : swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples : &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator :&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator :&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases :&lt;br /&gt;
* Case 2 only : the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time : the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by :&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;H&#039;&#039;&#039;A) \ &#039;&#039;&#039;H&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces : P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
So we get the following types of commutators :&lt;br /&gt;
* trivial commutator which is equivalent to the identity : [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference : corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation : [M&#039;, U2]&lt;br /&gt;
* no overlap, 3-cycle of (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
* overlap case&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22698</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22698"/>
		<updated>2013-03-30T18:52:43Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* Classification */ start&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing :&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as : swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples : &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator :&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator :&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases :&lt;br /&gt;
* Case 2 only : the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time : the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by :&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;H&#039;&#039;&#039;A) \ &#039;&#039;&#039;H&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces : P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, then B can hide pieces, thus P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty either. Conversely, if P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is not empty, then P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty. &lt;br /&gt;
&lt;br /&gt;
If P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty, then A and B can hide pieces, thus P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are not empty. Conversely if P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is not empty, it means that pieces are brought into the intersection so that pieces are brought out of the intersection by A, thus P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
So either the three sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty or the three sets are empty. If these sets are empty, it means that at least A, B or both A and B move pieces inside the intersection &#039;&#039;&#039;N&#039;&#039;&#039; only. So it is either a trivial case or an inplace case. If both A and B move pieces inside the intersection, let&#039;s call it &amp;quot;double inplace&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If it is an inplace case and not a &amp;quot;double inplace&amp;quot;, then some pieces are affected by a commutator. Thus P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; is not empty.&lt;br /&gt;
&lt;br /&gt;
If the sets P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are not empty, we cannot deduce anything about P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; or P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;. &lt;br /&gt;
&lt;br /&gt;
So we get the following types of commutators :&lt;br /&gt;
* trivial commutator which is equivalent to the identity : [L, R]&lt;br /&gt;
* double inplace, A and B move pieces inside the intersection&lt;br /&gt;
* single inplace without quirk part, the same transformation is applied twice (the second time in reverse order) without interference : corner twist, edge flip, double swap&lt;br /&gt;
* single inplace with quirk part, there is an interference between the conjugated and the non conjugated version of the transformation : [M&#039;, U2]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22697</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22697"/>
		<updated>2013-03-30T18:22:48Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* General case */ classification section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing :&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as : swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples : &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator :&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator :&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases :&lt;br /&gt;
* Case 2 only : the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time : the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by :&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;H&#039;&#039;&#039;A) \ &#039;&#039;&#039;H&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces : P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
== General case ==&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by one element only ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by two elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by three elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
=== Pieces affected by all four elements ===&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Summary of sets of pieces ===&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== Classification ==&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
	<entry>
		<id>https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22696</id>
		<title>Commutator</title>
		<link rel="alternate" type="text/html" href="https://www.speedsolving.com/wiki/index.php?title=Commutator&amp;diff=22696"/>
		<updated>2013-03-30T18:17:32Z</updated>

		<summary type="html">&lt;p&gt;Circular17: /* B inplace */ quirk part&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A &#039;&#039;&#039;commutator&#039;&#039;&#039; is a sequence of moves that consists in doing a sequence A, then a sequence B, then the inverse of the sequence A and finally the inverse of the sequence B. As a result, only specific pieces are affected. It allows to finish the cube without disturbing pieces that are already in place.&lt;br /&gt;
&lt;br /&gt;
== Mathematical definition ==&lt;br /&gt;
&lt;br /&gt;
Given a group, a &#039;&#039;&#039;commutator&#039;&#039;&#039; is an element of the form &amp;lt;i&amp;gt;ghg&#039;h&#039;&amp;lt;/i&amp;gt; (also denoted [&amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt;, &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt;]), where &amp;lt;i&amp;gt;g&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&amp;lt;/i&amp;gt; are elements of the group with inverses &amp;lt;i&amp;gt;g&#039;&amp;lt;/i&amp;gt; and &amp;lt;i&amp;gt;h&#039;&amp;lt;/i&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Cube notation is very close : A B A&#039; B&#039; = [A, B]&lt;br /&gt;
&lt;br /&gt;
== Fundamental principle ==&lt;br /&gt;
&lt;br /&gt;
It is straightforward that A A&#039; does nothing, as well as B B&#039;, because A&#039; is the inverse of A and B&#039; the inverse of B. &lt;br /&gt;
&lt;br /&gt;
So the commutator A B A&#039; B&#039; does change something only because B A&#039; is not the same as A&#039; B. When B A&#039; = A&#039; B, or B A = A B, we say that the elements A and B commute. In this case, A B A&#039; B&#039; = A (B A&#039;) B&#039; = A (A&#039; B) B&#039; = I where I is the identity.&lt;br /&gt;
&lt;br /&gt;
For example for L and R or U and D. In this case, the commutator does nothing :&lt;br /&gt;
L R L&#039; R&#039; = L L&#039; R R&#039; = I&lt;br /&gt;
&lt;br /&gt;
So in some way, the commutator allows you to measure to which extent the moves do not commute.&lt;br /&gt;
&lt;br /&gt;
== Effect ==&lt;br /&gt;
&lt;br /&gt;
The sequence A changes a set of pieces located at some locations &#039;&#039;&#039;J&#039;&#039;&#039; on the cube. The sequence B affects some locations &#039;&#039;&#039;K&#039;&#039;&#039;. If &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have no intersection, then A and B commute, and the commutator does nothing (for example [L, R]). Otherwise, &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Pieces that are brought into the intersection by A are &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; (apply the inverse of A to the locations &#039;&#039;&#039;N&#039;&#039;&#039;). Pieces that are brought into the intersection by B are &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;.&lt;br /&gt;
&lt;br /&gt;
The pieces that are affected by the commutator [A, B] = A B A&#039; B&#039; are located in the union of &#039;&#039;&#039;N&#039;&#039;&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. In other words, pieces that are affected by a commutator are those who are at the intersection of both moves, or are brought into the intersection by A or B. Other pieces, even if they are temporarily mixed up by A and B, will be put back at their original location with A&#039; and B&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Trivial case ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039; have an empty intersection, A and B commute, so the commutator does nothing.&lt;br /&gt;
&lt;br /&gt;
=== B inplace ===&lt;br /&gt;
&lt;br /&gt;
If &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; = &#039;&#039;&#039;N&#039;&#039;&#039;, the sequence B only moves affected pieces that are inside the intersection. It may also move pieces that are outside the intersection, but those moves will be cancelled at the end. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;. So those pieces will be in &#039;&#039;&#039;J&#039;&#039;&#039;, i.e. among pieces that are directly affected by A. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = (A B A&#039;) B&#039; = [A: B] B&#039;. First part is the [[conjugate]] of B by A, and second part is the inverse of B.&lt;br /&gt;
&lt;br /&gt;
If [A: B] and B&#039; interfere, there is a quirk part P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; (see general case).&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
Let&#039;s consider [M&#039;, U2] = M&#039; U2 M U2&lt;br /&gt;
&lt;br /&gt;
In this example, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is &#039;&#039;&#039;N&#039;&#039;&#039;U2, which is exactly &#039;&#039;&#039;N&#039;&#039;&#039;, and &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; are front-bottom and front-top edges. So affected pieces are top-back, top-front, and front-bottom edges, which are directly affected by M and M&#039;. In other words, affected pieces are in the middle slice.&lt;br /&gt;
&lt;br /&gt;
The conjugated move is U2. Because only middle slice pieces are changed at the end, we can safe ignore top-left and top-right pieces. The relevant part of U2 is just a swap of top-back and top-front edges. Thus, M&#039; U2 M swaps front-top and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
So [M&#039;, U2] can be understood as : swap front-top and front-bottom edges, then swap top-back and top-front edges, which yields a 3-cycle of edges.&lt;br /&gt;
&lt;br /&gt;
There is a quirk part, the front-bottom edge, which is affected by both [M&#039;: U2] and U2, i.e. by all four moves of the commutator.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [M2, U2] = M2 U2 M2 U2&lt;br /&gt;
&lt;br /&gt;
Again, &#039;&#039;&#039;N&#039;&#039;&#039; are the top-front and top-back edges. But there is no more interference between [M&#039;: U2] and U2, thus no quirk part. Simply, top-front and top-back edges are swapped, as well as bottom-front and bottom-back edges.&lt;br /&gt;
&lt;br /&gt;
=== A inplace ===&lt;br /&gt;
&lt;br /&gt;
This is a symmetrical case. Affected pieces will only be &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;. So those pieces will be in &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. among pieces that are directly affected by B. &lt;br /&gt;
&lt;br /&gt;
In this case, it is relevant to consider that [A, B] = A (B A&#039; B&#039;) = A [B: A&#039;]. First part is A and second part is the [[conjugate]] of A&#039; by B.&lt;br /&gt;
&lt;br /&gt;
==== Examples ====&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider the inverse of [M&#039;, U2] which is (M&#039; U2 M U2)&#039; = U2 M&#039; U2 M = [U2, M&#039;] = U2 [M&#039;: U2]. The relevant part of U2 consists in swapping top-back and top-front edges, and [M&#039;: U2] swaps top-front and front-bottom edges.&lt;br /&gt;
&lt;br /&gt;
Other examples : &lt;br /&gt;
* A = &amp;quot;rotating a corner&amp;quot; like [R&#039; D&#039; R D R&#039; D&#039; R, U]&lt;br /&gt;
* A = &amp;quot;flipping an edge&amp;quot; like [R&#039; E&#039; R2 E2 R&#039;, U]&lt;br /&gt;
* A = &amp;quot;exchanging two corners&amp;quot; like [R&#039; L&#039; D2 R L, U]&lt;br /&gt;
* A = &amp;quot;exchanging two edges&amp;quot; like [M2 D2 M2, U]&lt;br /&gt;
&lt;br /&gt;
=== Three different sets ===&lt;br /&gt;
&lt;br /&gt;
When &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; are not included in &#039;&#039;&#039;N&#039;&#039;&#039;, there are three sets involved in the commutator :&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; : pieces that are brought into the intersection by A&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; : pieces that are brought into the intersection by B&lt;br /&gt;
* &#039;&#039;&#039;N&#039;&#039;&#039; : the intersection of &#039;&#039;&#039;J&#039;&#039;&#039; and &#039;&#039;&#039;K&#039;&#039;&#039;, i.e. where A and B interfere.&lt;br /&gt;
&lt;br /&gt;
Note that &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039; and &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; can have locations in common with &#039;&#039;&#039;N&#039;&#039;&#039;. In other words, it is possible that a sequence (A or B) does two different things in the context of a commutator :&lt;br /&gt;
# moving pieces inside the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
# bringing pieces into the intersection (from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039; or from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039; to &#039;&#039;&#039;N&#039;&#039;&#039;)&lt;br /&gt;
&lt;br /&gt;
When there is only case 1, it is in fact the cases studied before. So we are left with those possible cases :&lt;br /&gt;
* Case 2 only : the three sets &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; and &#039;&#039;&#039;N&#039;&#039;&#039; are completely separated (no overlap)&lt;br /&gt;
* Case 1 and 2 at the same time : the three sets overlap&lt;br /&gt;
&lt;br /&gt;
==== No overlap ====&lt;br /&gt;
&lt;br /&gt;
Referring to the animation below, when sets do not overlap, the commutator can be summed up by :&lt;br /&gt;
* A stores the content of the intersection P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A, and replace it with some pieces P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;&lt;br /&gt;
* B stores P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;B, and bring some pieces P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; into the intersection&lt;br /&gt;
* A&#039; retrieves P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039;, and brings to the intersection previously stored pieces P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; in &#039;&#039;&#039;N&#039;&#039;&#039;A&lt;br /&gt;
* B&#039; retrieves P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; from the intersection and places them in &#039;&#039;&#039;N&#039;&#039;&#039;B&#039;, and finally places P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; in the intersection.&lt;br /&gt;
&lt;br /&gt;
So it is a 3-cycle of (P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) into (P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
We notice that &#039;&#039;&#039;N&#039;&#039;&#039;A and &#039;&#039;&#039;N&#039;&#039;&#039;B are used as temporary storage :&lt;br /&gt;
* The content of the intersection, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;, is first hidden by A in its storage &#039;&#039;&#039;N&#039;&#039;&#039;A, and comes back with A&#039;, so that the only transformation applied to these pieces is B&#039;.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; is brought by A, and is then hidden by B in &#039;&#039;&#039;N&#039;&#039;&#039;B, so that the only transformation applied to these pieces is A.&lt;br /&gt;
* The content of &#039;&#039;&#039;N&#039;&#039;&#039;B&#039; is brought by B, and then is placed immediately in &#039;&#039;&#039;N&#039;&#039;&#039;A&#039; by A&#039;. So the transformation applied to these pieces is B A&#039;.&lt;br /&gt;
&lt;br /&gt;
In other words, all the commutator does is :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
[[File:Break down of Commutator A B A B If there is no overlap.gif]]&lt;br /&gt;
&lt;br /&gt;
===== Examples =====&lt;br /&gt;
&lt;br /&gt;
* [R&#039; E2 R, U&#039;] is a 3-cycle of edges, where P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; is the back-left edge, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; is the top-front edge and P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; is the top-right edge.&lt;br /&gt;
* [R&#039; D&#039; R, U&#039;] is a 3-cycle of corners&lt;br /&gt;
&lt;br /&gt;
==== Overlap ====&lt;br /&gt;
&lt;br /&gt;
This is the most complex case, because it is like the &amp;quot;no overlap&amp;quot; case, but with an additional quirk. &lt;br /&gt;
&lt;br /&gt;
===== Safe part =====&lt;br /&gt;
&lt;br /&gt;
Some pieces in the intersection &#039;&#039;&#039;N&#039;&#039;&#039; are hidden in a storage, thus protecting them from being scrambled by the interference due to the overlap.&lt;br /&gt;
&lt;br /&gt;
Let&#039;s call &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; the location of pieces hidden by B:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039;&lt;br /&gt;
&lt;br /&gt;
Similarly, pieces are hidden by A:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;H&#039;&#039;&#039;A) \ &#039;&#039;&#039;H&#039;&#039;&#039;) A&#039;&lt;br /&gt;
&lt;br /&gt;
In order to get the same results as in the &amp;quot;no overlap&amp;quot; case, we will redefine the set of pieces :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; by A, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;A&#039;. This set may overlap with the intersection &#039;&#039;&#039;N&#039;&#039;&#039;.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; will be pieces that are brought into &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; by B, i.e. pieces that are at the beginning in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B&#039; \ &#039;&#039;&#039;N&#039;&#039;&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; will be pieces that are hidden by A, which are at the beggining in &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
We get the same result as before :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes B A&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes B&#039;&lt;br /&gt;
&lt;br /&gt;
====== Example ======&lt;br /&gt;
&lt;br /&gt;
Let&#039;s consider [R&#039;, F]. The intersection &#039;&#039;&#039;N&#039;&#039;&#039; is the front-right column (containing the front-right-top corner, the front-right-bottom corner and the front-right edge).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;B) \ &#039;&#039;&#039;N&#039;&#039;&#039;) B&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;F) \ &#039;&#039;&#039;N&#039;&#039;&#039;) F&#039;&lt;br /&gt;
which is the set of locations containing the front-right edge and the front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; are front-right-top corner and top-right edge.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A&#039; = ((&#039;&#039;&#039;N&#039;&#039;&#039;R&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&lt;br /&gt;
&lt;br /&gt;
So P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; are front-right edge and front-right-bottom corner.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; = ((&#039;&#039;&#039;N&#039;&#039;&#039;A&#039;) \ &#039;&#039;&#039;N&#039;&#039;&#039;) A = ((&#039;&#039;&#039;N&#039;&#039;&#039;R) \ &#039;&#039;&#039;N&#039;&#039;&#039;) R&#039;&lt;br /&gt;
which is the set of locations containing the front-right-top corner and the front-right edge.&lt;br /&gt;
&lt;br /&gt;
P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; are pieces at &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt;B, i.e. front-top edge and front-top-left corner.&lt;br /&gt;
&lt;br /&gt;
So the safe part of [R&#039;, F] is similar to a 3-cycle pairs, but is clearly not a 3-cycle of pairs.&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; goes R&#039;, thus replacing P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; goes F, thus replaces a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and a part of P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; goes FR, thus replacing a part of P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; and the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
The quirkiness is that the locations of those pairs overlap, and that an extra location is used, the top-right-back corner.&lt;br /&gt;
&lt;br /&gt;
===== Quirk part =====&lt;br /&gt;
&lt;br /&gt;
Pieces are completely outside of the pseudo 3-cycle. Let&#039;s call their location the quirk part &#039;&#039;&#039;Q&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Q&#039;&#039;&#039; = (&#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;A&#039;&amp;lt;/sub&amp;gt; \ &#039;&#039;&#039;H&#039;&#039;&#039;&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;) A&#039;&lt;br /&gt;
&lt;br /&gt;
Those pieces P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; are never hidden, thus being affected by all moves of the commutator :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; goes A B A&#039; B&#039;&lt;br /&gt;
&lt;br /&gt;
So in the overlap case, there are at least 4 sets of pieces : P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;, P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; and P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There may be a fifth set, P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt;, affected by a conjugate (see general case).&lt;br /&gt;
&lt;br /&gt;
=== General case ===&lt;br /&gt;
&lt;br /&gt;
Pieces can be affected by one, two, three of four elements of the sequence A B A&#039; B&#039;. The gives use the different sets of pieces. For each element of the sequence, there are two possibilities, either a piece is affected by this element, or it is not. So there is a maximum of 2&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 16 sets.&lt;br /&gt;
&lt;br /&gt;
If a piece is not affected by any element, it means that it is completely outside of the commutator. &lt;br /&gt;
&lt;br /&gt;
==== Pieces affected by one element only ====&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A only, then it is not affected by B and then it is necessarily affected by A&#039;, so it is impossible. Same thing for B. If a piece is affected by A&#039; only, it means that it was not affected by B before that, so that it was affected by A. Impossible again. If a piece is affected by B&#039; only, it means that it was not affected by A&#039; before that, so that it was affected by B. Impossible again.&lt;br /&gt;
&lt;br /&gt;
==== Pieces affected by two elements ====&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039;, or by B and B&#039;, it means that it comes back finally where it comes from. We can ignore them.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and B only, it means that it is not affected by A&#039;, so it is necessarily affected by B&#039;. Impossible. If a piece is affected by A and B&#039; only, it is not affected by B, so it is necessarily affected by A&#039;. Impossible again.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B and A&#039;, it means that it is brought into the intersection by B. They are denoted P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Pieces affected by three elements ====&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A and A&#039; B&#039;, it means that it is hidden by A so that it is not affected by B. These pieces are denoted P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; because they come from the intersection.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by A B and B&#039;, it means that it is brought into the intersection by A, and then hidden by B from A&#039;. These pieces are denoted P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by B A&#039; B&#039;, it means that it is brought into the intersection by B and then moved inplace by A. If a piece is affected by A B A&#039;, it means that it is affected by the conjugate of B. In both of these cases, let&#039;s denote them P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; to express that they are affected by conjugates.&lt;br /&gt;
&lt;br /&gt;
==== Pieces affected by all four elements ====&lt;br /&gt;
&lt;br /&gt;
If a piece is affected by all four elements, it means that it is never hidden from the intersection. Thus it is in the quirk part. They are denoted P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==== Summary of sets of pieces ====&lt;br /&gt;
&lt;br /&gt;
In all cases, pieces that are moved by the commutator are in one of these sets :&lt;br /&gt;
* P&amp;lt;sub&amp;gt;A&amp;lt;/sub&amp;gt; : pieces moved into the intersection by A and then hidden by B&lt;br /&gt;
* P&amp;lt;sub&amp;gt;B&amp;lt;/sub&amp;gt; : pieces moved into the intersection by B and then hidden by A&lt;br /&gt;
* P&amp;lt;sub&amp;gt;N&amp;lt;/sub&amp;gt; : pieces hidden by A and then moved out of the intersection of B&#039;&lt;br /&gt;
* P&amp;lt;sub&amp;gt;C&amp;lt;/sub&amp;gt; : pieces affected by a conjugate, in the inplace cases or in complex overlap cases&lt;br /&gt;
* P&amp;lt;sub&amp;gt;Q&amp;lt;/sub&amp;gt; : pieces moved by all elements of the sequence of the commutator, in the overlap case or in complex inplace cases&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Commutators and Conjugates]]&lt;br /&gt;
* [[Conjugate]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Puzzle theory]]&lt;/div&gt;</summary>
		<author><name>Circular17</name></author>
	</entry>
</feed>