Alphabeta Math
Pipeline-generated
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

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

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Regular holonomic phase space and constrained dynamics

Definition

Let U⊆Rd be open, let c:U→Rm be smooth (that is, C∞) with 1≤m<d, let M be a constant symmetric positive-definite d×d matrix, and let V:U→R be smooth. A holonomic constraint is the position condition c(q)=0. Write J(q)=Dc(q), let Q={q∈U:c(q)=0}, and define its regular part by Qreg={q∈Q:rank⁡J(q)=m}. For q∈Qreg, A(q)=J(q)M−1J(q)T is positive definite. On a compact regular chart K⊂Qreg, A−1 is uniformly bounded: sup⁡q∈K∥A(q)−1∥op<∞.

A position-momentum pair (q,p) is consistent when q∈Qreg and J(q)M−1p=0. The regular constrained phase manifold is M={(q,p)∈U×Rd:c(q)=0, J(q)M−1p=0, q∈Qreg}. The ambient canonical two-form is ω0=∑i=1ddqi∧dpi; its restriction to M is denoted ωM.

For v=M−1p, the constrained Hamilton equations are q˙=v,p˙=−∇V(q)−J(q)Tλ, with multiplier λ=A(q)−1(D2c(q)[v,v]−J(q)M−1∇V(q)). Here D2c(q)[v,v]∈Rm has components vTD2cj(q)v. This multiplier is the one that keeps both c(q)=0 and J(q)M−1p=0 satisfied.

LemmaStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

A Ck+r residual vanishing through order r−1 has a Ck scaled extension

Statement

Let P⊆Rn be open, let r∈{1,2}, let k∈N with k≥1, and let δ>0. Let f:(−δ,δ)×P→Rm be Ck+r. Suppose ∂hjf(0,α)=0 for every α∈P and 0≤j<r. Then f(h,α)/hr, initially defined for h≠0, has a Ck extension F to (−δ,δ)×P. Its mixed derivatives at zero satisfy ∂hℓ∂αβF(0,α)=ℓ!(r+ℓ)!∂hr+ℓ∂αβf(0,α)(ℓ+∣β∣≤k).

Facts & Assumptions

Given: The hypotheses in the Statement.

[F1]

Multivariable Taylor formula with a Lagrange remainder along a line segment: a Cs+1 map on a convex neighborhood has its degree-s Taylor polynomial with a remainder of order s+1 along each line.

[F2]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): differentiating a composition with a coordinate line gives the corresponding directional derivative.

Proof

1.1givenF2

For each parameter multi-index β with ∣β∣≤k, iteratively apply the chain rule [F2] to the identities ∂hjf(0,α)=0. Thus ∂αβ∂hjf(0,α)=0 for every 0≤j<r, as needed below.

2.1F1F3step 1.1algebra

For each parameter multi-index β with ∣β∣≤k, put kβ=k−∣β∣, N=r+kβ, and gβ(h)=∂αβf(h,α). For every s≤kβ, put m=N−s. If m≥2, apply [F1] componentwise to gβ(s) through degree m−1; continuity of its highest derivative lets us replace the Lagrange coefficient at θh by its value at zero plus o(1). If m=1, subtract the linear Taylor polynomial: the derivative of the remainder is o(1) by continuity, so [F3] gives a remainder o(∣h∣). Thus in every case gβ(s)(h) equals its Taylor polynomial through degree m plus o(∣h∣m). By step 1.1 all coefficients of degrees below r vanish. For h≠0, the quotient rule expresses the ℓth derivative of gβ/hr as a finite linear combination of h−r−ℓ+sgβ(s)(h), 0≤s≤ℓ. Substituting the expansions shows that the remainder terms are o(∣h∣kβ−ℓ); the polynomial part has a continuous extension whose ℓth derivative at zero is ℓ!∂hr+ℓ∂αβf(0,α)/(r+ℓ)!. Continuity of the derivatives on compact parameter neighborhoods makes these limits locally uniform in α.

3.1step 2.1algebra∎

Define the value at h=0 by the displayed limit formula. For each ∣β∣+ℓ≤k, step 2.1 gives a locally uniform limit for the corresponding derivative as h→0; at h=0 these formulas are differentiable in α because f is Ck+r, and their h-derivatives agree with the next displayed coefficient. Induction on total derivative order therefore shows that all mixed partial derivatives through order k exist and are continuous across h=0. The extension is Ck with the asserted formula.

LemmaStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

The regular holonomic phase space is a symplectic cotangent bundle

Statement

