The numerical two-box allocation core #
This is the finite numerical induction in the proof of Lemma 1, p. 312, of H. Iwaniec, A new form of the error term in the linear sieve (1980). It does not assert the full lemma's admissibility geometry or construct sieve weights.
Every occurrence is assigned to exactly one box, in its original order. The input may carry arbitrary labels, with a real weight attached to each label. In fact the numerical argument does not require the weights to be nonnegative.
An occurrence-preserving partition into two subsequences. Each constructor puts the new final occurrence in exactly one of the boxes, even when labels repeat.
- nil {α : Type u_1} : BoxPartition [] [] []
- left {α : Type u_1} {left right input : List α} (a : α) : BoxPartition left right input → BoxPartition (left ++ [a]) right (input ++ [a])
- right {α : Type u_1} {left right input : List α} (a : α) : BoxPartition left right input → BoxPartition left (right ++ [a]) (input ++ [a])
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiLiuPrereqWFBoxAllocation.BoxPartition.sublists · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiLiuPrereqWFBoxAllocation.BoxPartition.perm · compiled type and proof/definition references.
Inspect dependencies
MathlibNt.SieveTheory.LiLiuPrereqWFBoxAllocation.BoxPartition.prod_eq · compiled type and proof/definition references.
If appending a factor overflowed both boxes, the squared-factor budget would be exceeded. No sign assumption on the box products or factor is necessary.
Inspect dependencies
MathlibNt.SieveTheory.LiLiuPrereqWFBoxAllocation.append_fits_one_box · compiled type and proof/definition references.
The actual indexed-prefix squared-factor condition, not an allocation premise.
Equations
Instances For
Inspect dependencies
MathlibNt.SieveTheory.LiLiuPrereqWFBoxAllocation.PrefixSquareBound · compiled type and proof/definition references.
Bridge between the indexed condition and the step used by the snoc induction.
Inspect dependencies
MathlibNt.SieveTheory.LiLiuPrereqWFBoxAllocation.prefixSquareBound_append_singleton_iff · compiled type and proof/definition references.
Construct the two boxes by appending each occurrence to a box that fits. This is the numerical core only, with no sieve-support or parity assertion.
Inspect dependencies
MathlibNt.SieveTheory.LiLiuPrereqWFBoxAllocation.exists_boxPartition_of_prefixSquareBound · compiled type and proof/definition references.
Real-list form with the explicit indexed hypothesis and the usual sublist, permutation, and product conclusions. The partition witness records disjoint occurrences; disjointness of values is neither required nor appropriate.
Inspect dependencies
MathlibNt.SieveTheory.LiLiuPrereqWFBoxAllocation.exists_real_box_partition · compiled type and proof/definition references.