# The five-cube barcode for every point count from 12,166,529,024 onward

Let F(N) be the greatest number of translates and positive dilates of the vertex set of the unit five-dimensional cube contained in an arbitrary N-point subset of real five-space. Let B₅ be the descending barcode for the antichain on five elements in Mou’s Conjecture 1.4. Then

    F(N) ≤ B₅(N) for every integer N ≥ 104⁵ = 12,166,529,024.

Thus a counterexample in dimension five must occur below an explicit point count. Earlier work proved the eventual inequality and settled every fifth power. The present proof gives a finite range for the remaining intermediate cardinalities. It also gives a direct packing argument for the 66 central bars and a single backwards argument for the 27 terminal bars. The conjecture for general finite posets remains open. [Mou, Conjecture 1.4 and Definition 4.4](https://arxiv.org/html/2611.32429v2) · [Earlier eventual theorem and half-cube inequality](https://isitsolved.com/files/e3a5bbf63d6fbbab11cce307be8766e2420e2b3ae9ca84903a9fa8809239f093/five-cube-eventual-barcode.md)

## Bar arithmetic

Write C(m,k) for a binomial coefficient, K for the order-four clique score, and Kⱼ for its order-j analogue. For a capacity M=C(m,4), its full score is K(M)=C(m,5). Write R_M(s)=floor(s/M)K(M)+K(s mod M) for the score in consecutive copies of that bar and D_M(s) for the cost of erasing s units from their right end. Thus D_M(aM+t)=aK(M)+K(M)−K(M−t) for 0≤t≤M.

Any interval of length t≤M in the periodic score R_M earns at least K(t) and at most D_M(t). For an interval staying inside a bar these follow from superadditivity and the full-binomial endpoint inequality. For a crossing interval the two pieces have sizes h and t−h and earn K(M)−K(M−h)+K(t−h). The lower bound follows because an increment of length h ending at t costs at most the increment ending at M. For the upper bound use K(M−h)≥K(M−t)+K(t−h). Removing whole periods gives the periodic upper bound D_M(s) at every length. In particular D_M is subadditive and D_M(s)−D_M(s−t)≥K(t) whenever 0≤t≤min(s,M). A terminal loss of length s in a larger full bar of capacity V≥M dominates D_M(s). Break off intervals of length M, each worth at least K(M), and leave the last s mod M units at the end of V, where the endpoint inequality applies. [Mou, Lemmas 2.1 and 2.2](https://arxiv.org/html/2611.32429v2#S2)

A collection of full bars with freely assigned partial loads earns at most the score obtained by filling its largest capacities first. For two loads whose sum fits in the larger bar, apply superadditivity. Otherwise fill the larger bar and apply the endpoint inequality at its capacity. Iterating fills the largest bar first and gives the claim inductively. Adding more available bars or increasing their capacities preserves this upper bound as a permissible relaxation.

Write Q=Σⱼ₌₀ⁿ⁻¹j⁵, J=Σⱼ₌₀ⁿ⁻¹j⁴, and set

    H=C(n,4), U=C(n+1,4), V=C(n+2,4), M=C(n+3,4), T=C(n+4,4),
    W=C(n+1,5), G=C(n−1,4), A=n³C(n,2), B=A+n⁴, S=A−U, E=B+U.

Here A+B=S+E=n⁵. Let f be the effective barcode for the closed half of the cube cut along x₁=x₂ and Fₕ its actual extremal function. At A the half score is b₀=(Q−J)/2. From A to B the first 24 bars of its certified 60-letter word have capacity n⁴ and score J. The two bars immediately before A have capacity U, and the bar beginning at B has capacity V. In particular f(S)+f(E)=Q. We use the all-load bound Fₕ(E+v)≤f(E)+K(v), v≥0. Its two additional cuts and the underlying geometric certificate are replayed in the archive. At a gap of a coordinate-pair projection, with populations s and N−s, the five-cube count is at most Fₕ(s)+Fₕ(N−s). [Certified geometric words](https://isitsolved.com/files/b260822e9627b5967392452bfa066bc1be7e1f77568eae2244581d36a348586a/geometric-cuts.md) · [Two-cut inequality](https://isitsolved.com/files/e3a5bbf63d6fbbab11cce307be8766e2420e2b3ae9ca84903a9fa8809239f093/five-cube-eventual-barcode.md)

## Forward gaps

Number the 120 parent bars from 0. Their relative labels are 4 once, 3 twenty-six times, 2 sixty-six times, 1 twenty-six times and 0 once. Let Pᵢ and Yᵢ be the total capacity and score of the first i bars in the period beginning at n⁵. In bar i, N=n⁵+Pᵢ+r and the desired count is Q+Yᵢ+K(r). In every gap take s to be the smaller population.

In bar 0 every gap with s≥S−max(U−r,0) already proves the desired bound, by the two-cut inequality and the central reversed block. When S≤s<S+r use the two upper bounds at S and E with additional loads summing to r. When s=S−t<S the relevant case has t+r≤U, and the endpoint inequality bounds K(U−t)+K(t+r) by K(U)+K(r). When s≥S+r use the reversed block with a capacity U at each end. [First-bar gap proof](https://isitsolved.com/files/e3a5bbf63d6fbbab11cce307be8766e2420e2b3ae9ca84903a9fa8809239f093/five-cube-eventual-barcode.md)

For bars 1 through 26 put d=N−n⁵, so T≤d≤T+26M. Every gap with s≥S suffices. If s≥A and N−s≥B, the two gains above A,B have total load d. In either half they use only the first 36 bars after the indicated start. Indeed 36H≥T+26M+U for n≥104, and those bars all have capacities between H and M. Thus their total gain is at most R_M(d), bounded by the parent's gain upon adding an available bar of capacity T. If s≥A and N−s≤B, use the central block, which is dominated by its reversal by adjacent swaps moving larger labels to the left. View one prefix and the opposite suffix as covering the block with overlap d. When the overlap lies in one bar, the two partial rewards less its full reward are at most K(d). When it spans more than one bar, the excess consists of the two partial rewards and intervening full rewards, with total load d. All capacities are at most M, so the same packing bound applies. [Central word and reversal](https://isitsolved.com/files/a8fdce885e3b3332b0771c46671b308e6572734ae8adba13d8bd4ed6c6629ec1/five-cube-additive-bound.md)

It remains to take s=A−t with 0≤t≤U. The heavy side has filled its first bar V after B. Its remaining gain is at most R_M(d+t−V). Thus the excess above the parent is at most

    K(V)−K(T) + D_M(T−V+t) − [K(U)−K(U−t)].

Put z=U−t. The interval lower bound of length z gives D_M(T−V+t)+K(z)≤D_M(T−V+U). Now T−V+U=M+(n+1)². The canonical top indices for M−(n+1)² are n+2,n−1,n−4,n−10 in orders 4,3,2,1. Raising the lower indices gives D_M((n+1)²)=M−U−36. Pascal's identity therefore makes the displayed excess at most −36. This proves the gap claim over all 26 bars.

For bars 27 through 92 choose L=floor((i−14)/2) and b=A plus the first L half-word capacities after A. Every gap with s≥b suffices. Both increments from A,B are nonnegative because d≥T+26M≥n⁴ and the heavier side has at least N/2 points. The light increment is bounded by (n⁴+Pᵢ₊₁)/2. The heavy increment is at most Pᵢ₊₁−(b−A). For each i the verifier selects enough consecutive bins after A and B to hold these respective upper bounds for every n≥104. In their combined inventory at most one has relative label 4, at most 26 have label 3, and all others have label at most 2. Fill the available bins in decreasing order, allowing the full parent inventory of labels 4 and 3 and an unlimited supply of bins of label 2. At total d the resulting upper bound is exactly the parent gain. The two capacity inequalities per inventory have degree four. Their forward differences at 104 are nonnegative, proving them for all larger integer widths.

## Backward gaps for the last 27 bars

Use n for the width at the *upper* fifth power. Write N=n⁵−e, 0≤e≤G+26H. The parent loses D(e), equal to D_G(e) through e=G and to K(G)+D_H(e−G) afterwards. At every such e, D_H(e)≥D(e). For e≤G this is the endpoint inequality applied to the two capacities. For e≥G retain the final e−G units of the periodic H tail, then use the interval lower bound K(G) on the preceding G units.

Every gap with s≥S−e−H gives at most Q−D(e). If s≥S, both populations lie in the block [S,E], whose two end bars have capacity U and whose interior is the central reversible block. The right end uses the first U units of the actual bar V. After reversing one reading, the two populations leave a missing interval of length e. If this is in one bar, superadditivity bounds the sum of the remaining partial scores by the score at its remaining capacity. Otherwise the missing score is the sum of two end losses and the intervening full rewards. Each bar has capacity at least H, so the combined loss is at least D_H(e) by subadditivity.

If s=S−t<S, then 0<t≤e+H. At S the previous 28 bins all have capacity at least H. The first 28 bins read backwards from E, including its initial truncated bin U, have the same property. This suffices because e+H≤28H. The loss on the light side is at least D_H(t). When t≤e the heavy side loses at least D_H(e−t), proving the claim. When t>e, the heavy side gains at most K(t−e) by the two-cut inequality. Since t−e≤H, the periodic interval lower bound gives D_H(t)−K(t−e)≥D_H(e). This completes the backwards gap proof.

## Medians and an exact bound for the clique shortfall

Suppose the count exceeds the target. For each of the two directions x₁−x₂ and x₃−x₄ take an occupied median. Each of its two open populations is at most the gap cutoff proved above, since an adjacent gap at any larger open population would already exclude the host. Write c for the median population and Z for the number of five-cubes centered on it. Open populations a,b give Z≥B₅(N)+1−f(a)−f(b) and Z≤N/2.

Set p=(n−5)/5. Throughout the previous half period and the current one, removing a tail from a full bar of label at least n−1 costs at least p per unit on average, by full-binomial incidence. Consequently, below a full boundary of score v and budget s₀ in these periods the upper score at a is at most v−p(s₀−a). All relevant open populations are in these periods. Indeed, one below the previous period start loses at least (n−1)⁴(n−2)/2 measured from b₀. In the forward bars use the other side's full cutoff, or A for bar 0. The verifier checks that the resulting centered count exceeds the largest N/2 allowed in that bar. In the backward case the other side has lost at least D_H(e+H)≥D(e)+K(H) measured from f(S), which gives the same contradiction. [Full-bar incidence and period argument](https://isitsolved.com/files/2722b9fc2eac5e66efc436ed9b31c276ea24530afb7f62aea7c973cb3c527963/five-cube-grid-extremality.md)

For a nonnegative real slope v define Dₖ*(v)=maxₜ(vt−Kₖ(t)), over nonnegative integer t. Let sⱼ=ceil(j(v+1)−1). Then

    Dₖ*(v) = Σⱼ [v C(sⱼ,j)−C(sⱼ,j+1)]
           ≤ Σⱼ [jʲ(v+1)ʲ⁺¹/(j+1)!],             1≤j≤k.

Indeed the difference of each summand when its top increases from s to s+1 is C(s,j−1)[v−(s−j+1)/j]. The indicated tops maximize the separate terms, and they are strictly increasing, hence compatible in a single canonical expansion. The displayed upper bound uses sⱼ≤j(v+1) and sⱼ≥j(v+1)−1. Write D* for order four.

For the two planes, let uᵢ count points on plane i outside the other and let R(c) bound copies of the four-dimensional stack {0,1}³×{0,1,2} in c points. Marking fifth-coordinate edges gives

    N ≥ Σᵢ [4Zᵢ−2R(cᵢ)+(cᵢ+uᵢ)/2].

The effective four-cube word and a median in the stack's long direction give R(c)≤2(c/2)⁵ᐟ⁴/5−2δ(k)+c/2, where k=floor((c/2)¹ᐟ⁴) and δ(k)=k⁵/5−Σ_{0≤j<k} j⁴. The correction is nonnegative and nondecreasing. It follows by bounding the four-cube score on each period by the tangent of t⁵ᐟ⁴/5 at the starting fourth power, retaining the difference there. Put M₀(c)=8(c/2)⁵ᐟ⁴/5. It suffices to prove for each median

    8Z+8δ(k)+u−c−N > M₀(c).

The derivative M₀′(c)=(c/2)¹ᐟ⁴ is at most 6n/5 for c≤4n⁴. [Marked edges and stacks](https://isitsolved.com/files/a8fdce885e3b3332b0771c46671b308e6572734ae8adba13d8bd4ed6c6629ec1/five-cube-additive-bound.md) · [Union of the two planes and exact stack inequalities](https://isitsolved.com/files/d23d8931edff9891d48638f5dab09c8076cbe89057df493d3d1c2073cabe5294/five-cube-all-grid-sizes.md)

For bars 1 through 92 let b be the full cutoff, N₀=n⁵+Pᵢ, x=N₀−2b and z=Q+Yᵢ+1−2f(b). Then c≥x+r and Z≥z+K(r)+p(c−x−r). The verifier first substitutes c=4n⁴ into this lower bound, conservatively using the largest r and discarding K(r), to exclude larger populations. Since 8p−1≥6n/5, the median comparison is weakest at c=x+r. Use M₀(x+r)≤M₀(x)+(6n/5)r. A sufficient test is

    8z−8D*((2+6n/5)/8)+8δ(floor((x/2)¹ᐟ⁴))−x−N₀ > M₀(x).

In bar 0 take x=n⁴+3U and z=J+2W+1+pU. Its gap cutoff implies c≥x, and its full boundary S gives Z≥z+K(r)−pr+p(c−x). The same test now uses D*(p+1/8) and N₀=n⁵. The upper limit on c uses K(r)−pr≥−D*(p).

In the backward bars put q=(n−4)/5 and x=n⁴+2(U+H). Every full H bar has score qH, and K(G)≤qG. For a terminal partial loss in either bin, using K(t)≥qt−D*(q) on the remaining load gives D(e)≤qe+D*(q) throughout. The cutoff gives c≥x+e. With z=J+2W+1+2pH−D*(q), the full boundary S gives Z≥z+p(c−x)−e/5. The verifier checks this excludes c≥4n⁴. At c=x+e the coefficient of e in 8Z−c−N is at least 8(2p−q), which exceeds 6n/5. Hence it suffices to test 8z+8δ−x−n⁵>M₀(x).

## Replaying the certificate

Run `python3 verify.py` with assertions enabled. For n≥500 the program uses the polynomial upper bound on D* and drops δ. Each inequality is polynomial in n after raising the positive sides of the marked-edge comparison to the fourth power. The largest degree is 20. The verifier checks nonnegative forward differences in every order through the degree at 500. Newton's formula then proves all the inequalities for every larger integer n.

For 104≤n<500 the program first uses the exact D* and δ. Some widths require a sharper test in bars 0 or 1. It subdivides intervals of loads and populations, using the least clique score and the largest adverse linear contribution on each rectangle. For bar 0 at loads r≤U the two open sides also give Z≥J+4W+1−K(r), from their common cutoff within the full bar before S. For either plane, its four-cubes centered there give Z≤h(u)+u/2 with h the effective triangle-times-square barcode. The verifier inverts this nondecreasing upper bound on the integers to give a lower bound on u.

For another stack bound put k=floor(c/2) and choose an integer h₀ between 0 and k. At a median of the long coordinate let both open populations be at most k. If one is at most k−h₀, the count is at most f₄(k)+f₄(k−h₀)+k. Otherwise the central population is at most 2h₀+1 and the count is at most 2f₄(k)+f₃(2h₀+1). Here f₄ and f₃ are the effective four- and three-cube barcodes. Every h₀ gives an upper bound by taking the larger alternative. Bounds at the upper end of a population interval apply throughout it by monotonicity of the actual stack extremal function. All arithmetic uses integers or rational numbers, including the final fourth-power comparisons. The certificate covers all integer loads in each of the 120 bars. The replay checks 472 polynomial inequalities and all 396 integer widths from 104 through 499. It visits 51,866 population rectangles in 208 bar checks that use the sharper bound. The finite range below 104⁵ remains a separate problem. [Three-cube word and clique arithmetic](https://arxiv.org/html/2611.32429v2#S6) · [Effective four-cube barcode](https://isitsolved.com/files/efaa74a17e8c1818fffa345fb2a3b9ba6a56786514c83edd40f4a2211a48423f/four-cube-effective-barcode.md)