Under the hypotheses of Regular holonomic phase space and constrained dynamics, let Qreg={q∈Q:rank⁡J(q)=m}. It is a smooth manifold of dimension d−m. Choose a local configuration chart ϕ:O⊆Rd−m→Qreg and write T=Dϕ, G=TTMT. The cotangent coordinates π=TTp identify the part of M over this chart locally with T∗Qreg: the unique consistent ambient momentum representing π is p=MTG−1π. In these coordinates the restricted canonical one-form pTdq is πTdx, so the restricted two-form is ωM=∑j=1d−mdxj∧dπj. 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.

[F1]

Regular holonomic phase space and constrained dynamics: Qreg={q∈Q:rank⁡J(q)=m}, M is constant SPD, and M consists of (q,p) with q∈Qreg and JM−1p=0.

[F2]

The parametrized implicit function theorem with Ck regularity: if a square block derivative of a Ck map is invertible at a zero, its zero set is locally the graph of a unique Ck function; this applies for every finite k when the map is smooth.

[F3]

Symplectic form and symplectic manifold: a symplectic form is a smooth closed two-form that is pointwise nondegenerate.

[F4]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): the derivative of a composite is the composite of its derivatives.

Proof

1.1F1F2construct

At any q∈Qreg, full row rank of J(q) gives a permutation of coordinates q=(x,y) for which the m×m block Dyc(q) is invertible. Apply [F2] to the smooth map c for each finite k≥1. The resulting local graphs agree with the unique C1 graph on overlaps, so that graph is Ck locally for every k and hence smooth. Thus locally Qreg is y=ψ(x); ϕ(x)=(x,ψ(x)) parametrizes it, and Dϕ has rank d−m with image ker⁡J.

2.1step 1.1F1algebra

Define G(x)=Dϕ(x)TMDϕ(x). For every nonzero ξ, Dϕ ξ≠0 and ξTG(x)ξ=(Dϕ ξ)TM(Dϕ ξ)>0, so G is invertible. Its entries are smooth, and G−1=adj⁡(G)/det⁡G is smooth because det⁡G>0. For a cotangent coordinate π∈Rd−m, put p=MDϕ G−1π. Then JM−1p=JDϕ G−1π=0 and DϕTp=GG−1π=π. Conversely, if JM−1p=0, then M−1p=Dϕ ξ for a unique ξ, and DϕTp=Gξ; hence the displayed formula gives the unique ambient p representing π. Both this map and its inverse (q,p)↦(x,Dϕ(x)Tp) are smooth, so (x,π)↦(ϕ(x),p) is a local diffeomorphism from T∗Qreg onto the part of M over this chart.

3.1F3F4step 2.1algebra

Let θ0=pTdq be the ambient canonical one-form. Under the chart just constructed, dq=Dϕ dx and DϕTp=π, so its pullback is πTdx. Therefore the pullback of ω0=−dθ0 is ∑j=1d−mdxj∧dπj, which is closed and nondegenerate.

4.1F3step 3.1∎

Every point of M 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.

LemmaStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

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 R2d for phase-state differences. Each point of its consistent phase set has a neighborhood Uj with a smooth retraction Πj:Uj→M such that Πj is the identity on Uj∩M and ∥Πj(q,p)−(q,p)∥≤Cj(∥c(q)∥2+∥J(q)M−1p∥2). A finite number of these neighborhoods cover the compact phase set, so one constant works for all of them. In particular, residuals of sizes O(h4) and O(h3) admit a consistent restoration at distance O(h3), 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.

[F1]

Regular holonomic phase space and constrained dynamics: Qreg={q∈Q:rank⁡J(q)=m}, A=JM−1JT is uniformly invertible on the compact chart, and (q,p)∈M means q∈Qreg and JM−1p=0.

[F2]

The parametrized implicit function theorem with Ck regularity: an invertible square derivative block gives a unique local Ck graph for a Ck zero-set equation; since c is smooth, its local graph is smooth.

[F3]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): derivatives of a composite are obtained by composing the derivatives.

Proof

1.1F1F2algebra

At a point of the compact regular chart K⊂Qreg, permute coordinates as q=(x,y) so Dyc is an invertible m×m block. Apply [F2] for each finite regularity order; uniqueness makes these graphs agree locally, so the graph y=ψ(x) is smooth. Write ϕ(x)=(x,ψ(x)) and T(x)=Dϕ(x). Since J(ϕ(x))T(x)=0 and both kernels have dimension d−m, im⁡T=ker⁡J.

2.1F3F4step 1.1algebra

