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.

✓ 9 results · all verified · 5 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 4 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Positive Conservative Production Destruction Integrators

1 · Prerequisites

2 · Summary

Summary

For a finite closed system of nonnegative compartments, each production rate is paired with the equal destruction rate of its donor. The modified Patankar Euler step freezes these transfers and weights production and destruction by positive destination and source denominators, with rates evaluated at admissible states in the PDS domain. A finite matrix argument proves unique solvability, nonnegativity and exact total-mass conservation for any positive denominators. First-order accuracy is proved only for the standard choice σi=yin on a smooth compact positive tube; a conditional global first-order bound follows from the local defect and one-step stability estimate.

The usual ratio is undefined when a source compartment is zero. A separate source-factored, ratio-free step extends the first-order method to such states and proves its admissibility and local consistency, without assigning 0/0 a value. The second-order item is specifically MPRK22(1): positivity and conservation hold for positive inputs at every step size when the stage rate evaluation is in the PDS domain; otherwise the procedure returns a rate-domain failure before that evaluation. Order two and global second-order error require a compact smooth positive tube with uniformly positive stage denominators. No order claim is made for zero-stage variants or for Patankar methods in general. The inexact-solve ledger makes positivity conditional on a certified component margin; a small residual alone does not establish it.

3 · Logical flowchart

4 · Definitions, theorems and proofs

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

Finite conservative production destruction systems

Definition

Fix an integer m≥1 and a domain Ω⊆Rm; its admissible nonnegative states are Ω+:=Ω∩[0,∞)m. For every ordered pair i,j∈{1,…,m} let pij,dij:Ω→R be production and destruction transfer rates that are nonnegative on Ω+. A finite conservative production destruction system (finite conservative PDS) is the autonomous ODE

yi′=Fi(y):=∑j=1m(pij(y)−dij(y)),i=1,…,m,

with internal-transfer identities

pij(y)=dji(y),pii(y)=dii(y)=0.

The index j is the donor/source of pij and the index i is its recipient/destination; dji is the same transfer viewed as destruction from j. The total mass is M(y):=∑i=1myi. The ODE is considered at states in Ω+. The definition describes a closed system: external sources and sinks must be specified separately and are not included in the conservation claims on this page. No existence, positivity, or regularity assertion about solutions is part of this definition.

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

Strict column dominance gives an entrywise nonnegative inverse

Statement

Let M=(mij)∈Rm×m for a finite m≥1. Suppose mjj>0, mij≤0 for i≠j, and

mjj>∑i≠j∣mij∣(j=1,…,m).

Then M is invertible and every entry of M−1 is nonnegative. If b∈Rm has nonnegative coordinates, then M−1b≥0; if every coordinate of b is positive, then every coordinate of M−1b is positive.

Facts & Assumptions

Given: A finite real matrix satisfying the displayed positive-diagonal, nonpositive-off-diagonal, and strict column-dominance hypotheses.

[F1]

The hypotheses give cij:=−mij/mjj≥0 for i≠j and cjj=0.

Proof

1.1givenF1algebraconstruct

Let D=diag⁡(m11,…,mmm) and C=I−MD−1. Then D is invertible, C≥0, and for each column j, rj:=∑iCij=∑i≠j∣mij∣/mjj<1. Since there are finitely many columns, r:=max⁡jrj<1.

2.1step 1.1algebrainduction

For every k≥0, Ck≥0 and ∑i(Ck)ij≤rk for every column j: it holds at k=0, and multiplying by C gives ∑i(Ck+1)ij=∑ℓ(∑iCiℓ)(Ck)ℓj≤r∑ℓ(Ck)ℓj. Thus each entry series in S:=∑k=0∞Ck converges and is nonnegative.

3.1step 1.1step 2.1algebra

The finite geometric identity (I−C)∑k=0NCk=∑k=0NCk(I−C)=I−CN+1 holds by cancellation of adjacent powers. Step 2.1 gives CN+1→0 entrywise, so (I−C)S=S(I−C)=I. Since M=(I−C)D, M−1=D−1S≥0, proving invertibility and inverse nonnegativity.

4.1step 3.1algebra∎

If b≥0, then M−1b≥0 by step 3.1. If b>0, then S≥I entrywise, so D−1Sb≥D−1b>0 coordinatewise. This proves both vector conclusions.

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

Modified Patankar Euler for conservative transfer systems

Definition

Let m≥1, let (pij,dij) be the rates of a finite conservative PDS Finite conservative production destruction systems with state domain Ω, and take an input state yn∈Rm, a step size h, and declared denominators σi. If yn∉Ω+, h≤0, or any σi≤0, return an inadmissible-input status before evaluating any rate. Otherwise the modified Patankar Euler step returns the unique solution yn+1 of

yin+1=yin+h∑j≠i(pij(yn)yjn+1σj−dij(yn)yin+1σi),i=1,…,m.

Equivalently, form M∈Rm×m by

Mii=1+h∑j≠idij(yn)σi,Mij=−hpij(yn)σj(i≠j),

and solve Myn+1=yn. The rates in the solve are evaluated only at the admissible state yn∈Ω+. For every input passing the branch, return the unique exact solution of the stated linear system. The standard first-order choice is σi=yin, which is admissible only when every yin>0. A separately defined rate-factor form extends a first-order step to zero donor coordinates under an additional source-factorization hypothesis.

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Source-factored transfer rates for zero compartments

