# Strength three: pair classes, and when a table has room

## The question

At strength 3, every group of three switches must show all eight patterns. One-column extension asks again: can the finished table take one more column?

## Why it matters

Strength 3 is where the question becomes hard (chapter 9), so its easy cases matter in practice.

## What answering it would help with

The easy-case tests decide many practical tables quickly, without a full search.

## What our research shows

At strength 3 the question is a colouring puzzle on pair classes; some tables are easy (a counting test, a local-lemma test), and a table can have room and still lose it when one row is deleted.

### Pair classes

Chapter 5 gave the rule. Choose two columns a and b and one of their four settings. The rows that show that setting form a **pair class**. A new column keeps strength 3 exactly when it is both 0 and 1 somewhere in every pair class (the t = 3 case of the Lean-proved class lemma).

A few facts about pair classes:

- A table with k columns has exactly 4 × C(k,2) pair classes, and no pair class contains another.
- Every pair class has at least 2 rows, and at most N − 6 rows.
- Checking a proposed new column takes O(N k²) time, so the problem is in NP.

### Easy cases

- **The counting test.** Give each pair class E the weight 2^(1−|E|), the chance that a random column is constant on it. If the total weight W is less than 1, a good column exists, and a deterministic polynomial algorithm finds it. Example: a 64 × 32 table has W = 31/512.
- **The local-lemma test.** A finer test with weights x_E: if 2^(1−|E|) ≤ x_E · Π(1 − x_F) over the classes F that overlap E, a column exists, and the resampling method of Moser and Tardos finds it. A 28 × 3 table has total weight 1153/1024, which is more than 1, so the counting test is silent, but the local-lemma test passes. This uses the published Moser-Tardos theorem as given.
- **Small intersections.** If two pair classes never share more than b rows, extension is decidable in time O(2^(8b) N k²). With b = 1 it is the question of whether a graph is bipartite.
- **Dropping a column always leaves room.** Every table obtained from a strength-3 table by deleting a column can be extended (put the deleted column back). So every table with no room is *column-minimal*.
- **The smallest table with no room has 8 rows.** Take x, y, z in all eight ways and the fourth column x + y + z: that is the parity table of chapter 5.
- **Unit rows.** For tables made of unit rows, the question is polynomial: it extends exactly when both constant columns are present, and then there are exactly two extensions.

### Rooms and worked examples

Some small tables are good for trying the colouring rule by hand or by a short program of your own. They are shipped in the fixtures folder as plain text.

| Table | Strength | Number of ways to add a column |
|---|---|---|
| the 16-row table of all patterns of four switches | 3 | 7,842 |
| the parity table with 8 rows and 4 columns | 3 | 0 |
| the extended Hamming code (16 words of 8 bits) | 3 | 56 |
| every table obtained from the Hamming-code table by deleting one row | 3 | 0 (all 16) |
| the 4-cube minus the rows 0000, 0011, 1101 and 1110 (12 rows) | 3 | 28 |

The 16 × 8 design is a fixed point of a different kind: it has 56 extensions, yet the loss of any single row leaves it with none. The same pattern (a table with room whose every subtable has none) is what the shared-design constructions tried to use; the lift of this design to larger members of the family fails from r = 4 on (chapter 8).

### How strength-3 extension relates to duality

- **Duality and extension.** The complement of monotone duality reduces, in polynomial time, to strength-3 extension: from two families (J, G) one builds a strength-3 table that extends exactly when G differs from the hitting-set family of J. Status: PROVED-written, accepted in a separate reading, and compared with brute force on 60 instances. We claim no priority: the link between duality and the colouring of intersecting hypergraphs is in Elbassioni (2016) and Kokkala (2017).
- **Padding and orientation.** For an intersecting Sperner hypergraph J, the padded table is extendible exactly when J is properly two-colourable; and J is not two-colourable exactly when J equals its own hitting-set family.
- **Bad hitting sets.** Strength-3 extension is possible exactly when a certain list B(H) of *bad* hitting sets differs from the hitting-set family of H.
- **How long the list can be.** That list can be enormous: for the incidence tables H_m it has at least 2^binom(m−1,2) members, which grows like 2^Θ(√L) in the table size L. So the direct plan 'compute the list, then ask duality' fails. This does not rule out other plans (chapter 12).

Together with the statement of chapter 9 (strength 3 is NP-complete), these results indicate that strength 3 differs from strength 2 in an essential way. Further research is recommended: in the sources we checked, no one has shown, either way, whether strength-3 extension can be reduced to duality.

### What was checked

Most of this chapter is PROVED-written, read in a separate reading and compared with brute force on small tables; the register says how each result was checked. The Lean package covers the class criterion itself and the finite facts about classes. The union-bound and local-lemma examples are exact computations on the stated tables.

## Check it yourself

Recipe 4 of the [check guide](../VERIFY.md) reproduces the counts of the worked tables in the fixtures folder; the [register of results](../statement/RESULTS.md) says how each result was checked.

## Where to go next

- Why did the obvious ways of proving hardness fail? [Chapter 8: the eighteen walls](08-the-eighteen-walls.md).
- Which route did prove hardness? [Chapter 9: strength three is NP-complete](09-strength-three-is-np-complete.md).