After shrinking to a convex coordinate neighborhood, B(x)=Dyc(x,ψ(x)) remains invertible and ∥B(x)−1(Dyc(x,y)−B(x))∥≤12. Set Rx(y)=c(x,y)−B(x)(y−ψ(x)). Then Rx(ψ(x))=0 and the derivative of B(x)−1Rx has norm at most 12. The mean-value inequality [F4] gives ∥B(x)−1Rx(y)∥≤12∥y−ψ(x)∥. Since B−1c=(y−ψ)+B−1Rx(y), it follows that ∥q−ϕ(x)∥=∥y−ψ(x)∥≤2∥B(x)−1∥ ∥c(q)∥. Compactness makes the constant uniform on a finite chart cover.

2.2F1step 1.1algebra

For qˉ=ϕ(x), put G=TTMT and define pˉ=MTG−1TTp. Positive definiteness of M and injectivity of T make G invertible; its smooth entries and positive determinant give a smooth inverse by G−1=adj⁡(G)/det⁡G. Then J(qˉ)M−1pˉ=0 and TT(p−pˉ)=0. Since ker⁡TT and im⁡J(qˉ)T both have dimension m and the latter is contained in the former, p−pˉ=J(qˉ)Tη for a unique η.

3.1F1F3step 2.1step 2.2algebra∎

The identity J(qˉ)M−1(p−pˉ)=A(qˉ)η and [F1] imply ∥p−pˉ∥≤C∥A(qˉ)−1∥(∥J(q)M−1p∥+∥J(qˉ)−J(q)∥ ∥M−1p∥). The momentum set is bounded and J is locally Lipschitz, so step 2.1 bounds the right side by C(∥J(q)M−1p∥+∥c(q)∥). Thus Π(q,p)=(qˉ,pˉ) has the asserted distance bound and lies in M. If (q,p)∈M, then qˉ=q and the formula for pˉ returns p, 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 A−1 and the required derivatives uniformly bounded there. A finite subcover gives finitely many such local retractions and a uniform constant.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Scaled classical RATTLE step map

Definition

Use the data of Regular holonomic phase space and constrained dynamics. For a consistent input (q,p)∈M, put v=M−1p and λ∗=μ∗=12A(q)−1(D2c(q)[v,v]−J(q)M−1∇V(q)). For nonzero signed h, form the sequential scaled residual equations Fq(λ)=h−2c ⁣(q+hM−1(p−h2∇V(q)−hJ(q)Tλ))=0, Fp(μ;λ)=h−1J(q1)M−1p1=0, where q1,p1/2,p1 are given by the updates below. The selected multiplier pair, when it exists uniquely, is the local root branch whose limits as h→0 are λ∗ and μ∗. This defines a partial exact step map; no root-existence assertion is part of this definition.

For such a selected pair λ,μ∈Rm, define p1/2=p−h2∇V(q)−hJ(q)Tλ,q1=q+hM−1p1/2, p1=p1/2−h2∇V(q1)−hJ(q1)Tμ. The position and momentum equations are respectively c(q1)=0 and J(q1)M−1p1=0. At h=0 define the step to be the identity.

Here λ,μ are force-level multipliers: the corresponding constraint impulses are hJTλ and hJTμ. This scaling keeps the limiting multiplier equations nonsingular as h→0. The position equation is SHAKE; the final momentum equation is the RATTLE tangency correction.

TheoremStatement: Literature-sourcedProof: AI-generatedOpen item page →

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 K. For every consistent initial pair (q0,p0)∈M with q0∈K there is a unique local solution of q˙=M−1p,p˙=−∇V(q)−J(q)Tλ(q,p), with λ as defined there. The solution remains in M throughout its local interval.

Facts & Assumptions

Given: A compact regular chart, a consistent initial pair (q0,p0), and the constrained equations in the Statement.

[F1]

Regular holonomic phase space and constrained dynamics: for q∈K⊂Qreg, A(q)=J(q)M−1J(q)T is uniformly invertible, and consistency means q∈Qreg and J(q)M−1p=0.

[F2]

The regular holonomic phase space is a symplectic cotangent bundle: the consistent phase set is a smooth manifold with local cotangent coordinates.

[F3]

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

1.1F1algebra

Since J(q) has full row rank and M−1 is SPD, for every nonzero η∈Rm we have ηTA(q)η=(J(q)Tη)TM−1(J(q)Tη)>0. Thus A(q) is invertible; its entries are smooth and A−1=adj⁡(A)/det⁡A, so its inverse and the displayed multiplier are smooth on a neighborhood of the chart.

