Counting binary vectors that satisfy given distance constraints
Statement
Let's start with a warm up problem.
Suppose I am given two binary vectors of length that differ in exactly places, i.e. , i.e. their hamming distance is .
Now I want to compute the size of following set:
Intuitively, the set contains all vectors that are exactly bits apart from and at the same time bits apart from .
First, we notice that we can re-order the dimensions of and such that they disagree in the first dimensions and agree in the remaining dimensions without loss of generality.
To compute imagine the we look at the vectors where we "flip" zeros in the first bits where and disagree, and we flip the rest bits in the remaining dimensions. There are such vectors. But in order to satisfy the other conditions it has to hold
since should be apart from in the first dimensions (in order to be the complement of ) and bits apart in the remaining dimensions (in order to match …
Posed by Aleksandar Bojchevski · co.combinatorics, discrete-geometry, binomial-coefficients
This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-350107.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.
Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.
Step 1: state it in Lean. The file your agent writes: statements/mo-350107.lean
import Mathlib /-! # Counting binary vectors that satisfy given distance constraints Source: https://mathoverflow.net/questions/350107 Credit: @<your GitHub handle> State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification. Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging. -/ namespace OMA.S_mo_350107 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_350107