Definition

Let (pij,dij) be the rates of a finite conservative PDS Finite conservative production destruction systems. A source-factored transfer representation on an open set U⊆Ω⊆Rm containing a compact set K⊆[0,∞)m consists of functions aij:U→R, i≠j, such that each aij is C2 on the open subset U⊆Rm in the multivariable sense of Ck maps and multi-index derivative notation in Euclidean space, is nonnegative on U∩[0,∞)m, and, for every y∈U∩[0,∞)m,

pij(y)=yjaij(y),dij(y)=yiaji(y),aii:=0.

Here aij is the transfer rate from donor j to recipient i per unit of donor quantity. Nonnegativity is required on admissible nonnegative states; the C2 extension to the open neighborhood is used for local analysis and need not be nonnegative at inadmissible states with negative coordinates. The factorization is an additional hypothesis, not a consequence of nonnegative rates and the identity pij=dji. On strictly positive states the ratio pij(y)/yj equals aij(y); at a zero donor coordinate the factorized coefficient remains defined and avoids the indeterminate expression 0/0.

AlgorithmAlgorithm: AI-adaptedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Zero-compatible modified Patankar Euler in rate-factor form

Definition

Let K be a compact nonnegative state set with a source-factored transfer representation Source-factored transfer rates for zero compartments. Given yn∈Rm and a step size h, if yn∉K or h≤0, return an inadmissible-input status before evaluating any factor. Otherwise form B(yn)∈Rm×m by

Bij(yn)=aij(yn) (i≠j),Bjj(yn)=−∑i≠jaij(yn).

Return the unique solution yn+1 of

(I−hB(yn))yn+1=yn.

Equivalently, component i satisfies

yin+1=yin+h∑j≠i(aij(yn)yjn+1−aji(yn)yin+1).

This procedure uses no denominator yjn and is defined when some donor coordinates vanish. It is the factorized extension of the first-order Patankar Euler formula to the zero-state boundary. In exact arithmetic its linear system is uniquely solvable by Strict column dominance gives an entrywise nonnegative inverse.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicableOpen item page →

The positive-interior MPRK22(1) step

Definition

Let (pij,dij) be the rates of a finite conservative PDS Finite conservative production destruction systems with state domain Ω. Given yn∈Rm and h, if yn∉Ω+, any coordinate of yn is nonpositive, or h≤0, return an inadmissible-input status before evaluating rates or solving a system. First compute the stage z by invoking Modified Patankar Euler for conservative transfer systems with denominators σi=yin:

zi=yin+h∑j≠i(pij(yn)zjyjn−dij(yn)ziyin).

If the stage solve does not return a unique vector, return stage-failure. If its output z∉Ω+, return rate-domain-failure before evaluating rates at z. Otherwise form B(yn,z) with, for i≠j,

Bij(yn,z):=pij(yn)+pij(z)2zj,Bjj(yn,z):=−∑i≠jBij(yn,z),

and solve

(I−hB(yn,z))yn+1=yn.

Equivalently,

yin+1=yin+h2∑j≠i((pij(yn)+pij(z))yjn+1zj−(dij(yn)+dij(z))yin+1zi).

If the final solve is not uniquely solvable, return update-failure; otherwise return its unique solution yn+1. No zero-stage or denominator-regularized second-order variant is defined here.

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

Modified Patankar Euler preserves positivity and total mass

Statement

For a finite conservative PDS Finite conservative production destruction systems with domain Ω, an admissible input yn∈Ω+, step h>0, and any positive denominators σi>0, the step of Modified Patankar Euler for conservative transfer systems is uniquely defined, satisfies yn+1≥0, and conserves total mass:

∑i=1myin+1=∑i=1myin.

If yn>0 coordinatewise, then yn+1>0 coordinatewise. These conclusions do not assert order for arbitrary denominators; the first-order choice and its accuracy hypotheses are treated separately.

Facts & Assumptions

Given: The finite conservative PDS identities, yn∈Ω+, h>0, and σi>0 for every compartment.

[F1]

Finite conservative production destruction systems: pij=dji≥0, pii=dii=0, and yi′=∑j(pij−dij).

[F2]

Modified Patankar Euler for conservative transfer systems: Myn+1=yn, with Mii=1+h∑k≠idik(yn)/σi and Mij=−hpij(yn)/σj for i≠j.

[F3]

Strict column dominance gives an entrywise nonnegative inverse: a finite matrix with positive diagonal, nonpositive off-diagonal entries, and strict column diagonal dominance has a nonnegative inverse; the inverse maps positive vectors to positive vectors.

Proof

1.1F1F2F3algebra

For every j, Mjj>0 and Mij≤0 when i≠j by [F1]–[F2]. Moreover, Mjj−∑i≠j∣Mij∣=1+hσj∑k≠jdjk(yn)−hσj∑i≠jpij(yn)=1, because pij=dji makes the two finite sums equal. Thus [F3] applies: M is invertible and yn+1=M−1yn≥0, with strict positivity when yn>0.

2.1F1F2step 1.1algebra∎

The same identity gives each column sum ∑iMij=1. Therefore ∑iyin=∑i(Myn+1)i=∑j(∑iMij)yjn+1=∑jyjn+1. This proves exact summed conservation.

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (gpt-6-luna)Open item page →

Modified Patankar Euler has a uniform first-order defect and one-step bound on positive tubes

Statement

