Lemma 5 — lower bounds for P*(i, j, k) on even and odd diagonals
ProvedMasekPaterson.Necessity.Pstar_lower_boundIn the §4.1 example, with and as defined there, for all natural numbers :
- if is even, then
- if is odd, then
The right-hand sides are the costs of the straight diagonal paths when the 's line up: on an even diagonal each step costs except a -for- replacement, which is free; on an odd diagonal each met costs and every other step is free. The lemma says that no path staying at eccentricity at least does better.
import Mathlib import Definitions.Def_MasekPaterson_Shared_editDist import Definitions.Def_MasekPaterson_Necessity_editPaths import Definitions.Def_MasekPaterson_Necessity_example open MasekPaterson.Shared
namespace MasekPaterson.Necessity
/-- Lemma 5: `P*(i, j, k) ≥ k - μ_{i+k} + μ_i` if `i - j` is even, and
`P*(i, j, k) ≥ (μ_{i+k} - μ_i + μ_{j+k} - μ_j) π` if `i - j` is odd. -/
theorem Pstar_lower_bound (i j k : ℕ) :
(Even ((i : ℤ) - j) →
(k : ℝ) - (mu (i + k) : ℝ) + (mu i : ℝ) ≤ exPstar i j k) ∧
(Odd ((i : ℤ) - j) →
((mu (i + k) : ℝ) - (mu i : ℝ) + (mu (j + k) : ℝ) - (mu j : ℝ)) * Real.pi
≤ exPstar i j k) := by sorry
end MasekPaterson.Necessity
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The setting is the specific example: , the cost function , the sequences , the sequence , and . Here is the minimum cost of an edit path from to all of whose points have eccentricity at least .
For all natural numbers , both of the following hold. The parity is that of the integer , and all arithmetic is in .
- If is even, then
- If is odd, then
Degenerate cases.
- The -differences are real subtractions, so no truncation occurs.
- For , (empty path only). Both bounds then read .
- For the infimum defining is over a nonempty finite set, so it is an attained minimum rather than a default value.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.