1.2F1F3construct

Extend the formula in [F1] to an open neighborhood of q0 on which A remains invertible and define the ambient vector field (q,p)↦(M−1p,−∇V(q)−J(q)Tλ(q,p)). It is smooth, hence locally Lipschitz, so [F3] gives a unique local solution through (q0,p0). Shrink its time interval so q(t) stays in that neighborhood.

1.3F1F2givenalgebra

Along this solution, the chain rule gives ddtc(q)=J(q)M−1p and ddt(J(q)M−1p)=D2c(q)[v,v]−J(q)M−1∇V(q)−A(q)λ(q,p)=0, where v=M−1p. Since the second constraint starts at zero, it remains zero; the first derivative is therefore zero and c(q) 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 M.

2.1F3step 1.2step 1.3∎

The local uniqueness from [F3] applies to every solution of the same ambient extension, so in particular the constrained solution is unique.

LemmaStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Scaled RATTLE equations have unique local multiplier branches

Statement

Let C be a compact subset of the regular phase manifold whose configuration projection lies in a compact regular chart. For each (q,p)∈C, the two scaled RATTLE equations in Scaled classical RATTLE step map have unique local roots in neighborhoods of λ0=μ0=12A(q)−1(D2c(q)[v,v]−J(q)M−1∇V(q)),v=M−1p. In local phase coordinates the position root depends smoothly on (h,q,p), and the momentum root depends smoothly on (h,q,p,λ) 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 C therefore gives a common h0(C)>0 for ∣h∣<h0(C); 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 J has full row rank, so their constrained positions remain in Qreg. At h=0 both Jacobians equal −A(q).

Facts & Assumptions

Given: A compact phase subset C⊂M over a compact regular configuration chart, consistent (q,p)∈C, smooth c,V, and signed h with ∣h∣<h0(C).

[F1]

Scaled classical RATTLE step map: q1=q+hM−1p1/2, p1/2=p−h2∇V(q)−hJ(q)Tλ, p1=p1/2−h2∇V(q1)−hJ(q1)Tμ, with residuals c(q1) and J(q1)M−1p1.

[F2]

The regular holonomic phase space is a symplectic cotangent bundle: (q,p) has local coordinates on the smooth phase manifold, so those coordinates form an open parameter block for the implicit-function theorem.

[F3]

A Ck+r residual vanishing through order r−1 has a Ck scaled extension: if a smooth residual and its first r−1 step derivatives vanish at zero, division by hr has a smooth extension whose value and derivatives are determined by the first nonzero Taylor coefficients.

[F4]

The parametrized implicit function theorem with Ck regularity: a smooth residual equation with invertible derivative in its multiplier variables has a unique smooth local multiplier branch.

[F5]

Proof

1.1F1F2F3F4algebra

Put v=M−1p and w(λ)=−M−1(12∇V(q)+J(q)Tλ). Then q1=q+hv+h2w(λ). Since c(q)=0 and J(q)v=0, [F3] extends h−2c(q1) smoothly, with value Fq(0,q,p,λ)=12D2c(q)[v,v]−12J(q)M−1∇V(q)−A(q)λ. Its λ derivative is −A(q), which is invertible. Since A is smooth and invertible, A−1=adj⁡(A)/det⁡A is smooth locally, so the center λ0 varies smoothly with the phase input. Thus [F4] gives the unique local position multiplier branch at that center.

2.1F1F2F3F4F5step 1.1algebra

Let G(h,q,p,λ,μ)=J(q1)M−1p1. Consistency gives G(0,q,p,λ,μ)=0, and [F3] extends h−1G smoothly. By [F5], its value at zero is Fp(0,q,p,λ,μ)=D2c(q)[v,v]−J(q)M−1∇V(q)−A(q)(λ+μ). Its μ derivative is −A(q). At λ=λ0, the unique zero is μ=λ0, so [F4] gives a unique local momentum branch.

3.1F2F4step 1.1step 2.1choose∎

The branch equations are smooth in local phase coordinates, and A−1 is uniformly bounded on the compact configuration projection of C. Since J has full row rank on that compact projection, continuity gives an ambient neighborhood where it remains full row rank. Around each point of C, shrink the phase and multiplier neighborhoods so both roots remain in common IFT uniqueness neighborhoods on overlaps and exact q1 remains in this regular neighborhood. These neighborhoods cover C; compactness gives a finite subcover and the minimum of their positive step radii is a common h0(C). The smooth branch derivatives are bounded on smaller compact neighborhoods covering C for ∣h∣≤h0(C), and continuity of the multiplier Jacobians preserves uniform invertibility after a further shrink.