Let F be the vector field of a finite conservative PDS Finite conservative production destruction systems on a bounded open convex set U⊂Ω∩R>0m with U‾⊂R>0m. Suppose there is an open set V with U‾⊂V⊂Ω∩R>0m on which the transfer rates are multivariable C2 and their derivatives through order two are bounded. For y∈U, let Φh(y) be Modified Patankar Euler for conservative transfer systems with the standard denominators σi=yi. Then there are constants C,L,h0>0 such that, for 0<h≤h0:

  1. for every exact solution y(t) whose segment and the method states under consideration remain in a compact subset of U, the exact-start local defect satisfies ∥Φh(y(t))−y(t+h)∥2≤Ch2; and
  2. for all u,v∈U, ∥Φh(u)−Φh(v)∥2≤(1+Lh)∥u−v∥2.

The defect is the method output minus the exact next state and the second inequality is one-step Lipschitz stability in the convention of One-step ODE methods, local defect, uniform order, and step stability. This result is restricted to a compact positive tube; it does not define the standard ratio formula at zero compartments.

Facts & Assumptions

Given: A finite conservative PDS, the stated multivariable C2 rate data on V⊂Ω∩R>0m, an exact solution segment and method states in a compact subset of U, and h>0 sufficiently small.

[F1]

Finite conservative production destruction systems: Fi(y)=∑j(pij(y)−dij(y)), pij=dji≥0, and pii=dii=0.

[F2]

Modified Patankar Euler for conservative transfer systems with σi=yi is the linear system Φh(y)=(I−hA(y))−1y, where Aij(y)=pij(y)/yj for i≠j and Ajj(y)=−∑i≠jpij(y)/yj.

[F3]

Strict column dominance gives an entrywise nonnegative inverse: the Patankar matrix I−hA(y) is invertible; its inverse is entrywise nonnegative.

[F4]

One-step ODE methods, local defect, uniform order, and step stability: local defect is the exact-start method output minus the exact next state; uniform local order one means a uniform O(h2) bound; one-step stability is the stated (1+Lh) Lipschitz bound.

[F5]

Ck maps and multi-index derivative notation in Euclidean space: C2 means that coordinate derivatives through order two exist and are continuous.

[F6]

If all partial derivatives exist on a neighbourhood and are continuous at a point, then the map is totally differentiable there with Jacobian derivative: continuous first coordinate partials on an open set give the total derivative with those partials as its Jacobian; applying it to each first partial also supplies continuous total second derivatives for a C2 map.

[F7]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a) and Chain sum product and composition rules for Banach derivatives: total derivatives obey the chain rule, and coordinate products obey the bounded-bilinear product rule.

[F8]

The matrix norm induced by a published vector p-norm at p=2: ∥A∥2=sup⁡∥w∥2≤1∥Aw∥2 is the Euclidean induced operator norm and is a matrix norm.

[F9]

Induced matrix norms are compatible with matrix-vector multiplication, submultiplicative, and satisfy ||I|| = 1: ∥I∥2=1 and the induced norm is compatible with matrix products.

[F10]

On a convex open set, a uniform bound ∥Df(z)v∥2≤M∥v∥2 implies ∥f(y)−f(x)∥2≤M∥y−x∥2: on an open convex set, a uniform derivative operator bound ∥Dg(z)w∥2≤M∥w∥2 implies ∥g(u)−g(v)∥2≤M∥u−v∥2.

[F11]

Multivariable Taylor formula with a Lagrange remainder along a line segment: a C2 function on an open convex set has a first-order Taylor expansion with a remainder bounded uniformly by its second-derivative bound on the intervening segment.

Proof

1.1givenF1F2F5F6F7algebra

Since U⊂R>0m, each coordinate yj stays bounded away from zero on U‾. On R∖{0} the reciprocal s↦s−1 has derivatives −s−2 and 2s−3, obtained from the difference quotients −1/(s(s+t)) and (2s+t)/(s2(s+t)2); composing with the coordinate projection gives continuous first and second partials for y↦yj−1. Applying the product rule [F7] twice shows every entry Aij(y)=pij(y)yj−1 (i≠j), and hence every diagonal sum, is C2 on U; [F6] applied to these entries and their first partials supplies continuous total derivatives through order two. The row equations give A(y)y=F(y): the off-diagonal terms contribute ∑j≠ipij, and the diagonal term is −∑j≠idij. For column j, ∑iAij=0 because Ajj=−∑i≠jAij.

2.1givenF1F3F5F6F7algebra

The off-diagonal entries of A are nonnegative and its diagonal entries are nonpositive. Thus I−hA(y) has positive diagonal, nonpositive off-diagonal entries, and strict column diagonal-dominance margin 1; [F3] makes it invertible. On [0,h0]×U‾, the entries of I−hA(y) and its determinant are C2; the determinant is nonzero by [F3]. Its cofactors and determinant are finite sums of products of entries, and the scalar reciprocal of the determinant is C2 by the same reciprocal calculation as in step 1.1. The adjugate formula therefore makes the inverse a C2 matrix-valued function there; compactness gives uniform bounds for the inverse and its first derivatives.

3.1givenF1F2F4F5F6F7F11step 2.1algebra

