# Strength two: one-column extension and a famous hitting-set puzzle

## The question

At strength 2 every pair of switches must show all four patterns.

The one from chapter 5: can a finished strength-2 table take one more column, and how hard is it to decide?

## Why it matters

At strength 2 the question turns out to be monotone duality, a hitting-set problem whose exact complexity is still open.

## What answering it would help with

Progress on either question may carry over to the other.

## What our research shows

At strength 2 the question is the same as a well-known hitting-set puzzle, so it can be decided in quasi-polynomial time (a written proof) and, assuming the Exponential Time Hypothesis, is not NP-hard (a conditional statement).

### The idea in plain words

Pick one row of the table and call it the reference row. Flip columns (swap 0 and 1 in a column; this never changes whether a table is a covering array) until the reference row is all zeros. Now each column is described by the set of other rows that hold a 1. Call these sets T_1, T_2, T_3 and so on.

For the table to have strength 2, two things must hold, because the pair (0,0) is guaranteed by the reference row and the other three patterns need witnesses:

- any two of the sets must **meet** (some row has a 1 in both columns), and
- no set may **contain** another (otherwise a pattern is missing).

A list of sets with these two properties is an *intersecting antichain*. The table can take one more column exactly when this list is **not maximal**: when some further set could be added without breaking the two properties. Lean checks the anchored form of this.

### Hitting sets and duality

Take a list of sets. A **hitting set** (also called a *transversal*) picks at least one element from every set in the list. The **minimal hitting sets** are the hitting sets with nothing to spare. Given a list and a proposed list of its minimal hitting sets, **monotone duality** asks: is the proposed list complete? (If the proposed list is the full list of minimal hitting sets, the two lists are *dual*.) A well-known algorithm for this question, by Fredman and Khachiyan (1996), takes quasi-polynomial time: not polynomial, but far below exponential. Whether a polynomial algorithm exists is a well-known open problem.

### What was shown

- **Reduction to duality questions.** For every binary strength-2 table with N rows, the question 'can it take one more column?' reduces to **N-1 duality questions**, each of polynomial size. Hence strength-2 extension can be decided in quasi-polynomial time. Status: PROVED-written, accepted in a separate reading, and compared with brute-force search on thousands of random tables with no disagreement.
- **No likely NP-hardness.** If someone found a polynomial reduction from not-all-equal 3-satisfiability (an NP-complete problem) to strength-2 extension, then that problem could be decided in time 2^{o(log² n)}, contradicting the Exponential Time Hypothesis. Status: CONDITIONAL, since it depends on that hypothesis. It indicates that strength-2 extension is unlikely to be NP-hard; further research is recommended before drawing a wider conclusion.
- **The equivalence with duality.** Strength-2 extension and monotone non-duality can each be turned into the other, with the answer preserved. **Lean proves both reductions correct, with their size bounds** (see the Lean theorem table). That each can be carried out in polynomial time is a separate, written result (PROVED-written). The reverse direction (from duality to a table) is, word for word, Theorem 4.13 of Eiter and Gottlob (1995), who credit Seymour. The forward direction, from any covering array to a duality question, is the part we did not find stated in the sources checked for it (Katona 1973, Kleitman and Spencer 1973, the 2011 survey of Lawrence and co-authors, Eiter and Gottlob 1995, the literature on non-dominated coteries, Elbassioni 2016, Colbourn and McClary 2008, and Shi, Tang and Yin); a specialist should be asked before anyone calls it new. The running time of carrying out the construction is proved on paper only, not in Lean.

### Easy cases and a counter-example

- **Easy cases.** In the family form, the table extends exactly when some hitting set exists that neither contains nor is contained in any set of the list (an *incomparable* hitting set). That the list is maximal is the same as saying that a related list of minimal hitting sets is complete. And a counting test gives a polynomial algorithm: if the number Λ = Σ_j [2^(1−|S_j|) + 2^(1−|T_j|)] is below 1, an extension exists and can be built deterministically.
- **A local test that is not enough.** A list in which every set passes the *local* test (it really is a minimal hitting set) can still be incomplete: in a valid 8-row, 10-column table with exactly four extensions, twelve listed sets pass every local check, yet the full list has fourteen. Checking one set at a time is easy; checking that the list is complete is the hard part. Lean proves the local test.
- **A shortcut that fails.** Maximal does not mean self-dual. All four triples of {a,b,c,d} form a maximal intersecting antichain, yet their hitting-set list is the six pairs, and the 5×4 table they define does not extend.
- **Three further results.** For a fixed 'rank spread' the decision is polynomial; the exact number of extensions is 2W(F); and a rank count gives a sufficient certificate.
- **Stuck arrays.** Seven tables for which a SAT solver answered 'no more columns fit' each have a small unsatisfiable core. At strength 2 the core uses every pair of columns; at strength 3 only 5 to 18 pairs. The answer concerns that table only and is never a lower bound for the smallest possible array.
- **The hypothesis that matters.** One lemma of the equivalence needs the array to be a strength-2 covering array; without that hypothesis it fails for 310 families on four points. About 1.5 million cases agree with brute force.

### How to check

The Lean package shipped in this book (build steps in the Check it yourself guide) covers the equivalence with duality. For the rest, small tables can be decided by exhaustive search for tables of up to a couple of dozen rows, using the colouring rule of chapter 5. The larger comparisons (2,901 random tables, 163 antichains and 27,524 pairs) were run in the working notes, which are not shipped; the register says how each statement was checked.

### What this suggests

The strength-2 question lies between two well-studied things: it is not known to be easy, and (under a stated assumption) it is not NP-hard. That indicates strength 2 is a special case; whether the same is true for strength 3 is the subject of the next chapters, and further research is recommended.

## Check it yourself

Recipe 9 of the [check guide](../VERIFY.md) builds the Lean package, which proves the two reductions correct; small tables can be decided with the colouring rule of recipe 4. The [register of results](../statement/RESULTS.md) says how each written result was checked.

## Where to go next

- Does strength 3 behave the same way? [Chapter 7: strength three and pair classes](07-strength-three-pair-classes.md).
- Why is strength 3 different? [Chapter 9: strength three is NP-complete](09-strength-three-is-np-complete.md).
