not_hamming_close_skew_system_same
The constant all-false vector paired with itself in {0,1}^2 does not form a close-skew system of radius 1 and size 1.
Statement
theorem not_hamming_close_skew_system_same : ¬ hamming_close_skew_system 1 (fun (_ : Fin 1) (_ : Fin 2) => false) (fun (_ : Fin 1) (_ : Fin 2) => false)
- Source
- arXiv:2611.20820 Sec. 5.7
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- hamming_close_skew_systemA pair of sequences of k points (v, w) in the n-dimensional Hamming space {0,1}^n forms a close-skew system of radius r if all pairs v_i,…
- fin_three_false_of_four_pairwise_neFin 3 has no four pairwise distinct elements.
Read back from the Lean
It is not the case that the pair of functions v, w : Fin 1 → Fin 2 → Bool, both defined to be identically false, satisfies hamming_close_skew_system with parameter r = 1.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
To show that pairing the constant all-false vector with itself cannot form a Hamming close-skew system of radius 1, the proof expands the definition of `hamming_close_skew_system`. One condition requires the Hamming distance between the corresponding vectors to be at least r + 1 = 2. Since the vectors are identical, their Hamming distance is 0, which contradicts 2 ≤ 0.
The identical constant vectors in {0,1}² do not form a close-skew system of radius 1. automation
We unfold the definition of `hamming_close_skew_system`. A close-skew system of radius r = 1 requires that for each index i, the distance between the corresponding vectors satisfies hammingDist(w i, v i) ≥ r + 1 = 2. But here both vectors are the identical constant false vector, whose Hamming distance is 0. Simplification evaluates the distance to 0, detects the contradiction 2 ≤ 0, and closes the goal.
uses
hamming_close_skew_system,fin_three_false_of_four_pairwise_ne¬ hamming_close_skew_system 1 (fun (_ : Fin 1) (_ : Fin 2) => false) (fun (_ : Fin 1) (_ : Fin 2) => false) := by first | exact fin_three_false_of_four_pairwise_ne | (apply fin_three_false_of_four_pairwise_ne <;> assumption) | (apply fin_three_false_of_four_pairwise_ne <;> simp_all) | simpa using fin_three_false_of_four_pairwise_ne | (simp only [hamming_close_skew_system] at *; first | exact fin_three_false_of_four_pairwise_ne | (apply fin_three_false_of_four_pairwise_ne <;> assumption) | (apply fin_three_false_of_four_pairwise_ne <;> simp_all) | simpa using fin_three_false_of_four_pairwise_ne)
hamming_close_skew_system- a predicate on vector families v and w stating that all pairs in v have Hamming distance at most r, each w_i is at distance at least r + 1 from v_i, and w_i is at distance at most r from v_j for j < i
fin_three_false_of_four_pairwise_ne- no four elements of a three-element set can be pairwise distinct (by the pigeonhole principle)
- The proof source is generated by an automated tactic search (`first | ...`), where several fallback strategies are attempted. The branch that succeeds expands the definition of `hamming_close_skew_system` and invokes `simpa using fin_three_false_of_four_pairwise_ne`. The cited lemma `fin_three_false_of_four_pairwise_ne` (the pigeonhole principle on `Fin 3`) is unused mathematically; `simpa` closes the goal entirely by simplifying the Hamming distance between identical vectors to 0 and detecting the contradiction 2 ≤ 0.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- Sanity lemma: identical vectors do not form a close-skew system because the witness must be at distance at least r + 1. -/theorem not_hamming_close_skew_system_same : ¬ hamming_close_skew_system 1 (fun (_ : Fin 1) (_ : Fin 2) => false) (fun (_ : Fin 1) (_ : Fin 2) => false) := by first | exact fin_three_false_of_four_pairwise_ne | (apply fin_three_false_of_four_pairwise_ne <;> assumption) | (apply fin_three_false_of_four_pairwise_ne <;> simp_all) | simpa using fin_three_false_of_four_pairwise_ne | (simp only [hamming_close_skew_system] at *; first | exact fin_three_false_of_four_pairwise_ne | (apply fin_three_false_of_four_pairwise_ne <;> assumption) | (apply fin_three_false_of_four_pairwise_ne <;> simp_all) | simpa using fin_three_false_of_four_pairwise_ne)