The matrix identity (I−hA)−1=I+hA+h2A2(I−hA)−1 yields Φh(y)=y+hF(y)+h2G(h,y) with G(h,y):=A(y)2(I−hA(y))−1y. Step 2.1 and compactness bound G uniformly. Along the exact solution, [F5]–[F7] give y′′(t)=DF(y(t))F(y(t)), which is uniformly bounded on the compact tube. Taylor's formula [F11] gives y(t+h)=y(t)+hF(y(t))+O(h2) uniformly. Subtracting the expansions proves the local-defect estimate in [F4].

4.1givenF5F7F8F9step 2.1step 3.1algebra

The function G in step 3.1 is continuously differentiable in y with uniformly bounded derivative on U‾ by [F5]–[F7] and step 2.1. Differentiating that identity gives DyΦh(y)=I+hDF(y)+h2DyG(h,y). Compactness bounds ∥DF(y)∥2 by L0 and ∥DyG(h,y)∥2 by G0. The matrix-norm triangle inequality from [F8] and ∥I∥2=1 from [F9] yield ∥DyΦh(y)∥2≤1+hL0+h2G0≤1+(L0+h0G0)h for 0<h≤h0.

5.1F4F10step 4.1∎

Apply [F10] to Φh on the convex open set U using the uniform derivative bound from step 4.1. This gives ∥Φh(u)−Φh(v)∥2≤(1+Lh)∥u−v∥2 for every u,v∈U, exactly the one-step stability assertion of [F4].

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

The factorized zero-state step is well-defined, nonnegative, conservative, and locally first order

Statement

Let a finite conservative PDS have a source-factored representation on an open neighborhood U⊆Ω of a compact set K⊆[0,∞)m, with factors that are multivariable C2 on U and nonnegative on U∩[0,∞)m, as in Source-factored transfer rates for zero compartments. For every yn∈K and h>0, Zero-compatible modified Patankar Euler in rate-factor form has a unique output yn+1≥0 and conserves ∑iyi. For the accuracy clause, fix a compact set K∗⊂U containing K and all exact solution segments under consideration, and define the C2 extension F~i(y):=∑j≠i(yjaij(y)−yiaji(y)) on U. If those exact segments remain in K∗∩[0,∞)m, then the exact-start local defect is uniformly O(h2) as h↓0, including when some coordinates of yn are zero. The claim is local; no global error bound at the boundary is asserted.

Facts & Assumptions

Given: A finite conservative PDS, a source-factored representation on a neighborhood of K, yn∈K⊆[0,∞)m, h>0, and the fixed compact tube K∗⊂U from the defect clause when local accuracy is asserted.

[F1]

Finite conservative production destruction systems: Fi(y)=∑j≠i(pij(y)−dij(y)) and the pair rates satisfy pij=dji.

[F2]

Source-factored transfer rates for zero compartments: pij(y)=yjaij(y) and dij(y)=yiaji(y) with C2 factors that are nonnegative on admissible nonnegative states, including at zero coordinates.

[F3]

Zero-compatible modified Patankar Euler in rate-factor form: the output solves (I−hB(yn))yn+1=yn, where Bij=aij for i≠j and Bjj=−∑i≠jaij.

[F4]

Strict column dominance gives an entrywise nonnegative inverse: a strict column-diagonally-dominant matrix with positive diagonal and nonpositive off-diagonal entries has an entrywise nonnegative inverse.

[F5]

First-order systems, initial value problems, and solutions on intervals: an exact trajectory satisfies y′=F(y) on its interval.

[F7]

Chain sum product and composition rules for Banach derivatives and The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): products of differentiable coordinate maps obey the bounded-bilinear product rule, and composition obeys the total chain rule.

[F8]

Multivariable Taylor formula with a Lagrange remainder along a line segment: a C2 solution curve on a time interval has a first-order Taylor expansion with remainder bounded by its second derivative on that interval.

[F9]

One-step ODE methods, local defect, uniform order, and step stability: the exact-start local defect is the method output minus the exact next state.

Proof

1.1givenF2F3F4algebra

For each column j, Bjj=−∑i≠jaij≤0, Bij=aij≥0 off the diagonal, and ∑iBij=0. Therefore M:=I−hB(yn) has Mjj=1+h∑i≠jaij(yn)>0, Mij=−haij(yn)≤0 for i≠j, and Mjj−∑i≠j∣Mij∣=1. By [F4], M−1≥0; hence the unique solution yn+1=M−1yn exists and is nonnegative, including for zero coordinates in yn.

2.1F3step 1.1algebra

The column sums of M equal one, so ∑iyin=∑i(Myn+1)i=∑j(∑iMij)yjn+1=∑jyjn+1.

2.2F1F2F3algebra

The factorization [F2] gives B(y)y=F(y) for every y∈K: its i-th component is ∑j≠iaij(y)yj−yi∑j≠iaji(y)=∑j≠i(pij(y)−dij(y)). The matrix identity used in step 1.1 also gives (I−hB(y))−1=I+hB(y)+h2B(y)2(I−hB(y))−1.

3.1givenF2F5F6F7F8F9step 2.2algebra∎

