Preprint
Article

This version is not peer-reviewed.

Exact Sequential Lifting over Cyclic Groups: Circular Envelopes of the Value Function

Submitted:

19 November 2026

Posted:

20 November 2026

You are already at the latest version

Abstract
Exact sequential lifting for a bounded modular knapsack reads each coefficient from the value function on the cyclic group Zq. The function is stored as a circular envelope, a list of maximal runs of one forward symbol, using two symbols on edges that meet minus infinity. The envelope determines the function. A zero-one update multiplies the number of runs by at most six. The ratio three is attained, and the proof of the factor six does not reach three, so a universal constant for that bound lies between 3 and 6. For the weights 2i−1, the prescribed profits 3i−1 give length 2k when q=2k and length 2k+1 when q>2k. On a complete sequence with equal efficiency, every prefix has length at most three, and the arithmetic is then linear in the number of variables. Shifting the first profit by a sufficiently small nonzero amount returns the length to 2k or 2k+1. For finite bounds, the envelope algorithm and the residue-table recurrence return the same coefficients.
Keywords: 
;  ;  ;  ;  

1. Introduction

Exact sequential lifting for a bounded modular knapsack builds a valid inequality one coefficient at a time. Fix an integer modulus q ≥ 2 and integer weights. A feasible solution is a bounded integer vector whose weighted sum lies in a prescribed residue class. Given a seed inequality that is valid after some variables have been fixed, the next coefficient is the largest number that keeps the inequality valid for the chosen order [1,2,3]. That number is read from the value function φ on the cyclic group Z q . The value φ ( r ) is the maximum profit attainable in residue r, and equals − ∞ when the residue is unreachable. For a new variable of weight a and bound u, the exact up-lifting coefficient is the minimum of ( β − φ ( b − t a ) ) / t over those multiplicities t ∈ { 1 , … , u } that reach the target class.
Computing the coefficient requires φ , and fixing it replaces φ by a max-plus convolution against a spike,
φ + ( r ) = max φ ( r ) , φ ( r − a ) + α .
A table of q values performs the convolution by a pass over the group, so a sequence of n variables performs on the order of n q arithmetic operations. Along the cycle the forward symbol of φ is constant on contiguous blocks of edges: a real slope between two finite values, and one of two marks on an edge that meets − ∞ . The blocks determine every value of φ . An exact update can therefore be carried out from the blocks. Its arithmetic is linear in the number of blocks.
The list of those blocks is the circular envelope, and m ( φ ) denotes its length. The envelope determines φ , so an update can be carried out from the runs. A zero-one update multiplies the number of runs by at most six. The ratio three is attained, and the proof of the factor six does not reach three, so a universal constant for that bound lies between 3 and 6 (Theorem 2, Proposition 7). Under equal efficiency the proved factor is 4 h . The value 3 h is attained, and the proof does not reach 3 h , so a universal constant for this bound lies between 3 and 4 (Theorem 5, Proposition 9). Storing the envelope and reading the coefficients from it agrees with the residue table. The operation count is O ∑ k m ( φ k ) , hence O ( n q ) (Theorem 7).
For the weights a i = 2 i − 1 , the length depends on the profits. The profits α i = 3 i − 1 are written into the hypothesis of that theorem, and they give length 2 k when q = 2 k and length 2 k + 1 when q > 2 k (Theorem 4). If instead α i is proportional to a i on a complete sequence, every prefix has length at most three (Corollary 2). Shifting the first profit by any sufficiently small ε ≠ 0 returns the length to 2 k or 2 k + 1 (Theorem 6). Example 3 writes the three vectors on Z 8 . On the complete equal-efficiency sequences the operation count is linear in the number of variables. Section 7 counts up-lifting orbits on two finite sets. For these weights every orbit has some empty lifting set, and the convention that an empty set contributes the coefficient 0 still produces length 2 k or 2 k + 1 .

1.1. Related Work

The group dynamic program scans the group once for each variable and runs in time proportional to the number of variables times the group order [12,13]. For the prescribed profits 3 i − 1 , Theorem 4 produces envelope length 2 k when q = 2 k , so a pass over those runs has the same worst-case order. Those profits are written into the hypothesis. They are not the coefficients produced by the up-lifting rule. The master cyclic group polyhedra record generators or facets of a group polyhedron, and a universal Gröbner basis records a test set of the corner polyhedron [5,6,7]. Neither list is the value function read by a sequential coefficient. Sequence-independent lifting substitutes a superadditive under-estimator for that coefficient [8,9,10]. The value function of the congruence need not be subadditive: in Example 4, φ 3 ( 2 ) > φ 3 ( 1 ) + φ 3 ( 1 ) . In a prescribed order the coefficient is the minimum in Proposition 2. On the knapsack cover, which is a different feasible set, Zemel computes one sequentially lifted facet in a prescribed order in O ( n s ) time [11].

2. The Value Function

2.1. The Feasible Set and the Value Function

Let q ≥ 2 be an integer and write Z q = { 0 , 1 , … , q − 1 } with addition modulo q. For n ≥ 1 , weights a i ∈ Z , profits α i ∈ R , and bounds u i ∈ Z + ∪ { 0 } , define
X q = x ∈ Z n : ∑ i = 1 n a i x i ≡ b ( mod q ) , 0 ≤ x i ≤ u i ,
where b ∈ Z q is the target residue. Empty bounds are allowed: if u i = 0 , the variable x i is absent. The weights and the target are integers. If the data of an application are rational, they are cleared before any of the statements below is applied.
Proposition 1. 
Suppose a i ∈ Q , b ∈ Q , and D is a positive integer such that D a i and D b are integers. A vector x satisfies ∑ i a i x i ≡ b ( mod q ) if and only if
∑ i ( D a i ) x i ≡ D b ( mod D q ) .
The cleared instance has integer weights, integer target, and modulus D q . Every theorem in this paper applies to that instance.
Sequential lifting maintains the profit value function of a prefix of the variables. Proposition 2 computes the next coefficient from that function and from β .
Definition 1. 
For k ∈ { 0 , 1 , … , n } and r ∈ Z q ,
φ k ( r ) = max ∑ i = 1 k α i x i : ∑ i = 1 k a i x i ≡ r ( mod q ) , 0 ≤ x i ≤ u i ,
with the convention that the maximum over the empty set is − ∞ . The maximum over the empty prefix is φ 0 ( 0 ) = 0 and φ 0 ( r ) = − ∞ for r ≠ 0 .
Thus φ k ( r ) > − ∞ if and only if the residue r is reachable by the first k variables. When every u i is finite and every profit is finite, φ k ( r ) is either − ∞ or a finite maximum, because only finitely many vectors x are admissible. The following one-step decomposition is the modular form of the knapsack recurrence.
Lemma 1. 
Fix k ≥ 1 and write φ = φ k − 1 , a = a k , α = α k , and u = u k . If u is finite, then for every r ∈ Z q ,
φ k ( r ) = max 0 ≤ t ≤ u φ ( r − t a ) + t α ,
where ( − ∞ ) + t α = − ∞ . In particular, for u = 1 ,
φ k ( r ) = max φ ( r ) , φ ( r − a ) + α .
Proof. 
Every feasible vector for the first k variables uses the last variable at some multiplicity t ∈ { 0 , … , u } . The first k − 1 variables must then realise the residue r − t a , and the profit splits as a profit of those variables plus t α . Taking the best t gives (3). The case u = 1 is the choice between t = 0 and t = 1 .    □
Equation (4) is the max-plus convolution of φ with a spike of height α supported at the residue a. Equation (3) is the convolution with a bounded ray of the same slope.

2.2. Exact Sequential Coefficients

