This is about n by n binary matrices. Call a pair of rows unfriendly if the Hamming distance between the two rows is larger than the number ones they have in common positions. Let us call a matrix unfriendly if all pairs of rows are unfriendly.
The identity matrix is, for example, unfriendly and the all ones matrix is friendly.
What is the largest number ones an n by n unfriendly binary matrix can have?