The factors are C2 on U, so the coordinate products yjaij(y) and yiaji(y) have continuous partial derivatives through order two by applying the bounded-bilinear product rule [F7] twice. Applying the continuous-partials theorem [F6] to these components and their first partials shows that F~ is C2 and has continuous first total derivative on U. On the compact set [0,h0]×K of admissible nonnegative starting states, B is bounded and I−hB(yn) is invertible by step 1.1 for h>0 and equals I at h=0. Its inverse is continuous there, hence uniformly bounded for sufficiently small h. The matrix identity from step 2.2 then yields yn+1=yn+hF(yn)+O(h2) uniformly, without dividing by any coordinate of yn. On the nonnegative exact path, the PDS field equals the C2 extension F~ defined in the Statement, so [F5]–[F7] give y′=F~(y) and bounded y′′=DF~(y)F~(y) on K∗. Applying [F8] to the time curve gives the same expansion uniformly. Their difference is therefore O(h2) uniformly, which is the local-defect bound specified by [F9].

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

MPRK22(1) preserves positivity and total mass on positive inputs

Statement

For every finite conservative PDS Finite conservative production destruction systems with domain Ω, every strictly positive input yn∈Ω+, and every step size h>0, compute the Patankar Euler stage z. If z∈Ω+, the stage and output of The positive-interior MPRK22(1) step are uniquely defined, strictly positive, and conserve total mass:

z>0,yn+1>0,∑izi=∑iyin=∑iyin+1.

If z∉Ω+, the algorithm returns rate-domain-failure before its second rate evaluation and makes no output claim. These preservation properties do not use the smoothness or compact-tube assumptions needed for the separate second-order error theorem.

Facts & Assumptions

Given: A finite conservative PDS with domain Ω, yn∈Ω+ with yn>0, h>0, and its Patankar Euler stage z∈Ω+.

[F1]

Finite conservative production destruction systems: pij=dji≥0 and the PDS uses only paired internal transfers.

[F2]

The positive-interior MPRK22(1) step: the stage solves z=yn+hA(yn)z with A(yn) having off-diagonal entries pij(yn)/yjn and diagonal entries that make each column sum zero; only if z∈Ω+ does the algorithm evaluate pij(z) in the final matrix (I−hB(yn,z)), where Bij=(pij(yn)+pij(z))/(2zj) off the diagonal and each column of B sums to zero.

[F3]

Strict column dominance gives an entrywise nonnegative inverse: a matrix with positive diagonal, nonpositive off-diagonal entries, and strict column diagonal dominance is invertible with nonnegative inverse; its inverse maps a positive vector to a positive vector.

Proof

1.1F1F2F3algebra

For the stage, M(1):=I−hA(yn) has off-diagonal entries −hpij(yn)/yjn≤0 and diagonal entries 1+h∑i≠jpij(yn)/yjn>0 in column j. The sum of the absolute off-diagonal entries in that column is h∑i≠jpij(yn)/yjn, so its strict column-dominance margin is 1. By [F3], z=(M(1))−1yn>0. Also ∑iMij(1)=1 for every column, hence ∑izi=∑iyin.

2.1F2F3step 1.1algebra

Since z>0, every denominator in B(yn,z) is positive. Its off-diagonal entries are nonnegative, its diagonal entries are nonpositive, and its columns sum to zero by [F2]. Thus M(2):=I−hB(yn,z) has positive diagonal, nonpositive off-diagonal entries, and column diagonal-dominance margin 1. Applying [F3] to M(2) gives a unique yn+1=(M(2))−1yn>0.

3.1F2step 1.1step 2.1algebra∎

Every column of M(2) sums to one, so ∑iyin+1=∑i(M(2)yn+1)i=∑iyin. Together with step 1.1, this proves all stated positivity and conservation equalities.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

MPRK22(1) has a uniform second-order defect and one-step bound on positive tubes

Statement

Let F be the vector field of a finite conservative PDS Finite conservative production destruction systems on a bounded open convex set U⊂Ω∩R>0m with U‾⊂R>0m. Assume there is an open set V with U‾⊂V⊂Ω∩R>0m on which the transfer rates are multivariable C2, with derivatives through order two bounded there. Let Ψh(y) be The positive-interior MPRK22(1) step. For sufficiently small h>0, there are constants C,L,h0>0 such that:

  1. for every exact solution segment in a compact subset of U, the exact-start defect satisfies ∥Ψh(y(t))−y(t+h)∥2≤Ch3; and
  2. for all u,v∈U, ∥Ψh(u)−Ψh(v)∥2≤(1+Lh)∥u−v∥2.

The local order-two estimate requires the positive lower bound on the stage denominators and the stated smoothness. Positivity and conservation for every h>0 are separate preservation properties and are not used to claim the local error order.

Facts & Assumptions

Given: A finite conservative PDS, the stated multivariable C2 rate data on V⊂Ω∩R>0m, an exact solution segment in the tube, and a sufficiently small step size.

[F1]

Finite conservative production destruction systems: Fi=∑j(pij−dij), pij=dji≥0, and pii=dii=0.

[F2]

Modified Patankar Euler for conservative transfer systems: with σi=yi, the first stage is z=(I−hA(y))−1y, where A(y)y=F(y).

[F3]

The positive-interior MPRK22(1) step: the final matrix has off-diagonal coefficients (pij(y)+pij(z))/(2zj), zero column sums before subtracting from I, and update Ψh(y)=(I−hB(y,z))−1y.

[F4]

Strict column dominance gives an entrywise nonnegative inverse: each stage/final matrix with positive declared denominators is invertible with nonnegative inverse, and its inverse maps a strictly positive right-hand side to a strictly positive solution.

[F5]

First-order systems, initial value problems, and solutions on intervals: an exact trajectory satisfies y′=F(y).

[F6]