Suppose the first k variables have already received coefficients α 1 , … , α k , and φ k is the corresponding value function. Let β ∈ R satisfy β ≥ φ k ( b ) , so that
∑ i = 1 k α i x i ≤ β
is valid for every feasible vector of those variables whose weight lies in the class b. A further variable, of weight a and bound u ∈ Z + , is introduced from the fixed value 0. Its exact up-lifting coefficient is the largest real number α such that
∑ i = 1 k α i x i + α t ≤ β
holds for every t ∈ { 0 , … , u } and every completion of t to a vector of the first k variables with weight congruent to b − t a .
Proposition 2. 
The exact up-lifting coefficient is
α ★ = min t ∈ T β − φ k ( b − t a ) t ,
where T = { t ∈ { 1 , … , u } : φ k ( b − t a ) > − ∞ } . If T is empty, no positive multiplicity is feasible and the coefficient is unconstrained. If u = 1 and 1 ∈ T , then α ★ = β − φ k ( b − a ) . After α ★ has been selected, the value function of the enlarged prefix is given by Lemma 1.
Proof. 
Fix t ∈ T and a vector of the first k variables attaining φ k ( b − t a ) . Adjoining multiplicity t produces a feasible vector for the target b, and (6) at this vector reads α t ≤ β − φ k ( b − t a ) . Hence every valid coefficient satisfies α ≤ α ★ .
Conversely, take 0 ≤ t ≤ u . If the residue b − t a is unreachable, there is no constraint at this t. If it is reachable and t = 0 , the inequality reduces to φ k ( b ) ≤ β . If t ∈ T , the definition of α ★ gives α ★ t ≤ β − φ k ( b − t a ) , and every non-maximising vector at that residue has an even smaller profit. Thus α ★ is valid, and it is the largest valid coefficient.    □
Down-lifting, in which the new variable enters from its upper bound rather than from zero, reduces to the same query after a complement. The binary case is enough to fix the normalisation.
Proposition 3. 
Suppose u k = 1 , the variable x k is fixed at 1 in the seed, and φ is the value function of the remaining free variables. Let the seed ∑ α i x i ≤ β be valid for the congruence with target b − a k . The smallest coefficient γ for which
∑ i α i x i + γ x k ≤ β + γ
is valid for x k ∈ { 0 , 1 } and target b is γ = φ ( b ) − β when b is reachable, and is unconstrained otherwise.
Proof. 
Substituting x k = 1 recovers the seed inequality and the seed congruence, for every γ . Substituting x k = 0 requires φ ( b ) ≤ β + γ . The smallest admissible γ is therefore φ ( b ) − β .    □
The single-step formulae assemble into a valid inequality for the whole bounded set. The right-hand side is never changed by up-lifting from zero: each new coefficient is chosen against the same β .
Theorem 1. 
Assume a i ∈ Z and 0 ≤ u i < ∞ for every i, and fix β ≥ φ 0 ( b ) . Define coefficients and value functions inductively. Set φ ( 0 ) = φ 0 . Given φ ( k − 1 ) , let
T k = t ∈ { 1 , … , u k } : φ ( k − 1 ) ( b − t a k ) > − ∞ .
If T k is nonempty, set α k by (7) with φ k replaced by φ ( k − 1 ) . If T k is empty, choose an arbitrary finite α k . Let φ ( k ) be the bounded merge (3) of φ ( k − 1 ) with ( a k , α k , u k ) . Then, for every k ∈ { 0 , … , n } ,
∑ i = 1 k α i x i ≤ β
is valid for
X ( k ) = x ∈ Z k : ∑ i = 1 k a i x i ≡ b ( mod q ) , 0 ≤ x i ≤ u i .
If T k is nonempty, α k is the largest coefficient for which (8) is valid for X ( k ) once α 1 , … , α k − 1 have been fixed. If T k is empty, every real coefficient has that property, and no point of X ( k ) has x k ≥ 1 . In particular, ∑ i = 1 n α i x i ≤ β is valid for X q = X ( n ) .
Proof. 
For k = 0 the sum is empty. If b ≡ 0 ( mod q ) , the empty vector is feasible and the inequality is 0 ≤ β , which holds because β ≥ φ 0 ( 0 ) = 0 . If b ¬ ≡ 0 , then X ( 0 ) is empty and the inequality is vacuously valid.
Suppose (8) is valid for X ( k − 1 ) . Consider a point of X ( k ) with last coordinate t. The first k − 1 coordinates form a vector of weight congruent to b − t a k , so their profit is at most φ ( k − 1 ) ( b − t a k ) . If t = 0 , the point lies in X ( k − 1 ) and the inductive hypothesis gives the inequality for every value of α k . If t ≥ 1 and b − t a k is unreachable, no such point exists. If t ∈ T k , Proposition 2 supplies α k t ≤ β − φ ( k − 1 ) ( b − t a k ) , and the profit of the prefix plus α k t is at most β . This proves validity at step k.
If T k is nonempty, Proposition 2 also states that any larger coefficient admits a violating point of X ( k ) . If T k is empty, the same argument shows that every point of X ( k ) has x k = 0 , so the coefficient of x k is not constrained.    □
Theorem 1 is an up-lifting theorem: every variable enters from the fixed value 0, and β is constant. Proposition 3 is the binary down-lifting step and is not required for the induction. The inequality is claimed only for the bounds u i that were used to compute it. Section 2.3 records that the same numbers need not be valid after a bound is deleted.
Example 1. 
Take q = 8 , target b = 4 , and β = 4 . Up-lift, in order, a variable of weight 1 and bound 4, a variable of weight 2 and bound 1, and a variable of weight 4 and bound 1. The empty seed has φ ( 0 ) ( 0 ) = 0 and is − ∞ elsewhere, and β ≥ φ ( 0 ) ( 4 ) holds vacuously.
For the first variable, T 1 = { 4 } because 4 − 4 · 1 ≡ 0 and φ ( 0 ) ( 0 ) = 0 . The formula returns α 1 = ( 4 − 0 ) / 4 = 1 . Four unit merges, each of weight 1 and profit 1, expand the bound into units and produce
φ ( 1 ) ( r ) = r for 0 ≤ r ≤ 4 , φ ( 1 ) ( r ) = − ∞ for r ∈ { 5 , 6 , 7 } .
The finite edges have slope 1, the edge leaving residue 4 has symbol D , and the edge arriving at residue 0 has symbol U , so m ( φ ( 1 ) ) = 3 . These four merges are not the three formal parts 1 , 2 , 1 of Lemma 3. The intermediate inequality is x 1 ≤ 4 . On X ( 1 ) the only feasible point is x 1 = 4 , where equality holds. Replacing α 1 by any larger number violates that point.
For the second variable, 4 − 2 ≡ 2 ( mod 8 ) and φ ( 1 ) ( 2 ) = 2 , so T 2 = { 1 } and α 2 = ( 4 − 2 ) / 1 = 2 . The merge yields φ ( 2 ) ( r ) = r for 0 ≤ r ≤ 6 , and φ ( 2 ) ( 7 ) = − ∞ . The same three symbols appear, so m ( φ ( 2 ) ) = 3 . The point ( x 1 , x 2 ) = ( 2 , 1 ) has weight 4 and profit 2 + 2 = 4 . Any α 2 > 2 violates it.
For the third variable, 4 − 4 ≡ 0 and φ ( 2 ) ( 0 ) = 0 , so α 3 = 4 . The merged table is
r 0 1 2 3 4 5 6 7 φ ( 3 ) ( r ) 8 9 10 3 4 5 6 7
with forward differences ( 1 , 1 , − 7 , 1 , 1 , 1 , 1 , 1 ) . The seven edges of slope 1 form one run around the cliff edge of slope − 7 , so m ( φ ( 3 ) ) = 2 . The envelope may be stored, in increasing order of the breakpoints, as ( 2 , 10 , − 7 ) and ( 3 , 3 , 1 ) . Theorem 1 gives the inequality
x 1 + 2 x 2 + 4 x 3 ≤ 4 ,
valid for 0 ≤ x 1 ≤ 4 , 0 ≤ x 2 , x 3 ≤ 1 , and x 1 + 2 x 2 + 4 x 3 ≡ 4 ( mod 8 ) . The point ( 0 , 0 , 1 ) has weight 4 and, under α 3 = 4 , profit 4. The coefficient 5 produces profit 5 at the same point, so α 3 is exact. The same tables are obtained by writing the recurrence (3) on an array of length 8.
Propositions 2 and 3, together with Theorem 1, are the lifting statements used later. Each coefficient query reads finitely many values of φ . Correctness of a representation of φ does not depend on that representation being short.

2.3. Unbounded Multiplicity

The recurrence (3) uses finiteness of u. If a variable may be taken arbitrarily often, adding a full set of generators returns to the same residue and changes the profit by a fixed amount.
Proposition 4. 
Suppose a single variable of weight a, profit α > 0 , and bound u = + ∞ is adjoined to a value function φ ¬ ≡ − ∞ . Let g = gcd ( a , q ) and T = q / g . Then T a ≡ 0 ( mod q ) . On every residue reachable from the support of φ by a multiple of a, the updated value is + ∞ . That support is the set of residues at which φ is finite.
Proof. 
The relation T a = a q / g is an integer multiple of q. If a vector attains a finite profit at residue r, then adjoining T further copies attains the profit plus T α at the same residue. Iterating the adjunction makes the profit arbitrarily large.    □
An infinite bound and a positive profit therefore leave no finite envelope. On the line, an unbounded item of positive weight moves the capacity forward and the recursion terminates at the capacity limit. On the cycle, the same item adds a positive constant without changing the residue. All later theorems assume finite bounds. A finite bound is the maximum in (3) over t ∈ { 0 , … , u } . If the bound is infinite and the profit is nonpositive, the multiplicities t and t + T meet the same predecessor and the second profit is at most the first, so the update coincides with the finite bound T − 1 .
Proposition 5. 
Let ∑ i = 1 n α i x i ≤ β be valid for X q , and suppose X q is nonempty and α j > 0 for some index j. Let T = q / gcd ( a j , q ) . If the bound u j is replaced by + ∞ , then from any feasible x the points x + ℓ T e j , ℓ = 1 , 2 , … , remain feasible and the left-hand side tends to + ∞ . The inequality is not valid on this relaxation. In particular it is not valid for the corresponding Gomory group relaxation, in which that variable is a nonnegative integer without an upper bound [4].
Proof. 
Adding T copies of variable j changes the weight by T a j , an integer multiple of q, and adds T α j > 0 to the left-hand side. The congruence is preserved and the original bounds on the other variables are unchanged.    □

