How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Constrained dynamics shake and rattle
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Connectedness
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Countability and Uncountability
- Darboux, L'Hôpital, and Taylor's Theorem
- Determinants of Matrices over a Commutative Ring
- Direct Matrix Factorisations: LU, Cholesky and QR
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Foundations of the Real Numbers for Analysis
- Gaussian Elimination, Elementary Matrices and Reduced Row Echelon Form
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Hamiltonian Monte Carlo and leapfrog correction
- Implicit stiff time stepping and algebraic error
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Metric Spaces
- Mixed Partials, Taylor Formulae, and Extrema
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Nonlinear equations and Newton methods
- Order, Zorn's Lemma, and the Axiom of Choice
- Picard-Lindelöf and First-Order Ordinary Differential Equations
- Polynomial Rings, the Division Algorithm and Roots
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Subspaces, Products, and Quotients
- Suprema and Infima
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- Symplectic Manifolds, Moser Stability, and Darboux–Weinstein Theory
- The Derivative and the Mean Value Theorems
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Inverse and Implicit Function Theorems
- The Inverse Function Theorem Completed
- The Riemann Integral: Definition and Integrability
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
This page treats a constant SPD mass matrix and a smooth holonomic constraint on compact regular configuration charts. Uniform branch and trajectory estimates use compact subsets of the regular phase manifold, so both position and momentum remain bounded. It identifies the regular consistent phase manifold with the cotangent bundle of the regular configuration manifold, derives the constrained Hamiltonian flow locally, and defines the RATTLE step by its actual position and momentum residual equations with the regular multiplier branches selected by scaled implicit-function equations.
At exact algebraic solves RATTLE preserves both constraints, is symmetric, and is symplectic for the restricted canonical form. On a compact regular tube its local defect is cubic and its fixed-time global error is quadratic. Finite solver residuals are handled separately: position and tangency residuals are scaled by their different powers of the step, and a finite Newton budget may return an inconclusive status. Since a nonzero residual output need not be consistent, repeated finite solves use the proved local phase-space retraction before the next step. Exact energy conservation is not asserted.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Regular holonomic phase space and constrained dynamics
Definition
Let be open, let be smooth (that is, ) with , let be a constant symmetric positive-definite matrix, and let be smooth. A holonomic constraint is the position condition . Write , let , and define its regular part by . For , is positive definite. On a compact regular chart , is uniformly bounded: .
A position-momentum pair is consistent when and . The regular constrained phase manifold is The ambient canonical two-form is ; its restriction to is denoted .
For , the constrained Hamilton equations are with multiplier Here has components . This multiplier is the one that keeps both and satisfied.
A residual vanishing through order has a scaled extension
Statement
Let be open, let , let with , and let . Let be . Suppose for every and . Then , initially defined for , has a extension to . Its mixed derivatives at zero satisfy
Facts & Assumptions
Given: The hypotheses in the Statement.
Multivariable Taylor formula with a Lagrange remainder along a line segment: a map on a convex neighborhood has its degree- Taylor polynomial with a remainder of order along each line.
The chain rule for total derivatives: : differentiating a composition with a coordinate line gives the corresponding directional derivative.
On a convex open set, a uniform bound implies : on a convex interval, a derivative bound gives the corresponding scalar increment bound.
Proof
For each parameter multi-index with , iteratively apply the chain rule [F2] to the identities . Thus for every , as needed below.
For each parameter multi-index with , put , , and . For every , put . If , apply [F1] componentwise to through degree ; continuity of its highest derivative lets us replace the Lagrange coefficient at by its value at zero plus . If , subtract the linear Taylor polynomial: the derivative of the remainder is by continuity, so [F3] gives a remainder . Thus in every case equals its Taylor polynomial through degree plus . By step 1.1 all coefficients of degrees below vanish. For , the quotient rule expresses the th derivative of as a finite linear combination of , . Substituting the expansions shows that the remainder terms are ; the polynomial part has a continuous extension whose th derivative at zero is . Continuity of the derivatives on compact parameter neighborhoods makes these limits locally uniform in .
Define the value at by the displayed limit formula. For each , step 2.1 gives a locally uniform limit for the corresponding derivative as ; at these formulas are differentiable in because is , and their -derivatives agree with the next displayed coefficient. Induction on total derivative order therefore shows that all mixed partial derivatives through order exist and are continuous across . The extension is with the asserted formula.
The regular holonomic phase space is a symplectic cotangent bundle
Statement
Under the hypotheses of Regular holonomic phase space and constrained dynamics, let . It is a smooth manifold of dimension . Choose a local configuration chart and write , . The cotangent coordinates identify the part of over this chart locally with : the unique consistent ambient momentum representing is . In these coordinates the restricted canonical one-form is , so the restricted two-form is . It is closed and nondegenerate, hence is symplectic on the regular phase manifold.
Facts & Assumptions
Given: The objects and regularity hypotheses in Regular holonomic phase space and constrained dynamics, and the canonical symplectic convention in Symplectic form and symplectic manifold.
Regular holonomic phase space and constrained dynamics: , is constant SPD, and consists of with and .
The parametrized implicit function theorem with regularity: if a square block derivative of a map is invertible at a zero, its zero set is locally the graph of a unique function; this applies for every finite when the map is smooth.
Symplectic form and symplectic manifold: a symplectic form is a smooth closed two-form that is pointwise nondegenerate.
The chain rule for total derivatives: : the derivative of a composite is the composite of its derivatives.
Proof
At any , full row rank of gives a permutation of coordinates for which the block is invertible. Apply [F2] to the smooth map for each finite . The resulting local graphs agree with the unique graph on overlaps, so that graph is locally for every and hence smooth. Thus locally is ; parametrizes it, and has rank with image .
Define . For every nonzero , and , so is invertible. Its entries are smooth, and is smooth because . For a cotangent coordinate , put . Then and . Conversely, if , then for a unique , and ; hence the displayed formula gives the unique ambient representing . Both this map and its inverse are smooth, so is a local diffeomorphism from onto the part of over this chart.
Let be the ambient canonical one-form. Under the chart just constructed, and , so its pullback is . Therefore the pullback of is , which is closed and nondegenerate.
Every point of has a chart of this form; the local calculation proves the restricted two-form is closed and nondegenerate everywhere. By [F3] it is symplectic, as claimed.
Holonomic phase residuals control distance to the consistent phase manifold
Statement
Fix a compact regular configuration chart from Regular holonomic phase space and constrained dynamics and a compact momentum set. Use the Euclidean norm on for phase-state differences. Each point of its consistent phase set has a neighborhood with a smooth retraction such that is the identity on and A finite number of these neighborhoods cover the compact phase set, so one constant works for all of them. In particular, residuals of sizes and admit a consistent restoration at distance , uniformly on the chart.
Facts & Assumptions
Given: A compact regular chart, compact momentum set, and the smooth full-row-rank constraint data in the Statement.
Regular holonomic phase space and constrained dynamics: , is uniformly invertible on the compact chart, and means and .
The parametrized implicit function theorem with regularity: an invertible square derivative block gives a unique local graph for a zero-set equation; since is smooth, its local graph is smooth.
The chain rule for total derivatives: : derivatives of a composite are obtained by composing the derivatives.
On a convex open set, a uniform bound implies : a uniform derivative bound on a convex neighborhood gives the corresponding Lipschitz bound.
Proof
At a point of the compact regular chart , permute coordinates as so is an invertible block. Apply [F2] for each finite regularity order; uniqueness makes these graphs agree locally, so the graph is smooth. Write and . Since and both kernels have dimension , .
After shrinking to a convex coordinate neighborhood, remains invertible and . Set . Then and the derivative of has norm at most . The mean-value inequality [F4] gives . Since , it follows that . Compactness makes the constant uniform on a finite chart cover.
For , put and define . Positive definiteness of and injectivity of make invertible; its smooth entries and positive determinant give a smooth inverse by . Then and . Since and both have dimension and the latter is contained in the former, for a unique .
The identity and [F1] imply . The momentum set is bounded and is locally Lipschitz, so step 2.1 bounds the right side by . Thus has the asserted distance bound and lies in . If , then and the formula for returns , so is the identity there. By [F3] the coordinate formula is smooth, and it is the identity on the consistent phase set in this neighborhood. Shrink the finitely many neighborhoods so their closures lie in an open regular set; continuity keeps and the required derivatives uniformly bounded there. A finite subcover gives finitely many such local retractions and a uniform constant.
Scaled classical RATTLE step map
Definition
Use the data of Regular holonomic phase space and constrained dynamics. For a consistent input , put and For nonzero signed , form the sequential scaled residual equations where are given by the updates below. The selected multiplier pair, when it exists uniquely, is the local root branch whose limits as are and . This defines a partial exact step map; no root-existence assertion is part of this definition.
For such a selected pair , define The position and momentum equations are respectively and . At define the step to be the identity.
Here are force-level multipliers: the corresponding constraint impulses are and . This scaling keeps the limiting multiplier equations nonsingular as . The position equation is SHAKE; the final momentum equation is the RATTLE tangency correction.
The constrained Hamiltonian vector field has a unique local flow
Statement
Assume the hypotheses of Regular holonomic phase space and constrained dynamics on a compact regular chart . For every consistent initial pair with there is a unique local solution of with as defined there. The solution remains in throughout its local interval.
Facts & Assumptions
Given: A compact regular chart, a consistent initial pair , and the constrained equations in the Statement.
Regular holonomic phase space and constrained dynamics: for , is uniformly invertible, and consistency means and .
The regular holonomic phase space is a symplectic cotangent bundle: the consistent phase set is a smooth manifold with local cotangent coordinates.
Picard-Lindelöf local existence and uniqueness for first-order systems: a locally Lipschitz vector field on an open Euclidean domain has a unique local solution through each initial point.
Proof
Since has full row rank and is SPD, for every nonzero we have . Thus is invertible; its entries are smooth and , so its inverse and the displayed multiplier are smooth on a neighborhood of the chart.
Extend the formula in [F1] to an open neighborhood of on which remains invertible and define the ambient vector field . It is smooth, hence locally Lipschitz, so [F3] gives a unique local solution through . Shrink its time interval so stays in that neighborhood.
Along this solution, the chain rule gives and , where . Since the second constraint starts at zero, it remains zero; the first derivative is therefore zero and also remains zero. The chosen neighborhood is regular, and [F2] identifies its consistent constraint set as a smooth phase manifold, so the trajectory stays in .
The local uniqueness from [F3] applies to every solution of the same ambient extension, so in particular the constrained solution is unique.
Scaled RATTLE equations have unique local multiplier branches
Statement
Let be a compact subset of the regular phase manifold whose configuration projection lies in a compact regular chart. For each , the two scaled RATTLE equations in Scaled classical RATTLE step map have unique local roots in neighborhoods of In local phase coordinates the position root depends smoothly on , and the momentum root depends smoothly on when the position multiplier is treated as a parameter near its selected root. The local branches agree on overlaps after shrinking their neighborhoods. A finite cover of therefore gives a common for ; the derivatives of each fixed finite order are uniformly bounded on this cover, and the two multiplier Jacobians remain uniformly invertible there. The exact position roots can also be kept in an ambient neighborhood of the compact regular configuration projection where has full row rank, so their constrained positions remain in . At both Jacobians equal .
Facts & Assumptions
Given: A compact phase subset over a compact regular configuration chart, consistent , smooth , and signed with .
Scaled classical RATTLE step map: , , , with residuals and .
The regular holonomic phase space is a symplectic cotangent bundle: has local coordinates on the smooth phase manifold, so those coordinates form an open parameter block for the implicit-function theorem.
A residual vanishing through order has a scaled extension: if a smooth residual and its first step derivatives vanish at zero, division by has a smooth extension whose value and derivatives are determined by the first nonzero Taylor coefficients.
The parametrized implicit function theorem with regularity: a smooth residual equation with invertible derivative in its multiplier variables has a unique smooth local multiplier branch.
The chain rule for total derivatives: : derivatives of compositions are computed by the chain rule.
Proof
Put and . Then . Since and , [F3] extends smoothly, with value . Its derivative is , which is invertible. Since is smooth and invertible, is smooth locally, so the center varies smoothly with the phase input. Thus [F4] gives the unique local position multiplier branch at that center.
Let . Consistency gives , and [F3] extends smoothly. By [F5], its value at zero is . Its derivative is . At , the unique zero is , so [F4] gives a unique local momentum branch.
The branch equations are smooth in local phase coordinates, and is uniformly bounded on the compact configuration projection of . Since has full row rank on that compact projection, continuity gives an ambient neighborhood where it remains full row rank. Around each point of , shrink the phase and multiplier neighborhoods so both roots remain in common IFT uniqueness neighborhoods on overlaps and exact remains in this regular neighborhood. These neighborhoods cover ; compactness gives a finite subcover and the minimum of their positive step radii is a common . The smooth branch derivatives are bounded on smaller compact neighborhoods covering for , and continuity of the multiplier Jacobians preserves uniform invertibility after a further shrink.
Finite budget RATTLE solve with scaled constraint residuals
Definition
The input state is consistent, . For , return with status exact-identity; this branch returns no multipliers or residual norms. For nonzero , fix a compact phase subset over a compact regular configuration chart with and , using branch balls supplied by Scaled RATTLE equations have unique local multiplier branches. The admissible inputs also include initial guesses , , tolerances , finite correction budgets , and terminating exact factorization/solve backends for the two chord calls. Each backend accepts a square Jacobian, returns a singularity report exactly when it is singular, and otherwise returns a retained factor object. For every right-hand side, solving on this object terminates with the exact unique solution for that matrix; factorization and retained-factor solves are separate operations, as in Finite-budget Newton and chord solves with scheduled factorization reuse. All evaluations of and the displayed matrix operations in the updates, residual and exact residual-Jacobian evaluations, arithmetic, Euclidean norm evaluation/comparison, and domain-membership tests are returning primitives; no bound on their internal cost is specified. The multiplier domains are open balls within the regular branch neighborhoods. Choose the balls so that is on and, for every , the corresponding is on and all evaluations in the updates are defined and the corresponding positions remain in the ambient full-row-rank configuration region of the branch lemma. Inconsistent input, missing branch balls, or maps not defined on these domains are outside the algorithm's admissible inputs. For a nonzero-step success, the routine returns the approximate state, both multipliers, and both scaled residual norms; on failure it returns the residual solver's status, last valid multiplier iterate, and actual scaled residual norm, together with any position-stage values already computed.
-
Form Run Finite-budget Newton and chord solves with scheduled factorization reuse on in chord mode with refresh period , domain , initial value , tolerance , budget , and backend . If it returns anything other than
root, return its exact status (iteration-budget-exhausted,singular-jacobian, orinvalid-trial), last valid multiplier iterate, and actual scaled residual norm; do not continue. -
For its returned , compute and . Form Run the same supplier procedure on in chord mode with refresh period , domain , initial value , tolerance , budget , and backend . If it returns anything other than
root, return its exact status (iteration-budget-exhausted,singular-jacobian, orinvalid-trial), last valid multiplier iterate, actual scaled tangency residual norm, and the successful position-stage values; do not continue. -
If both calls meet their residual tolerances, set and return , the norms , , and status “residual tolerances met”.
For nonzero , leaving a branch ball returns invalid-trial, a singular factorization returns singular-jacobian, and exhausting either correction budget returns iteration-budget-exhausted; the supplier supplies the last valid iterate and its evaluated residual norm in each case. No undefined-evaluation status is needed because the admissible domains require all evaluations to be defined. A successful output with nonzero residuals need not lie in ; applying the routine again requires a consistent input, for example one restored by Holonomic phase residuals control distance to the consistent phase manifold. The supplier status root means only that its stated residual tolerance was met; it does not certify an exact root or a forward-error bound. No finite budget is claimed to succeed on every admissible input.
Exact RATTLE preserves both constraints and is symmetric
Statement
On the local branch of Scaled classical RATTLE step map, an exact solve sends every consistent to a consistent . The signed-step maps satisfy and whenever both branch steps remain in the regular chart.
Facts & Assumptions
Given: The regular phase manifold, exact RATTLE equations, and selected local branches in the Statement.
Regular holonomic phase space and constrained dynamics: means and (hence ).
Scaled classical RATTLE step map: the exact position and momentum equations are and .
Scaled RATTLE equations have unique local multiplier branches: the force multipliers are chosen on the unique local branch for each sufficiently small signed step, and its exact position roots stay in the regular configuration region.
Proof
The exact first constraint equation gives , the exact final projection equation gives , and [F3] keeps in . By [F1], this is exactly .
Starting from the forward equations, use the reverse step size and choose its first multiplier to be the forward . Its first half-momentum is then , so its next position is .
Choose the reverse step's final multiplier to be the forward . Its final momentum is then . The reverse constraint equations hold because the endpoints are the forward consistent states. As , the swapped multipliers and the reverse input converge to the same regular-chart branch centers; after shrinking , both multipliers lie in the reverse IFT neighborhoods. By uniqueness of the selected branches [F3], this reverse solve is the defined step. Thus ; interchanging the endpoints and the multipliers proves .
Exact RATTLE is symplectic on the constrained phase space
Statement
Let be compact and choose a compact phase-space neighborhood of contained in a regular coordinate chart. There is such that for the exact map of Scaled classical RATTLE step map is defined near , its image lies in , and its reverse branch is defined near that image; the reverse branch is a local inverse, so is a local diffeomorphism near . On this neighborhood it preserves : Here symplecticity of a map means that it is a local diffeomorphism whose pullback preserves the two-form; the form itself is symplectic in the sense of Symplectic form and symplectic manifold.
Facts & Assumptions
Given: The compact phase-space neighborhood in the Statement, the exact selected RATTLE map, and the symplectic cotangent coordinates.
Regular holonomic phase space and constrained dynamics: on the regular phase manifold , is the restriction of the ambient canonical form .
The regular holonomic phase space is a symplectic cotangent bundle: in local configuration coordinates , a consistent ambient momentum represents a cotangent covector and .
Scaled classical RATTLE step map: RATTLE uses the two half-force updates, the constrained drift , and normal constraint impulses at and .
Scaled RATTLE equations have unique local multiplier branches: the selected branches define a smooth local map, with a common step range on each compact phase subset.
Symplectic form and symplectic manifold: a symplectic form is a smooth closed two-form that is pointwise nondegenerate.
Exact RATTLE preserves both constraints and is symmetric: the signed-step map has inverse on the selected regular branches.
Proof
If , then is the identity and preserves . Assume . On a local configuration chart define . Differentiating gives and . By [F3], the first expression differs from by the normal vector , and the second differs from by . Each normal vector vanishes on tangent variations of , so the restricted cotangent covectors satisfy and .
Let be the canonical one-form on , . The identities in step 1.1 give on the input chart, because both sides applied to an input variation equal .
Taking the exterior derivative of step 2.1 yields . By [F1], is the restriction of the ambient canonical form; [F2] identifies it as in cotangent coordinates. Hence this is . The branch map is smooth by [F4] and locally invertible by [F6]. By [F2] and [F5], the preserved form is the symplectic form on ; this proves the stated symplecticity.
The finite budget RATTLE solver returns a status in finite work
Statement
For finite budgets , the algorithm Finite budget RATTLE solve with scaled constraint residuals terminates after at most two residual-solver calls and returns a stated status: exact-identity when , and one of the stated success or failure statuses when . This is a termination claim only; it does not assert that the residual tolerances will be met.
Facts & Assumptions
Given: Finite nonnegative budgets , a consistent input, and the algorithm in the Statement; for nonzero , also its supplied open branch balls, residual maps defined on those balls, returning evaluation/arithmetic/norm/domain-test primitives, and terminating exact factorization and retained-factor solve backends.
Finite budget RATTLE solve with scaled constraint residuals: for nonzero the procedure makes at most one position solve and, only if that returns root, one momentum solve; for it immediately returns exact-identity. Every failure status and returned last valid iterate is specified by the procedure.
Finite-budget Newton and chord solves with scheduled factorization reuse: chord mode enters successive indices . At each index it evaluates the residual and tests its norm; it returns root when the tolerance is met, and at otherwise returns iteration-budget-exhausted before another correction. At a continuing index it refreshes on schedule, returns singular-jacobian for a singular factorization, obtains a correction from the retained factor solve, returns invalid-trial if the trial leaves the open domain, and otherwise advances to . Its admitted primitives and exact backend operations terminate.
Proof
If , [F1] returns exact-identity immediately. For nonzero , consider either chord call with budget and refresh period . Its initial iterate lies in its open domain. At index , its residual evaluation and norm comparison terminate by the admitted primitive contract. The tolerance and budget branches return the current valid iterate and its actual residual norm. If neither branch returns, then ; one terminating Jacobian evaluation and factorization attempt either return singular-jacobian with this same data or supply a retained factor. Its terminating exact solve produces the correction. The returning domain test either returns invalid-trial with the old valid iterate and evaluated residual or admits the new iterate and increments the index. Thus induction preserves domain membership and validity of all returned residual data.
Every continuing pass strictly increments , and an entered pass returns before a factorization or correction. Consequently there are at most residual checks and at most correction attempts, Jacobian assemblies, factorization attempts, and retained-factor solves. Each pass consists of finitely many returning operations by step 1.1, so the call terminates, including when . These are counts of loop operations, not a uniform bound on the internal cost of a supplied evaluation or backend.
Apply step 2.1 first with . A non-root position status is returned immediately with its last valid multiplier and actual residual, without a momentum call. On position success the finite assignments in [F1] form the momentum residual. The all- admissibility condition ensures that even this approximate returned position multiplier supplies a momentum residual on the whole open with returning evaluations. Apply step 2.1 with to the second call. Any failure returns the last valid momentum multiplier and actual tangency residual together with the successful position-stage values. If it succeeds, the remaining assignments and output norms terminate and return the prescribed state, both multipliers, residual norms, and success status. There are at most two calls, at most loop residual checks, and at most correction/factorization/solve attempts in total. No branch or count asserts success for every finite budget, an exact zero from a positive tolerance, or a forward-error certificate.
Exact RATTLE has second order global accuracy on compact tubes
Statement
Let the constrained vector field and exact RATTLE map be those of Regular holonomic phase space and constrained dynamics and Scaled classical RATTLE step map. Suppose the exact solution on stays in a compact subset of a convex coordinate chart whose closure lies inside a regular chart, with uniformly bounded. Let , let satisfy in these coordinates, and let use the selected exact branches. For all sufficiently large , the numerical path remains in the regular chart and where is independent of .
Facts & Assumptions
Given: A smooth constrained vector field, its exact local flow, an exact RATTLE branch, the compact-tube hypothesis, and the initial error bound in the Statement.
The constrained Hamiltonian vector field has a unique local flow: the vector field is and has a unique local flow.
Scaled RATTLE equations have unique local multiplier branches: the selected multipliers are smooth in local phase coordinates, have common step ranges and bounded derivatives on compact phase tubes, and at both equal .
Exact RATTLE preserves both constraints and is symmetric: on the local branches.
Multivariable Taylor formula with a Lagrange remainder along a line segment: a map has a quadratic Taylor polynomial with a cubic remainder on a compact convex chart.
On a convex open set, a uniform bound implies : a uniform derivative bound on a convex coordinate neighborhood implies the corresponding Lipschitz bound.
Proof
By [F1] and [F2], differentiating the RATTLE equations at gives : the position derivative is , and the momentum derivative is . The selected map is in by [F2].
In chart coordinates choose a slightly larger compact phase neighborhood around the exact path. The revised compact-subset conclusion of [F2] gives one step range and uniform bounds there. Write uniformly on this neighborhood. Substitution into the inverse equation gives . By [F3], this equals . Comparing quadratic coefficients yields .
Since is the identity and is , its state derivative is uniformly on the larger compact chart. Thus for some and small . Applying [F5] in the convex chart gives there.
The exact flow satisfies and hence . Its third time derivative is bounded on the compact tube. Taylor's theorem [F4] therefore gives . Comparing with step 1.2 proves the local defect uniformly in .
Until a numerical state leaves the larger chart, steps 2.1 and 1.3 give , where . Induction yields . For sufficiently small , this bound is less than the positive distance from the exact compact path to the boundary of the larger chart, so a first-exit index cannot exist. The estimate therefore holds for every .
Scaled RATTLE residuals bound the finite solve trajectory error
Statement
Let be a compact subset of the regular phase manifold, contained in a convex phase-coordinate chart whose closure lies inside a regular chart. Let , let be its exact RATTLE step, and let be a successful output of Finite budget RATTLE solve with scaled constraint residuals whose multiplier iterates remain in the chosen convex branch balls over . Define For sufficiently small , there is a constant uniform over such that For the repeated-trajectory claim, choose compact phase tubes in such a chart, with the coordinate image of contained in a convex coordinate neighborhood with compact closure inside the regular chart. Suppose the exact-solve RATTLE iterates from a common initial state in remain in on the fixed-time grids under consideration. Restore each successful finite-solve output using a local retraction from Holonomic phase residuals control distance to the consistent phase manifold before using it as the next input. If both scaled residuals are bounded by a fixed sufficiently small at each step, then for sufficiently small the restored trajectory remains in and differs from the exact-solve RATTLE trajectory by uniformly on the grid. If instead both residuals are at most , the difference is , and the unscaled position and tangency residuals of each unprojected solver output are respectively and . The finite solver's raw output need not be consistent, so the global estimate is for the restored trajectory.
Facts & Assumptions
Given: A compact phase subset , a consistent input , exact and approximate multiplier iterates in the selected branch neighborhoods over , and the scaled residuals in the Statement.
Scaled classical RATTLE step map: the exact updates use the impulses , , and impose , .
Scaled RATTLE equations have unique local multiplier branches: the scaled equations have unique smooth local roots, with a common step range and uniform derivative and inverse-Jacobian bounds on each compact phase subset.
Finite budget RATTLE solve with scaled constraint residuals: on its success status the algorithm returns the state, both multiplier iterates, and the scaled residual norms defined above.
Implicit residuals and their update and derivative units: a residual norm is not a forward-error bound without a separate inverse or stability estimate.
On a convex open set, a uniform bound implies : a uniform derivative bound on a convex neighborhood yields a uniform Lipschitz estimate.
Holonomic phase residuals control distance to the consistent phase manifold: finitely many local smooth retractions cover a compact regular phase set, and all satisfy the uniform bound on their domains.
Proof
For , [F2] gives uniformly on the branch ball. Shrink it so . The derivative of is then bounded by . Since at the exact root , [F5] along the segment to gives . As , it follows that . This inverse estimate is needed because [F4] alone does not convert residual size to state error.
The position formula gives and . The uniform matrix bounds and step 1.1 yield and .
For fixed , the final scaled tangency residual is affine in with derivative exactly . Uniform invertibility bounds the distance from to the exact momentum root for this by . The smooth momentum branch in [F2] changes that exact root by at most when replaces , using step 1.1 and the uniform branch derivative bound.
In the final momentum formula, the initial half-momentum difference contributes by step 2.1; changing the position in the smooth force and constraint Jacobian contributes ; changing the final multiplier contributes by step 2.2. Their sum proves and hence the one-step estimates.
The residual definitions give and . Whenever the output lies in a neighborhood from [F6], its local retraction changes it by at most for . For the repeated-trajectory claim, choose a compact phase neighborhood of with closure inside the regular chart. The compact branch bounds and imply for sufficiently small . Apply [F6] to and choose its finite retraction cover with a common distance constant. The union of these open domains contains the compact set , hence contains some uniform ambient neighborhood of it. For every restored input in , step 3.1 puts its raw output within of the exact step from that same input in . Bounded scaled residuals and sufficiently small therefore place the raw output in this union. The same-input exact step need not belong to the reference tube . Thus the retraction is defined, and the restored update differs from the exact RATTLE update by at most .
Work in the phase coordinates of the Statement and choose a slightly larger compact convex coordinate neighborhood on which the branches and their first derivatives are bounded by [F2]. Since is the identity, uniformly there, so [F5] gives a Lipschitz factor for small positive . The one-step estimate and the retraction bound, with equivalence of ambient and chart norms on the compact tube, bound each restored solver perturbation by . Starting with the same initial state, the error therefore obeys until a first exit from . Iteration gives for fixed residual bound and when each residual is at most . Choose small enough, or small enough in the second case, that this bound is less than the positive coordinate distance from to the boundary of ; then no first exit occurs. Step 4.1, applied until this first-exit argument closes, places every raw output in a retraction neighborhood for small . Finally, the unscaled residuals are exactly and , hence and in the second case.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Ernst Hairer, Christian Lubich, and Gerhard Wanner, Geometric Numerical Integration, 2nd ed., Chapter VII.1, §§VII.1.1–VII.1.4
- Robert I. McLachlan, Klas Modin, Olivier Verdier, and Matt Wilkins, Geometric Generalisations of SHAKE and RATTLE, Foundations of Computational Mathematics 14 (2014), 339–370
- Ernst Hairer, Christian Lubich, and Gerhard Wanner, Geometric Numerical Integration, 2nd ed., Chapter VII.1
- Ernst Hairer, Christian Lubich, and Gerhard Wanner, Geometric Numerical Integration, 2nd ed., Chapter VII.1.4, pp. 245–246
- Robert I. McLachlan, Klas Modin, Olivier Verdier, and Matt Wilkins, Geometric Generalisations of SHAKE and RATTLE, Foundations of Computational Mathematics 14 (2014), 339–370, §§4–5.1.3
- Robert I. McLachlan, Klas Modin, Olivier Verdier, and Matt Wilkins, Geometric Generalisations of SHAKE and RATTLE, Foundations of Computational Mathematics 14 (2014), 339–370, §§4.1 and 5.1.3
- Robert I. McLachlan, Klas Modin, Olivier Verdier, and Matt Wilkins, Geometric Generalisations of SHAKE and RATTLE, Foundations of Computational Mathematics 14 (2014), 339–370, §§4.5 and 5.1.3
- Robert I. McLachlan, Klas Modin, Olivier Verdier, and Matt Wilkins, Geometric Generalisations of SHAKE and RATTLE, Foundations of Computational Mathematics 14 (2014), 339–370, §§4.4 and 5.1.2–5.1.3
- Ernst Hairer, Christian Lubich, and Gerhard Wanner, Geometric Numerical Integration, 2nd ed., Chapter VII.1.4, pp. 245–247
- Robert I. McLachlan, Klas Modin, Olivier Verdier, and Matt Wilkins, Geometric Generalisations of SHAKE and RATTLE, Foundations of Computational Mathematics 14 (2014), 339–370, §§4.3 and 4.5
- Robert I. McLachlan, Klas Modin, Olivier Verdier, and Matt Wilkins, Geometric Generalisations of SHAKE and RATTLE, Foundations of Computational Mathematics 14 (2014), 339–370, §§4.1 and 4.3