=========================================== Tangent projection and physical constraints =========================================== A molecular descriptor and a physical constraint serve different purposes. The descriptor :math:`q(x)` tells the GP how to compare Cartesian geometries. An explicit constraint :math:`c(x)=0` restricts the geometries the optimizer may visit. A descriptor Jacobian alone does not impose that restriction. The distinction matters for linear molecules, planar geometries, frozen atoms, and periodic surfaces. **Status:** implemented as classes (``InternalCoordinateChart``, ``AffineCoordinateChart``, ``ManifoldEnergyForceKernel``, ``ConstrainedChartCovariance``). The molecular chart is off by default in ``gprn`` (``--gp-manifold-chart true`` attaches it). ``gprd`` removes rigid rotations from measured dimer orientation searches by default (``--dimer-project-rotations true``). The page states what a projector does and does not establish. Descriptor row space and allowed tangent space ---------------------------------------------- ``InternalCoordinateChart`` forms the thin SVD of the Wilson matrix at its anchor, :math:`B=Dq=USV^\top`, and stores :math:`P=VV^\top`. This is the orthogonal projector onto :math:`\operatorname{range}(B^\top)`. The proof ``theorem_tangent_projector_is_orthogonal`` checks symmetry, idempotence, trace equal to rank, and preservation of the basis. For regular physical constraints :math:`c(x)=0`, allowed infinitesimal motion instead satisfies :math:`Dc(x)s=0`. Under the Euclidean Cartesian metric its tangent projector is :math:`I-Dc^\dagger Dc`. An ``AffineCoordinateChart`` uses the nullspace of explicit linear constraints; with no constraints it retains every Cartesian direction. These projectors coincide only when their defining spaces coincide. Every step decomposes as :math:`s=Ps+(I-P)s`, with orthogonal components. The second component has zero first-order descriptor change, since :math:`B(I-P)s=0`. This does not prove that it leaves the physically allowed configuration space. Nor is its norm the exact distance from a curved constraint manifold; it is distance from the selected linear subspace. Linear molecules retain physical bending ---------------------------------------- For isolated, unconstrained atoms, pair distances are invariant under uniform translation and rigid rotation. Their infinitesimal generators lie in :math:`\ker B`, as checked by ``theorem_rigid_motions_lie_in_the_projector_nullspace``. Membership is not a proof that those generators span the entire nullspace. The exact linear-triatomic counterexample uses atoms at :math:`(-1,0,0),(0,0,0),(1,0,0)`. The three pair distances have Jacobian rank two, while the independent rigid motions have rank five. The bending displacement :math:`(0,1,0),(0,-2,0),(0,1,0)` is orthogonal to every rigid motion and satisfies :math:`Bs=0`. Nevertheless, the second derivative of the first bond length along that displacement is nine. ``theorem_linear_pair_nullspace_contains_physical_bending`` checks all these statements exactly. Removing the entire descriptor nullspace would remove physically meaningful motion. Frozen atoms and a fixed periodic cell can also break whole-system symmetries. A surface calculation must derive its constraints from its actual boundary conditions. A fixed six-mode removal is not justified for every system; even an isolated linear molecule has only five independent rigid-motion generators. Consistent energy and force observations ---------------------------------------- For a scalar process :math:`E(x)=f(q(x))`, :math:`\nabla_x E=B^\top\nabla_q f`. The pullback gradient lies in the current descriptor row space. The Hessian contains both terms .. math:: H_x=B^\top H_q B+\sum_a (\partial_a f)\,H_x q_a. The second term can carry curvature along directions whose first-order descriptor change vanishes. A fixed projector sandwich alone does not supply this term or establish energy-force consistency. ``ManifoldEnergyForceKernel`` obtains energy and gradient observations by differentiating one scalar kernel. ``ConstrainedChartCovariance`` constructs the valid vector-field covariance :math:`NK_qN^\top`, but that construction by itself does not prove the field is an energy gradient. For a known constraint manifold, its Riemannian gradient is the Cartesian gradient projected onto the actual allowed tangent space. The identity :math:`PF` is the closest vector to :math:`F` in :math:`\operatorname{range}(P)` follows from orthogonal least squares; it does not identify which subspace is physically correct. The proof ``theorem_projected_force_is_the_riemannian_gradient`` checks the projection and pullback identities under this qualification. Dimer reflection and projection ------------------------------- With a unit dimer axis :math:`n`, reflection is :math:`R_nF=F-2n(n^\top F)`. For an orthogonal projector, .. math:: PR_nF-R_nPF=-2(F^\top n)Pn+2(F^\top Pn)n. This vanishes for every force exactly when :math:`n` lies in the range or nullspace of :math:`P`. A tangent axis retains reflection; a normal axis loses the climbing term because projection annihilates it. A mixed axis generally gives a nonzero commutator. ``theorem_dimer_inversion_commutes_with_projection`` checks the identity and explicit cases. A dimer subject to actual constraints therefore needs an axis in their allowed tangent space. This is not a reason to remove unconstrained physical bending using a descriptor projector. Translation and rotation have different Cartesian Hessian identities -------------------------------------------------------------------- Translation invariance gives :math:`Ht=0` at every geometry for a uniform translation :math:`t`. ``theorem_translations_are_hessian_null_modes`` checks this for a harmonic bond without assuming stationarity. For rotational invariance, equivariance of the gradient gives :math:`H\Omega x=\Omega\nabla E`, where :math:`\Omega` is the rotation generator. Thus rotations are Hessian null modes at stationary points. Away from stationarity the right side need not vanish. The second energy derivative along the curved rotation path contains an acceleration term, .. math:: (\Omega x)^\top H(\Omega x)+\nabla E^\top\Omega^2x=0. ``theorem_rotation_hessian_requires_the_gradient_term`` verifies these identities and a nonstationary harmonic-bond counterexample. Constant energy along a curved symmetry orbit does not imply zero Cartesian Hessian curvature along its tangent line. Checks ------ The pixi task ``derive-riemannian-tangent-projection`` (environment ``symbolic``) runs ``scripts/derive_riemannian_tangent_projection.py``. It checks the eight theorem groups named above and prints ``ALL_CHECKS_PASS``. The identities establish algebraic properties and their limitations; molecular convergence and oracle counts require actual search results. Related ------- - Explanation: :doc:`the joint energy-force Gaussian process ` gives the kernel this chart modifies; :doc:`the soft geodesic heat-kernel prior ` is the other manifold-aware construction; :doc:`the mathematics index ` lists the rest. - Explanation: :doc:`How gprd checks the saddle index <../dimer_index_checks>` describes the ``gprd`` rotation projection option. - Reference: ``--gp-manifold-chart`` and ``--dimer-project-rotations`` in the command-line references (:doc:`gprn <../../reference/cli_reference_gprn>`, :doc:`gprd <../../reference/cli_reference_gprd>`).