Ck maps and multi-index derivative notation in Euclidean space and If all partial derivatives exist on a neighbourhood and are continuous at a point, then the map is totally differentiable there with Jacobian derivative: continuous coordinate partials give total derivatives; applying the theorem to first partials also supplies the second total derivatives needed here.

[F7]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a) and Chain sum product and composition rules for Banach derivatives: compositions and bounded-bilinear products obey their total-derivative rules, including when applied to derivatives.

[F8]

Multivariable Taylor formula with a Lagrange remainder along a line segment and The Lagrange and Cauchy forms of Taylor's remainder: the rate vector and exact solution have the Taylor expansions with uniform remainders on the compact tube.

[F9]

One-step ODE methods, local defect, uniform order, and step stability: exact-start defect and one-step stability have the conventions used in this statement.

Proof

1.1givenF1F2F4F6F7algebra

Define A(y) as in [F2]. On U, the coordinate reciprocals yj−1 have continuous partials ∂k(yj−1)=−δjkyj−2 and ∂ℓ∂k(yj−1)=2δjkδℓjyj−3, as follows from the scalar reciprocal difference quotients on R∖{0}; the product rule [F7] then makes every entry of A C2 from the rate data [F6]. By the continuous-partials theorem [F6], these entries have continuous total derivatives through order two. Direct multiplication gives A(y)y=F(y). The matrix I−hA(y) is invertible for h>0 by [F4] and equals I at h=0; its determinant and cofactors are C2 finite sums of products, and its determinant is nonzero, so the adjugate formula and the scalar reciprocal calculation make its inverse C2 on the compact set of admitted (h,y). It is uniformly bounded there for small h. Since y>0, [F4] gives z=(I−hA(y))−1y>0. The identity (I−hA)−1=I+hA+h2A2(I−hA)−1 now gives z=y+hF(y)+O(h2) uniformly; in particular z−y=O(h), so after decreasing h0 we have z∈V⊂Ω uniformly for y∈U. Thus all stage denominators and the final rate evaluations are valid.

2.1F1F2F3F4F6F7step 1.1algebra

Write B=B(y,z) for the final coefficient matrix in [F3]. Its entries are C2 on the compact region of pairs produced inside V by step 1.1: the rates are C2, the stage map is C2, and each reciprocal zj−1 has the same coordinate derivative formulas as in step 1.1. Its columns sum to zero, and direct multiplication using pij=dji gives B(y,z)z=12(F(y)+F(z)). For small h, step 1.1 keeps every zj bounded away from zero, so B and its first derivatives are uniformly bounded. Also B(y,y)=A(y); the mean-value theorem on the compact tube and z−y=O(h) give B(y,z)=A(y)+O(h). The final matrix I−hB is invertible by [F4] and its inverse is uniformly bounded by the adjugate formula. Expanding its inverse yields Ψh(y)=y+hB(y,z)y+O(h2)=y+hF(y)+O(h2). Comparing with step 1.1 gives Ψh(y)−z=O(h2).

2.2givenF1F2F3F4F6F7step 1.1algebra

The stage and final maps are C1 in y near the compact positive tube: their rates are C2, their denominators stay bounded away from zero, and their matrix inverses are C2 by the adjugate formula and the reciprocal calculation in steps 1.1–2.1. For any direction v, differentiating z=y+hA(y)z gives (I−hA)Dyz[v]=v+h(DA(y)[v])z; boundedness from step 1.1 therefore gives Dyz[v]=v+O(h) uniformly for ∥v∥2≤1.

3.1F1F5F6F7F8F9step 1.1step 2.1algebra

Using Ψh−y=hBΨh, substitute z and use step 2.1 to obtain Ψh−y=hBz+hB(Ψh−z)=h2(F(y)+F(z))+O(h3). Taylor expansion of F at y, together with z−y=hF(y)+O(h2) from step 1.1, gives F(z)=F(y)+hDF(y)F(y)+O(h2). Thus Ψh(y)=y+hF(y)+h22DF(y)F(y)+O(h3). By [F5]–[F7], the exact solution has the same expansion: y′′=DF(y)F(y) and its third derivative is bounded, so the one-variable Taylor remainder applied coordinatewise is O(h3). Their difference is the asserted uniform exact-start defect in [F9].

3.2F3F4F6F7step 2.1step 2.2algebra

Differentiating Ψh=y+hB(y,z)Ψh in direction v gives DyΨh[v]=(I−hB(y,z))−1(v+h(D1B(y,z)[v]+D2B(y,z)[Dyz[v]])Ψh), with the inverse defined by step 2.1.

4.1F1F2F3F6F7step 1.1step 2.1step 2.2step 3.2algebra

Steps 1.1–2.2 give z=y+O(h), Ψh=y+O(h), B(y,z)=A(y)+O(h), and (I−hB)−1=I+hB+O(h2) uniformly. Substitution yields DyΨh[v]=v+h(A(y)v+(D1B(y,y)[v]+D2B(y,y)[v])y)+o(h). Differentiating B(y,y)y=F(y) with the chain and product rules identifies the coefficient as DF(y)v; compactness makes the remainder uniform, so DyΨh(y)=I+hDF(y)+hE(h,y) with sup⁡y∈U∥E(h,y)∥2→0.

5.1F10F11step 4.1algebra∎

