Distribution of the change in Hamming distance between two sequences
Statement
Suppose I have two strings and of equal length with an alphabet size of . Suppose further that these two strings initially have a Hamming distance equal to .
I then proceed through each character in one of the strings (say ), changing with probability the character to another distinct value in the alphabet, uniformly from the choices remaining. The number of edits is therefore distributed .
Denote the new string . Can I say anything about the distribution of ?
I can see that the likelihood of a positive change versus a negative change must be dependent on , as clearly edits to two strings with a large number of matches is more likely to induce an increase in Hamming distance rather than a decrease.
I can also see that it might not be possible to give a complete answer for the case where the alphabet size , since a flip of an unmatched character may or may not result in a match given we don't know the exact contents of the string it is being compared to. In this instance, we can assume that the string and were initially sampled …
Posed by Harry L · pr.probability, coding-theory, hamming-distance, bioinformatics
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-459055.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-459055.lean
import Mathlib /-! # Distribution of the change in Hamming distance between two sequences Source: https://mathoverflow.net/questions/459055 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_459055 -- definitions the statement needs (no sorry, no axiom) theorem main : sorry := by sorry end OMA.S_mo_459055