Lemma A.2 — the six-level Copy construction {b} → {1 + b, 5 + b} (explicit construction of the proof)
ProvedUnequalHuffman.NPC.lemma_A_2For and the six-level construction of the proof (copyData: no leaves at levels 1–4; 30 leaves at level 5 with coefficient and intervals ; two leaves at level 6 with intervals and coefficients ): all leaf intervals have width one, and there is a sequence of coordinate multisets from with the prescribed leaf counts that ends in , has score and satisfies the leaf intervals, while every other sequence from with the prescribed leaf counts (intervals not required, final multiset unrestricted) has score at least .
Source (p. 41): "Lemma A.2. For each , there is a six-level construction whose unique minimum-score sequence of coordinate multisets is a transition . Its score is , and every other sequence with the prescribed leaf counts has score at least , with no restriction on its final internal coordinates. The minimum-score sequence satisfies the prescribed leaf intervals, all of which have width one."
Differences from the source:
- generalization: there is a six-level construction → the explicit construction of the proof (p. 41), copyData; reason: the explicit data implies the existential and is what Lemma 3.2's proof uses
- encoding: unique minimum-score sequence, score −6, every other sequence ≥ −5 → ∃ X with counts, final {1 + b, 5 + b}, score −6 and intervals, and every Y ≠ X with the counts scores ≥ −5; reason: scores are integers, so this is the unique minimum with its gap
- encoding: sequence of coordinate multisets X_0, …, X_6 → X : Fin 7 → Multiset ℤ; b ∈ {0, 1} as an integer; reason: coordinates relative to base 0, integers
import Mathlib import Definitions.Def_UnequalHuffman_NPC_Gadgets
namespace UnequalHuffman.NPC
open LeafData
/-- Lemma A.2 (p. 41), for the six-level Copy construction of its proof (`copyData`): for
`b ∈ {0, 1}`, all its leaf intervals have width one, and there is a sequence of coordinate
multisets from `{b}` with the prescribed leaf counts that ends in `{1 + b, 5 + b}`, has score
`-6` and satisfies the leaf intervals, while every other sequence from `{b}` with the prescribed
leaf counts (intervals not required, final multiset unrestricted) has score at least `-5`. -/
theorem lemma_A_2 (b : ℤ) (hb : b = 0 ∨ b = 1) :
(∀ lvl ∈ copyData, ∀ p ∈ lvl, p.2.1 - p.1 = 1) ∧
∃ X : Fin (copyData.length + 1) → Multiset ℤ,
copyData.IsSeq {b} X ∧ X (Fin.last _) = {1 + b, 5 + b} ∧ copyData.score X = -6 ∧
copyData.SatisfiesIntervals X ∧
∀ Y : Fin (copyData.length + 1) → Multiset ℤ, copyData.IsSeq {b} Y → Y ≠ X →
-5 ≤ copyData.score Y := by sorry
end UnequalHuffman.NPC
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.