Compactness bounds ∥DF(y)∥2 uniformly, and step 4.1 makes the E contribution at most h for sufficiently small h. The norm properties in [F10] then give ∥DyΨh(y)∥2≤1+Lh after decreasing h0 and increasing L. Applying [F11] on convex U proves ∥Ψh(u)−Ψh(v)∥2≤(1+Lh)∥u−v∥2.

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

Modified Patankar Euler converges globally with first-order error on a positive tube

Statement

Let T>0, N≥1, h=T/N, and tn=nh. Use sets U,V satisfying the domain and regularity hypotheses of Modified Patankar Euler has a uniform first-order defect and one-step bound on positive tubes, and let K⊂U be a compact positive tube. Let y:[0,T]→U solve the ODE of a finite conservative PDS Finite conservative production destruction systems, let y0=y(0), and obtain yn+1 by Modified Patankar Euler for conservative transfer systems with σi=(yn)i. Suppose the exact path and every numerical state lie in the common compact tube K, and h≤h0 for the local constants in that lemma. Then there is a constant CT, independent of N, such that

max⁡0≤n≤N∥yn−y(tn)∥2≤CTh.

The conclusion is conditional on the stated positive compact tube; positivity and mass conservation alone do not establish that a trajectory remains in such a tube for a prescribed interval.

Facts & Assumptions

Given: A solution of the finite PDS on [0,T], exact initial data, a fixed uniform grid, and the assumption that exact and numerical states stay in the common compact positive tube K.

[F1]

Finite conservative production destruction systems: the ODE has finite paired internal transfer rates.

[F2]

First-order systems, initial value problems, and solutions on intervals: the exact trajectory is a solution of the stated first-order IVP on its interval.

[F3]

Modified Patankar Euler for conservative transfer systems: the standard first-order step uses σi=(yn)i and solves its frozen-rate linear system.

[F4]

Modified Patankar Euler has a uniform first-order defect and one-step bound on positive tubes: on K and for h≤h0, the exact-start defect is at most Ch2 and the step map is Lipschitz with factor 1+Lh.

[F5]

Global error from uniform one-step defect and stability: on a fixed grid and a common compact tube containing the exact path and numerical states, initial error C0hp, exact-start defect Chp+1, and one-step factor 1+Lh imply a uniform global O(hp) error with the stated exponential constant.

Proof

1.1givenF1F2F3F4F5

The assumption yn∈K⊂(0,∞)m makes every standard denominator σi=(yn)i positive, so [F3] is admissible at every step. By [F4] the local defect is bounded by Ch2 and the one-step map has factor 1+Lh, with constants independent of n and N. The initial error is zero, and the tube hypothesis supplies the common-tube condition of [F5].

2.1F5step 1.1algebra∎

Apply [F5] with p=1 and C0=0. If L>0, its bound is C(exp⁡(LT)−1)h/L; if L=0, it is CTh. Both are CTh for a constant independent of N.

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passOpen item page →

Certified residuals bound mass drift and the exact-solve positivity margin

Statement

Let M∈Rm×m be the exact real matrix represented by the stored coefficients of a successfully completed Modified Patankar Euler for conservative transfer systems step with admissible positive denominators, or of a completed stage/final solve of The positive-interior MPRK22(1) step, for a finite conservative PDS. Let b≥0 be its stored right-hand side, interpreted exactly as a real vector. For either scheme, the PDS transfer identity gives 1TM=1T and strict column diagonal dominance, so M−1≥0. Let y^∈Rm be a stored candidate. Assume all entries of M, y^, and b are stored in a common operationwise format F with unit roundoff u, and compute v^=fl⁡(My^) and w^=fl⁡(v^−b) in the model of Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add, with 0<u<1, (m−1)u<1, every nonzero exact intermediate normal, zero operations exact, and successful sequential dot products and subtraction. Let W be the certified allowance from Rounded matrix products give certified linear and normal-equation residual allowances, with its norm inputs exact or certified upper bounds. Let ηw be the exact value of ∥w^∥2 or a certified upper bound for it, and set ρ:=ηw+W.

∥My^−b∥2≤ρ,∣1Ty^−1Tb∣≤m ρ.

If y∗:=M−1b is the exact solution of the stored linear system, then

∥y^−y∗∥1≤m ρ.

Consequently, the componentwise margin condition y^i≥m ρ for every i certifies y∗≥0. A residual bound alone does not certify that the computed candidate y^ is nonnegative. This certificate is relative to the stated stored matrix and right-hand side; any coefficient-assembly or right-hand-side data error relative to the intended real system must be separately bounded and added to the residual allowance.

Facts & Assumptions

Given: A finite conservative PDS matrix M from the stated Patankar systems, its stored real right-hand side b≥0, a stored candidate y^, and their common operationwise format with 0<u<1 and (m−1)u<1. Assume normal nonzero exact intermediates, exact zero operations, successful residual calculations, exact or certified upper bounds for the norm inputs used in W, and an exact or certified upper bound ηw≥∥w^∥2.

[F1]

Finite conservative production destruction systems: paired transfers satisfy pij=dji.

[F2]

Modified Patankar Euler for conservative transfer systems and The positive-interior MPRK22(1) step: every completed solve evaluates PDS rates only at states in Ω+; with positive declared denominators, its matrix has nonpositive off-diagonal entries, positive diagonal, and column sums equal to one by pij=dji.

[F3]

Strict column dominance gives an entrywise nonnegative inverse: each such solve matrix has an entrywise nonnegative inverse.