AlgorithmAlgorithm: AI-adaptedProof: Not applicableOpen item page →

Finite budget RATTLE solve with scaled constraint residuals

Definition

The input state is consistent, (q,p)∈M. For h=0, return (q,p) with status exact-identity; this branch returns no multipliers or residual norms. For nonzero h, fix a compact phase subset C⊂M over a compact regular configuration chart with (q,p)∈C and 0<∣h∣<h0(C), using branch balls Uq,Up supplied by Scaled RATTLE equations have unique local multiplier branches. The admissible inputs also include initial guesses λinit∈Uq, μinit∈Up, tolerances εq,εp≥0, finite correction budgets Nq,Np∈N0, and terminating exact factorization/solve backends Bq,Bp for the two chord calls. Each backend accepts a square m×m 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 c,J,∇V 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 Uq,Up⊆Rm are open balls within the regular branch neighborhoods. Choose the balls so that Fq is C1 on Uq and, for every λ∈Uq, the corresponding Fp is C1 on Up 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.

  1. Form Fq(λ)=h−2c ⁣(q+hM−1(p−h2∇V(q)−hJ(q)Tλ)). Run Finite-budget Newton and chord solves with scheduled factorization reuse on Fq in chord mode with refresh period 1, domain Uq, initial value λinit, tolerance εq, budget Nq, and backend Bq. If it returns anything other than root, return its exact status (iteration-budget-exhausted, singular-jacobian, or invalid-trial), last valid multiplier iterate, and actual scaled residual norm; do not continue.

  2. For its returned λ~, compute p~1/2=p−h2∇V(q)−hJ(q)Tλ~ and q~1=q+hM−1p~1/2. Form Fp(μ)=h−1J(q~1)M−1(p~1/2−h2∇V(q~1)−hJ(q~1)Tμ). Run the same supplier procedure on Fp in chord mode with refresh period 1, domain Up, initial value μinit, tolerance εp, budget Np, and backend Bp. If it returns anything other than root, return its exact status (iteration-budget-exhausted, singular-jacobian, or invalid-trial), last valid multiplier iterate, actual scaled tangency residual norm, and the successful position-stage values; do not continue.

  3. If both calls meet their residual tolerances, set p~1=p~1/2−h2∇V(q~1)−hJ(q~1)Tμ~ and return (q~1,p~1,λ~,μ~), the norms ∥Fq(λ~)∥2, ∥Fp(μ~)∥2, and status “residual tolerances met”.

For nonzero h, 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 M; 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.

TheoremStatement: Literature-sourcedProof: AI-generatedOpen item page →

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 (q,p)∈M to a consistent (q1,p1)∈M. The signed-step maps satisfy Ψ−h∘Ψh=id and Ψh∘Ψ−h=id 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.

[F1]

Regular holonomic phase space and constrained dynamics: (q,p)∈M means q∈Qreg and J(q)M−1p=0 (hence c(q)=0).

[F2]

Scaled classical RATTLE step map: the exact position and momentum equations are c(q1)=0 and J(q1)M−1p1=0.

[F3]

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

1.1F1F2F3given

The exact first constraint equation gives c(q1)=0, the exact final projection equation gives J(q1)M−1p1=0, and [F3] keeps q1 in Qreg. By [F1], this is exactly (q1,p1)∈M.

1.2F2givenalgebra

Starting from the forward equations, use the reverse step size −h and choose its first multiplier to be the forward μ. Its first half-momentum is then p1+h2∇V(q1)+hJ(q1)Tμ=p1/2, so its next position is q1−hM−1p1/2=q.

2.1F1F2F3step 1.2algebra∎

Choose the reverse step's final multiplier to be the forward λ. Its final momentum is then p1/2+h2∇V(q)+hJ(q)Tλ=p. The reverse constraint equations hold because the endpoints are the forward consistent states. As h→0, the swapped multipliers and the reverse input converge to the same regular-chart branch centers; after shrinking h0, both multipliers lie in the reverse IFT neighborhoods. By uniqueness of the selected branches [F3], this reverse solve is the defined −h step. Thus Ψ−hΨh=id; interchanging the endpoints and the multipliers proves ΨhΨ−h=id.

TheoremStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Exact RATTLE is symplectic on the constrained phase space

Statement

