# Strength four: rules, growth and what limits them

## The question

What exact rules govern binary arrays of strength four, how far can they be pushed by adding a column or removing rows, and what limits them?

## Why it matters

These rules are how strength-four arrays are checked, extended and trimmed, and they show where the limits are.

## What answering it would help with

Others can use them to build or trim arrays at other widths, and they mark the gap between the arrays and the lower bounds.

## What our research shows

Several exact rules hold for strength four, growth by cloning works but costs many rows per column, and published inequalities leave a gap of 98 to 120 rows to the arrays we supply.

Chapters 1 to 4 described 29 arrays of strength four, and chapter 5 says how they were made. This chapter gives the exact rules that apply to such arrays, ways of growing an array that cost too much, and the lower bounds.

### Exact rules

Each rule below is a statement about all binary arrays of strength four.

**The support rule for one more column (proved in Lean).** A new column keeps strength four exactly when, for every choice of three old columns and every one of the eight patterns on them, the rows showing that pattern include a row where the new column is 0 and a row where it is 1. This is the test used to add each column to the 141 × 199 starting table, and the one a 346th column would have to pass (chapter 11).

**The completion rule for extra rows (proved in Lean, for the set of missing patterns).** Suppose you keep a block of rows and want to add r more rows to make a strength-four array. List the four-column patterns that no kept row shows. Join two missing patterns when they ask for opposite bits in some column (a single row cannot show both). Then r new rows suffice exactly when this *conflict graph* can be coloured with r colours so that joined patterns get different colours. Each colour class becomes one row. The rule is exact in both directions. The same rule, in graph form, is the colouring form of fixed-row replacement. (Rows of the new block need not be filled in outside the patterns they carry.) Lean proves the rule for the set of missing patterns; the step from an array file to that set is written, not Lean, and was tested on 960 exhaustive comparisons over 240 seeded systems, all agreeing.

**The block rule.** For a block of new columns, the conditions to check include every choice of j new and 4 − j old columns for j = 1, 2, 3, 4. Checking j = 1 alone is not enough. PROVED-written.

**Projection (proved in Lean).** Keeping any set of columns of a strength-four array keeps strength four; permuting columns and flipping a column's 0s and 1s also keep it. Lean proves the restriction and the permutation (the projection theorem) and, separately, the flipping (a theorem of the 48-theorem package). This is why an array with more columns gives arrays with fewer: every comparison with the pinned table uses this rule.

**Width for a given number of rows (proved in Lean).** A binary array of strength four with N rows and at least four columns has at most 2^(N−1) columns. This is far from the sizes in this book, and no sharper bound is claimed.

**A tempting invariant that fails.** One might hope that if each new column splits every triple of the original array, adding such columns one at a time stays valid. It does not: on the 16-row table of all patterns of four switches, adding the parity column and then the same parity column again gives two columns that each pass the test against the original columns but never differ. The exhaustive check of all 65,536 candidate columns of that table finds exactly two that extend it: parity and its complement.

### Growth works but costs too much

Can a strength-four array always be grown by one column? The answer in the cases computed is yes, at a price.

- **Cloning a column (proved in Lean).** Copy column 1, then add rows that repair the patterns the copy cannot show. With m = ⌈log₂(k−1)⌉, a k-column array with N rows becomes a (k+1)-column array with N + 4m + 4 rows. Lean theorems prove the construction and these counts. At width 345, m = 9, so cloning a 170 × 344 array gives 210 rows, 40 more than the 170 × 345 array supplied here.
- **Repair rows.** Copying a column needs at least eight repair rows (proved in Lean). Complementing a column needs at least eight as well; that follows from the copy case by flipping the column, and is a written argument (PROVED-written), not Lean.
- **No universal one-row extension (proved in Lean).** There is no universal one-column, one-row extension: the 16 even-parity rows on five bits cannot take a column plus one row.
- **A full linear block (proved in Lean).** A binary linear block in which every four columns are independent needs at least 65,536 rows at width 345; the pinned bound there is 174.
- **Affine blocks.** Twelve affine blocks give a 170-row block at width 345 that needs at least 4 repair rows (one four-column set misses four words that no single row can repair together); the construction tried used 58, for 228 rows. Neither count reaches the 170 rows of the array supplied at width 345.