3. Circular Envelopes

Let R ¯ = R ∪ { − ∞ } . For φ : Z q → R ¯ and t ∈ Z q , define the forward symbol
d φ ( t ) = φ ( t + 1 ) − φ ( t ) , if φ ( t ) and φ ( t + 1 ) are finite , U , if φ ( t ) = − ∞ and φ ( t + 1 ) is finite , D , otherwise .
The third line covers an edge from a finite value to − ∞ and an edge on which both endpoints are − ∞ . Those two geometric situations share the symbol D ; the symbol U is reserved for the edge that re-enters a finite value. If φ is not identically − ∞ , every D -run starts at a finite value, so the return from − ∞ is already recorded by U . A D -run may contain both an edge from a finite value to − ∞ and later edges on which both endpoints are − ∞ . For q ≥ 3 the seed is finite only at residue 0: those edges form one D -run, the edge returning to 0 is U , and m ( φ 0 ) = 2 . Naming the two kinds of edge separately would make this length 3. A run is a maximal contiguous block of edges on the cycle Z q that share one forward symbol. The envelope length  m ( φ ) is the number of runs. A function that is finite at every residue and has constant slope has length 1. The constant function − ∞ has length 1, with symbol D . Always 1 ≤ m ( φ ) ≤ q , because there are q edges.
A run with symbol U has length one. Indeed, the right endpoint of a U edge is finite, so the next edge is either numeric or D . Consequently, if φ is not identically − ∞ , every D -run starts at a finite residue: the preceding edge is numeric or U , and both of those end at a finite value.
Definition 2. 
Acircular envelopeof φ is a list
C = ( t j , v j , s j ) j = 1 m , m = m ( φ ) ,
in which the breakpoints 0 ≤ t 1 < t 2 < … < t m ≤ q − 1 are the starting residues of the m runs, v j = φ ( t j ) , and s j = d φ ( t j ) . Indices are read modulo m, and residues modulo q. The run of index j occupies the edges from t j up to, but not including, t j + 1 .
Proposition 6. 
Every function φ : Z q → R ¯ has a unique circular envelope, and the envelope determines φ. If r lies in the run starting at t j and s j ∈ R , then
φ ( r ) = v j + s j · ( r − t j ) mod q .
If s j = D and φ is not identically − ∞ , then v j is finite, φ ( t j ) = v j , and φ equals − ∞ at every later residue of the run. If s j = U , then v j = − ∞ and the unique later residue of the run is the next breakpoint, whose value is the next record v j + 1 . If φ is identically − ∞ , the envelope is the single record ( 0 , − ∞ , D ) . Given the envelope, the value φ ( r ) can be computed by binary search in O ( log m ( φ ) ) arithmetic operations.
Proof. 
The forward symbols partition the cycle into m ( φ ) maximal runs, so the breakpoint list is unique. On a run with symbol s ∈ R , both endpoints of every edge are finite and consecutive values differ by s, which is (13). On a D -run of a function that is not identically − ∞ , the starting residue is finite, as recorded before the definition, and every edge of the run has right endpoint − ∞ . On a U -run the starting residue is − ∞ and the run is a single edge, so the value at its right endpoint is the next record. The binary search locates the unique run containing r.    □
Proposition 6 says that the envelope represents φ , whether or not m ( φ ) is small compared with q. The records are the changes of forward symbol.
One symbol for every edge that meets − ∞ is not enough. On Z 4 , the function ( 0 , − ∞ , 2 , − ∞ ) has forward symbols ( D , U , D , U ) and length 4. The two finite values sit at the starts of the two D -runs and are recovered from the envelope. If D and U were given the same name, every edge would carry that name, the length would be 1, and the list would no longer determine the function.
Example 2. 
Let q > 5 , φ ( r ) = r for 0 ≤ r ≤ 4 , and φ ( r ) = − ∞ otherwise. The edges through { 0 , 1 , 2 , 3 , 4 } have symbol 1, the edges from 4 up to q − 1 have symbol D , and the edge from q − 1 to 0 has symbol U . Hence m ( φ ) = 3 . The envelope may be stored as
( 0 , 0 , 1 ) , ( 4 , 4 , D ) , ( q − 1 , − ∞ , U ) .

4. One Update

4.1. The Factor Six

Fix φ : Z q → R ¯ , a residue a ∈ Z q , and a profit α ∈ R . The zero-one merge is the function
φ + ( r ) = max φ ( r ) , φ ( r − a ) + α ,
again with ( − ∞ ) + α = − ∞ . Write ψ ( r ) = φ ( r − a ) + α . Translation by a permutes edges and preserves forward symbols, so m ( ψ ) = m ( φ ) .
Theorem 2. 
The zero-one merge satisfies
m ( φ + ) ≤ 6 m ( φ ) .
Proof. 
Let m = m ( φ ) . A residue is a breakpoint of a function if the two edges that meet there carry different forward symbols. If m = 1 , the breakpoint set is empty and φ has a single forward symbol, hence so does ψ . If that symbol is a real slope s, then ψ has slope s as well, the difference φ − ψ is constant, and φ + has slope s. If the symbol is D , both functions are identically − ∞ and so is φ + . In both sub-cases m ( φ + ) = 1 .
Now assume m ≥ 2 , and let B be the union of the breakpoint sets of φ and of ψ . Each set has m elements, so | B | ≤ 2 m . Cut the cycle at B. This produces ℓ ≤ 2 m atomic arcs, on each of which both φ and ψ have constant forward symbols.
Consider one atomic arc, with L ≥ 1 edges and a local coordinate j = 0 , … , L along its residues. Suppose one symbol, say that of ψ , is D or U . A U -run has length one, so an arc carrying U is a single edge and contributes one output symbol. A constant D symbol means that ψ is finite at the left endpoint of the arc and − ∞ at every later vertex, or else − ∞ at every vertex of the arc. In the second sub-case φ + agrees with φ on the arc and therefore has one symbol. In the first, φ + ( 0 ) = max { φ ( 0 ) , ψ ( 0 ) } and φ + agrees with φ at every positive local index, so the first edge may carry a hybrid slope and every later edge carries the symbol of φ . The arc contributes at most two runs. The symmetric argument applies when the symbol of φ is D or U . If both symbols are D , the maximum is finite only at the left endpoint, if there, and − ∞ afterwards, which is a single D -run.
If both symbols s , s ′ ∈ R are finite, the difference
δ j = φ ( j ) − ψ ( j ) = δ 0 + j ( s − s ′ )
is an arithmetic progression. If s = s ′ , one function lies above the other throughout the arc, and φ + has the common slope on every edge. If s ≠ s ′ , there is at most one index at which δ j changes sign. The edges before the sign change all carry the slope of the first winner, the edges after it all carry the slope of the second winner, and the single edge on which the winner changes carries the hybrid slope
ψ ( j ★ + 1 ) − φ ( j ★ ) = s ′ − δ j ★ ,
which need not equal s or s ′ . The arc therefore contributes at most three runs.
Summing over the arcs gives at most 3 ℓ ≤ 6 m runs. Gluing adjacent runs that happen to share a symbol does not increase the count. The two runs that meet across the global cut are subject to the same gluing. Hence m ( φ + ) ≤ 6 m .    □
The factor six is the product of the two estimates in the proof: at most 2 m atomic arcs, and at most three runs on an arc. The argument does not show that the two estimates are attained on the same instance, so the factor has not been tightened to the ratio three. No universal constant strictly smaller than 3 replaces it.
Proposition 7. 
For every integer N ≥ 1 there exist a modulus, a function φ, a residue a, and a profit α such that
m ( φ ) = 2 N and m ( φ + ) = 6 N = 3 m ( φ ) .
Consequently every universal upper bound of the form m ( φ + ) ≤ C m ( φ ) has C ≥ 3 , while Theorem 2 gives C ≤ 6 .
Proof. 
Take q = 6 N and define φ by repeating the block of values ( 0 , 1 , 2 , 3 , 2 , 1 ) . The block sums of forward differences are zero, so the function closes on the cycle. Its forward differences are the repetition of ( 1 , 1 , 1 , − 1 , − 1 , − 1 ) . Each triple is one run, adjacent triples have different symbols, and there are 2 N triples, so m ( φ ) = 2 N .
Take a = 3 and α = 0 . On each block the translate by 3 is ( 3 , 2 , 1 , 0 , 1 , 2 ) , and the pointwise maximum with ( 0 , 1 , 2 , 3 , 2 , 1 ) is ( 3 , 2 , 2 , 3 , 2 , 2 ) . The forward differences of this block, including the edge into the next copy, are ( − 1 , 0 , 1 , − 1 , 0 , 1 ) . Consecutive symbols differ, and the symbol 1 at the end of a block differs from the symbol − 1 at the start of the next. Hence every edge is its own run, and m ( φ + ) = 6 N .    □
For N = 1 the input is φ = ( 0 , 1 , 2 , 3 , 2 , 1 ) on Z 6 , the output is ( 3 , 2 , 2 , 3 , 2 , 2 ) , and the lengths are 2 and 6. Both functions are finite at every residue, so the distinction between D and U is not used. The same block shows that no theorem of the form m ( φ + ) ≤ 2 m ( φ ) , quantified over every function Z q → R ¯ , can hold. Theorem 4 is a different statement: it forces exponential growth along a sequence of merges with prescribed profits, whereas Proposition 7 concerns a single merge.
Theorem 3. 
Given a circular envelope of φ, an envelope of φ + can be built in O ( m ( φ ) ) arithmetic operations and comparisons. The output represents φ + exactly.
Proof. 
Build the breakpoint set B of the proof of Theorem 2 from the two envelopes. Sorting is unnecessary: the two breakpoint lists are already ordered around the cycle, and merging two ordered circular lists takes linear time. On each atomic arc the sign change of δ j , if any, is given by an explicit division, as in (16). Emit at most three run records for the arc. A final linear scan merges adjacent records with equal symbols, including the pair that straddles residue 0. The resulting list satisfies Definition 2 for φ + .    □
The scan never materialises the q residues. Its cost depends on the envelope length alone.
Two degeneracies follow at once from (14). Both occur for modular data.
Lemma 2. 
If a ≡ 0 ( mod q ) and α > 0 , then φ + ( r ) = φ ( r ) + α whenever φ ( r ) is finite, and φ + ( r ) = − ∞ otherwise, so m ( φ + ) = m ( φ ) . If a ≡ 0 ( mod q ) and α ≤ 0 , then φ + = φ .

