# Traversal with nonopposite tail directions

[Back to Chord Walker](../) · [Continuous counterexample](continuous-curve-counterexample-short.md) · [Lean verification notes](lean-verification.md)

## Statement

Consider a continuous parameterised curve with a compact middle and two
straight infinite tails. Suppose the middle is assembled from **finitely many
straight segments, circular arcs, and polynomial or rational Bézier pieces**.
Rational pieces must have no poles on their parameter intervals.

If the incoming and outgoing **directions of travel are not exactly opposite**,
then every positive chord length admits a continuous traversal from the
incoming tail to the outgoing tail.

Self-intersections are allowed. Either endpoint may backtrack, and the interior
of the chord is unconstrained. The result concerns mathematical existence,
not the success of a greedy movement rule or a floating-point implementation.

This extends the earlier finite-polyline proof. The essential property is that
the curve has a continuous **semialgebraic parameterisation**: its graph is
describable by finitely many polynomial equations and inequalities, with real
coefficients. This excludes the accumulating zigzag in the counterexample.
Having a short formula by itself is not sufficient.

## Parameterisation

Choose a continuous semialgebraic map $\gamma:\mathbb R\to\mathbb R^2$ and a
finite parameter interval $[0,S]$ containing the middle, so that

$$
\gamma(s)=P+su\quad(s\leq0),\qquad
\gamma(s)=Q+(s-S)v\quad(s\geq S),
$$

where $u,v$ are unit travel directions and $v\neq-u$.

The middle parameter need not be arclength. This matters: arclength
parameterisation is not generally semialgebraic. Straight and Bézier pieces
have polynomial or rational parameterisations. Circular arcs have rational
parameterisations after splitting them into finitely many coordinate charts.
Joining these pieces on successive finite parameter intervals gives the
required map; the two tails are parameterised at unit speed.

## Configuration coordinates

For chord length $L>0$, write the ordered endpoint parameters as

$$
a=m-d/2,\qquad b=m+d/2,\qquad d\geq0,
$$

and define

$$
F(m,d)=\lVert\gamma(m+d/2)-\gamma(m-d/2)\rVert^2-L^2.
$$

Here $m$ is the midpoint of the parameter values, not the physical midpoint,
and $d=b-a$ is parameter separation, not necessarily distance along the curve.
The valid placements are exactly $F=0$. On the bottom boundary,

$$
F(m,0)=-L^2<0.
$$

## A uniform upper boundary

Physical endpoint distance tends to infinity whenever parameter separation
$b-a$ tends to infinity. To prove this, consider a sequence of ordered pairs
with $b-a\to\infty$ and pass to subsequences as necessary.

- If both endpoints are on the same tail, physical distance equals $b-a$.
- If one endpoint stays in a bounded parameter interval and the other escapes,
  the first endpoint stays in a bounded physical region while the other
  escapes along a straight ray.
- If the endpoints escape on different tails, their positions are
  $P-ru$ and $Q+tv$, with $r,t\geq0$ and $r+t\to\infty$.

For the last case, let $c$ be the positive square root given by

$$
c^2=\frac{1+u\cdot v}{2}>0.
$$

The positivity follows from $v\neq-u$ and the unit lengths. The identity

$$
\lVert ru+tv\rVert^2-c^2(r+t)^2
=\frac{1-u\cdot v}{2}(r-t)^2\geq0
$$

shows that

$$
\lVert P-ru-(Q+tv)\rVert\geq c(r+t)-\lVert P-Q\rVert\longrightarrow\infty.
$$

These cases exhaust any sequence with diverging parameter separation.
Consequently there is a finite $D>L$ such that $b-a\geq D$ always implies
physical distance greater than $L$. In particular,

$$
F(m,D)>0\quad\text{for every }m.
$$

This is the step that can fail for opposite travel directions: endpoints on
the two return tails can escape together while staying a bounded distance apart.

## A connected crossing in configuration space

Choose $M$ large enough that all pairs with $m=-M$, $0\leq d\leq D$ are
on the incoming tail, while those with $m=M$ are on the outgoing tail.
Consider the rectangle

$$
R=[-M,M]\times[0,D].
$$

On each vertical side, $F=d^2-L^2$, so there is exactly one zero, at $d=L$.
The bottom is strictly negative and the top is strictly positive.

A planar connected-crossing lemma gives a compact connected subset of
$F^{-1}(0)\cap R$ containing the two side zeros. This is a topological input,
not just the intermediate value theorem applied on one line. A proof adapted
to this rectangle is given below.

## Why a connected crossing gives a motion here

The function $F$ is continuous and semialgebraic, so its zero set in $R$ is
semialgebraic. Every connected component of a semialgebraic set is
path-connected. The connected crossing therefore lies in a component
containing a continuous path between $(-M,L)$ and $(M,L)$.

Mapping that path to the physical endpoint pair

$$
\bigl(\gamma(m-d/2),\gamma(m+d/2)\bigr)
$$

produces the required continuous fixed-length chord motion. Translation along
the straight tails extends its ends as far towards infinity as desired.

The standard semialgebraic path-connectivity result is explained, for example,
in Daniel Plaumann's [Real Algebraic Geometry lecture notes](https://wwwold.mathematik.tu-dortmund.de/~dplauman/notes/rag-ihp.pdf).
It is stronger than the general statement for continuous sets: a connected
set need not contain paths between all its points.

## Proof of the connected-crossing step

Triangulate $R$ with progressively finer rectangular grids, and let $F_n$ be
the piecewise-linear interpolation of $F$ on the vertices. Uniform continuity
of $F$ gives uniform convergence $F_n\to F$.

Choose levels $\varepsilon_n\to0$ that avoid all vertex values of $F_n$.
For sufficiently fine grids, the bottom and top remain strictly below and
above $\varepsilon_n$. On each vertical side, the interpolated values of
$d^2-L^2$ are strictly increasing in $d$, so there is exactly one crossing
of that level.

Within each triangle, the level set is either empty or a line segment. No
segment passes through a grid vertex. Its interior junctions consequently
have degree two; its only boundary endpoints are the two side crossings.
Thus one finite polygonal arc joins those crossings. Call its compact image
$C_n$.

Compactness of the space of nonempty compact subsets of $R$ in the Hausdorff
metric gives a convergent subsequence, with limit $C$. A Hausdorff limit of
compact connected sets is connected. Uniform convergence of $F_n$ and
$\varepsilon_n\to0$ imply $C\subseteq F^{-1}(0)$, and the side crossings
converge to $(-M,L)$ and $(M,L)$, so $C$ contains both.

This establishes a connected crossing. It deliberately does **not** claim
that the polygonal paths themselves converge to a continuous path. That is
where the additional semialgebraic argument is needed.

## Scope and limitations

- The finite middle can be arbitrarily complicated within the stated class.
- There is no uniform bound on the required journey as the tail directions
  approach the opposite-direction case: $c$ above can tend to zero.
- Opposite travel directions are necessary for blockage within this finite
  class, but do not by themselves imply blockage for a particular length.
- The theorem does not extend to every continuous curve, even with a simple,
  finite-length middle. The [shrinking-zigzag counterexample](continuous-curve-counterexample.md)
  fails precisely at the connected-to-path-connected step.
- A finite approximation to that counterexample is traversable. Arbitrarily
  small geometric approximation error need not preserve traversability.

The [Lean verification notes](lean-verification.md) distinguish the checked
formal lemmas from the parts of this written proof that are not yet formalised.