Let C⊂M be compact and choose a compact phase-space neighborhood C‾ of C contained in a regular coordinate chart. There is h0(C‾)>0 such that for ∣h∣<h0(C‾) the exact map Ψh of Scaled classical RATTLE step map is defined near C, its image lies in C‾, and its reverse branch is defined near that image; the reverse branch is a local inverse, so Ψh is a local diffeomorphism near C. On this neighborhood it preserves ωM: Ψh∗ωM=ωM. 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.

[F1]

Regular holonomic phase space and constrained dynamics: on the regular phase manifold M, ωM is the restriction of the ambient canonical form ω0=∑dqi∧dpi.

[F2]

The regular holonomic phase space is a symplectic cotangent bundle: in local configuration coordinates x, a consistent ambient momentum represents a cotangent covector π=Dϕ(x)Tp and ωM=∑dxi∧dπi.

[F3]

Scaled classical RATTLE step map: RATTLE uses the two half-force updates, the constrained drift q1−q=hM−1p1/2, and normal constraint impulses at q and q1.

[F4]

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.

[F5]

Symplectic form and symplectic manifold: a symplectic form is a smooth closed two-form that is pointwise nondegenerate.

[F6]

Exact RATTLE preserves both constraints and is symmetric: the signed-step map has inverse Ψ−h on the selected regular branches.

Proof

1.1F3givenalgebra

If h=0, then Ψ0 is the identity and preserves ωM. Assume h≠0. On a local configuration chart define Lh(q,q1)=12h(q1−q)TM(q1−q)−h2(V(q)+V(q1)). Differentiating gives −D1Lh=p1/2+h2∇V(q) and D2Lh=p1/2−h2∇V(q1). By [F3], the first expression differs from p by the normal vector −hJ(q)Tλ, and the second differs from p1 by hJ(q1)Tμ. Each normal vector vanishes on tangent variations of Q, so the restricted cotangent covectors satisfy p∣TqQ=−D1Lh∣TqQ and p1∣Tq1Q=D2Lh∣Tq1Q.

2.1F2step 1.1algebra

Let θ be the canonical one-form on T∗Q, θ(q,π)(δq,δπ)=π(δq). The identities in step 1.1 give Ψh∗θ−θ=d(Lh(q,q1(q,p))) on the input chart, because both sides applied to an input variation equal D1Lh δq+D2Lh δq1.

3.1F1F2F4F5F6step 2.1∎

Taking the exterior derivative of step 2.1 yields Ψh∗dθ=dθ. By [F1], ωM is the restriction of the ambient canonical form; [F2] identifies it as −dθ in cotangent coordinates. Hence this is Ψh∗ωM=ωM. The branch map is smooth by [F4] and locally invertible by [F6]. By [F2] and [F5], the preserved form is the symplectic form on M; this proves the stated symplecticity.

TheoremStatement: AI-adaptedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

The finite budget RATTLE solver returns a status in finite work

Statement

For finite budgets Nq,Np, 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 h=0, and one of the stated success or failure statuses when h≠0. This is a termination claim only; it does not assert that the residual tolerances will be met.

Facts & Assumptions

Given: Finite nonnegative budgets Nq,Np, a consistent input, and the algorithm in the Statement; for nonzero h, also its supplied open branch balls, C1 residual maps defined on those balls, returning evaluation/arithmetic/norm/domain-test primitives, and terminating exact factorization and retained-factor solve backends.

[F1]

Finite budget RATTLE solve with scaled constraint residuals: for nonzero h the procedure makes at most one position solve and, only if that returns root, one momentum solve; for h=0 it immediately returns exact-identity. Every failure status and returned last valid iterate is specified by the procedure.

[F2]

Finite-budget Newton and chord solves with scheduled factorization reuse: chord mode enters successive indices k=0,…,N. At each index it evaluates the residual and tests its norm; it returns root when the tolerance is met, and at k=N 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 k+1. Its admitted primitives and exact backend operations terminate.

Proof

1.1F1F2giveninduction

If h=0, [F1] returns exact-identity immediately. For nonzero h, consider either chord call with budget N and refresh period 1. Its initial iterate lies in its open domain. At index k, 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 k<N; 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.

2.1F2step 1.1induction

Every continuing pass strictly increments k, and an entered pass k=N returns before a factorization or correction. Consequently there are at most N+1 residual checks and at most N 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 N=0. These are counts of loop operations, not a uniform bound on the internal cost of a supplied evaluation or backend.

3.1F1F2givenstep 1.1step 2.1algebra∎