4.2. One Symbol

The two symbols are what keep the factor finite on functions that take the value − ∞ . Call an edge void when at least one endpoint is − ∞ . Write m 1 ( φ ) for the number of runs in the encoding that assigns every void edge one common symbol and keeps the ordinary slope on every finite edge.
Proposition 8. 
No constant C satisfies m 1 ( φ + ) ≤ C m 1 ( φ ) for every modulus, every φ, and every zero-one merge.
Proof. 
Fix an integer k ≥ 2 and set q = 2 k + 4 . Take zero-one data a i = α i = 2 i for i = 1 , … , k , and let φ be the value function obtained from the seed that equals 0 at residue 0 and − ∞ elsewhere. Every weight is even, so φ equals − ∞ at every odd residue. The subset sums are { 0 , 2 , … , k ( k + 1 ) } , because { 1 , … , k } is complete and each sum is doubled. The largest sum is at least q − 2 , so every even residue is attained. Every edge is void, and m 1 ( φ ) = 1 . For an even residue s,
φ ( s ) = s + q k ( k + 1 ) − s q ,
and therefore φ ( s + 2 ) − φ ( s ) ∈ { 2 , 2 − q } . The difference equals 4 for no even s.
Let φ + be the zero-one merge of weight 1 and profit 2. At an even residue r, the predecessor is odd, so φ + ( r ) = φ ( r ) . At an odd residue r, φ ( r ) = − ∞ and the predecessor is even, so φ + ( r ) = φ ( r − 1 ) + 2 . Thus φ + is finite at every residue, and on a finite function m 1 agrees with m. An edge leaving an even residue has forward difference 2. An edge leaving an odd residue r has forward difference φ ( r + 1 ) − φ ( r − 1 ) − 2 , which equals 0 or − q . Neither equals 2, so consecutive symbols differ and m 1 ( φ + ) = q = 2 k + 4 . The ratio equals 2 k + 4 . Since k is arbitrary, no constant C works for every instance.    □
The smallest modulus in this family is q = 8 , with weights 2 , 4 . Its value function is ( 0 , − ∞ , 2 , − ∞ , 4 , − ∞ , 6 , − ∞ ) , and the merge is ( 0 , 2 , 2 , 4 , 4 , 6 , 6 , 8 ) . A smaller witness uses one weight: on Z 4 , weight 2 and profit 2 give ( 0 , − ∞ , 2 , − ∞ ) , of one-symbol length 1, and the same merge gives ( 0 , 2 , 2 , 4 ) , of length 4.

4.3. Finite Bounds

A variable with finite bound u ≥ 1 is introduced by a binary decomposition, so that Lemma 1 becomes a short sequence of zero-one merges.
Lemma 3. 
Let p = ⌊ log 2 u ⌋ . The formal parts are the p powers 2 0 , 2 1 , … , 2 p − 1 , of which there are none when p = 0 , together with the extra part μ ★ = u − ( 2 p − 1 ) . The extra part may repeat a power of two. For u = 4 one has p = 2 and μ ★ = 1 , so the multiset is { 1 , 2 , 1 } . There are exactly 1 + ⌊ log 2 u ⌋ formal parts. Every integer t ∈ { 0 , … , u } is the sum of a submultiset of these formal parts. Consequently, the bounded update (3) is the composition of one zero-one merge for each formal part, using weight μ a and profit μ α .
Proof. 
Since u ≥ 2 p , the extra part satisfies 1 ≤ μ ★ = u − 2 p + 1 ≤ 2 p . Together with the p powers, of which there are none when p = 0 , this is p + 1 parts. The powers represent every integer in { 0 , … , 2 p − 1 } : the empty sum represents 0 when p = 0 . For 0 ≤ t < 2 p , use that representation of t. For 2 p ≤ t ≤ u , the integer t − μ ★ lies in { 0 , … , 2 p − 1 } , because
2 p − μ ★ ≥ 0 and u − μ ★ = 2 p − 1 .
Adding the part of multiplicity μ ★ represents t.
Each formal part is a zero-one item, and two parts with the same multiplicity are distinct items. A submultiset whose multiplicities sum to t contributes profit t α and weight t a , which is one of the candidates in (3). Every candidate arises from such a submultiset. The pointwise maximum over submultisets is therefore the right-hand side of (3). Max-plus convolution of spikes is associative and commutative, so the order of the parts does not affect the final function.    □
Corollary 1. 
Let n ( 0 ) = 0 and, for every integer u ≥ 1 , let n ( u ) = 1 + ⌊ log 2 u ⌋ . Starting from φ 0 , after k variables with finite bounds the envelope length satisfies
m ( φ k ) ≤ min q , m ( φ 0 ) 6 ∑ i = 1 k n ( u i ) .
For every u ≥ 1 , n ( u ) ≤ 2 log 2 ( u + 1 ) . For zero-one variables each bound contributes one merge, so m ( φ k ) ≤ min { q , 2 · 6 k } . The seed φ 0 is finite only at residue 0: the edges that stay at or leave − ∞ form one D -run, and the edge that returns to 0 is one U -edge, hence m ( φ 0 ) = 2 .
Proof. 
By Lemma 3, a variable of bound u i ≥ 1 is the composition of n ( u i ) zero-one merges, and a bound u i = 0 contributes none. Theorem 2 multiplies the number of runs by at most six at each merge, and the length is at most q. For u ≥ 2 , 1 ≤ log 2 ( u + 1 ) and ⌊ log 2 u ⌋ ≤ log 2 ( u + 1 ) , so n ( u ) ≤ 2 log 2 ( u + 1 ) . The case u = 1 is 1 ≤ 2 log 2 2 . A zero-one bound has n ( 1 ) = 1 , and the seed has length 2.    □
Corollary 1 bounds the length before the merges are carried out. Whether the length grows at a given step depends on the data. Section 5 records the three lengths on the weights 2 i − 1 .

5. Three Lengths on the Weights 2 I − 1

