Lemma 12(a) — a violation of R^β between two nodes is witnessed by consecutive nodes
ProvedAKSSorting.Core.consecutive_violationcombinatoricsp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1sorting-networks
Let be a chain on level , a position, , and nodes of level such that fails. Then there are consecutive nodes of level with
Out-of-order contents between two distant nodes can be localized to a pair of neighbouring nodes, where the local improvement steps of the algorithm act.
Formalization Note Consecutive means in the order of the level (Fin (2^i)). A position is an injective map from registers to contents.
Preamble
import Mathlib import Definitions.Def_AKSSorting_Core_IsChain import Definitions.Def_AKSSorting_Core_Rbeta
Formal statement
namespace AKSSorting.Core
/-- Lemma 12(a) (Ajtai–Komlós–Szemerédi 1983, p. 14). Let `C` be a chain on level `i`, `G` a
position (an injective assignment of contents to registers), `β > 0`, and `t₁ < t₂` nodes of
`Dom(C)` with `¬R^β_G(t₁, t₂)`. Then there are consecutive nodes `t₁' < t₂'` (`t₂' = t₁' + 1`)
with `t₁ ≤ t₁' < t₂' ≤ t₂` and `¬R^β_G(t₁', t₂')`. -/
theorem consecutive_violation {R : Type} [DecidableEq R] {α : Type} [LinearOrder α] {i : ℕ}
(C : Fin (2 ^ i) → Finset R) (hC : IsChain C) (G : R → α) (hG : Function.Injective G)
(β : ℝ) (hβ : 0 < β) (t₁ t₂ : Fin (2 ^ i)) (h12 : t₁ < t₂) (hR : ¬ Rbeta G C β t₁ t₂) :
∃ t₁' t₂' : Fin (2 ^ i), t₁'.val + 1 = t₂'.val ∧ t₁ ≤ t₁' ∧ t₂' ≤ t₂ ∧
¬ Rbeta G C β t₁' t₂' := by sorry
end AKSSorting.Core
Source
Ajtai, Komlós, Szemerédi, Sorting in c log n parallel steps, Combinatorica 3 (1983), p. 14, Lemma 12(a); p. 13, Definition 8.1
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.