Apply step 2.1 first with N=Nq. 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-λ∈Uq admissibility condition ensures that even this approximate returned position multiplier supplies a C1 momentum residual on the whole open Up with returning evaluations. Apply step 2.1 with N=Np 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 Nq+Np+2 loop residual checks, and at most Nq+Np 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.

TheoremStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

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 [0,T] stays in a compact subset of a convex coordinate chart whose closure lies inside a regular chart, with A(q)−1 uniformly bounded. Let h=T/N>0, let z0h∈M satisfy ∥z0h−z(0)∥≤C0h2 in these coordinates, and let zn+1h=Ψh(znh) use the selected exact branches. For all sufficiently large N, the numerical path remains in the regular chart and max⁡0≤n≤N∥znh−z(tn)∥≤CTh2, where CT is independent of N.

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.

[F1]

The constrained Hamiltonian vector field has a unique local flow: the vector field is X(q,p)=(M−1p,−∇V(q)−J(q)TΛ(q,p)) and has a unique local flow.

[F2]

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 h=0 both equal Λ(q,p)/2.

[F3]

Exact RATTLE preserves both constraints and is symmetric: Ψ−h=Ψh−1 on the local branches.

[F4]

Multivariable Taylor formula with a Lagrange remainder along a line segment: a C3 map has a quadratic Taylor polynomial with a cubic remainder on a compact convex chart.

Proof

1.1F1F2algebra

By [F1] and [F2], differentiating the RATTLE equations at h=0 gives DhΨ0(z)=X(z): the position derivative is M−1p, and the momentum derivative is −∇V−JT(Λ/2+Λ/2). The selected map is C3 in (h,z) by [F2].

1.2F2F3algebra

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 C3 bounds there. Write Ψh(z)=z+hX(z)+h2a(z)+O(h3) uniformly on this neighborhood. Substitution into the inverse equation gives Ψh−1(z)=z−hX(z)+h2(DX(z)X(z)−a(z))+O(h3). By [F3], this equals Ψ−h(z)=z−hX(z)+h2a(z)+O(h3). Comparing quadratic coefficients yields a(z)=12DX(z)X(z).

1.3F2F5

Since Ψ0 is the identity and Ψh is C3, its state derivative is DzΨh=I+O(h) uniformly on the larger compact chart. Thus ∥DzΨh∥≤1+Lh for some L≥0 and small h>0. Applying [F5] in the convex chart gives ∥Ψh(x)−Ψh(y)∥≤(1+Lh)∥x−y∥ there.

2.1F1F2F4step 1.2

The exact flow satisfies z˙=X(z) and hence z¨=DX(z)X(z). Its third time derivative is bounded on the compact tube. Taylor's theorem [F4] therefore gives z(t+h)=z(t)+hX(z(t))+12h2DX(z(t))X(z(t))+O(h3). Comparing with step 1.2 proves the local defect ∥Ψh(z(t))−z(t+h)∥≤Ch3 uniformly in t.

3.1givenstep 2.1step 1.3algebra∎

Until a numerical state leaves the larger chart, steps 2.1 and 1.3 give en+1≤(1+Lh)en+Ch3, where en=∥znh−z(tn)∥. Induction yields en≤(1+Lh)ne0+Ch3∑j=0n−1(1+Lh)j≤eLT(C0+CT)h2. For sufficiently small h, 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 n≤N.

TheoremStatement: Literature-sourcedProof: AI-generatedOpen item page →

Scaled RATTLE residuals bound the finite solve trajectory error

Statement

Let C be a compact subset of the regular phase manifold, contained in a convex phase-coordinate chart whose closure lies inside a regular chart. Let (q,p)∈C, let (q1,p1) be its exact RATTLE step, and let (q~1,p~1) be a successful output of Finite budget RATTLE solve with scaled constraint residuals whose multiplier iterates remain in the chosen convex branch balls over C. Define εq=∥h−2c(q~1)∥2,εp=∥h−1J(q~1)M−1p~1∥2. For sufficiently small 0<∣h∣, there is a constant C uniform over C such that ∥q~1−q1∥≤Ch2εq,∥p~1−p1∥≤C∣h∣(εq+εp). For the repeated-trajectory claim, choose compact phase tubes C0⊂relint⁡(C1) in such a chart, with the coordinate image of C1 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 C0 remain in C0 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 h the restored trajectory remains in C1 and differs from the exact-solve RATTLE trajectory by O(ε) uniformly on the grid. If instead both residuals are at most C0h2, the difference is O(h2), and the unscaled position and tangency residuals of each unprojected solver output are respectively O(h4) and O(h3). 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 C, a consistent input (q,p)∈C, exact and approximate multiplier iterates in the selected branch neighborhoods over C, and the scaled residuals in the Statement.