The weights a i = 2 i − 1 carry three profit regimes. Prescribed profits 3 i − 1 produce length 2 k or 2 k + 1 . Equal efficiency on a complete sequence keeps every prefix at length at most three. A sufficiently small shift of the first profit restores length 2 k or 2 k + 1 . The bound of Corollary 1 has the same exponential shape as the first regime, up to the base. The profits 3 i − 1 are an input of that construction, not a vector derived from Proposition 2.
Example 3. 
Take q = 8 and the zero-one weights 1 , 2 , 4 , introduced in that order. Three prescribed profit vectors produce the three regimes of the length theorems. The vectors ( 1 , 3 , 9 ) and ( 2 , 2 , 4 ) are not the coefficients returned by the up-lift formula. The vector ( 1 , 2 , 4 ) is the one computed in Example 1. The value functions below were also recomputed from the array form of (3); the two agree at every residue.
If the profits are 1 , 3 , 9 , the prefixes are
φ 1 = ( 0 , 1 , − ∞ , − ∞ , − ∞ , − ∞ , − ∞ , − ∞ ) , φ 2 = ( 0 , 1 , 3 , 4 , − ∞ , − ∞ , − ∞ , − ∞ ) , φ 3 = ( 0 , 1 , 3 , 4 , 9 , 10 , 12 , 13 ) .
The forward differences of φ 3 are ( 1 , 2 , 1 , 5 , 1 , 2 , 1 , − 13 ) . Consecutive symbols differ, so m ( φ 3 ) = 8 = 2 3 , as in Theorem 4 for q = 2 k . The intermediate functions still have a void: φ 1 has one finite edge, one D -run, and one U -edge, so m ( φ 1 ) = 3 ; φ 2 has forward symbols ( 1 , 2 , 1 ) on its three finite edges, then one D -run and one U -edge, so m ( φ 2 ) = 5 .
If the profits are 1 , 2 , 4 , each prefix is an initial interval of slope 1. For k = 1 and k = 2 the sumset is a proper initial interval, so m ( φ 1 ) = m ( φ 2 ) = 3 . The last function is φ 3 ( r ) = r on Z 8 , with differences ( 1 , 1 , 1 , 1 , 1 , 1 , 1 , − 7 ) , and m ( φ 3 ) = 2 , as in Corollary 2 and Proposition 10. These are the same coefficients produced by the up-lifting in Example 1, although the bounds there are not all equal to one; the zero-one sumset { 0 , 1 , … , 7 } is an initial interval as well.
If the profits are 2 , 2 , 4 , so that c = 1 and ε = 1 , the last function is
φ 3 = ( 0 , 2 , 2 , 4 , 4 , 6 , 6 , 8 ) ,
with differences ( 2 , 0 , 2 , 0 , 2 , 0 , 2 , − 8 ) . Here ε ≠ − c q / 2 = − 4 , consecutive symbols differ, and m ( φ 3 ) = 8 , as in Theorem 6. The equal-efficiency vector ( 1 , 2 , 4 ) is the case ε = 0 of the same weights and has length 2.

5.1. Prescribed Profits 3 I − 1

Theorem 4. 
Let u i = 1 , a i = 2 i − 1 , and α i = 3 i − 1 for i = 1 , … , k . Assume q ≥ 2 k . Then for each r ∈ { 0 , 1 , … , 2 k − 1 } there is a unique feasible vector with integer weight r, its profit is
φ k ( r ) = ∑ i ≥ 0 b i ( r ) 3 i ,
where b i ( r ) ∈ { 0 , 1 } are the binary digits of r, and φ k ( r ) = − ∞ for every residue r ≥ 2 k when q > 2 k . The forward symbols on the 2 k − 1 finite edges are pairwise distinct for consecutive edges, and
m ( φ k ) = 2 k , if q = 2 k , 2 k + 1 , if q > 2 k .
Proof. 
The subset sums of { 1 , 2 , … , 2 k − 1 } are exactly the integers { 0 , 1 , … , 2 k − 1 } , each attained once. The largest sum is 2 k − 1 ≤ q − 1 , so distinct integer sums remain in distinct residue classes, and no class outside { 0 , … , 2 k − 1 } is hit. The profit of the subset with digit vector ( b i ( r ) ) is (17).
Consider 0 ≤ r ≤ 2 k − 2 , and let v = v 2 ( r + 1 ) be the 2-adic valuation of r + 1 . Passing from r to r + 1 flips bits 0 , … , v − 1 from 1 to 0 and flips bit v from 0 to 1. The profit therefore changes by
φ k ( r + 1 ) − φ k ( r ) = 3 v − ∑ i = 0 v − 1 3 i = 3 v − 3 v − 1 2 = 3 v + 1 2 .
Among any two consecutive positive integers, one is odd, so one of v 2 ( r + 1 ) and v 2 ( r + 2 ) equals 0 and the other is at least 1. Consecutive forward differences on the finite interval are therefore unequal. Each of those 2 k − 1 edges is its own run.
If q = 2 k , every residue is finite. The remaining edge, from q − 1 to 0, has slope
φ k ( 0 ) − φ k ( q − 1 ) = − 3 k − 1 2 < 0 .
The two finite edges adjacent to it have slope 1, by (19) with v = 0 . The wrap-around edge is its own run, and m ( φ k ) = q = 2 k .
If q > 2 k , the 2 k − 1 finite edges still form 2 k − 1 runs. The edge leaving 2 k − 1 has symbol D , every later edge of the complementary arc has symbol D as well, and these edges form one run. The edge arriving at 0 has symbol U and is a run of its own. Hence m ( φ k ) = ( 2 k − 1 ) + 2 = 2 k + 1 .    □
Example 4. 
For k = 3 , the values on { 0 , … , 7 } are
φ 3 = ( 0 , 1 , 3 , 4 , 9 , 10 , 12 , 13 ) ,
with forward differences ( 1 , 2 , 1 , 5 , 1 , 2 , 1 ) . No two consecutive differences agree. On Z 8 the wrap-around edge is a further run and m ( φ 3 ) = 8 . On a larger modulus the complementary arc contributes one D -run and one U -run, and the length is 9.
Theorem 4 rules out a universal sparsity bound for arbitrary prescribed profits. Any theorem of the form “ m ( φ k ) ≤ f ( k ) with f ( k ) / 2 k → 0 ” is false for every modulus q ≥ 2 k , already on this family. The inequality m ( φ k ) ≤ min { q , 2 · 6 k } of Corollary 1 has the same shape. The family uses the prescribed profits 3 i − 1 . Along Algorithm 3, the coefficient of each new variable is the number produced by Proposition 2. The construction therefore does not say that every sequence of exact lifting coefficients has an envelope of exponential length. The next subsection keeps the length at most three when every profit is a common positive multiple of its weight.

5.2. Equal Efficiency

