# An effective barcode for the five-dimensional cube at every cardinality

Let F(N) be the greatest number of positive homothetic copies of the 32 vertices of the unit five-cube contained in N points of real five-space. The copies have sides parallel to the coordinate axes. Write B(N) for the descending barcode of the five-element antichain. Then

    F(N) ≤ B(N) for every nonnegative integer N.

This proves Mou’s Conjecture 1.4 for the antichain on five elements. For example, 1028 points support at most 276 five-cubes. The four-by-four-by-four-by-four-by-four grid already contains 276, so this particular upper bound is attained. At every fifth power N=n⁵ the maximum is the sum of the fifth powers of the nonnegative integers below n. At general cardinalities the theorem gives the upper bound. The conjecture for arbitrary finite posets remains open. [Mou, Conjecture 1.4 and Theorem 1.2](https://arxiv.org/html/2611.32429v2) · [All fifth powers](https://isitsolved.com/files/d23d8931edff9891d48638f5dab09c8076cbe89057df493d3d1c2073cabe5294/five-cube-all-grid-sizes.md)

The previous explicit theorem applies at every N ≥ 104⁵ = 12,166,529,024. The present calculation covers the 100 widths 4 ≤ n ≤ 103 between consecutive fifth powers and all 120 bars at each width. The sizes through 1027 also have an earlier finite proof. The inputs are integer inequalities for extremal functions on arbitrary real point sets. The calculation never enumerates grid subsets. [Explicit threshold and gap proofs](https://isitsolved.com/files/7022aa65d90589dc9210416c190505dc3c70c85b92db46d39bbfa876915b7c79/five-cube-explicit-barcode.md) · [Small-cardinality proof](https://isitsolved.com/files/f0e87fc7f1b192fcbfb901ebd2d3ed03382b01fe88dee175cacf9d7a517e3676/five-cube-median-bounds.md)

## Fixed-scale faces on occupied levels

When a cube is centered on an occupied plane x₁−x₂=q, its positive off-diagonal face lies at distance λ in the difference coordinate. Both x₁ and x₂ are fixed on that face. Its remaining coordinates form a cube of dimension k and prescribed side λ. Its vertices determine the parent. This observation also applies to the extreme faces of a stack whose middle lies on an occupied long-coordinate level.

In a family of fibres of total population a, suppose every fibre has its own prescribed positive side length. The total number of k-cubes of these prescribed sizes is at most

    Tₖ(a) = (a^(1/k)−1)^k,    a ≥ 1,     Tₖ(0)=0.

Indeed rescale each fibre to unit side. Within each coset of the integer lattice, place its finitely many points in a distant integer box by translation. No counted cube is lost by combining boxes from all cosets and fibres. Let L be the set of lower corners in the resulting integer host. Adding {0,1}ᵏ to L stays in the host. The union of closed unit boxes based at L has volume |L|. Its Minkowski sum with the unit box has volume |L+{0,1}ᵏ|, by decomposing the doubled boxes into unit cells. The Brunn–Minkowski inequality gives a ≥ (|L|^(1/k)+1)^k whenever L is nonempty. The checker uses an integer upper bound by rounding a^(1/k) upward to the next multiple of 1/256 in a(1−1/a^(1/k))^k. All rounding is certified by integer powers.

## Better bounds for stacks and intersecting sections

Use the two median planes of x₁−x₂ and x₃−x₄. On either plane let c be its population, Z the number of five-cubes centered there, and u its population outside the opposite plane. Let R(c) denote the maximal number of copies of the four-dimensional stack {0,1}³×{0,1,2}. The marked-edge inequality of the earlier two-plane argument gives

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

It follows that a hypothetical host can be ruled out if every admissible profile of either plane satisfies 8Z−4R(c)+c+u>N. [Marked edges and the union of the two planes](https://isitsolved.com/files/d23d8931edff9891d48638f5dab09c8076cbe89057df493d3d1c2073cabe5294/five-cube-all-grid-sizes.md)

For a stack choose an integer L between 1 and floor(c/2). If there is a long-coordinate gap with smaller population s ≥ L, an upper bound is the maximum of f₄(s)+f₄(c−s) on [L,floor(c/2)]. Here f₄ is an upper bound for the four-cube extremal function. Otherwise an occupied median has both open populations at most a=L−1. Any stack centered there gives a prescribed-scale three-cube in each open side and a three-cube on the middle level. Given any 0 ≤ h ≤ a, if one side has at most a−h points, the stack count is at most f₄(a)+f₄(a−h)+T₃(a−h). If both exceed a−h, the middle has at most c−2a+2h points. Thus in this second median alternative an upper bound valid without knowing h or the side populations is

    2f₄(a) + min(T₃(a), max(T₃(a−h)+f₄(a−h)−f₄(a), f₃(c−2a+2h))).

The same median calculation with a=floor(c/2) applies unconditionally. We choose trial values of L and h to improve the resulting bounds. Searches for good choices need no optimality assumption. For numerical f₄ we maximize the gap bound over all integer s in the chosen range. For the descending four-cube barcode, taking L at a true boundary allows maxima to be taken at boundaries of either reading, as in the earlier bar-packing proof. The effective three- and four-cube barcodes give f₃ and an initial f₄. [Three-cube word](https://arxiv.org/html/2611.32429v2#S6) · [Effective four-cube word and finite cut tests](https://isitsolved.com/files/efaa74a17e8c1818fffa345fb2a3b9ba6a56786514c83edd40f4a2211a48423f/four-cube-effective-barcode.md)

Each centered five-cube determines a distinct four-cube section on its median plane. Let d ≤ u/2 be the smaller open population when the other median cuts that plane. A centered four-cube section gives a prescribed-scale square in each of the two open sides. Noncentered sections on opposite sides give recoverable half four-cubes in those sides. Writing h₄ for the triangle-times-square upper bound gives

    Z ≤ h₄(d)+h₄(u−d)+T₂(d),     Z ≤ h₄(u)+T₂(u)/2.

The second inequality combines the two half hosts by translation after orienting their triangles identically. The two squares per centered section can be counted jointly on all off-plane fibres. A third bound is Z ≤ f₄(u)+3T₂(u)/2. A section with no vertex on the opposite plane lies in the u-point host. The remaining sections have lower difference q, q+λ or q−λ at that plane. The first type contributes two off-diagonal squares at distance λ. The latter two types each contribute one far square at distance 2λ. Within each of these two counts, the fibre, the square and the signed distance recover the section. For every trial lower bound z on Z, the checker excludes every u failing a necessary inequality and obtains a lower bound on u. Monotonicity of the integer upper tables justifies binary search.

## Bounds at outer gaps

Let K be Mou’s order-four clique function and f the certified half-five-cube barcode for x₁ ≤ x₂. A projection gap of ranks s,N−s gives F(N) ≤ F_H(s)+F_H(N−s), with F_H ≤ f. Use A=n³ binom(n,2), U=binom(n+1,4), V=binom(n+2,4), B₀=A+n⁴ and S=A−U. In addition to the published all-load anchor E=B₀+U we use two more. For either E′=B₀+V+U or E′=B₀+2V, and every v ≥ 0,

    F_H(E′+v) ≤ f(E′)+K(v).

To check this, apply the complementary-prefix cut rule in the preceding two-cut proof to the certified partition of cell 7374. For the first E′ its children are 1970,7371. The lower word is (0,1,1,1,1), the terminal index is 9, and for each t from 5 to 9 the complementary upper prefix is 30−t. At upper prefix 24 swap the adjacent labels 1,2 at positions 24,25, numbered from one, moving the larger label earlier. This reordered barcode dominates the original by the adjacent-swap inequality. For the second E′ the children are 0,7373. Use lower simplex prefix 3 and upper prefix 24. In both cases the budget and score are the root prefix at index 25 plus the budget and score of a bar with label n+1 or n+2 respectively. These are polynomial identities of degree at most six. The checker verifies both identities at seven widths for every complementary pair, verifies the period-shift identity for each lower word, and checks that the named cuts occur in the geometric certificate. [Complementary-prefix rule](https://isitsolved.com/files/e3a5bbf63d6fbbab11cce307be8766e2420e2b3ae9ca84903a9fa8809239f093/five-cube-eventual-barcode.md) · [Geometric certificate](https://isitsolved.com/files/b260822e9627b5967392452bfa066bc1be7e1f77568eae2244581d36a348586a/geometric-cuts.md)

For the first bar the analytical gap cutoff is S−max(U−r,0), where r is the load. For bars 1 to 26 the cutoff S is used only after checking that every needed half-word slot before the next large label has sufficient capacity and that the periodic endpoint-loss inequality holds at this width. For bars 27 to 92 the checker finds a half prefix whose combined inventory from A and B₀ fits the parent’s single label 4 and twenty-six labels 3, with all other relative labels at most 2. For the last 27 bars it uses the backwards cutoff at the upper width. These are the finite forms of the gap arguments proved in the explicit-threshold manuscript. Where an analytical cutoff is unavailable, every smaller rank starts as a candidate. Additional ranks are removed only by checking both half scores against the desired parent score. [Four gap arguments and their hypotheses](https://isitsolved.com/files/7022aa65d90589dc9210416c190505dc3c70c85b92db46d39bbfa876915b7c79/five-cube-explicit-barcode.md)

## Finite tables and interval coverage

The table for F_H uses certified words for the two children of a cut. If an integer rank is forbidden for a target Y, search for the nearest admissible ranks on either side. If these are l,j, an occupied level has open populations at most l,N−j. Its count is at most the lower child bound at l plus the upper child bound at N−j plus min(l,N−j). Missing exterior ranks already exclude the target. Using only one pivot and a bounded cut depth still gives valid upper bounds. The dense table extends through 170,000. The short table through 1,100 uses the entire certified cut graph and every adjacent pair of admissible ranks. Smaller four-dimensional tables use the corresponding chain and fork cut of the half four-cube and two medians of the full four-cube. [Initial tables, projection gaps and small union sizes](https://isitsolved.com/files/f0e87fc7f1b192fcbfb901ebd2d3ed03382b01fe88dee175cacf9d7a517e3676/five-cube-median-bounds.md)

A third table computes upper bounds at multiples of 16 through 3,400,000. At size 16j map every actual cumulative gap rank s to i=ceil(s/16). Its upper-side population is at most 16(j+1−i). Thus the two child arrays at indices i,j+1−i give a necessary gap test. If the tested index interval between l and r is forbidden and has an interior forbidden index, the occupied level crossing it has at most 16l points below and 16(j+1−r) above. Exterior rounding uses the looser artificial endpoint j+1, whose child value is also an upper bound. The actual exterior cumulative ranks round to 0 and j. A search that exhausts the left or right range without finding an admissible index would also exclude the corresponding actual exterior rank. The centered term is 16 min(l,j+1−r). Rounding the queried budget upward gives a bound between sampled sizes. Children are computed before their parents. Padding allows a smaller-size entry to be decreased to any larger-size upper bound.

In each parent bar test a closed interval of loads. Use its least target Y=B(N_min)+1 and its greatest population N_max. For a common open-side cap b and plane population at least a, maximize the two open half scores with each size at most b and their sum at most N_max−a. This gives a uniform lower bound z on centered cubes. For the raw barcode enlarge the cap to the next true boundary, which permits the complete complementary-bar calculation. For numerical bounds subdivide the rank interval using monotonicity of the actual extremal counts on both sides. The two candidate side sizes in a subinterval are always bounded by their respective worst endpoints. For a plane-population interval [a,c] the lower bounds z and u versus the stack upper bound at c exclude the entire interval when 8z−4R(c)+a+u>N_max. Also 2Z≤N−c, by injection into either open side. Subdivision continues to singletons when necessary. A finite search limit triggers further subdivision or an unresolved case. Padding settles earlier positions in a constant parent-score interval with a certified right endpoint.

## Closing the last nine sizes

Before the argument below the finite census leaves exactly 1028 and 1031 through 1038. For any one of these point counts, keep the two medians and the four-dimensional sections used above. In the open part of one median plane on a given side of the other, use the two coordinates defining the other plane as the base coordinates. Over each occupied base point there is a finite fibre in the two remaining coordinates. Write m₁ ≥ m₂ ≥ … for their sizes, omitting fibres with fewer than four points when counting squares, and put

    qᵢ = mᵢ+1−ceil(2 sqrt(mᵢ)).

A fibre has at most qᵢ squares of any one prescribed side length by the fixed-scale face bound. Let H count noncentered four-cube sections directed toward this side and D count double-centered sections. Then, simultaneously on that side,

    D ≤ Σᵢ qᵢ,
    H ≤ Σᵢ (K₂(i)−K₂(i−1)) qᵢ.

For D the plane difference in that fibre specifies the square’s side length. Each such square recovers its centered parent. For H, the recoverable triangle-times-square piece projects to one fixed orientation of a triangle in the two base coordinates. Every individual projected triangle specifies its own scale and contributes at most the least qᵢ of its three fibres. At each integer threshold j≥1, the number of projected triangles on fibres with qᵢ≥j is at most K₂ of the number of these fibres, by Mou’s simplex theorem in dimension two. Summing the thresholds gives the second bound by telescoping. No common scale assumption is imposed on different projected triangles. [Mou, Theorem 2.4](https://arxiv.org/html/2611.32429v2#S2)

For a budget d on this side, `fibres.py` computes the largest possible sum of qᵢ for each lower demand h on the weighted triangle bound. It appends fibres in decreasing order of size. Appending the ith fibre adds qᵢ to the square sum and (K₂(i)−K₂(i−1))qᵢ to the triangle allowance. Since unused points are permitted, only the least size giving each distinct positive qᵢ needs consideration. The table takes maxima over all budgets at most d and all fibre counts. The previously verified half-four-cube upper bound further restricts h. For a pair of open populations d,u−d, maximize h+h′+min(q,q′) over the two tables of feasible upper bounds. Every centered five-cube contributes either one noncentered four-cube section on one side or one centered section using a prescribed-scale square on *both* sides. Thus the resulting score bounds Z. This keeps track of the fact that a fibre distribution supporting many projected triangles has fewer squares available to centered sections.

For each of the nine singleton loads the verifier checks every plane population c from its established lower bound through N. Its lower bound z on centered copies already excludes c if 2z>N−c. In all other cases, a profile evading the marked-edge contradiction would require u ≤ min(c,N−8z+4R(c)−c). All nonnegative u in this last range are at most 230. The fibre calculation gives Z<z throughout the range at all nine sizes. This closes the finite verification.

## Reproduction

Run `python3 verify.py --workers 3` in the archive to replay the 12,000 bar checks, the sizes below the first tested period, the complementary-prefix identities, and the nine final fibre comparisons. This command uses Python 3.11 or later and NumPy. Run `python3 regenerate.py` with a C++17 compiler to regenerate the finite half-cube and stack tables from the original geometric certificate. Assertions must be enabled. The earlier explicit theorem supplies all N≥104⁵. The archive includes its checker in `large-widths`, sharing the same geometric input. Run `python3 large-widths/verify.py` to replay that part.