These results indicate that growth by cloning, one column at a time, cannot keep up with the rows of the arrays supplied here; whether another growth rule could is not decided, and further research is recommended.

### Removing rows

For 23 of the 29 arrays, rows were removed one at a time and each removal was repaired by changing cells (chapter 5). This row-removal-and-repair step follows the post-optimization approach of Nayeri, Colbourn and Konjevod (2009; 2013): adjust a covering array to reduce its rows while keeping full coverage (Peyman Nayeri, Charles Colbourn and Goran Konjevod, Randomized postoptimization of covering arrays, IWOCA 2009, Lecture Notes in Computer Science, doi:10.1007/978-3-642-10217-2_40; journal version, Randomized post-optimization of covering arrays, European Journal of Combinatorics 34 (2013) 91-103, doi:10.1016/j.ejc.2012.07.017). The comparison table this book links lists post-optimization constructions for many of its rows (postop NCK, postop TJ-SA). No priority is claimed for this step. The 145 × 206 array, and the arrays at widths 202 to 205 cut from it, have 3 rows fewer than the 148 × 206 table grown from Smolen's array; the arrays at width 223 and at widths 329 to 345 have 26 and 9 rows fewer than the 179-row half-Paley array. The arrays at widths 200, 201 and 325 to 328 had no rows removed. Whether more rows can be removed at any width is not known.

For the narrowest case, replacing two removed rows by one row, the one-row replacement criterion is exact: it succeeds exactly when the missing patterns, taken from the kept rows, never ask for opposite bits in the same column. The Check it yourself guide says how to test any pair of rows of any array in this book from the array bytes; the test takes about as long as the full check of one array. A failure is narrow: *these two rows cannot become one*. It does not say that a smaller array is impossible. A further result adds that the simple shortcut of looking for a clique of mutually conflicting patterns has at most 15 vertices when at least one row is kept, so a clique alone cannot rule out large replacements.

### Lower bounds

**Published inequalities.** From the published inequalities (Kleitman and Spencer 1973; Roux 1987; Choi, Kim and Oh 2011 and 2012; Rényi; Katona), exact computations give: at least 47 rows at widths 201 to 203 and at least 50 rows at widths 325 to 342. (The ordinary fractional bound alone gives just 16 at width 201.) The arrays supplied at those widths have 145 rows (201 to 203) and 166 to 170 rows (325 to 342), so the gap is 98 to 120 rows. No lower bound was computed at widths 200, 204 to 206, 223 or 343 to 345. The smallest possible numbers of rows are not known. These are calculations from known inequalities, not a new method.

### Other facts

- **Support antichain.** Distinct triple-pattern supports of a valid array form an antichain, so the clause set for a one-column extension has no repeated or redundant clauses.
- **Strength five.** Five attempts at a binary strength-five array with 16 columns and 97 rows ended with 3 to 7 patterns still missing.

### Credit

The starting tables, the table and the bounds are other people's work: R. E. A. C. Paley (the 1933 construction), Christopher Smolen (the 141 × 199 and 165 × 324 starting tables, CC BY 4.0), Kokkala and Hiess (the column criterion), Colbourn, Groemping, Sloane, Sherwood, Martirosyan and Colbourn, Walker and Colbourn, Colbourn and Lanus, and Hyun, Mondal and Lee (for the code constructions compared above). See the credits page.

## Check it yourself

Recipe 5 of the [check guide](../VERIFY.md) tests the one-row replacement for any pair of rows; recipes 9 and 10 build the Lean files behind the Lean-proved rules.

## Where to go next

- Can the widest array take one more column? [Chapter 11: the 346th column](11-the-346th-column.md).
- What did not work? [Chapter 16: the ledger](16-the-ledger.md).