Throughout this subsection, c > 0 and
α i = c a i for every i ,
with a i ∈ Z and u i finite. For a feasible vector x,
∑ i = 1 k α i x i = c ∑ i = 1 k a i x i .
Maximising profit in a residue class is therefore the same as maximising the integer weight in that class. Let
S k = ∑ i = 1 k a i x i : 0 ≤ x i ≤ u i ⊂ Z
be the integer sumset, and define
f k ( r ) = max { s ∈ S k : s ≡ r ( mod q ) } ,
with the maximum over the empty set equal to − ∞ . Then φ k = c f k . Multiplication of every finite forward difference by c > 0 does not change the number of runs, so m ( φ k ) = m ( f k ) .
Let h ( S ) denote the number of maximal finite intervals in a nonempty finite set S ⊂ Z .
Theorem 5. 
Assume (20) with c > 0 . If S k is nonempty, then
m ( φ k ) ≤ 4 h ( S k ) .
The proof uses an explicit formula for the contribution of one interval. For integers L ≤ R and r ∈ Z q , set
σ [ L , R ] ( r ) = R − ( R − r ) mod q ,
and
f [ L , R ] ( r ) = σ [ L , R ] ( r ) , if σ [ L , R ] ( r ) ≥ L , − ∞ , otherwise .
The value σ [ L , R ] ( r ) is the largest integer congruent to r that does not exceed R. It lies in [ L , R ] precisely when it is at least L.
Lemma 4. 
If S is the disjoint union of its maximal intervals I j = [ L j , R j ] ∩ Z , j = 1 , … , h , then f = max 1 ≤ j ≤ h f I j .
Proof. 
An element of S lies in some interval I j and cannot exceed the right endpoint of that interval. The largest element of I j in a fixed class is exactly f I j on that class. The largest element of S in the class is the best of these finitely many candidates.    □
Proof 
(Proof of Theorem 5). Write h = h ( S k ) and f = f k . By Lemma 4 it is enough to bound the envelope length of the pointwise maximum of the functions f j = f I j .
For a single nonempty interval the envelope has length at most 3. If R − L ≥ q − 1 , then f [ L , R ] is finite everywhere, with slope 1 except on the cliff edge of slope 1 − q that starts at r ≡ R ( mod q ) , so the length is 2. If the support is a single residue, the symbols are one D -run and one U -edge, and the length is 2. If the support is a proper arc of at least two residues, every finite edge has slope 1, the edges through the complementary void form one D -run, and the edge that returns to the arc is U , so the length is 3. In particular each f j has two or three breakpoints, and the union P of these breakpoint sets satisfies 1 ≤ | P | ≤ 3 h .
Cut the cycle at P, producing | P | atomic arcs. On each arc every f j has a constant forward symbol. A U -run has length one, so an arc that carries U for any j is a single edge. The cliff of f j , when it is a finite edge, is likewise a single edge between two breakpoints of f j . On every remaining arc, each f j that is finite at more than the left endpoint has slope 1. Functions of equal slope do not cross. If any such f j is at least as large as the others at the left endpoint, then f has slope 1 on every edge of the arc. If every f j is − ∞ throughout the arc, then f is − ∞ and the arc is a single D -run.
The remaining arc has some f j of symbol D that is finite at the left endpoint and strictly larger there than every function of slope 1. That f j equals − ∞ at every later vertex. If no slope-1 function meets the arc, f is finite only at the left endpoint and the arc is one D -run. If some slope-1 function does meet the arc, the first edge may be a hybrid, from the winning finite value to that slope-1 function, and every later edge has slope 1. This produces at most one breakpoint of f in the interior of the arc. Each interval has only one D -run, so it contributes at most one such interior breakpoint, and the number of interior breakpoints is at most h.
Every breakpoint of f lies in P or is one of these interior points. Therefore m ( f ) ≤ | P | + h ≤ 4 h . Scaling by c > 0 preserves the number of runs.    □
The factor 4 h adds two estimates: at most 3 h breakpoints in P, and at most h interior hybrids. The argument does not show that the two estimates are attained on the same instance, so the factor has not been tightened to the value 3 h . No universal constant strictly smaller than 3 replaces it.
Proposition 9. 
For every integer h ≥ 1 there is an equal-efficiency instance with h ( S ) = h and m ( φ ) = 3 h . Thus every universal bound m ( φ ) ≤ C h ( S ) has C ≥ 3 , while Theorem 5 gives C ≤ 4 .
Proof. 
Take two items, of weights 1 and 3, bounds u 1 = 1 and u 3 = h − 1 , and profits α 1 = c , α 3 = 3 c for some c > 0 . The integer sumset is
S = ⋃ j = 0 h − 1 { 3 j , 3 j + 1 } .
These h pairs are separated by the missing integers 3 j + 2 , so h ( S ) = h . Take any modulus q ≥ 3 h . Then each integer in S is its own residue, f ( 3 j ) = 3 j , f ( 3 j + 1 ) = 3 j + 1 , and f is − ∞ at every other residue in { 0 , … , 3 h − 1 } and, if q > 3 h , at every larger residue.
The only finite edges run from 3 j to 3 j + 1 and have slope 1. The next edge, from 3 j + 1 to 3 j + 2 , has symbol D . The edge that arrives at the next finite residue has symbol U . When q > 3 h , the extra void edges are D and join the D -run already started. The pattern is therefore one slope run, one D -run, and one U -edge per pair, including across the complementary arc back to 0, and m ( f ) = 3 h . Multiplication by c > 0 does not change the number of runs.    □
For h = 1 the sumset is { 0 , 1 } and m = 3 . For h = 2 and q = 6 the sumset is { 0 , 1 , 3 , 4 } , the values of f are ( 0 , 1 , − ∞ , 3 , 4 , − ∞ ) , and the forward symbols are ( 1 , D , U , 1 , D , U ) , six runs. When the sumset is a single interval, the upper bound improves from 4 h to 3, by the closed form in the proof of Theorem 5, and Proposition 9 shows that 3 is best possible already for h = 1 .
Proposition 10. 
Assume (20) with c > 0 , and suppose S k = { 0 , 1 , … , A } for some integer A ≥ 0 . Then m ( φ k ) ≤ 3 . Explicitly, f k ( r ) = A − ( ( A − r ) mod q ) for every r when A ≥ q − 1 , and this function has one run of slope 1 and one cliff edge of slope 1 − q , so the length is 2. When A = 0 , f k is finite only at residue 0. The edges that leave 0 or stay at − ∞ form one D -run, and the edge that returns to 0 is U , so the length is 2. When 1 ≤ A < q − 1 , one has f k ( r ) = r for 0 ≤ r ≤ A and f k ( r ) = − ∞ otherwise. The finite edges form one run of slope 1, the complementary void forms one D -run, and the edge returning to residue 0 is U , so the length is 3.
Proof. 
Here h ( S k ) = 1 , L = 0 , and R = A . The formula is (25). If A ≥ q − 1 , then σ ( r ) ≥ A − q + 1 ≥ 0 , so there is no truncation. The forward differences are 1 except on the single edge starting at r ≡ A ( mod q ) . If A = 0 , there is no finite edge. Every edge except the one arriving at 0 has symbol D , and that arriving edge has symbol U . If 1 ≤ A < q − 1 , then σ ( r ) = r for 0 ≤ r ≤ A , while for r > A one has σ ( r ) = r − q < 0 , which is discarded. All finite edges have slope 1. The edge leaving A and the later void edges have symbol D , and the edge arriving at 0 has symbol U .    □

5.2.1. Complete Sequences

Theorem 5 bounds an arbitrary equal-efficiency sumset by 4 h ( S k ) . The sequences below are the case of one interval.
A finite sequence of positive integers ( a i ) i ≥ 1 is complete when a 1 = 1 and
a j + 1 ≤ 1 + ∑ i = 1 j a i for every j ≥ 1 .
Powers of two satisfy the inequality with equality. The subset sums of a complete 0-1 sequence fill an initial interval of integers, and therefore fall under Proposition 10 at every prefix.
Lemma 5. 
Let u i = 1 and let ( a i ) be complete. For each k ≥ 1 ,
S k = { 0 , 1 , … , A k } , A k = ∑ i = 1 k a i .
Proof. 
The case k = 1 is S 1 = { 0 , 1 } . If S k = { 0 , … , A k } and a k + 1 ≤ A k + 1 , the new subset sums are
S k ∪ ( a k + 1 + S k ) = { 0 , … , A k } ∪ { a k + 1 , … , a k + 1 + A k } .
The second interval starts at or before A k + 1 and ends at A k + 1 , so the union is { 0 , … , A k + 1 } .    □
Corollary 2. 
Let u i = 1 , let ( a i ) be complete, and let α i = c a i for a common c > 0 . Then m ( φ k ) ≤ 3 for every k ≥ 1 . The length equals 3 while A k < q − 1 , and equals 2 once A k ≥ q − 1 .
Proof. 
Combine Lemma 5 with Proposition 10. The first weight is 1, so A k ≥ 1 . The length is therefore 3 for 1 ≤ A k < q − 1 , and 2 for A k ≥ q − 1 .    □
The length bound uses both hypotheses. Equal efficiency with a weight sequence that is not complete can produce an envelope of length q.
Proposition 11. 
Let u i = 1 , a i = 2 , and α i = 1 for i = 1 , 2 , 3 . For every q ≥ 4 ,
m ( φ 3 ) = min { q , 8 } .
The weight sequence is not complete, and α i = 1 2 a i . In particular the length equals q for 4 ≤ q ≤ 8 .
Proof. 
The attainable weights are 0 , 2 , 4 , 6 , with profits 0 , 1 , 2 , 3 . The first weight is 2, so the sequence is not complete, and α i = 1 2 a i .
If q = 4 , the classes 0 and 2 have profits max { 0 , 2 } = 2 and max { 1 , 3 } = 3 . Then φ 3 = ( 2 , − ∞ , 3 , − ∞ ) . The symbols alternate between D and U , and the length is 4.
If q = 5 , the four weights lie in distinct classes and φ 3 = ( 0 , 3 , 1 , − ∞ , 2 ) . The forward symbols are 3, − 2 , D , U , − 2 . Consecutive symbols differ, including across residue 0, so the length is 5.
If q = 6 , weight 6 falls in class 0 and φ 3 = ( 3 , − ∞ , 1 , − ∞ , 2 , − ∞ ) . The symbols alternate, and the length is 6.
If q = 7 , the residues 0 , 2 , 4 , 6 carry profits 0 , 1 , 2 , 3 , and 6 is adjacent to 0. That edge has slope − 3 . Each of the gaps { 1 } , { 3 } , and { 5 } contributes one D and one U . These seven symbols differ from their neighbours, so the length is 7.
If q ≥ 8 , the same four residues are finite and no two of them are adjacent. The gaps between them, in cyclic order, contain 1, 1, 1, and q − 7 residues equal to − ∞ , with q − 7 ≥ 1 . Each gap contributes one D -run and one U , so the length is 8.    □
The hypothesis α i = c a i is a condition on the data. In Algorithm 3 each coefficient is the number produced by the up-lift formula, so the hypothesis holds only for those targets b and right-hand sides β that force every coefficient into this proportion. Theorem 7 assumes the proportion at every step.

5.3. A Shift of the First Profit

