lemmaOutputBands.unique (B : OutputBands) {x k l : ℕ}
(hk : k ∈B.starts) (hl : l ∈B.starts)
(hkx : k ≤ x) (hxk : x ≤B.upper k) (hlx : l ≤ x) (hxl : x ≤B.upper l) : k = l :=by
proof · 6
lines
rcases lt_trichotomy k l with h | h | h
· have:=B.separated k hk l hl h
omega
· exact h
· have:=B.separated l hl k hk h
omega
lemmaOutputBands.label_iff (B : OutputBands) {k x : ℕ} (hk : k ∈B.starts) :
(B.Allows x ∧B.label x = k) ↔ x ∈Set.Icc k (B.upper k) :=by
proof · 9
lines
constructor
· rintro ⟨hx,hk'⟩
have h :=B.label_spec hx
rw [hk'] at h
exact h.2
· rintro ⟨hkx,hxk⟩
havehx : B.Allows x := ⟨k,hk,hkx,hxk⟩
have h :=B.label_spec hx
exact ⟨hx,B.unique h.1 hk h.2.1 h.2.2 hkx hxk⟩
lemmaOutputBands.letter_iff (B : OutputBands) {d k : ℕ} (hk : k ∈B.starts)
(a : Fin (d*d)) :
(B.alphabet d a ∧B.letterLabel d a = k) ↔ output a ∈Set.Icc k (B.upper k) :=
lemmaOutputBands.letter_ordered (B : OutputBands) (d : ℕ) :
∀ x y, B.alphabet d x →B.alphabet d y →B.letterLabel d x < B.letterLabel d y → output x < output y :=by