# How the check works

## The question

Given a table of 0s and 1s, how do you know it is a covering array of strength four?

## Why it matters

A claim about an array is only as good as the check behind it, and this check needs no trust in us.

## What answering it would help with

A reader can test any binary strength-four array stored in the same plain format.

## What our research shows

All 29 arrays pass the full check of every choice of four columns, by two separate programs; nothing is sampled.

**The full check** goes through every choice of four columns and every one of the 16 patterns, and looks for a row that shows it. If any pattern is missing, the array fails and the check can name the four columns. Nothing is sampled. For 345 columns there are 580,078,170 choices of four columns, which is 9,281,250,720 pairs of a choice and a pattern. A direct program in a compiled language checks all 29 arrays in about 5 minutes on one core of an ordinary computer; an interpreted language needs much longer.

The 29 arrays were checked by two separate programs, one in Python and one in C#. Both found all 29 arrays to be covering arrays. The check does not depend on how the arrays were made, so a reader can write their own program from the written recipe in the Check it yourself guide: the exact file format, the exact condition, the expected answer and the fingerprint of every file.

**The fingerprint check** takes seconds. A SHA-256 tool compares each file with the fingerprint list. It confirms that the file you hold is the file we published; it does not test coverage.

### Yesterday, today, tomorrow

**Yesterday.** A covering array can be checked from its definition, without any trust in how it was made. The tables kept by Colbourn and preserved by Groemping give sizes and sources, and Smolen's ca-tools repository carries many arrays themselves as data, including the 141 × 199 array that seven of ours start from.

**Today.** The C# route takes about 5 minutes for all 29 arrays on one core. The Python route takes several hours on one core (a check written from the recipe took about 1.5 minutes for a 201-column array and about 8 minutes for a 345-column array), or under an hour spread over 16 processes. A fingerprint check takes seconds. If a pattern is missing, the check names the four columns.

**Tomorrow.** The same recipe applies to any binary strength-four array in the same plain format, and a failure names the columns and pattern, which tells someone where to repair an array. A reader with a compiler can write a checker and test an array of their own.

## Check it yourself

Recipes 1 and 2 of the [check guide](../VERIFY.md) give the fingerprint check and the full four-column check.

## Where to go next

- Can a finished table take one more column? [Chapter 5: room for one more column](05-room-for-one-more-column.md).
- Which other arrays were checked? [Chapter 14: more arrays](14-more-arrays.md).