The next theorem keeps the weights a i = 2 i − 1 and moves the first profit off the ray α i = c a i .
Theorem 6. 
Let c > 0 , ε ≠ 0 , u i = 1 , and a i = 2 i − 1 . Define α 1 = c + ε and α i = c 2 i − 1 for i ≥ 2 . If q ≥ 2 k , then for 0 ≤ r < 2 k ,
φ k ( r ) = c r + ε ( r mod 2 ) ,
and φ k ( r ) = − ∞ for every residue r ≥ 2 k when q > 2 k . When q = 2 k , one has m ( φ k ) = 2 k , except when ε = − c q / 2 . In that exceptional case m ( φ 1 ) = 1 , and m ( φ k ) = 2 k − 2 for every k ≥ 2 . When q > 2 k , one has m ( φ k ) = 2 k + 1 for every ε ≠ 0 .
Proof. 
As in Theorem 4, each integer r ∈ { 0 , … , 2 k − 1 } has a unique subset, and the integer weight of that subset is r. The profit equals c times the weight, plus an extra ε when the unique subset contains the first item, which occurs precisely when r is odd. This is (27).
On a finite edge starting at an even residue, (27) gives the difference c + ε . On a finite edge starting at an odd residue, the same formula gives the difference c − ε . These two numbers differ because ε ≠ 0 . Consecutive finite edges therefore lie in different runs.
If q > 2 k , the 2 k − 1 finite edges form 2 k − 1 runs, the complementary void forms one D -run, and the edge returning to 0 is U , so m ( φ k ) = 2 k + 1 . There is no finite wrap-around edge. If q = 2 k , the remaining edge runs from q − 1 to 0 and has slope − ( c ( q − 1 ) + ε ) . Both neighbouring edges start at even residues, so both have slope c + ε . The wrap-around slope equals c + ε precisely when − ( c ( q − 1 ) + ε ) = c + ε , that is, when ε = − c q / 2 . Otherwise the wrap-around edge is its own run and m ( φ k ) = 2 k . If ε = − c q / 2 and k ≥ 2 , that edge coalesces with both neighbours and m ( φ k ) = 2 k − 2 . If k = 1 and ε = − c , then φ 1 is identically zero on Z 2 and m ( φ 1 ) = 1 .    □
For ε = 0 , the same weights and the profits α i = c a i fall under Corollary 2, so the envelope length drops from 2 k or 2 k + 1 to at most 3. For every sufficiently small ε ≠ 0 one has ε ≠ − c q / 2 . The length is then 2 k when q = 2 k , and 2 k + 1 when q > 2 k . Exact envelope length, as a function of the profit vector, is therefore discontinuous at every equal-efficiency point of a power-of-two weight sequence.
A coarser length, in which forward differences closer than a fixed positive tolerance are treated as equal, would be stable under small ε . On (27) the two finite slopes would form one run, and the length would be at most three. The coefficients recovered from that coarser function differ from the exact lifting coefficients by a quantity that depends on the tolerance.

6. The Algorithm

This section turns the preceding bounds into three procedures. The procedures store a circular envelope, evaluate it by Proposition 6, and update it by Theorem 3. No step requires m ( φ ) ≪ q .
When T i is empty, Theorem 1 allows every finite coefficient. Distinct choices can produce distinct envelopes at later steps, so the coefficients and the lengths are determined by the data alone only when every T i is nonempty. Algorithm 3 removes that ambiguity by setting the coefficient to 0. The value 0 is one legal choice. The merge is still the pointwise maximum against the shifted envelope, so the support may grow.
Example 5. 
Take q = 6 , target b = 2 , and β = 2 . Up-lift a variable of weight 1 and bound 2, then a variable of weight 3 and bound 1. For the first variable, T 1 = { 2 } and the formula returns α 1 = 1 . Two unit merges produce φ = ( 0 , 1 , 2 , − ∞ , − ∞ , − ∞ ) . For the second variable, 2 − 3 ≡ 5 ( mod 6 ) and φ ( 5 ) = − ∞ , so T 2 = ∅ . The coefficient 0 produces ( 0 , 1 , 2 , 0 , 1 , 2 ) , with forward differences ( 1 , 1 , − 2 , 1 , 1 , − 2 ) and length 4. The coefficient 3, which Theorem 1 also allows, produces ( 0 , 1 , 2 , 3 , 4 , 5 ) , with forward differences ( 1 , 1 , 1 , 1 , 1 , − 5 ) and length 2. Algorithm 3 returns the first of these two coefficients.
Algorithm 1:Zero-one merge of a circular envelope
Require: 
Envelope C of φ , residue a, profit α
Ensure: 
Envelope of φ + ( r ) = max { φ ( r ) , φ ( r − a ) + α }
1:
Build the ordered breakpoint list of φ and of its translate by a
2:
Split the cycle into atomic arcs on which both forward symbols are constant
3:
for each atomic arc do
4:
    if either symbol is D or U  then
5:
        Emit the one or two output runs of the proof of Theorem 2
6:
    else
7:
        Compute the arithmetic progression of pointwise differences
8:
        Emit the run of the first winner, the hybrid edge if the winner changes, and the run of the second winner
9:
    end if
10:
end for
11:
Glue adjacent runs that share a forward symbol, including across residue 0
12:
return the resulting envelope
Algorithm 2:Bounded merge
Require: 
Envelope C , weight a, profit α , bound u ∈ Z + ∪ { 0 , ∞ }
Ensure: 
Envelope of the update (3), or the symbol + ∞
1:
if u = ∞ and α > 0 and φ ¬ ≡ − ∞  then
2:
    return  + ∞ on the coset reachable by multiples of a▹ Proposition 4
3:
end if
4:
if u = ∞ then
5:
     u ← q / gcd ( a , q ) − 1 ▹ nonpositive profit: one period attains the maximum
6:
end if
7:
if u = 0 then
8:
    return  C
9:
end if
10:
Decompose u into multiplicities μ as in Lemma 3
11:
for each multiplicity μ  do
12:
     C ← Algorithm 1 applied to ( C , μ a mod q , μ α )
13:
end for
14:
return C
Algorithm 3:Exact sequential up-lifting on Z q
Require: 
Modulus q, target b, right-hand side β , items ( a i , u i ) in order, and a seed envelope for any items whose coefficients are already fixed
Ensure: 
Exact up-lifting coefficients of the remaining items
1:
C ← seed envelope ▹ φ 0 if the seed is empty
2:
for each item i whose coefficient is not yet fixed do
3:
     T ← { t ∈ { 1 , … , u i } : φ ( b − t a i ) > − ∞ } , reading φ from C
4:
    if  T = ∅  then
5:
         α i ← 0 ▹ Theorem 1: every finite coefficient is valid
6:
    else
7:
         α i ← min t ∈ T ( β − φ ( b − t a i ) ) / t
8:
    end if
9:
     C ← Algorithm 2 on ( C , a i , α i , u i )
10:
end for
11:
return the coefficients α i
Theorem 7. 
Assume every bound that is actually merged is finite, and assume the seed envelope represents the value function of the seeded variables. Algorithm 3 returns coefficients satisfying Theorem 1. Whenever T i is nonempty, α i is the exact coefficient of Proposition 2. For zero-one items each item contributes one merge. The number of arithmetic operations is linear in ∑ k = 1 n m ( φ k ) , and is therefore O ( n q ) . If, in addition, the weights form a complete sequence and the profits satisfy α i = c a i for a common c > 0 at every step, the number of operations is O ( n ) .
Proof. 
By induction, the envelope represents φ of the variables already processed. Proposition 6 evaluates it at the residues b − t a i . If T i is nonempty, Proposition 2 identifies the resulting minimum with the exact coefficient. If T i is empty, the algorithm sets α i = 0 , which Theorem 1 allows, and merges that value. Lemma 3 and Theorem 3 update the envelope to the value function with the new variable included. The update applies to every finite bound, including a bound of size at least q / gcd ( a i , q ) .
Each zero-one merge costs linear time in the current length, by Theorem 3, and there is one merge per item. The sum is O ( n q ) because each length is at most q. Under the additional hypothesis, Corollary 2 keeps every length bounded by 3, independently of q, and the sum is O ( n ) .    □
Each length is at most q, so the sum in Theorem 7 is O ( n q ) , the same order as one pass over a table of length q for each item. On a complete equal-efficiency sequence the same count is O ( n ) , by Corollary 2. For a bound u > 1 , the coefficient query in Algorithm 3 inspects up to u residues and the update performs 1 + ⌊ log 2 u ⌋ merges. Agreement with a residue table can be checked on any finite instance by running the recurrence (3) in an array of length q: the two implementations compute the same function, hence the same coefficients, in exact arithmetic. The length identities used above are recomputed by the script check_identities.py. They include the seed length 2, the ratio-3 block, the peak of length 8, the two counts in Theorem 4, the equal-efficiency counts 3, 2, and 3 h , the exceptional count 2 k − 2 in Theorem 6, the two envelopes in Example 5, and the table of Example 1.

7. Lifting Orbits