[F4]

Operationwise real and complex floating point arithmetic with rounded square roots and fused multiply-add: successful real additions, subtractions and products follow the stated no-underflow, round-to-nearest operation model.

[F5]

Rounded matrix products give certified linear and normal-equation residual allowances: for stored M,y^,b and the stated successful evaluation order, ∥w^−(My^−b)∥2≤W when its unit-roundoff and normal-intermediate hypotheses hold; the norms used in W are exact or certified upper bounds.

[F6]

Cauchy-Schwarz ∣⟨x,y⟩∣≤∥x∥2∥y∥2 with its equality case, the triangle inequality for ∥⋅∥2, the parallelogram law and polarisation: ∣⟨u,v⟩∣≤∥u∥2∥v∥2, in particular ∥r∥1≤m ∥r∥2 and ∣1Tr∣≤m ∥r∥2.

Proof

1.1F1F2F3algebra

For modified Patankar Euler, column j of M has off-diagonal entries −hpij(yn)/σj and diagonal 1+h∑k≠jdjk(yn)/σj; for an MPRK final matrix the same form uses averaged rates and denominators zj, and its stage is the first form with σj=yjn>0. By [F1]–[F2], each such matrix has column sum one and strict column-dominance margin one, so [F3] gives M−1≥0.

1.2F4F5algebra

Put r:=My^−b. By [F5] and the triangle inequality, ∥r∥2≤∥w^∥2+∥r−w^∥2≤∥w^∥2+W≤ηw+W=ρ.

1.3F2F3algebra

Multiplying 1TM=1T on the right by M−1 gives 1TM−1=1T.

2.1F2F6step 1.2algebra

Since 1TM=1T, 1Ty^−1Tb=1T(My^−b)=1Tr; [F6] and step 1.2 give ∣1Ty^−1Tb∣≤m ρ.

2.2F3F6step 1.2step 1.3algebra

With y∗=M−1b, we have y^−y∗=M−1r and, since M−1≥0 and its columns sum to one, ∥M−1r∥1=∑i∣∑j(M−1)ijrj∣≤∑j(∑i(M−1)ij)∣rj∣=∥r∥1≤m ρ by [F6] and step 1.2.

3.1step 2.2algebra∎

For each coordinate, yi∗≥y^i−∣y^i−yi∗∣≥y^i−∥y^−y∗∥1; step 2.2 therefore gives yi∗≥0 whenever y^i≥m ρ. A residual bound alone places no sign condition on y^, so it does not certify that the computed candidate is nonnegative.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passOpen item page →

MPRK22(1) has global second-order error on a compact positive tube

Statement

Let T>0, N≥1, h=T/N, and tn=nh. Use sets U,V satisfying the domain and regularity hypotheses of MPRK22(1) has a uniform second-order defect and one-step bound on positive tubes, and let K⊂U be a compact positive tube. Let y:[0,T]→U solve the finite conservative PDS Finite conservative production destruction systems, set y0=y(0), and compute each step with The positive-interior MPRK22(1) step. Suppose the exact solution, all numerical states, and every MPRK22(1) stage remain in the common compact tube K, and h≤h0 for the local constants in that lemma. Then a constant CT, independent of N, satisfies

max⁡0≤n≤N∥yn−y(tn)∥2≤CTh2.

This is a fixed-time, compact-tube convergence result; it does not assert a uniform error constant as the tube approaches a zero denominator or as stiffness parameters vary.

Facts & Assumptions

Given: A solution of the finite PDS on [0,T], exact initial data, the uniform grid, and the common-tube and step-size hypotheses above.

[F1]

Finite conservative production destruction systems: the ODE has the paired internal transfer form used by the methods.

[F2]

First-order systems, initial value problems, and solutions on intervals: the exact trajectory solves the stated first-order IVP.

[F3]

The positive-interior MPRK22(1) step: every step uses the Patankar Euler stage followed by the averaged-rate linear solve.

[F4]

MPRK22(1) preserves positivity and total mass on positive inputs: positive inputs whose stage lies in Ω+ give uniquely defined positive stages and outputs for every h>0.

[F5]

MPRK22(1) has a uniform second-order defect and one-step bound on positive tubes: on the stated smooth positive tube and for h≤h0, the exact-start defect is bounded by Ch3 and the step map has Lipschitz factor 1+Lh.

[F6]

Global error from uniform one-step defect and stability: for a fixed uniform grid, exact initial data, a common compact tube containing all states and stages, a uniform exact-start defect Chp+1, and one-step factor 1+Lh, the global error is bounded by its stated exponential recurrence estimate of order hp.

Proof

1.1givenF1F2F3F4F5F6

Since K⊂U⊂Ω∩(0,∞)m and all iterates and stages remain in K, every rate evaluation in [F3], including the evaluation at each stage, is in Ω+; [F4] gives exact solvability and positivity independently of the order estimate. By [F5], the exact-start defect is uniformly at most Ch3 and the one-step stability factor is 1+Lh. The exact initial error is zero, and the common-tube assumption is exactly the remaining tube hypothesis of [F6].

2.1F5F6step 1.1algebra∎

Apply [F6] with p=2 and C0=0. Its L>0 case gives C(exp⁡(LT)−1)h2/L and its L=0 case gives CTh2. In either case the coefficient is independent of N, proving the asserted global O(h2) error.

5 · Examples, counterexamples and false statements

None yet.

Sources