Forbidden mirror sequences - MathOverflow most recent 30 from http://mathoverflow.net 2013-05-23T01:29:40Z http://mathoverflow.net/feeds/question/50441 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://mathoverflow.net/questions/50441/forbidden-mirror-sequences Forbidden mirror sequences Joseph O'Rourke 2010-12-26T19:26:45Z 2012-01-08T03:12:04Z <p>Let $\cal{M}$ be a finite collection of two-sided mirrors, each an open unit-length segment in $\mathbb{R^2}$, and such that the segments when closed are disjoint. A ray of light that reflects off the mirrors determines a <em>mirror sequence</em> or <em>mirror string</em> consisting of the mirror indices in order of reflection. Obviously no mirror string can contain $a a$ as a substring. I am wondering if mirror sequences may be characterized by a list of forbidden substrings. <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://cs.smith.edu/~orourke/MathOverflow/MirrorsParallel.jpg" alt="mirrors"> <br /> For example, consider the special case of parallel mirrors, none collinear. Orient them all vertical, and label them sorted left to right. Then for labels $a &lt; b &lt; c$, these are forbidden substrings:</p> <p>$$b * a c * b$$ $$b * c a * b$$</p> <p>with $*$ being any string (including the empty string). So in the above example, after 415 appears, 4 cannot occur again. Perhaps these are the only forbidden patterns for parallel mirrors?</p> <p><b>Edit</b>. Apologies for not initially phrasing a clear question.</p> <blockquote> <p>Are there strings of mirror indices that cannot be realized by some ray reflecting among some collection $\cal{M}$ of mirrors? Is there a list of such strings that characterize all the realizable sequences?</p> </blockquote> <p>In contrast to the parallel-mirrors example above, I am primarily interested in mirrors without constraints on their placements or orientations.</p> <p>Perhaps analogous sequences have been studied before, maybe in another context? Pointers appreciated!</p> http://mathoverflow.net/questions/50441/forbidden-mirror-sequences/50447#50447 Answer by aster for Forbidden mirror sequences aster 2010-12-26T20:36:18Z 2010-12-26T20:36:18Z <p>Maybe count how many canonical such sequences are possible for a few small numbers of mirrors and check OEIS?</p> http://mathoverflow.net/questions/50441/forbidden-mirror-sequences/50466#50466 Answer by Bill Thurston for Forbidden mirror sequences Bill Thurston 2010-12-27T03:21:56Z 2010-12-27T18:02:13Z <p><strong>Edited 12/27 to try to clarify, and to correct regular expression formatting (\* is needed so * doesn't turn into italization)</strong></p> <p>On some level its obvious that the set of mirror sequences are characterized by the list of finite substrings that can never occur, if you allow lists to be infinite, and if you count the closure of the set of mirror trajectories as mirror trajectories. (There might be subtle issues of what happens when a light beam hits exactly at the edge of a mirror: in this case, if you allow both outcomes that are the limits of its perturbation, it gives a closed set). But I don't think this is what you meant. It reminds me of having to use a word such as "industrious" in a sentence in 2nd grade. My teacher didn't like my sentences, "'Industrious' is a word."</p> <p>Perhaps a better formulation of the question is to ask whether the set of mirror sequences is a regular language, and if so, to describe it. For some presumably easier cases, the set of arrangements of mirrors can be specialized to range over some particular subset, such as parallel mirrors, or mirrors all at angles of the form $k \pi / n$ for some $n$. </p> <p>Thus, for two mirrors a and b, the language is b?(ab)*a?, interpreted with the usual regular expression convention where ? means 0 or 1 occurrence of the preceding term and * means 0 or more occurrences. This is equivalent to not(.*aa.*) and not(.*bb.*) where . matches any symbol.</p> <p>For three parallel mirrors, you can have a sequence such as (ab)+(cb)+(ab)+, where + denotes 1 or more occurrence of the previous term, but this sequence implies that c is sandwiched between a and b, so you can't have any more c's after that. I won't try to write out a complete regular expression, but</p> <p><strong>Claim:</strong> For any number of parallel mirrors, the set of possible sequences (as the positions of mirrors and the initial beam are vaired) is a regular language. Furthermore, the number of possible sequences of length $n$ grows only as a polynomial in $n.</p> <p>Proof: One may assume that the beam is coming from the left and angling upward. (The cases that it is vertical or horizontal are trivial).</p> <p>To make a finite state automaton (FSA) to recognize valid mirror sequences, first make a nondeterministic finite state automaton (NDFSA) whose states are possible arrangements of the mirrors and the current position of the beam in relation to them: the relevant data is the horizontal linear order, the question of whether the beam is going to the left or right, and the vertical partial order of the tops and bottoms of the mirrors and the beam, where the partial order$x &lt; y$on points in the plane is whether$y$is in the cone bounded by beams at$x$at the beam angle and its mirror image. Each time the beam hits a mirror, the point where it hits has a one of a finite number of positions in the new partial order, inserting the new point and removing the previous position of the beam; this gives an NDFSA. The (deterministic) FSA has states which are sets of states of the NDFSA, and the transition takes a set of states to the set of all possible states obtained by an NDFSA transition from one of them.</p> <p>There are probably nice methods to actually implement this. Instead of a set of linear orders, we can keep track of a partially ordered set of mirrors that we have seen; each new letter pair xy tells us either that x &lt; y or x > y. A letter can either occur at only odd positions, or only even positions --- when the mirrors are parallel, it's impossible for the beam to reflect from the front, then get around to the other side and hit the back. Whenever we see such as yx[^y]*xy, where [^y] means a character that is not y, it implies that the mirrors other than x in the [^y]* substring are sandwiched between x and y, and the beam has gone above them: they can never occur again.</p> <p>Perhaps you can see or intuit from the way the finite-state mirror model evolves that it's impossible to get branching recurrence, so the number of sequences grows only as a polynomial. Instead of trying to make this precise, there's a proof-by-authority for this last point: pass to a surface obtained by taking two copies of the plane, cutting slits where the mirrors are, and gluing them together along the slits so that the light rays follow geodesics on the resulting surface (with exceptional points where the trajectories fork at the ends of the mirrors.) The trajectories now become simple curves on the resulting surface, generically going out to the point at infinity at both ends. It is known that the set of all homotopy classes of simple curves on any surface grows as a polynomial of degree 6g-6, where$g$is the "genus" or number of holes of the surface, since simple closed curves are lattice points in the space of measured laminations on a surface.</p> <p>The same proof works when mirrors are confined to angles of the form$2\pi/n$, where you take$2n$copies of the plane, one for each reflected image of the plane, mod translations. Cf. "<a href="http://projecteuclid.org/DPubS?service=UI&amp;version=1.0&amp;verb=Display&amp;handle=euclid.bams/1183552695" rel="nofollow">A rational billiard flow is uniquely ergodic in almost every direction"</a> by Kerckhoff, Masur and Smillie for a masterful use of this technique of passing to a surface obtained by gluing multiple copies.</p> <p>Even though the number of mirror sequences has polynomial growth in the case of mirrors at angles$\pi/n$, nonetheless, even when$n= 2$<em>i.e.</em> for mirrors that are vertical or horizontal, mirror sequences are not a regular language. The classicla special case of a rectangular billiard table illustrates this: for a rectangle you can glue four copies together to get a torus, where the trajectories become lines of constant slope. These sequences have been well studied, for instance in computer graphics, where they give sequences of pixels used to depict a thin straight line. They have a simple recursive characterization (essentially the Euclidean algorithm), but they are not determined by a finite state machine. For an arbitrary arrangement of four mirrors, the richest sequences are those that come from the billiard table --- otherwise, mirror sequences degenerate to a case of 2 or 3 parallel mirrors at the start and/or finish. Thus, there is no finite set of excluded sequences for this case.</p> <p>For more less restricted arrangements, the conditons will only become more complicated.</p> <p>In the general case, there are some constraints having to do with inequalities that can be deduced on angles of the mirrors.</p> <p>First, if there is a sequence of length$n$alternating between two mirrors x and y, it implies that one of the two angles between the two mirrors is less than$\pi/(n-1)$. You can see this by starting with mirrors that form an angle$\alpha$, and reflecting it around. A light ray hitting mirror$x$unfolds as a straight line crossing this pattern, so if it crosses$k$edges, the$k-1$angles between them cannot add to more than$\pi$. </p> <p>Using this, for a complicated enough sequence involving just 3 letters, you get inequalities concerning the three angles of the triangle formed by extending the mirrors. </p> <p>I don't know whether there is a good general algorithm to decide if a sequence is a mirror sequence. I suspect that there should be an algorithm that in practice is fairly efficient, generalizing the idea from the case of parallel mirrors to describe increasingly restrictive geometric inequalities about the arrangement of mirrors, perhaps as a first approximation using floating point inequalities.</p> <p>I suspect that the number of mirror sequences probably has polynomial growth even in the general case when no conditions are imposed on the angles of the mirrors, but I haven't thought through a proof. If there are$m$mirrors, then when the angles are restricted to have the form$\pi k / n$, the covering surface where trajectories are simple proper arcs (tending to infinity at both ends) has Euler characteristic$-2 n ( m-1)$. The dimension of the space of measured geodesic laminations on the covering surface grows linearly with$n$, but the light trajectories are integral curves of a quadratic differential that has an equivariance property with respect to deck transformations, which limits its dimension. The dimension of the moduli space of mirror arrangements with any given constant angle depends only on the number of mirrors: we can normalize the first mirror to be the unit interval in the$x$-axis, and then each additional mirror has 3 degrees of freedom (when its angle is fixed), so the dimension is$3m-3$. This should equal the degree of the polynomial growth for mirror sequences with such mirrors. However, since mirror sequences are not determined by an FSA, the number of valid mirror sequences is probably not the set of values of an actual polynomial except when the mirrors are parallel, so one would need estimates of initial behavior or particular constants to conclude that the limit has polynomial growth.</p> <p>A weaker question is whether the shift map on mirror sequences has topological entropy 0 (i.e, it can be recoded into a sequence with bit rate 0). I think this follows. If we add the extra information of the angles of the mirrors to the dynamical system (usually this is probably redundant anyway), then each particular set of angles defines a closed invariant subset. The angle of the beam at any time is in the subgroup of$S^1$generated by the angles of the mirrors, which is an abelian group of rank at most$m$. There is an infinite-sheeted covering surface where the trajectories become simple, and the covering surface can be thought of as equivariantly embedded in$\mathbb R^m$(provided$m \ge 3$; for$m = 3, make it an immersion if it's hard to get an embedding). This setup seems to imply that the topological entropy is 0. Perhaps some expert can confirm or deny.</p> <p>I think it would probably be worth expanding the notation to distinguish between hitting the front and back of a given mirror, perhaps using capitalization, x vs X.</p> http://mathoverflow.net/questions/50441/forbidden-mirror-sequences/50507#50507 Answer by Peter Shor for Forbidden mirror sequences Peter Shor 2010-12-27T18:54:10Z 2010-12-27T19:34:24Z <p>Here is a possible way of producing such forbidden configurations. Suppose you have $(ab)^k$ for some large $k$. Then I'd like to claim that $a$ and $b$ must be nearly parallel (see Thurston's answer). So produce a sequence with three mirrors containing $(ab)^k$, $(bc)^k$, $(ac)^k$ and a forbidden configuration for parallel mirrors such as the one you gave above (which you then have to prove also is forbidden for nearly parallel mirrors). </p>