code_min_insdel_dist
def
For any field $F$ and any $F$-submodule $C$ of $\mathrm{Fin}\,n \to F$, the minimum insertion-deletion distance of $C$ is the infimum in $\mathbb{N}$ of the set of distances $d$ for which there exist distinct codewords $u, v \in C$ such that $\mathrm{insdel\_dist}\,u\,v = d$.
Statement
noncomputable def code_min_insdel_dist {n : ℕ} {F : Type*} [Field F] (C : Submodule F (Fin n → F)) : ℕ
- Defined in
- arXiv:2611.21275 Section II-B
- Verified
- 19 Nov 2026
- Axioms
- none listed
- Built on 1
- insdel_distThe insertion-deletion distance between two vectors $u, v \in \alpha^n$ is $2(n - l_{\mathrm{LCS}}(u, v))$.
Read back from the Lean
Given a block length n : ℕ, a field F, and a linear code C (a Submodule F (Fin n → F)), code_min_insdel_dist C is the infimum in ℕ (sInf) of the set of all d : ℕ such that there exist distinct codewords u, v ∈ C whose insertion-deletion distance insdel_dist u v equals d.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- The minimum insertion-deletion distance of a linear code over a field F. -/ noncomputable def code_min_insdel_dist {n : ℕ} {F : Type*} [Field F] (C : Submodule F (Fin n → F)) : ℕ := sInf {d : ℕ | ∃ u ∈ C, ∃ v ∈ C, u ≠ v ∧ insdel_dist u v = d}