Lemma 6 — a path to (k+1, k) through the centre diagonal costs at least 5 + (μ_{k+1} + μ_k)π
ProvedMasekPaterson.Necessity.Pstar_split_bounddynamic-programmingedit-distancep2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1
In the §4.1 example, for all natural numbers and with ,
The left-hand side is the cost of a path that runs along eccentricity from to , deletes one character (cost ), and runs along eccentricity at least from to . The lemma says every such path costs at least as much as the path that deletes first and then follows the odd diagonal.
Preamble
import Mathlib import Definitions.Def_MasekPaterson_Shared_editDist import Definitions.Def_MasekPaterson_Necessity_editPaths import Definitions.Def_MasekPaterson_Necessity_example open MasekPaterson.Shared
Formal statement
namespace MasekPaterson.Necessity
/-- Lemma 6: for all `k'` with `0 ≤ k' ≤ k`,
`P*(0, 0, k') + 5 + P*(k' + 1, k', k - k') ≥ 5 + (μ_{k+1} + μ_k) π`. -/
theorem Pstar_split_bound (k k' : ℕ) (hk' : k' ≤ k) :
5 + ((mu (k + 1) : ℝ) + (mu k : ℝ)) * Real.pi
≤ exPstar 0 0 k' + 5 + exPstar (k' + 1) k' (k - k') := by sorry
end MasekPaterson.Necessity
Source
Masek, Paterson, A Faster Algorithm Computing String Edit Distances, J. Comput. System Sci. 20, 1980, p. 29, Lemma 6
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The setting is the specific example, with and as defined there. is the minimum cost of an edit path from to all of whose points have eccentricity .
For all natural numbers with ,
- The first term on the right is the constrained minimum from to . Its constraint () is vacuous, so it equals the unconstrained minimum.
- The last term is the minimum from to over paths staying at eccentricity .
Degenerate cases.
- Because is assumed, involves no truncated natural subtraction.
- For , both terms are and , so the claim reads .
- For , the last term is .
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.