Task
Given the situation with this global pandemic, you've been enlisted to help maintain social distancing. Your challenge, should you choose to accept it, is to write a program that takes in the positions of a group of people and checks whether the group is following social distancing rules. Your program must output a truthy value if social distancing guidelines are being met else output a falsy value.
People must always be six spaces apart:
[[1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1]] -> True
[[1, 0, 0, 0, 0, 0, 0, 1]] -> True
[[1, 0, 0, 0, 0, 0, 1]] -> False
[[1, 0, 0, 1]] -> False
[[1],
[0],
[0],
[0],
[0],
[1]] -> False
[[1],
[0],
[0],
[0],
[0],
[0],
[0],
[1]] -> True
For the purpose of this challenge, instead of measuring distance with Pythagoras's theorem, we measure the distance as the length of the shortest path between two people, so this example outputs true:
[[1, 0, 0, 0, 0,],
[0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0,],
[0, 0, 0, 0, 1,]] -> True
Since the shortest path passes through at least six squares.
[[1, █, █, █, █,],
[0, 0, 0, 0, █,],
[0, 0, 0, 0, █,],
[0, 0, 0, 0, 1,],]
Your algorithm must be deterministic (i.e., always produce the same output).
Your program should also, at least in theory, work for inputs containing more than five people and needs to work for a two dimensional input.
Input and Output
Your input can be the a nested array in STDIN or any other input format that doesn't break the standard loopholes.
Output has to be written to STDOUT or closest alternative. Output should consist of a truthy or falsy value (or a string representation thereof).
Additional Rules and Examples
[[1, 0, 0, 0, 0, 0, 1, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 1, 0, 0, 0, 0, 0, 1,]] -> False
[[1, 0, 0, 0, 0, 0, 0, 1, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 1, 0, 0, 0, 0,]] -> True
[[1, 0, 0, 0, 0, 0, 0, 1, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 1, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[1, 0, 0, 0, 0, 0, 0, 0, 1,]] -> True
[[1, 0, 0, 0, 0, 0, 0, 1, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 1, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 1, 0,],
[0, 1, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 1, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 1, 0,],
[0, 0, 0, 1, 0, 0, 0, 0, 0,],
[0, 0, 0, 0, 0, 0, 0, 0, 0,],
[1, 0, 0, 0, 0, 0, 0, 0, 1,]] -> False
Submissions in most languages will be scored in bytes in an appropriate preexisting encoding, usually (but not necessarily) UTF-8.
The language Piet, for example, will be scored in codels, which is the natural choice for this language.
Some languages, like Folders, are a bit tricky to score. If in doubt, please ask on Meta.
If your language of choice is a trivial variant of another (potentially more popular) language which already has an answer (think BASIC or SQL dialects, Unix shells or trivial Brainfuck derivatives like Headsecks or Unary), consider adding a note to the existing answer that the same or a very similar solution is also the shortest in the other language.
Unless they have been overruled earlier, all standard code-golf rules apply.
,
s in lists). \$\endgroup\$