[F1]

Scaled classical RATTLE step map: the exact updates use the impulses hJ(q)Tλ, hJ(q1)Tμ, and impose c(q1)=0, J(q1)M−1p1=0.

[F2]

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.

[F3]

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 εq,εp defined above.

[F4]

Implicit residuals and their update and derivative units: a residual norm is not a forward-error bound without a separate inverse or stability estimate.

[F6]

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 ∥Πj(q,p)−(q,p)∥≤C(∥c(q)∥2+∥J(q)M−1p∥2) on their domains.

Proof

1.1F2F3F4F5givenalgebra

For Fq(λ)=h−2c(q1(λ)), [F2] gives DλFq=−A(q)+o(1) uniformly on the branch ball. Shrink it so ∥A(q)−1(DλFq+A(q))∥≤12. The derivative of G(λ)=A(q)−1Fq(λ)+λ is then bounded by 1/2. Since Fq(λ)=0 at the exact root λ, [F5] along the segment to λ~ gives ∥G(λ~)−G(λ)∥≤12∥λ~−λ∥. As A−1Fq(λ~)=G(λ~)−G(λ)−(λ~−λ), it follows that ∥λ~−λ∥≤2∥A(q)−1∥εq. This inverse estimate is needed because [F4] alone does not convert residual size to state error.

2.1F1step 1.1algebra

The position formula gives q~1−q1=−h2M−1J(q)T(λ~−λ) and p~1/2−p1/2=−hJ(q)T(λ~−λ). The uniform matrix bounds and step 1.1 yield ∥q~1−q1∥≤Ch2εq and ∥p~1/2−p1/2∥≤C∣h∣εq.

2.2F2F3F5step 1.1

For fixed λ~, the final scaled tangency residual is affine in μ with derivative exactly −A(q~1). Uniform invertibility bounds the distance from μ~ to the exact momentum root for this λ~ by Cεp. The smooth momentum branch in [F2] changes that exact root by at most Cεq when λ~ replaces λ, using step 1.1 and the uniform branch derivative bound.

3.1F1step 1.1step 2.1step 2.2algebra

In the final momentum formula, the initial half-momentum difference contributes O(∣h∣εq) by step 2.1; changing the position in the smooth force and constraint Jacobian contributes O(∣h∣3εq); changing the final multiplier contributes O(∣h∣(εq+εp)) by step 2.2. Their sum proves ∥p~1−p1∥≤C∣h∣(εq+εp) and hence the one-step estimates.

4.1F1F2F3F6step 3.1algebra

The residual definitions give ∥c(q~1)∥=∣h∣2εq and ∥J(q~1)M−1p~1∥=∣h∣εp. Whenever the output lies in a neighborhood Uj from [F6], its local retraction changes it by at most C(∣h∣2εq+∣h∣εp)≤C∣h∣(εq+εp) for ∣h∣≤1. For the repeated-trajectory claim, choose a compact phase neighborhood D of C1 with closure inside the regular chart. The compact branch bounds and Ψ0=id imply Ψh(C1)⊂D for sufficiently small ∣h∣. Apply [F6] to D and choose its finite retraction cover with a common distance constant. The union of these open domains contains the compact set D, hence contains some uniform ambient neighborhood of it. For every restored input in C1, step 3.1 puts its raw output within O(∣h∣(εq+εp)) of the exact step from that same input in D. Bounded scaled residuals and sufficiently small ∣h∣ therefore place the raw output in this union. The same-input exact step need not belong to the reference tube C0. Thus the retraction is defined, and the restored update differs from the exact RATTLE update by at most C∣h∣(εq+εp).

5.1F2F5F6step 4.1algebra∎

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 Ψ0 is the identity, DzΨh=I+O(h) uniformly there, so [F5] gives a Lipschitz factor 1+Lh for small positive h. 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 Kh(εq+εp). Starting with the same initial state, the error therefore obeys en+1≤(1+Lh)en+Kh(εq+εp) until a first exit from C1. Iteration gives en≤KTε for fixed residual bound and en≤KTh2 when each residual is at most C0h2. Choose ε small enough, or h small enough in the second case, that this bound is less than the positive coordinate distance from C0 to the boundary of C1; 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 h. Finally, the unscaled residuals are exactly h2εq and hεp, hence O(h4) and O(h3) in the second case.

5 · Examples, counterexamples and false statements

None yet.

Sources