\subsection{Which contacts can a segment encounter?}\label{sec:generic-proof} For a generic smooth embedding \(V=F(X)\subset\R^d\), we now determine how large the non-regular set \((\inter K)\setminus\mathcal R\) can be. As shown on page~\pageref{proof:segment-avoidance}, any set of zero \((d-1)\)-dimensional Hausdorff measure \(\HH^{d-1}\) is missed by \([a,b]\) for almost every pair of interior endpoints. By contrast, a hypersurface of positive \(\HH^{d-1}\)-measure (though still of \(d\)-dimensional volume zero) can split an open ball and block an open family of segments. The table below summarizes the five exceptional query sets analysed in Subsections~\ref{sec:generic-proof}--\ref{sec:resonant-geometry}. Every configuration except the rank-nondeficient hypersurface at \(d=j(\delta+1)\) lies in countably many smooth images of dimension at most \(d-2\) (or is \(\HH^{d-1}\)-null), leaving only the codimension-one interfaces of Subsections~\ref{sec:surface-crossing}--\ref{sec:pencil}. \begin{center} \small \begin{tabular}{@{}ll@{}} \toprule Configuration at the query & Size of its image in query space\\ \midrule A degenerate contact & dimension at most \(d-2\)\\ A deficient \(j\)-tuple, \(j\ge2\) & dimension at most \(d-1-|d-j(\delta+1)|\)\\ A rank drop of the secant map in the equality case & \(\HH^{d-1}\)-null\\ Two extra contacts at the same sphere & dimension at most \(d-2\) in the equality case\\ An extra contact in the base hyperplane & dimension at most \(d-2\) in the equality case\\ \bottomrule \end{tabular} \end{center} Write \(V=F(X)\), where \(X\) is a compact smooth \(\delta\)-manifold without boundary, and vary \(F\) over the open set of smooth embeddings of full affine span in the \(C^\infty\) topology. Throughout our transversality arguments, marked sites \(x_1,\ldots,x_m\in X\) are distinct, and we work inside countably many coordinate charts on tuples of distinct sites. Here the \emph{\(3\)-jet} of a smooth function at a point collects its value and partial derivatives up to order three in local coordinates. A smooth map \(f\) is \emph{transverse} to a smooth constraint submanifold \(S\) if, at every point \(y\) with \(f(y)\in S\), the image of \(df_y\) and \(T_{f(y)}S\) span the ambient tangent space. By the parametric transversality theorem~\cite[Chapter~II, Lemma~4.6, p.~53]{GG}, whenever a family of maps depends transversely on auxiliary perturbation parameters, almost every small perturbation yields a transverse map whose preimage \(f^{-1}(S)\) is a smooth submanifold of codimension \(\operatorname{codim}(S)\). Below, the \emph{secant map} takes a contact tuple and convex weights to their weighted mean in \(\R^d\), \(j\) counts the contacts in a minimal representation of \(q\), and a tuple is deficient when its tangents and chords fail to span \(\R^d\). \paragraph{A flat minimum costs two dimensions.} Consider first a sphere of centre \(c\in\R^d\) and radius \(R>0\), with power \(u(x)=|F(x)-c|^2-R^2\) on \(X\). (A radius-zero sphere meets \(V\) only at its centre \(q\in V\), whose restricted power already has positive definite Hessian \(2|v|^2\), checked in Subsection~\ref{sec:surface-crossing}.) For \(R>0\), tangency at \(m\) distinct sites \(x_1,\ldots,x_m\) imposes \(m(\delta+1)\) equations: \(u(x_i)=0\) and \(du(x_i)=0\). The variables \(x_1,\ldots,x_m,c,R\) provide \(m\delta+d+1\) coordinates. For a generic embedding, the solution manifold of these tangencies thus has dimension \((m\delta+d+1)-m(\delta+1)=d+1-m\) (and is empty when \(d+1-m<0\)). In particular, a generic supporting sphere touches \(V\) in at most \(d+1\) points. To establish both this count and the hyperplane counts below rigorously across all charts, we follow three standard steps: varying jets locally, perturbing densely on compact blocks, and intersecting countably many open dense conditions. Geometrically, each tangency or degeneracy imposes equations on the position and first three derivatives of \(V\) at the marked sites. Small smooth bumps supported near those sites act like independent local knobs that tune those derivatives freely, breaking accidental coincidences until every defining system achieves full row rank. Specifically, our constraints depend on the \(3\)-jet of \(u(x)\) and, when an auxiliary hyperplane \(\nu\cdot p-h=0\) appears, on the \(3\)-jet of \(\nu\cdot F(x)-h\), with sphere parameters \((c,R)\) and plane parameters \((\nu,h)\) treated as free variables. \emph{Varying the jets.} A small perturbation \(Y\) of \(F\) changes \(u(x)\) to first order by \(2(F(x)-c)\cdot Y(x)\) and shifts \(\nu\cdot F(x)-h\) by \(\nu\cdot Y(x)\). For a positive-radius sphere, \(F(x)-c\ne0\) at every contact. Whenever both sphere and hyperplane constraints appear together below, the hyperplane passes through at least two distinct sphere contacts and so cannot be tangent to the sphere at any contact. Near each marked site, the two normal vectors \(F(x)-c\) and \(\nu\) are therefore linearly independent. The matrix with these row vectors thus admits a smooth right inverse near each site. Applying that right inverse to arbitrary Taylor polynomials of degree at most three and multiplying by smooth cutoff functions with disjoint supports produces compactly supported perturbations \(Y\). These \(Y\) realize any first-order variations of the \(3\)-jets independently across all marked sites. \emph{Obtaining density.} Fix an embedding \(F\) and a compact block of distinct-site coordinate tuples and geometric parameters where the required linear-independence rank conditions hold. Because full row rank is open and the block is compact, finitely many perturbations \(Y_i\) span every first-order jet variation at every configuration in the block. For the finite-dimensional family \(F+\sum_i b_i Y_i\), the derivative of the jet evaluation map with respect to \((b_i)\) is therefore surjective near the block for small \(b_i\). By parametric transversality~\cite[Chapter~II, Lemma~4.6, p.~53]{GG}, arbitrarily small perturbations make the jet map transverse to the smooth constraint submanifold in jet space. (When testing a degenerate contact, we adjoin a unit tangent vector \(v\in S^{\delta-1}\) in \(\ker(\Hess u)\) as an extra variable rather than stratifying the Hessian by rank.) \emph{Obtaining a residual set.} Exhaust the coordinate charts of distinct-site tuples and geometric parameters by countably many compact blocks, and exhaust each constraint submanifold in jet space by countably many compact subsets in its charts. Fix one compact block, one compact subset of the constraint submanifold, and an integer \(k\ge1\). At every point of the block mapping into that compact subset where the required normal row matrix (built from \(F-c\) and, when present, \(\nu\)) has smallest singular value at least \(1/k\), we impose transversality of the jet map to the constraint submanifold. This condition is open in the \(C^\infty\) topology: any sequence of embeddings violating transversality at points meeting those closed bounds would yield a convergent subsequence of points whose limit violates the condition for \(F\). It is also dense: apply the perturbation step above to the compact subset of the block where \(F\) satisfies the weaker singular-value bound \(1/(2k)\). By continuity of jets and derivatives, for small perturbations that subset contains every configuration meeting the stronger bound \(1/k\) for the perturbed embedding. Intersecting these open dense conditions over all countable blocks, constraint subsets and integers \(k\ge1\) gives the desired residual class. Now count the dimension when one of the \(m\) contacts is a degenerate minimum. Adding a unit vector \(v\) in the kernel of the Hessian adds \(\delta-1\) variables. The equations \(D^2u(v,\cdot)=0\) impose \(\delta\) independent constraints on second derivatives, and \(D^3u(v,v,v)=0\) adds one more (along a coordinate curve in direction \(v\), a local minimum with vanishing second derivative cannot have nonzero third derivative). The net change is \((\delta-1)-(\delta+1)=-2\), even if the kernel is larger. Including at most \(m-1\) barycentric weights to form \(q\) puts these queries inside countably many smooth images of dimension at most \((d+1-m)-2+(m-1)=d-2\). Allowing weights to vanish ensures we exclude degenerate contacts even when they carry weight zero in representing \(q\). \paragraph{A missing direction imposes a second tangency.} Suppose next that a minimal representing tuple of \(j\ge2\) contacts is deficient, meaning \(W\ne\R^d\). Choose a unit normal \(\nu\perp W\). Then all \(j\) contacts sit in one affine hyperplane \(\nu\cdot p=h\) containing all \(j\) tangent spaces \(T_{p_i}V\). We bound the dimension of such queries in two complementary ways. First, ignoring the sphere and counting only the \(j\) points on \(V\) with \(j-1\) barycentric weights gives at most \(j\delta+j-1=j(\delta+1)-1\) parameters (the classical secant count~\cite[Introduction and Theorem~1.1]{RanestadSturmfels2011}). Second, project the sphere centre \(c\) orthogonally onto \(\nu^\perp\) to obtain a new centre \(c'\). For every site \(p\) in \(\nu\cdot p=h\), Pythagoras gives \(|p-c'|^2-|p-c|^2=2h(\nu\cdot c)-(\nu\cdot c)^2\), independent of \(p\). Hence all \(j\) contacts remain equidistant from \(c'\), and since their tangents lie orthogonal to \(\nu\), the sphere centred at \(c'\) stays tangent to \(V\) at all \(j\) points. Projecting \(c\) onto \(\nu^\perp\) removes one centre parameter: varying \(\nu\in S^{d-1}\) (\(d-1\) coordinates), \(c'\in\nu^\perp\) (\(d-1\) coordinates), \(h\in\R\), and the new radius gives \(2d\) geometric parameters. Both the sphere and the hyperplane are tangent to \(V\) at each of the \(j\) contacts, imposing \(2j(\delta+1)\) equations whose gradients \(F-c'\) and \(\nu\) are independent because the hyperplane cuts the sphere in \(j\ge2\) distinct points. Adding \(j\delta\) site coordinates and \(j-1\) weights, then subtracting these \(2j(\delta+1)\) equations, yields dimension at most \[ (j\delta+2d)+(j-1)-2j(\delta+1)=2d-j(\delta+1)-1 . \] Combining both bounds yields \[ \min\{j(\delta+1)-1,\ 2d-j(\delta+1)-1\}=d-1-|d-j(\delta+1)|. \] Intersecting the residual sets over the finitely many contact counts gives embeddings where all bounds hold together. For \(j=1\), the query lies in \(V\) of dimension \(\delta\); for \(j\ge2\), the combined bound applies. In both cases, dimension reaches \(d-1\) only when \(d=j(\delta+1)\), while every smaller-dimensional set is \(\HH^{d-1}\)-null and missed by almost every segment \([a,b]\). When \(\delta+1\) does not divide \(d\), Theorem~\ref{thm:manifold-fixed} thus already yields Theorem~\ref{thm:manifold-generic}; when \(d=j(\delta+1)\), we must also handle crossings of the remaining \((d-1)\)-dimensional interface.