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:
exact sequential lifting
; cyclic group
; modular knapsack
; circular envelope
; dynamic programming
1. Introduction
Exact sequential lifting for a bounded modular knapsack builds a valid inequality one coefficient at a time. Fix an integer modulus 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 . The value 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 over those multiplicities that reach the target class.
Computing the coefficient requires , and fixing it replaces by a max-plus convolution against a spike,
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 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 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 . The value is attained, and the proof does not reach , 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 , hence (Theorem 7).
For the weights , the length depends on the profits. The profits are written into the hypothesis of that theorem, and they give length when and length when (Theorem 4). If instead is proportional to on a complete sequence, every prefix has length at most three (Corollary 2). Shifting the first profit by any sufficiently small returns the length to or (Theorem 6). Example 3 writes the three vectors on . 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 or .
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 , Theorem 4 produces envelope length when , 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, . 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 time [11].
2. The Value Function
2.1. The Feasible Set and the Value Function
Let be an integer and write with addition modulo q. For , weights , profits , and bounds , define
where is the target residue. Empty bounds are allowed: if , the variable 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 , , and D is a positive integer such that and are integers. A vector x satisfies if and only if
The cleared instance has integer weights, integer target, and modulus . 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 and ,
with the convention that the maximum over the empty set is . The maximum over the empty prefix is and for .
Thus if and only if the residue r is reachable by the first k variables. When every is finite and every profit is finite, 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 and write , , , and . If u is finite, then for every ,
where . In particular, for ,
Proof.
Every feasible vector for the first k variables uses the last variable at some multiplicity . The first variables must then realise the residue , and the profit splits as a profit of those variables plus . Taking the best t gives (3). The case is the choice between and . □
2.2. Exact Sequential Coefficients
Suppose the first k variables have already received coefficients , and is the corresponding value function. Let satisfy , so that
is valid for every feasible vector of those variables whose weight lies in the class b. A further variable, of weight a and bound , is introduced from the fixed value 0. Its exact up-lifting coefficient is the largest real number such that
holds for every and every completion of t to a vector of the first k variables with weight congruent to .
Proposition 2.
The exact up-lifting coefficient is
where . If T is empty, no positive multiplicity is feasible and the coefficient is unconstrained. If and , then . After has been selected, the value function of the enlarged prefix is given by Lemma 1.
Proof.
Fix and a vector of the first k variables attaining . Adjoining multiplicity t produces a feasible vector for the target b, and (6) at this vector reads . Hence every valid coefficient satisfies .
Conversely, take . If the residue is unreachable, there is no constraint at this t. If it is reachable and , the inequality reduces to . If , the definition of gives , 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 , the variable is fixed at 1 in the seed, and φ is the value function of the remaining free variables. Let the seed be valid for the congruence with target . The smallest coefficient γ for which
is valid for and target b is when b is reachable, and is unconstrained otherwise.
Proof.
Substituting recovers the seed inequality and the seed congruence, for every . Substituting requires . The smallest admissible is therefore . □
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 and for every i, and fix . Define coefficients and value functions inductively. Set . Given , let
If is nonempty, set by (7) with replaced by . If is empty, choose an arbitrary finite . Let be the bounded merge (3) of with . Then, for every ,
is valid for
If is nonempty, is the largest coefficient for which (8) is valid for once have been fixed. If is empty, every real coefficient has that property, and no point of has . In particular, is valid for .
Proof.
For the sum is empty. If , the empty vector is feasible and the inequality is , which holds because . If , then is empty and the inequality is vacuously valid.
Suppose (8) is valid for . Consider a point of with last coordinate t. The first coordinates form a vector of weight congruent to , so their profit is at most . If , the point lies in and the inductive hypothesis gives the inequality for every value of . If and is unreachable, no such point exists. If , Proposition 2 supplies , and the profit of the prefix plus is at most . This proves validity at step k.
If is nonempty, Proposition 2 also states that any larger coefficient admits a violating point of . If is empty, the same argument shows that every point of has , so the coefficient of 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 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 , target , and . 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 and is elsewhere, and holds vacuously.
For the first variable, because and . The formula returns . Four unit merges, each of weight 1 and profit 1, expand the bound into units and produce
The finite edges have slope 1, the edge leaving residue 4 has symbol , and the edge arriving at residue 0 has symbol , so . These four merges are not the three formal parts of Lemma 3. The intermediate inequality is . On the only feasible point is , where equality holds. Replacing by any larger number violates that point.
For the second variable, and , so and . The merge yields for , and . The same three symbols appear, so . The point has weight 4 and profit . Any violates it.
For the third variable, and , so . The merged table is
with forward differences . The seven edges of slope 1 form one run around the cliff edge of slope , so . The envelope may be stored, in increasing order of the breakpoints, as and . Theorem 1 gives the inequality
valid for , , and . The point has weight 4 and, under , profit 4. The coefficient 5 produces profit 5 at the same point, so 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 , and bound is adjoined to a value function . Let and . Then . 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 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 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 . If the bound is infinite and the profit is nonpositive, the multiplicities t and meet the same predecessor and the second profit is at most the first, so the update coincides with the finite bound .
Proposition 5.
Let be valid for , and suppose is nonempty and for some index j. Let . If the bound is replaced by , then from any feasible x the points , , 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 , an integer multiple of q, and adds to the left-hand side. The congruence is preserved and the original bounds on the other variables are unchanged. □
3. Circular Envelopes
Let . For and , define the forward symbol
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 ; the symbol is reserved for the edge that re-enters a finite value. If is not identically , every -run starts at a finite value, so the return from is already recorded by . A -run may contain both an edge from a finite value to and later edges on which both endpoints are . For the seed is finite only at residue 0: those edges form one -run, the edge returning to 0 is , and . Naming the two kinds of edge separately would make this length 3. A run is a maximal contiguous block of edges on the cycle that share one forward symbol. The envelope length 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 . Always , because there are q edges.
A run with symbol has length one. Indeed, the right endpoint of a edge is finite, so the next edge is either numeric or . Consequently, if is not identically , every -run starts at a finite residue: the preceding edge is numeric or , and both of those end at a finite value.
Definition 2.
Acircular envelopeof φ is a list
in which the breakpoints are the starting residues of the m runs, , and . Indices are read modulo m, and residues modulo q. The run of index j occupies the edges from up to, but not including, .
Proposition 6.
Every function has a unique circular envelope, and the envelope determines φ. If r lies in the run starting at and , then
If and φ is not identically , then is finite, , and φ equals at every later residue of the run. If , then and the unique later residue of the run is the next breakpoint, whose value is the next record . If φ is identically , the envelope is the single record . Given the envelope, the value can be computed by binary search in arithmetic operations.
Proof.
The forward symbols partition the cycle into maximal runs, so the breakpoint list is unique. On a run with symbol , both endpoints of every edge are finite and consecutive values differ by s, which is (13). On a -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 -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 is small compared with q. The records are the changes of forward symbol.
One symbol for every edge that meets is not enough. On , the function has forward symbols and length 4. The two finite values sit at the starts of the two -runs and are recovered from the envelope. If and 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 , for , and otherwise. The edges through have symbol 1, the edges from 4 up to have symbol , and the edge from to 0 has symbol . Hence . The envelope may be stored as
4. One Update
4.1. The Factor Six
Fix , a residue , and a profit . The zero-one merge is the function
again with . Write . Translation by a permutes edges and preserves forward symbols, so .
Theorem 2.
The zero-one merge satisfies
Proof.
Let . A residue is a breakpoint of a function if the two edges that meet there carry different forward symbols. If , 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 , both functions are identically and so is . In both sub-cases .
Now assume , and let B be the union of the breakpoint sets of and of . Each set has m elements, so . Cut the cycle at B. This produces atomic arcs, on each of which both and have constant forward symbols.
Consider one atomic arc, with edges and a local coordinate along its residues. Suppose one symbol, say that of , is or . A -run has length one, so an arc carrying is a single edge and contributes one output symbol. A constant 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, 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 or . If both symbols are , the maximum is finite only at the left endpoint, if there, and afterwards, which is a single -run.
If both symbols are finite, the difference
is an arithmetic progression. If , one function lies above the other throughout the arc, and has the common slope on every edge. If , there is at most one index at which 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
which need not equal s or . The arc therefore contributes at most three runs.
Summing over the arcs gives at most 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 . □
The factor six is the product of the two estimates in the proof: at most 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 there exist a modulus, a function φ, a residue a, and a profit α such that
Consequently every universal upper bound of the form has , while Theorem 2 gives .
Proof.
Take and define by repeating the block of values . The block sums of forward differences are zero, so the function closes on the cycle. Its forward differences are the repetition of . Each triple is one run, adjacent triples have different symbols, and there are triples, so .
Take and . On each block the translate by 3 is , and the pointwise maximum with is . The forward differences of this block, including the edge into the next copy, are . Consecutive symbols differ, and the symbol 1 at the end of a block differs from the symbol at the start of the next. Hence every edge is its own run, and . □
For the input is on , the output is , and the lengths are 2 and 6. Both functions are finite at every residue, so the distinction between and is not used. The same block shows that no theorem of the form , quantified over every function , 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 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 , 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 and , then whenever is finite, and otherwise, so . If and , 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 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 for every modulus, every φ, and every zero-one merge.
Proof.
Fix an integer and set . Take zero-one data for , 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 , because is complete and each sum is doubled. The largest sum is at least , so every even residue is attained. Every edge is void, and . For an even residue s,
and therefore . 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 . At an odd residue r, and the predecessor is even, so . Thus is finite at every residue, and on a finite function agrees with m. An edge leaving an even residue has forward difference 2. An edge leaving an odd residue r has forward difference , which equals 0 or . Neither equals 2, so consecutive symbols differ and . The ratio equals . Since k is arbitrary, no constant C works for every instance. □
The smallest modulus in this family is , with weights . Its value function is , and the merge is . A smaller witness uses one weight: on , weight 2 and profit 2 give , of one-symbol length 1, and the same merge gives , of length 4.
4.3. Finite Bounds
A variable with finite bound is introduced by a binary decomposition, so that Lemma 1 becomes a short sequence of zero-one merges.
Lemma 3.
Let . The formal parts are the p powers , of which there are none when , together with the extra part . The extra part may repeat a power of two. For one has and , so the multiset is . There are exactly formal parts. Every integer 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 and profit .
Proof.
Since , the extra part satisfies . Together with the p powers, of which there are none when , this is parts. The powers represent every integer in : the empty sum represents 0 when . For , use that representation of t. For , the integer lies in , because
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 and weight , 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 and, for every integer , let . Starting from , after k variables with finite bounds the envelope length satisfies
For every , . For zero-one variables each bound contributes one merge, so . The seed is finite only at residue 0: the edges that stay at or leave form one -run, and the edge that returns to 0 is one -edge, hence .
Proof.
By Lemma 3, a variable of bound is the composition of zero-one merges, and a bound contributes none. Theorem 2 multiplies the number of runs by at most six at each merge, and the length is at most q. For , and , so . The case is . A zero-one bound has , 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 .
5. Three Lengths on the Weights
The weights carry three profit regimes. Prescribed profits produce length or . Equal efficiency on a complete sequence keeps every prefix at length at most three. A sufficiently small shift of the first profit restores length or . The bound of Corollary 1 has the same exponential shape as the first regime, up to the base. The profits are an input of that construction, not a vector derived from Proposition 2.
Example 3.
Take and the zero-one weights , introduced in that order. Three prescribed profit vectors produce the three regimes of the length theorems. The vectors and are not the coefficients returned by the up-lift formula. The vector 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 , the prefixes are
The forward differences of are . Consecutive symbols differ, so , as in Theorem 4 for . The intermediate functions still have a void: has one finite edge, one -run, and one -edge, so ; has forward symbols on its three finite edges, then one -run and one -edge, so .
If the profits are , each prefix is an initial interval of slope 1. For and the sumset is a proper initial interval, so . The last function is on , with differences , and , 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 is an initial interval as well.
If the profits are , so that and , the last function is
with differences . Here , consecutive symbols differ, and , as in Theorem 6. The equal-efficiency vector is the case of the same weights and has length 2.
5.1. Prescribed Profits
Theorem 4.
Let , , and for . Assume . Then for each there is a unique feasible vector with integer weight r, its profit is
where are the binary digits of r, and for every residue when . The forward symbols on the finite edges are pairwise distinct for consecutive edges, and
Proof.
The subset sums of are exactly the integers , each attained once. The largest sum is , so distinct integer sums remain in distinct residue classes, and no class outside is hit. The profit of the subset with digit vector is (17).
Consider , and let be the 2-adic valuation of . Passing from r to flips bits from 1 to 0 and flips bit v from 0 to 1. The profit therefore changes by
Among any two consecutive positive integers, one is odd, so one of and equals 0 and the other is at least 1. Consecutive forward differences on the finite interval are therefore unequal. Each of those edges is its own run.
If , every residue is finite. The remaining edge, from to 0, has slope
The two finite edges adjacent to it have slope 1, by (19) with . The wrap-around edge is its own run, and .
If , the finite edges still form runs. The edge leaving has symbol , every later edge of the complementary arc has symbol as well, and these edges form one run. The edge arriving at 0 has symbol and is a run of its own. Hence . □
Example 4.
For , the values on are
with forward differences . No two consecutive differences agree. On the wrap-around edge is a further run and . On a larger modulus the complementary arc contributes one -run and one -run, and the length is 9.
Theorem 4 rules out a universal sparsity bound for arbitrary prescribed profits. Any theorem of the form “ with ” is false for every modulus , already on this family. The inequality of Corollary 1 has the same shape. The family uses the prescribed profits . 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, and
with and finite. For a feasible vector x,
Maximising profit in a residue class is therefore the same as maximising the integer weight in that class. Let
be the integer sumset, and define
with the maximum over the empty set equal to . Then . Multiplication of every finite forward difference by does not change the number of runs, so .
Let denote the number of maximal finite intervals in a nonempty finite set .
Theorem 5.
Assume (20) with . If is nonempty, then
The proof uses an explicit formula for the contribution of one interval. For integers and , set
and
The value is the largest integer congruent to r that does not exceed R. It lies in precisely when it is at least L.
Lemma 4.
If S is the disjoint union of its maximal intervals , , then .
Proof.
An element of S lies in some interval and cannot exceed the right endpoint of that interval. The largest element of in a fixed class is exactly 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 and . By Lemma 4 it is enough to bound the envelope length of the pointwise maximum of the functions .
For a single nonempty interval the envelope has length at most 3. If , then is finite everywhere, with slope 1 except on the cliff edge of slope that starts at , so the length is 2. If the support is a single residue, the symbols are one -run and one -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 -run, and the edge that returns to the arc is , so the length is 3. In particular each has two or three breakpoints, and the union P of these breakpoint sets satisfies .
Cut the cycle at P, producing atomic arcs. On each arc every has a constant forward symbol. A -run has length one, so an arc that carries for any j is a single edge. The cliff of , when it is a finite edge, is likewise a single edge between two breakpoints of . On every remaining arc, each that is finite at more than the left endpoint has slope 1. Functions of equal slope do not cross. If any such 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 is throughout the arc, then f is and the arc is a single -run.
The remaining arc has some of symbol that is finite at the left endpoint and strictly larger there than every function of slope 1. That 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 -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 -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 . Scaling by preserves the number of runs. □
The factor adds two estimates: at most 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 . No universal constant strictly smaller than 3 replaces it.
Proposition 9.
For every integer there is an equal-efficiency instance with and . Thus every universal bound has , while Theorem 5 gives .
Proof.
Take two items, of weights 1 and 3, bounds and , and profits , for some . The integer sumset is
These h pairs are separated by the missing integers , so . Take any modulus . Then each integer in S is its own residue, , , and f is at every other residue in and, if , at every larger residue.
The only finite edges run from to and have slope 1. The next edge, from to , has symbol . The edge that arrives at the next finite residue has symbol . When , the extra void edges are and join the -run already started. The pattern is therefore one slope run, one -run, and one -edge per pair, including across the complementary arc back to 0, and . Multiplication by does not change the number of runs. □
For the sumset is and . For and the sumset is , the values of f are , and the forward symbols are , six runs. When the sumset is a single interval, the upper bound improves from to 3, by the closed form in the proof of Theorem 5, and Proposition 9 shows that 3 is best possible already for .
Proposition 10.
Assume (20) with , and suppose for some integer . Then . Explicitly, for every r when , and this function has one run of slope 1 and one cliff edge of slope , so the length is 2. When , is finite only at residue 0. The edges that leave 0 or stay at form one -run, and the edge that returns to 0 is , so the length is 2. When , one has for and otherwise. The finite edges form one run of slope 1, the complementary void forms one -run, and the edge returning to residue 0 is , so the length is 3.
Proof.
Here , , and . The formula is (25). If , then , so there is no truncation. The forward differences are 1 except on the single edge starting at . If , there is no finite edge. Every edge except the one arriving at 0 has symbol , and that arriving edge has symbol . If , then for , while for one has , which is discarded. All finite edges have slope 1. The edge leaving A and the later void edges have symbol , and the edge arriving at 0 has symbol . □
5.2.1. Complete Sequences
Theorem 5 bounds an arbitrary equal-efficiency sumset by . The sequences below are the case of one interval.
A finite sequence of positive integers is complete when and
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 and let be complete. For each ,
Proof.
The case is . If and , the new subset sums are
The second interval starts at or before and ends at , so the union is . □
Corollary 2.
Let , let be complete, and let for a common . Then for every . The length equals 3 while , and equals 2 once .
Proof.
Combine Lemma 5 with Proposition 10. The first weight is 1, so . The length is therefore 3 for , and 2 for . □
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 , , and for . For every ,
The weight sequence is not complete, and . In particular the length equals q for .
Proof.
The attainable weights are , with profits . The first weight is 2, so the sequence is not complete, and .
If , the classes 0 and 2 have profits and . Then . The symbols alternate between and , and the length is 4.
If , the four weights lie in distinct classes and . The forward symbols are 3, , , , . Consecutive symbols differ, including across residue 0, so the length is 5.
If , weight 6 falls in class 0 and . The symbols alternate, and the length is 6.
If , the residues carry profits , and 6 is adjacent to 0. That edge has slope . Each of the gaps , , and contributes one and one . These seven symbols differ from their neighbours, so the length is 7.
If , 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 residues equal to , with . Each gap contributes one -run and one , so the length is 8. □
The hypothesis 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 and moves the first profit off the ray .
Theorem 6.
Let , , , and . Define and for . If , then for ,
and for every residue when . When , one has , except when . In that exceptional case , and for every . When , one has for every .
Proof.
As in Theorem 4, each integer 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 . On a finite edge starting at an odd residue, the same formula gives the difference . These two numbers differ because . Consecutive finite edges therefore lie in different runs.
If , the finite edges form runs, the complementary void forms one -run, and the edge returning to 0 is , so . There is no finite wrap-around edge. If , the remaining edge runs from to 0 and has slope . Both neighbouring edges start at even residues, so both have slope . The wrap-around slope equals precisely when , that is, when . Otherwise the wrap-around edge is its own run and . If and , that edge coalesces with both neighbours and . If and , then is identically zero on and . □
For , the same weights and the profits fall under Corollary 2, so the envelope length drops from or to at most 3. For every sufficiently small one has . The length is then when , and when . 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 .
When 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 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 , target , and . Up-lift a variable of weight 1 and bound 2, then a variable of weight 3 and bound 1. For the first variable, and the formula returns . Two unit merges produce . For the second variable, and , so . The coefficient 0 produces , with forward differences and length 4. The coefficient 3, which Theorem 1 also allows, produces , with forward differences and length 2. Algorithm 3 returns the first of these two coefficients.
| Algorithm 1:Zero-one merge of a circular envelope |
|
| Algorithm 2:Bounded merge |
|
| Algorithm 3:Exact sequential up-lifting on |
|
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 is nonempty, is the exact coefficient of Proposition 2. For zero-one items each item contributes one merge. The number of arithmetic operations is linear in , and is therefore . If, in addition, the weights form a complete sequence and the profits satisfy for a common at every step, the number of operations is .
Proof.
By induction, the envelope represents of the variables already processed. Proposition 6 evaluates it at the residues . If is nonempty, Proposition 2 identifies the resulting minimum with the exact coefficient. If is empty, the algorithm sets , 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 .
Each zero-one merge costs linear time in the current length, by Theorem 3, and there is one merge per item. The sum is 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 . □
Each length is at most q, so the sum in Theorem 7 is , 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 , by Corollary 2. For a bound , the coefficient query in Algorithm 3 inspects up to u residues and the update performs 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 , the exceptional count 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 and , with weights and bounds , the square
has cardinality . For each modulus the box consists of every ordered triple with each , every target , and every right-hand side , with each bound equal to 1. Thus , which is 4500, 21952, and 121000 for , 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 and , with weights and bounds , started from . For every target and every finite right-hand side, some lifting set is empty. On each square with and , the final length attains when and when .
Proof.
The only finite residue of is 0, so is nonempty if and only if . The merge with weight 1 and any finite coefficient is finite exactly at residues 0 and 1. Then is nonempty if and only if . For every modulus these conditions on b are incompatible. The lengths use the restriction of to the square. At the algorithm returns , the later zeros being the empty-set convention. The final length is when , and when . Table 1 records that maximum, together with the minimum and the number of pairs that attain it. □
Proposition 13.
For each , the only complete triple in for which Algorithm 3 returns a proportional coefficient vector is .
Proof.
Evaluating every triple in gives the count. A coefficient vector is proportional when for a common and for every i. On this box every proportional vector has every nonempty. There are instances of the triple , with coefficients for each . Their subset sum is , so the final length equals 3. No other complete triple returns a proportional vector. The triple with target and right-hand side likewise returns and has final length 3. Those weights are not complete, and there are again such instances. The remaining proportional instances number 10, 28, and 80 for , 8, and 11, and each has final length greater than 3. Weights , target , and produce coefficients , with final lengths 6, 8, and 8. These are the three values of in Proposition 11. The final length q is attained in each box. On it is attained only with the empty-T convention: the maximum final length among the 220 instances in which every is nonempty is 8. One instance of final length 11 is the triple with , coefficients , and prefix lengths . The two zeros are the convention of Algorithm 3. Table 2 records these counts. □
7.1. Powers of Two
Every pair in is evaluated from . At every coefficient is 0. The value is identically 0 on the interval of subset sums. That interval is the whole group when , and the final length is 1. When the interval is a proper initial segment, and the final length is 3. Both endpoints in Table 1 are properties of .
7.2. Triples
For the weights and bounds , the script envelope_lengths.py reproduces Theorem 4 and Corollary 2 at every k from 1 to 12 and both moduli , once with profits and once with profits . 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 and the value is attained, with the same gap left open (Theorem 5, Proposition 9). The length or 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
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
- Padberg, M. W. A note on zero-one programming. Oper. Res. 1975, 23(4), 833–837. [Google Scholar] [CrossRef]
- Wolsey, L. A. Faces for a linear inequality in 0–1 variables. Math. Program. 1975, 8(1), 165–178. [Google Scholar] [CrossRef]
- Wolsey, L. A. Facets and strong valid inequalities for integer programs. Oper. Res. 1976, 24(2), 367–372. [Google Scholar] [CrossRef]
- Gomory, R. E. Some polyhedra related to combinatorial problems. Linear Algebra Its Appl. 1969, 2(4), 451–558. [Google Scholar] [CrossRef]
- 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]
- 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]
- 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]
- Wolsey, L. A. Valid inequalities and superadditivity for 0-1 integer programs. Math. Oper. Res. 1977, 2(1), 66–77. [Google Scholar] [CrossRef]
- 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]
- Atamtürk, A. Sequence independent lifting for mixed-integer programming. Oper. Res. 2004, 52(3), 487–490. [Google Scholar] [CrossRef]
- Zemel, E. Easily computable facets of the knapsack polytope. Math. Oper. Res. 1989, 14(4), 760–764. [Google Scholar] [CrossRef]
- Gilmore, P. C.; Gomory, R. E. The theory and computation of knapsack functions. Oper. Res. 1966, 14(6), 1045–1074. [Google Scholar] [CrossRef]
- 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 , for Proposition 12. Weights , bounds , and every pair in . “Full T” is the number of pairs for which every is nonempty. “At maximum” is the number of pairs whose final length equals the maximum.
Table 1.
Counts on the square , for Proposition 12. Weights , bounds , and every pair in . “Full T” is the number of pairs for which every 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 , for Proposition 13. The set is every ordered weight triple in , every target, and every right-hand side in , with three zero-one variables. “Full T” counts instances in which every is nonempty. “Proportional” counts coefficient vectors for some . “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 , for Proposition 13. The set is every ordered weight triple in , every target, and every right-hand side in , with three zero-one variables. “Full T” counts instances in which every is nonempty. “Proportional” counts coefficient vectors for some . “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 |
|---|---|---|---|---|---|---|---|
| 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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
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.