Table 1 and Table 2 count the orbits of Algorithm 3 on two finite sets, with the convention that an empty lifting set sets the coefficient to 0. The entries are counts on those sets. They are not a general length theorem.
For k ∈ { 3 , 4 , 5 , 6 } and q ∈ { 2 k , 2 k + 3 } , with weights a i = 2 i − 1 and bounds u i = 1 , the square
P k ( q ) = ( b , β ) : b , β ∈ { 0 , 1 , … , q − 1 }
has cardinality q 2 . For each modulus q ∈ { 6 , 8 , 11 } the box B q consists of every ordered triple ( a 1 , a 2 , a 3 ) with each a i ∈ { 1 , … , q − 1 } , every target b ∈ { 0 , … , q − 1 } , and every right-hand side β ∈ { 0 , … , q − 1 } , with each bound equal to 1. Thus | B q | = ( q − 1 ) 3 q 2 , which is 4500, 21952, and 121000 for q = 6 , 8, and 11. Two different orders of the same three weights are two instances. Right-hand sides outside these sets are not included.
Proposition 12. 
Let k ≥ 2 and q > 2 , with weights a i = 2 i − 1 and bounds u i = 1 , started from φ 0 . For every target and every finite right-hand side, some lifting set T i is empty. On each square P k ( q ) with k ∈ { 3 , 4 , 5 , 6 } and q ∈ { 2 k , 2 k + 3 } , the final length attains 2 k when q = 2 k and 2 k + 1 when q = 2 k + 3 .
Proof. 
The only finite residue of φ 0 is 0, so T 1 is nonempty if and only if b = 1 . The merge with weight 1 and any finite coefficient is finite exactly at residues 0 and 1. Then T 2 is nonempty if and only if b ∈ { 2 , 3 } . For every modulus q > 2 these conditions on b are incompatible. The lengths use the restriction of β to the square. At ( b , β ) = ( 1 , 1 ) the algorithm returns ( 1 , 0 , … , 0 ) , the later zeros being the empty-set convention. The final length is 2 k when q = 2 k , and 2 k + 1 when q = 2 k + 3 . Table 1 records that maximum, together with the minimum and the number of pairs that attain it.    □
Proposition 13. 
For each q ∈ { 6 , 8 , 11 } , the only complete triple in B q for which Algorithm 3 returns a proportional coefficient vector is ( 1 , 1 , 1 ) .
Proof. 
Evaluating every triple in B q gives the count. A coefficient vector is proportional when α i = c a i for a common c > 0 and for every i. On this box every proportional vector has every T i nonempty. There are q − 1 instances of the triple ( 1 , 1 , 1 ) , with coefficients ( c , c , c ) for each c ∈ { 1 , … , q − 1 } . Their subset sum is A 3 = 3 < q − 1 , so the final length equals 3. No other complete triple returns a proportional vector. The triple ( q − 1 , q − 1 , q − 1 ) with target b = q − 1 and right-hand side β = c likewise returns ( c , c , c ) and has final length 3. Those weights are not complete, and there are again q − 1 such instances. The remaining proportional instances number 10, 28, and 80 for q = 6 , 8, and 11, and each has final length greater than 3. Weights ( 2 , 2 , 2 ) , target b = 2 , and β = 1 produce coefficients ( 1 , 1 , 1 ) , with final lengths 6, 8, and 8. These are the three values of min { q , 8 } in Proposition 11. The final length q is attained in each box. On q = 11 it is attained only with the empty-T convention: the maximum final length among the 220 instances in which every T i is nonempty is 8. One instance of final length 11 is the triple ( 1 , 3 , 5 ) with b = β = 1 , coefficients ( 1 , 0 , 0 ) , and prefix lengths 3 , 6 , 11 . The two zeros are the convention of Algorithm 3. Table 2 records these counts.    □

7.1. Powers of Two

Every pair in P k ( q ) is evaluated from φ 0 . At ( b , β ) = ( 0 , 0 ) every coefficient is 0. The value is identically 0 on the interval of subset sums. That interval is the whole group when q = 2 k , and the final length is 1. When q = 2 k + 3 the interval is a proper initial segment, and the final length is 3. Both endpoints in Table 1 are properties of P k ( q ) .

7.2. Triples

For the weights a i = 2 i − 1 and bounds u i = 1 , the script envelope_lengths.py reproduces Theorem 4 and Corollary 2 at every k from 1 to 12 and both moduli q ∈ { 2 k , 2 k + 3 } , once with profits 3 i − 1 and once with profits a i . Those identities are already proved for every k, so the values are not tabulated. Every entry of Table 1 and Table 2 is recomputed by the same script.

8. Concluding Remarks

The zero-one bound is at most 6, and the ratio 3 is attained, but the proof does not close that gap (Theorem 2, Proposition 7). Under equal efficiency the proved factor is 4 h and the value 3 h is attained, with the same gap left open (Theorem 5, Proposition 9). The length 2 k or 2 k + 1 in Theorems 4 and 6 is the length of a prescribed profit vector. Those theorems do not bound the envelope length of an up-lifting orbit once the profits leave the equal-efficiency ray.

Author Contributions

Conceptualization, X.W.; Methodology, X.W.; Software, X.W.; Validation, X.W.; Formal Analysis, X.W.; Investigation, X.W.; Writing – Original Draft Preparation, X.W.; Writing – Review & Editing, T.Y.; Funding Acquisition, T.Y. All authors have read and agreed to the published version of the manuscript.

Funding

The work is supported by the Tianyuan Fund for Mathematics of the National Natural Science Foundation of China (Grant no. 12526570).

Data Availability Statement

The entries of Table 1 and Table 2 are recomputed by the attached script envelope_lengths.py.

Conflicts of Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.

References

  1. Padberg, M. W. A note on zero-one programming. Oper. Res. 1975, 23(4), 833–837. [Google Scholar] [CrossRef]
  2. Wolsey, L. A. Faces for a linear inequality in 0–1 variables. Math. Program. 1975, 8(1), 165–178. [Google Scholar] [CrossRef]
  3. Wolsey, L. A. Facets and strong valid inequalities for integer programs. Oper. Res. 1976, 24(2), 367–372. [Google Scholar] [CrossRef]
  4. Gomory, R. E. Some polyhedra related to combinatorial problems. Linear Algebra Its Appl. 1969, 2(4), 451–558. [Google Scholar] [CrossRef]
  5. Aráoz, J.; Evans, L.; Gomory, R. E.; Johnson, E. L. Cyclic group and knapsack facets. Math. Program. 2003, 96(2), 377–408. [Google Scholar] [CrossRef]
  6. Dash, S.; Fukasawa, R.; Günlük, O. On a generalization of the master cyclic group polyhedron. Math. Program. 2010, 125, 1–30. [Google Scholar]
  7. Sturmfels, B.; Weismantel, R.; Ziegler, G. M. Gröbner bases of lattices, corner polyhedra, and integer programming. Beiträge Zur Algebra Und Geom. 1995, 36(2), 281–298. [Google Scholar]
  8. Wolsey, L. A. Valid inequalities and superadditivity for 0-1 integer programs. Math. Oper. Res. 1977, 2(1), 66–77. [Google Scholar] [CrossRef]
  9. Gu, Z.; Nemhauser, G. L.; Savelsbergh, M. W. P. Sequence independent lifting in mixed integer programming. J. Comb. Optim. 2000, 4, 109–129. [Google Scholar] [CrossRef]
  10. Atamtürk, A. Sequence independent lifting for mixed-integer programming. Oper. Res. 2004, 52(3), 487–490. [Google Scholar] [CrossRef]
  11. Zemel, E. Easily computable facets of the knapsack polytope. Math. Oper. Res. 1989, 14(4), 760–764. [Google Scholar] [CrossRef]
  12. Gilmore, P. C.; Gomory, R. E. The theory and computation of knapsack functions. Oper. Res. 1966, 14(6), 1045–1074. [Google Scholar] [CrossRef]
  13. Glover, F. Integer programming over a finite additive group. SIAM J. Control 1969, 7(2), 213–231. [Google Scholar] [CrossRef]
Table 1. Counts on the square P k ( q ) , for Proposition 12. Weights a i = 2 i − 1 , bounds u i = 1 , and every pair ( b , β ) in { 0 , … , q − 1 } 2 . “Full T” is the number of pairs for which every T i is nonempty. “At maximum” is the number of pairs whose final length equals the maximum.
Table 1. Counts on the square P k ( q ) , for Proposition 12. Weights a i = 2 i − 1 , bounds u i = 1 , and every pair ( b , β ) in { 0 , … , q − 1 } 2 . “Full T” is the number of pairs for which every T i is nonempty. “At maximum” is the number of pairs whose final length equals the maximum.
k q pairs full T minimum maximum at maximum
3 8 64 0 1 8 21
3 11 121 0 3 9 30
4 16 256 0 1 16 45
4 19 361 0 3 17 54
5 32 1024 0 1 32 93
5 35 1225 0 3 33 102
6 64 4096 0 1 64 189
6 67 4489 0 3 65 198
Table 2. Counts on the boxes B q , for Proposition 13. The set is every ordered weight triple in { 1 , … , q − 1 } 3 , every target, and every right-hand side in { 0 , … , q − 1 } , with three zero-one variables. “Full T” counts instances in which every T i is nonempty. “Proportional” counts coefficient vectors α i = c a i for some c > 0 . “Max, full T” is the maximum final length on the instances counted by “full T”. The last column counts instances whose final length equals q.
Table 2. Counts on the boxes B q , for Proposition 13. The set is every ordered weight triple in { 1 , … , q − 1 } 3 , every target, and every right-hand side in { 0 , … , q − 1 } , with three zero-one variables. “Full T” counts instances in which every T i is nonempty. “Proportional” counts coefficient vectors α i = c a i for some c > 0 . “Max, full T” is the maximum final length on the instances counted by “full T”. The last column counts instances whose final length equals q.
q instances full T proportional minimum maximum max, full T final m = q
6 4500 54 20 1 6 6 1910
8 21952 104 42 1 8 8 9556
11 121000 220 100 3 11 8 24696
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.